/* =========================================
   FONTS
========================================= */
@font-face {
    font-family: 'Museo Slab 900';
    src: url('fonts/MuseoSlab-900.eot');
    src: url('fonts/MuseoSlab-900.eot?#iefix') format('embedded-opentype'),
        url('fonts/MuseoSlab-900.woff2') format('woff2'),
        url('fonts/MuseoSlab-900.woff') format('woff'),
        url('fonts/MuseoSlab-900.ttf') format('truetype'),
        url('fonts/MuseoSlab-900.svg#MuseoSlab-900') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo Slab 700';
    src: url('fonts/MuseoSlab-700.eot');
    src: url('fonts/MuseoSlab-700.eot?#iefix') format('embedded-opentype'),
        url('fonts/MuseoSlab-700.woff2') format('woff2'),
        url('fonts/MuseoSlab-700.woff') format('woff'),
        url('fonts/MuseoSlab-700.ttf') format('truetype'),
        url('fonts/MuseoSlab-700.svg#MuseoSlab-700') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo Slab 300';
    src: url('fonts/MuseoSlab-300.eot');
    src: url('fonts/MuseoSlab-300.eot?#iefix') format('embedded-opentype'),
        url('fonts/MuseoSlab-300.woff2') format('woff2'),
        url('fonts/MuseoSlab-300.woff') format('woff'),
        url('fonts/MuseoSlab-300.ttf') format('truetype'),
        url('fonts/MuseoSlab-300.svg#MuseoSlab-300') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   ROOT VARS
========================================= */
:root {
    --museo300: 'Museo Slab 300';
    --museo700: 'Museo Slab 700';
    --museo900: 'Museo Slab 900';

    --mengentext: clamp(1rem, 0.9856rem + 0.0769vw, 1.125rem);

    --olbGruen: #005737;
    --olbGelb: #BBD700;
    --olbWeiss: #FFFFFF;
    --bg: #F1F0EC;

    --accent: var(--olbGruen);
    --focus: #ffbf47;
    /* gut sichtbarer Fokus (WCAG-konform) */

    /* HERO */
    --hero-maxw: 1100px;
    --hero-pad: clamp(1rem, 2.5vw, 2rem);
    --panel-bg: rgba(34, 58, 34, .5);
    --panel-radius: .5rem;
    --text-light: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* =========================================
   BASE
========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--museo300);
    font-size: var(--mengentext);
    line-height: 1.6;
    color: var(--olbGruen);
    background: var(--bg);
}

h2 {
    margin-top: 0;
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Screenreader-only */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-Link */
.skip-link {
    position: absolute;
    left: .5rem;
    top: -50px;
    padding: .5rem .75rem;
    background: var(--focus);
    color: #000;
    border-radius: 8px;
    z-index: 1000;
}

.skip-link:focus {
    top: .5rem;
    outline: 3px solid #000;
}

/* Container */
.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.narrow {
    width: min(800px, 92vw);
}

/* Fokus sichtbar global */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* =========================================
   HEADER
========================================= */
header,
footer {
    background: var(--olbWeiss);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

address.site-contact {
    font-style: normal;
}

/* Kontaktliste */
.contact-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.contact-list i {
    font-size: 1.2rem;
    color: var(--olbGelb);
    width: 1.25em;
    text-align: center;
}

/* Font Awesome Family-Fix (falls global Fonts überschrieben werden) */
i.fa-solid,
span.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

i.fa-regular,
span.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

i.fa-brands,
span.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

@media (max-width:600px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
    }

    .contact-list {
        flex-direction: column;
        gap: .5rem;
    }
}

/* =========================================
   CONTENT GRID (About 4/8)
========================================= */

main {
    border-top: 3px solid #fff;
}

main .container {
    width: min(1100px, 92vw);
    margin-inline: auto;
    padding: 3rem 0;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    /* großer Gutter zwischen 4/8 */
    row-gap: clamp(1rem, 2.5vw, 2rem);
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.col-8 {
    grid-column: span 8;
}

/* Desktop: optional inneres Padding addieren (addiert sich zum Gutter) */
@media (min-width:992px) {
    .col-4 {
        padding-right: clamp(.75rem, 2vw, 1.5rem);
    }

    .col-8 {
        padding-left: clamp(.75rem, 2vw, 1.5rem);
    }
}

/* Bilderstack */
.shot {
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem) 0;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* Text */
.eyebrow {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: var(--museo700, system-ui, sans-serif);
    color: #0b5f46;
    margin: 0 0 .25rem 0;
    font-size: .9rem;
}

.about-title {
    font-family: var(--museo900, system-ui, sans-serif);
    font-size: clamp(1.8rem, 3.2vw + .8rem, 3rem);
    line-height: 1.15;
    color: #0b5f46;
    margin: 0 0 1rem 0;
}

.leadcopy p {
    margin: 0 8rem 1rem 0;
}

p.cta-wrap {
    display: flex;
    justify-content: flex-end;
}

/* Call Button */
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #b7e41f;
    color: #0b3a2c;
    font-weight: 700;
    padding: .6rem .9rem;
    border-radius: .5rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.btn-call:hover {
    filter: brightness(0.95);
}

.btn-call:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.btn-call i {
    font-size: 1rem;
}

/* Tablet */
@media (max-width:991px) {
    .grid-12 {
        column-gap: clamp(1.5rem, 4vw, 3rem);
        row-gap: 1.25rem;
    }

    .col-4 {
        grid-column: span 5;
    }

    /* 5/7 wirkt luftiger auf Tablet */
    .col-8 {
        grid-column: span 7;
    }
}

/* Handy */
@media (max-width:640px) {
    .grid-12 {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .col-4,
    .col-8 {
        grid-column: 1 / -1;
    }

    .cta-wrap {
        margin-top: .5rem;
    }

    .btn-call {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   HERO
========================================= */
.hero {
    --hero-maxw: 1100px;
    --hero-pad: clamp(1rem, 2.5vw, 2rem);
    --panel-bg: rgba(34, 58, 34, .5);
    --panel-radius: .5rem;
    --text-light: #fff;
}

/* Medienbereich: immer flächig füllen */
.hero__media {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.hero__media picture,
.hero__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .15) 0%,
            rgba(0, 0, 0, .25) 40%,
            rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

/* figcaption füllt den Bereich */
.hero__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

/* Container begrenzt die Breite */
.hero__container {
    max-width: var(--hero-maxw);
    margin: 0 auto;
    padding: var(--hero-pad);
    width: 100%;
    text-align: left;
}

/* Gemeinsames Textpanel */
.hero__panel {
    display: inline-block;
    background: var(--panel-bg);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--panel-radius);
    max-width: 90%;
}

.hero__title {
    margin: 0 0 .25em 0;
    font-family: var(--museo900, system-ui, sans-serif);
    font-size: clamp(2rem, 4vw + .5rem, 3.2rem);
    line-height: 1.2;
    letter-spacing: .2rem;
}

.hero__title span {
    display: block;
}

.hero__subtitle {
    margin: 0;
    font-family: var(--museo700, system-ui, sans-serif);
    font-size: clamp(1.1rem, 2vw + .2rem, 1.6rem);
    line-height: 1.3;
}

/* Desktop: stabile Höhe über Ratio */
@media (min-width:992px) {
    .hero__media {
        aspect-ratio: 16/9;
        min-height: auto;
    }
}

@media (min-width:992px) {
    .hero__media.rechtstexte {
        aspect-ratio: 16/4;
        min-height: auto;
    }
}

/* Tablet: genug Höhe, Bild füllt Fläche */
@media (min-width:601px) and (max-width:991px) {
    .hero__media {
        min-height: 55svh;
    }

    /* ggf. 50–60svh je nach Textmenge */
}

/* Mobile: mehr Platz unten, Panel bleibt im Bild */
@media (max-width:600px) {
    .hero__media {
        min-height: 65svh;
    }

    /* verhindert Überläufe */
    .hero__caption {
        align-items: flex-end;
    }

    .hero__container {
        padding-inline: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .hero__panel {
        max-width: 100%;
    }

    .hero__title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.3;
    }

    .hero__panel,
    .hero__title,
    .hero__subtitle {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

/* ==========================================
    LEISTUNGEN
============================================= */

section.leistungen {
    background: var(--olbGruen);
    padding: 3rem 0;
}

section.leistungen {
    color: var(--olbWeiss);
    text-align: center;
}

section.leistungen h3 {
    background: var(--olbWeiss);
    color: var(--olbGruen);
    padding: 15px 0;
    font-family: var(--museo700);
}

section.leistungen p {
    font-size: 80%;
}

/* =========================================
    CALL 2 ACTION
============================================ */


















/* =========================================
   CALL TO ACTION (ehem. HERO)
========================================= */

.spacer {
    border-bottom: 3px solid #fff;
    background: var(--bg);
    padding: 15px 0;
}

.call2action {
    --cta-maxw: 1100px;
    --cta-pad: clamp(1rem, 2.5vw, 2rem);
    --panel-bg: rgba(34, 58, 34, .5);
    --panel-radius: .5rem;
    --text-light: #fff;
    --cta-maxh: 500px;
    /* NEU: maximale Höhe */
}

/* Medienbereich: flächig füllen, Höhe capped auf 500px */
.call2action__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    /* mindestens 260px, wächst bis 55vh, aber nie höher als 500px */
    height: clamp(260px, 55svh, var(--cta-maxh));
}

.call2action__media picture,
.call2action__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.call2action__media img {
    object-fit: cover;
}

.call2action__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .15) 0%,
            rgba(0, 0, 0, .25) 40%,
            rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

/* figcaption füllt den Bereich */
.call2action__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

/* Container begrenzt die Breite */
.call2action__container {
    max-width: var(--cta-maxw);
    margin: 0 auto;
    padding: var(--cta-pad);
    width: 100%;
    text-align: left;
}

/* Textpanel */
.call2action__panel {
    display: inline-block;
    background: var(--panel-bg);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--panel-radius);
    max-width: 90%;
}

.call2action__title {
    margin: 0 0 .25em 0;
    font-family: var(--museo700, system-ui, sans-serif);
    font-size: clamp(1.1rem, 2vw + .2rem, 1.6rem);
    line-height: 1.2;
    letter-spacing: .2rem;
}

.call2action__title span {
    display: block;
}

.call2action__subtitle {
    margin: 0;
    font-family: var(--museo700, system-ui, sans-serif);
    font-size: clamp(1.1rem, 2vw + .2rem, 1.6rem);
    line-height: 1.3;
}

/* Buttons / Aktionen */
.call2action__actions {
    margin-top: .9rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
    border-radius: .5rem;
    border: 2px solid transparent;
}

.btn--primary {
    background: #c7e85a;
    color: #224c2e;
    border-color: #8fb33a;
    box-shadow: 0 2px 0 #8fb33a;
}

.btn--primary:hover {
    filter: brightness(0.95);
    transform: translateY(1px);
    box-shadow: 0 1px 0 #8fb33a;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .9);
}

/* Desktop: Höhe bleibt capped */
@media (min-width: 992px) {
    .call2action__media {
        height: min(46vh, var(--cta-maxh));
    }
}

/* Tablet */
@media (min-width:601px) and (max-width:991px) {
    .call2action__media {
        height: min(55svh, var(--cta-maxh));
    }
}

/* Mobile: Panel nach unten, volle Breite */
@media (max-width:600px) {
    .call2action__media {
        height: min(25svh, var(--cta-maxh));
    }

    .call2action__caption {
        align-items: flex-end;
    }

    .call2action__container {
        padding-inline: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .call2action__panel {
        max-width: 100%;
    }

    .call2action__title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    .call2action__subtitle {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.3;
    }

    .call2action__panel,
    .call2action__title,
    .call2action__subtitle {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}


















/* BARRIERFREIHEIT.PHP ###################################
########################################################## */

.note.legal-note {
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
}













/* =========================================
   FOOTER (angepasst)
========================================= */
footer {
    font-family: var(--museo300);
    padding: 1rem 0;
}

/* Layout: p links, nav rechts */
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

footer .legal-entity {
    margin: 0;
    text-align: left;
}

footer nav[aria-label="Fußnavigation"] {
    margin-left: auto;
}

/* Linkliste */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    /* rechtsbündig (Desktop) */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .5rem 1rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.4;
}

/* Trenner nur Desktop */
.footer-links li + li {
    position: relative;
    padding-left: 1rem;
}

.footer-links li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1em;
    border-left: 1px solid currentColor;
    opacity: .5;
}

/* Tablet: ohne Trenner, Blöcke untereinander */
@media (max-width: 991px) {
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .footer-links {
        justify-content: flex-start;
        /* linksbündig */
    }

    .footer-links li + li {
        padding-left: 0;
    }

    .footer-links li + li::before {
        content: none;
    }
}

@media (min-width: 705px) and (max-width:1115px) {

    .leadcopy p {
        margin: 0 6rem 1rem 0;
    }

    .leadcopy-rt p {
        margin: 0 0 1rem 0;
    }

}

/* Handy: p + Nav zentriert */
@media (max-width: 600px) {


    .leadcopy p {
        margin: 0 0 1rem 0;
    }


    footer .container {
        flex-direction: column;
        align-items: center;
        /* zentriert */
        text-align: center;
        /* zentriert Text in p und Links */
        gap: .5rem;
    }

    footer .legal-entity {
        margin: 0;
        text-align: center;
        /* explizit für Sicherheit */
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        /* zentriert die Liste */
        justify-content: center;
        gap: .35rem;
    }

    .footer-links li {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    /* Trenner auf Handy aus */
    .footer-links li + li {
        padding-left: 0;
    }

    .footer-links li + li::before {
        content: none;
    }

    footer nav[aria-label="Fußnavigation"] {
        width: 100%;
    }
}





/* Sticky Contact Sidebar (Phone + Tablet) */
:root {
    --sc-size: 56px;
}

@media (pointer: coarse) {
    :root {
        --sc-size: 64px;
    }
}

/* größere Touch-Ziele auf Touch-Geräten */

.sticky-contact {
    position: fixed;
    inset-block-start: 50%;
    inset-inline-end: max(12px, env(safe-area-inset-right));
    transform: translateY(-50%);
    z-index: 1200;
    display: none;
    /* Standard: aus */
}

.sticky-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
    /* Abstand zwischen Buttons */
}

.sc-btn {
    width: var(--sc-size);
    height: var(--sc-size);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: transform .15s ease;
    background: var(--olbGelb);
    color: #0b3a2c;
}

.sc-btn:hover {
    transform: translateY(-1px);
}

.sc-btn:active {
    transform: translateY(0);
}

.sc-btn:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

/* Optionale Akzentfarben pro Button */
.sc-phone {
    background: var(--olbGelb);
}

.sc-mail {
    background: #ffe484;
}

/* Auf Handy & Tablet anzeigen, Header-Kontakt dort ausblenden */
@media (max-width: 991px) {
    .sticky-contact {
        display: block;
    }

    .site-header .site-contact {
        display: none;
    }

    /* Duplikat vermeiden */
    body {
        padding-right: calc(env(safe-area-inset-right) + 0px);
    }
}

/* Sehr kleine Höhen (Landscape/kleine Viewports): unten andocken */
@media (max-width: 991px) and (max-height: 520px) {
    .sticky-contact {
        inset-block-start: auto;
        inset-block-end: max(12px, env(safe-area-inset-bottom));
        transform: none;
    }
}

/* Bewegungen für Nutzer mit Motion-Reduktion abschalten */
@media (prefers-reduced-motion: reduce) {
    .sc-btn {
        transition: none;
    }

    .sc-btn:hover,
    .sc-btn:active {
        transform: none;
    }
}

/* Druck: ausblenden */
@media print {
    .sticky-contact {
        display: none !important;
    }
}
