/* fonts/Univers-Condensed-Light.otf */
@font-face {
  font-family: 'Univers Condensed Light';
  src: url('fonts/Univers-Condensed-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif, 'Univers Condensed Light';
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2b5b22;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #98b48f;
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Main content wrapper (hidden until auth) */
.main-content {
    display: block;
}


.language-switcher.hide-on-scroll {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lang-btn {
    padding: 8px 12px;
    background: #4b6942;
    color: white;
    border: 2px solid #4b6942;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: #3a5233;
    border-color: #3a5233;
}

/* Hero Section */
.hero {
    background: #5c8151;
    padding: 27px 0;
}

.hero-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.logo-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: left;
}

.logo-title-row .logo {
  height: clamp(120px, 11vw, 140px); 
}

.logo-title-row h1 { 
    font-size: clamp(32px, 5vw, 45px); 
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 700;
    color: #f0f0f0;
/* color: #f0f0f0
    color: #f8f8f2
    color: #e0e8d9
    color: #d9e8e0 */
    margin: 0;
}



.hero-description-section {
  position: relative;
  background: url('../images/hero_triptych_crisp.jpg') center/cover no-repeat;
  color: #0d1a0f; /* dunkles Grün für Nuancen */
}
.hero-description-section::before{
  /* zusätzliche Sicherheitslage für Kontrast, falls nötig */
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.35), rgba(0,0,0,.25));
}
.hero-description-section .hero-description{
  position: relative; /* über dem Overlay */
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  font-weight: 600;
  color: #fff; /* AA/AAA Kontrast */    
  text-align: center;
}

.hero-description {
    font-size: 18px;
    color: #555;
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    font-family: sans-serif; 
}

/* Content Sections */
.section {
    padding: 40px 0;
    background-color: #f7f9f5; /* NEU: leicht grünliches Weiß */
    color: #333;               /* Text bleibt dunkel */
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background: #e8f4e5;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    font-weight: 600;
    color: #4b6942;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.tab-button:hover {
    background: #cde1c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button.active {
    background: #cde1c7;
    color: #2d4426;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button:focus-visible {
    outline: 3px solid #98b48f;
    outline-offset: 2px;
}

/* Tab Content Container */
.tab-content-container {
    background: #cde1c7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    min-height: 300px;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}


.tab-content .accordion-header {
    background: #cde1c7;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 500;
    color: #4b6942;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.tab-content .accordion-header:hover {
    background: #b8d4b0;
}

.tab-content .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #cde1c7
}

.tab-content .accordion-content.active {
    overflow: visible;
}

.tab-content .accordion-inner {
    padding: 20px 24px;
}

/* Wichtig-Hinweise in Tabs */
.tab-content .important-note {
    font-size: 14px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    display: block;
}

.tab-content .contact-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accordion Sections */
.accordion-section {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border: 1px solid #dee2e6;
}

.accordion-header {
    background: #cde1c7;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 600;
    color: #4b6942;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background: #b8d4b0;
}

.accordion-header:focus-visible {
    outline: 3px solid #98b48f;
    outline-offset: -3px;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #4b6942;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #cde1c7; /* Changed background color to match header */
}

/* Geöffnete Accordions: nichts abschneiden */
.accordion-content.active { overflow: visible; }

/* Wenn innerhalb eines Accordions ein weiteres aktives Accordion steckt,
   heb die max-height auf -> Elterncontainer wächst automatisch mit. */
.accordion-content:has(.accordion-content.active) {
  max-height: none !important;
}


.accordion-inner {
    padding: 30px;
    background: #e8f4e5; 
}

.content-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-weight: 400;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.important-note {
    font-size: 14px;  
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    /* Display as block to properly contain the contact-info div */
    display: block; 
}

.important-note .contact-info { /* Targeting contact-info specifically within important-note */
    background-color: transparent; /* Remove the separate light background */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */
    margin-top: 10px; /* Adjust margin to fit well below the warning text */
}

.important-note .contact-info p {
    margin-bottom: 0; /* Remove extra margin if only one paragraph */
}


.contact-info a {
    color: #2b5b22;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #5c8151;
    color: #333;
    padding: 60px 0 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-impressum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-legal {
    margin-top: 20px;
    text-align: center;
}

.footer-legal a {
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-legal a:hover {
    opacity: 1;
}

.contact-card,
.impressum-card {
    background-color: #ffffff;
    border-radius: 12px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    padding: 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card:hover,
.impressum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-card h3,
.impressum-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #4b6942;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f2;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content p {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
    line-height: 1.3;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Print */
@media print {
    .language-switcher,
    .password-overlay {
        display: none !important;
    }
    .accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }
    a {
        text-decoration: none;
        color: #000;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .accordion-header {
        font-size: 20px;
        padding: 18px 22px;
    }

    .accordion-inner {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-flex h1 {
        font-size: 24px;
    }

    .accordion-header {
        font-size: 16px;
        padding: 14px 16px;
    }

    .accordion-inner {
        padding: 16px;
    }

    .password-container {
        padding: 28px 22px;
    }
}


/* ----------------------------------------------------------- */
/* Angepasste Header- & Hero-Sektion Styles */
/* ----------------------------------------------------------- */

/* Desktop-Ansicht (Breite > 768px) */
@media (min-width: 769px) {
    /* Hero positionieren */
    .hero {
        position: relative;
    }
    /* Container zentriert, damit H1 in der Mitte steht */
    .hero .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    /* Logo absolut links im Hero */
    .hero .logo {
        position: absolute;
        left: 20px;      /* Abstand vom Viewport-Rand */
        top: 50%;        /* vertikal mittig */
        transform: translateY(-50%);
    }
    /* Language-Switcher absolut rechts im Hero */
    .language-switcher {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {

    /* --- GLOBALE LAYOUTS & FOOTER --- */
    
    /* Footer Responsive: Grid zu Stapel */
    .contact-impressum-grid {
        grid-template-columns: 1fr;
    }

    /* Tab Navigation (Konsolidiert) */
    .tab-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    /* Accordion (Konsolidiert) */
    .accordion-header {
        font-size: 18px;
        padding: 16px 18px;
    }
    .accordion-inner {
        padding: 20px;
    }


    /* --- KORRIGIERTER HERO BEREICH (Logo, Titel, Language Switcher) --- */

    /* 1. Hero Container - kompakter & konsolidiert */
    .hero {
        background: #5c8151 !important; 
        /* Die minimalsten Padding-Werte zusammenfassen (vom fehlerhaften Teil) */
        padding: 8px 0 0 !important; 
        margin-bottom: 0 !important;
        position: relative !important;
    }

    /* 2. Hero Flex Container */
    .hero .container, 
    .hero-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
        /* Die minimalsten Padding-Werte zusammenfassen */
        padding: 8px 20px 8px !important; 
        margin-bottom: 0px !important;
    }

    /* 3. Language Switcher - oben rechts */
    .language-switcher {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin-top: 0 !important;
        z-index: 10 !important;
    }

    /* 4. Language Buttons - optional kleiner machen */
    .lang-btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    /* 5. Logo - etwas kleiner für mehr Platz */
    .hero .logo,
    .logo-title-row .logo { 
        display: block !important;
        height: 80px !important;
        width: auto;
        margin-bottom: 0px;
        position: static;
    }

    /* 6. Titel - etwas kleiner (Konsolidierte Deklaration) */
    .hero h1,
    .logo-title-row h1 {
        margin: 0 !important;
        font-size: clamp(22px, 4.5vw, 26px) !important;
        line-height: 1.2;
    }

    /* Bild-Sektion: Absolut keine Abstände */
    .hero-description-section {
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-description-section::before {
        /* Das Overlay für Kontrast */
        content: "";
        position: absolute; 
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.35), rgba(0,0,0,.25)) !important;
        z-index: 1;
    }
    
    .hero-description-section::after {
        /* Dieser Pseudo-Element erzeugt die korrekte Höhe basierend auf dem Bildverhältnis */
        content: "";
        display: block;
        padding-top: 27.25%; 
        background: url('../images/hero_triptych_crisp.jpg') center center no-repeat !important;
        background-size: cover !important;
    }

    .hero-description-section .hero-description {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        padding: 25px 20px !important;
        width: 90% !important;
        margin: 0 !important;
        font-size: clamp(14px, 2vw, 12px) !important; 
        color: #fff !important; 
        font-weight: 600 !important; 
        text-align: center !important;
        z-index: 2 !important;
    }
}


/* Sub-Accordion Header: kleiner & weniger fett */
.accordion-section.sub-accordion > .accordion-header {
  font-size: 18px;    /* gewünschte Größe */
  font-weight: 400;   /* weniger fett */
  padding: 16px 24px;
  color: #555;
}


/* Styling für die Footer-Karten als Akkordeons */
.footer-card-accordion {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    height: auto; /* Wichtig, damit sie nicht statisch sind */
    display: block; /* Wichtig, damit sie nicht flex-box-Elemente sind */
}

.footer-card-accordion .accordion-header {
    background: transparent;
    border-radius: 12px;
    color: #4b6942;
    padding: 22px;
}

.footer-card-accordion .accordion-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
}

.footer-card-accordion .accordion-header:hover {
    background: #f0f0f0;
}

.footer-card-accordion .accordion-content {
    background: transparent;
}

.footer-card-accordion .accordion-inner {
    background-color: #ffffff;
    padding: 0 22px 22px;
}

.footer-card-accordion .accordion-inner p {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.3;
    font-size: 16px;
    display: block; /* Wichtig: stellt sicher, dass P-Tags als Blöcke dargestellt werden */
}

.footer-card-accordion .accordion-inner p:last-child {
    margin-bottom: 0;
}

.email-link {
    color: #555;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}

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