:root {
    --primary: #5f800b;
    --primary-dark: #3f5407;
    --accent: #f1c40f;
    --bg: #f5f5f5;
    --text: #222;
}

* {
    box-sizing: border-box;
}

/* Grundlayout */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ================= HEADER (Logo links – Kontakt rechts – Nav mittig) ================= */

.main-header {
    width: 100%;
    background: #556d08;
    color: white;
    border-bottom: 0; /* Trennung übernimmt die Nav-Bar */
}

/* HEADER OBEN */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;  /* Logo links – Kontakt rechts */
}

/* Linker Bereich - Logo + Firma */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    height: 70px;
    width: auto;
}

/* Firma */
.company {
    display: flex;
    flex-direction: column;
}

.company-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.company-subline {
    font-size: 0.85rem;
    margin-top: 0.2rem;
    opacity: 0.95;
    white-space: nowrap;
}

/* Rechter Bereich – Kontaktbutton */
.header-right .header-contact-btn {
    background: #111;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.header-right .header-contact-btn:hover {
    background: #333;
}

/* ================= NAV-BAR (schwarzer Streifen) ================= */

.main-nav-bar {
    width: 100%;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid #000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;   /* Navigation perfekt zentriert */
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 0.5rem 0;
    margin: 0;
}

.main-nav-bar a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.main-nav-bar a:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
}

/* ================= RESPONSIVE HEADER ================= */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;
        gap: 0.7rem;
        text-align: center;
    }

    .company-subline {
        white-space: normal;
    }

    .header-right .header-contact-btn {
        margin-top: 0.3rem;
    }

    .main-nav-bar ul {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .company-title {
        font-size: 1.3rem;
    }

    .company-subline {
        font-size: 0.75rem;
    }

    .main-nav-bar a {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ================= HERO-BEREICH (einheitlich für alle Seiten) ================= */

/* Abschnitt selbst – überall gleicher Abstand */
/* Standard-Fallback für alle Browser */
.hero,
.hero-single {
    position: relative;
    padding: 3rem 1rem 3rem;
    overflow: hidden;
    min-height: 340px;
}

/* Container im Hero */
.hero-inner {
    position: relative;
}

/* Hintergrundbild (LCP-Image) */
.hero-bg {
    position: absolute;
    inset: 0;              /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -1;           /* liegt hinter dem Inhalt */
}

/* Inhalt im Hero */
.hero-content-box {
    position: relative;
    z-index: 1;
}



/* Innenbereich */
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    position: relative;
}

/* Unterseiten können den Hero einspaltig nutzen */
.hero-single .hero-inner {
    grid-template-columns: minmax(0, 1fr);
}

/* Standard-Textbox im Hero (Startseite) */
.hero-content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 1.5rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    max-width: 650px;
}

/* Bildbox im Hero (z.B. Maler/Boden) */
.hero-image-box {
    display: flex;
    justify-content: center;
    padding: 0.8rem;
}

.hero-image-box img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===== Badge Desktop (wie bisher) ===== */
.hero-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 240px;
    max-width: 240px;
    height: auto;
    opacity: 0.95;
    z-index: 5;
}

/* Mobile-Version */
@media (max-width: 768px) {
    .hero-badge {
        position: static;
        display: block;
        width: 160px;
        max-width: 160px;
        height: auto;
        margin: 1.5rem auto 0;
        opacity: 0.95;
        z-index: 1;
    }

    .hero-content-box {
        padding-bottom: 2rem;
    }
}

.hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0 0 0.5rem;
    color: var(--primary-dark);
}

.hero p.lead {
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.hero-highlights li {
    margin-bottom: 0.4rem;
}

.hero-highlights li::before {
    content: "✔";
    color: var(--primary-dark);
    margin-right: 0.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Speziell für Kontakt-Hero mit Textblock */
.hero-contact-box {
    text-align: left;
}

.hero-contact-box h1 {
    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

.btn-outline {
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    background: rgba(255,255,255,0.9);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

/* ================= GENERISCHE SECTIONS ================= */

section {
    padding: 2.5rem 1rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 0.98rem;
}

/* ================= STARTSEITE – LEISTUNGEN ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem 1.3rem 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.service-card p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: #555;
}

.service-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
}

.service-link:hover {
    text-decoration: underline;
}

/* ================= ÜBER UNS ================= */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.about-layout p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: #444;
}

.about-facts {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.about-facts ul {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0;
}

.about-facts li {
    margin-bottom: 0.25rem;
}

@media (max-width: 800px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================= KONTAKT ================= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.contact-card p {
    margin: 0.2rem 0;
}

/* Kontakt-Tabelle */
.contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.contact-table th {
    text-align: left;
    padding: 0 0.8rem 0.2rem 0;
    white-space: nowrap;
    vertical-align: top;
    font-weight: 600;
}

.contact-table td {
    padding: 0 0 0.2rem 0;
}

.opening-times {
    border-collapse: collapse;
}

.opening-times td {
    padding: 0 0 2px 0;
}

.ot-day {
    width: 55px;
    white-space: nowrap;
    font-weight: 600;
}

.ot-time {
    white-space: nowrap;
}

.contact-card a {
    color: var(--primary-dark);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.88rem;
    color: #555;
    margin-top: 0.6rem;
}

/* Map-Container */
.map-wrapper {
    position: relative;
    padding-top: 60%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

.map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= FOOTER ================= */

footer {
    background: #222;
    color: #ddd;
    font-size: 0.85rem;
    padding: 1.2rem 1rem 1.4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-links a {
    color: #ddd;
    margin-right: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Hilfsklasse für unsichtbare Überschriften */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* ================= SERVICE-SEITEN – EINLEITUNG & ABSCHLUSS ================= */

/* Einleitungsbereich oben (Malerarbeiten + Einleitungssatz) */
.page-service .service-intro {
    padding: 2.5rem 1rem 2rem;
    background: #f5f5f5; /* wie Body-Hintergrund */
}

.page-service .service-intro .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.page-service .service-intro h1 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin: 0 0 0.8rem;
    text-align: left;
}

.page-service .service-intro p {
    color: #444;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 1000px;
}

/* Abschlussbereich unter dem großen Block */
.page-service .service-contact {
    padding: 2rem 1rem 3rem;
    background: #f5f5f5;
}

.page-service .service-contact .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.page-service .service-contact p {
    color: #444;
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ================= TYPO STYLE FÜR RECHTLICHE SEITEN (Impressum, Datenschutz) ================= */

.page-legal section {
    padding: 2rem 1rem;
    background: #ffffff; /* neutraler Hintergrund */
}

.page-legal .content {
    max-width: 900px;
    margin: 0 auto;
    color: #222;           /* etwas dunkler, gut lesbar */
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-legal .content h1 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.page-legal .content h2 {
    color: #222;
    font-size: 1.2rem;
    margin: 1.8rem 0 0.8rem;
}

.page-legal .content h3 {
    color: #222;
    font-size: 1rem;
    margin: 1.4rem 0 0.6rem;
}

.page-legal .content p,
.page-legal .content li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-legal .content ul {
    padding-left: 1.2rem;
}

.page-legal .content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ================= BREADCRUMBS ================= */

.breadcrumbs {
    padding: 10px 20px;
    background: #f7f7f7;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.breadcrumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}

.breadcrumbs a {
    color: #0077cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs ol li::after {
    content: ">";
    margin-left: 8px;
    color: #999;
}

.breadcrumbs ol li:last-child::after {
    content: "";
}

/* ================= SOCIAL SHARING IM FOOTER ================= */

.share-buttons {
    max-width: 1100px;
    margin: 0.8rem auto 0;
    padding-top: 0.6rem;
    border-top: 1px solid #444;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Grundstil Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* Alle Zustände: weiße Schrift */
.share-btn:link,
.share-btn:visited,
.share-btn:hover,
.share-btn:focus,
.share-btn:active {
    color: #ffffff;
}

/* Facebook – dunkleres Blau, AA-konform mit Weiß */
.share-btn.fb {
    background-color: #0b5ad0; /* statt #1877f2 */
}

/* WhatsApp – dunkles Grün, AA-konform mit Weiß */
.share-btn.wa {
    background-color: #075e54; /* statt #25d366 */
}

/* Hover-Effekt */
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.20);
    opacity: 0.95;
}

