
/* ===== VARIABLEN UND GRUNDEINSTELLUNGEN ===== */
:root {
    /* Farbpalette */
    --primary-color: #94c353; /* Jobcenter Grün */
    --primary-light: #92d050; /* Jobcenter Hellgrün */
    /* --primary-dark: #1a5336; Dunkelgruen alt */
    /* --primary-dark: #0f4328; Dunkelgruen */
    --primary-dark: #055509; /* Dunkelgruen */
    --secondary-color: #f1f1f1; /* Hellgrau */
    --text-color: #000000; /* Dunkelgrau fuer Text */
    --text-light: #bfbfbe; /* Jobcenter Grau */
    --white: #ffffff;
    --light-gray: #eeeeee;
    --medium-gray: #bfbfbe;
    --dark-gray: #555555;
    
    /* Abstaende */
    --spacing-xxs: 0.15rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Schriftgroessen */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);      /* Fluid von 20px bis 24px */
    --font-size-xxl: clamp(1.5rem, 5vw, 2rem);       /* Fluid von 24px bis 32px */
    --font-size-hero: clamp(1.75rem, 8vw, 2.5rem);   /* Fluid von 28px bis 40px */
    
    /* Schatten */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Uebergaenge */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Border-Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Container-Breiten */
    --container-max-width: 1280px;
}

/* ===== RESET UND GRUNDLEGENDE STILE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    background-color: var(--white);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6; 
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-color);
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.3;
}
h1 {
    font-size: var(--font-size-hero);
    /* Automatische Silbentrennung für lange Wörter */
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
h2:not(:first-child) {
    margin-top: var(--spacing-md);    
    font-size: var(--font-size-hero);
}
h3 {
    font-size: var(--font-size-xl);
}
h4 {
    font-size: var(--font-size-lg);
}
p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    /* Vendor-Präfixe für maximale Browser-Kompatibilität */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.section-title {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-size: var(--font-size-hero);
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    display: inline-block;
    font-size: var(--font-size-md);
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}
.btn-primary {
    background-color: var(--primary-dark);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.btn-secondary:hover {
    background-color: var(--light-gray);
}

/* ===== HEADER UND NAVIGATION ===== */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}
.site-header .container {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
}
.main-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    gap: var(--spacing-md); /* Standard-Abstand für breite Bildschirme */
}
.nav-item a {
    position: relative;
    padding: var(--spacing-xs) 0;
    color: var(--text-color);
    font-weight: 500;
}
.nav-item a:hover {
    color: var(--primary-color);
}
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}
.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}
.nav-item.active a {
    color: var(--primary-color);
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 2px;
    display: block;
    background-color: var(--text-color);
    transition: background-color var(--transition-fast);
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: transform var(--transition-normal);
}
.hamburger-icon::before {
    top: -8px;
}
.hamburger-icon::after {
    bottom: -8px;
}

/* ===== HERO-BEREICH ===== */
.hero {
    padding: var(--spacing-xl) 0;
    background-image: url('../img/DSC_0589-final_pan.jpg');
    background-size: cover;
    background-position-x: center;
    background-position-y: 40%;
    color: var(--white);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    text-align: center;
    /* Glassmorphism-Effekt */
    background: rgba(220, 220, 220, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.hero h1 {
    margin-bottom: var(--spacing-md);
    color: var(--white);
    /* Fluide Schriftgröße: min 1.75rem (28px), bevorzugt 8vw, max 2.5rem (40px) */
    font-size: var(--font-size-hero);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero p {
    margin-bottom: var(--spacing-lg);
    text-align: center;    
    color: var(--white);
    font-size: var(--font-size-lg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== AKTUELLES-BEREICH ===== */
.news-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
    position: relative;
    min-height: 600px; /* Feste Höhe verhindert Layout-Verschiebungen */
}
/* Spezifische Anpassung für den Titel im News-Bereich */
.news-section .section-title::after {
    background-color: var(--primary-light);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
}
.news-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    min-height: 350px; /* Einheitliche Mindesthöhe für alle Cards */
}

.news-card-image {
    width: 100%;
    height: 180px; /* Einheitliche Bildhöhe für alle Cards */
    object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    background-color: var(--light-gray); /* Fallback-Hintergrund */
}

/* Versteckte Checkbox für Toggle-Funktionalität */
.card-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Standardmäßig nur Teaser-Text anzeigen */
.news-card .news-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s ease;
    margin-top: 0;
}

/* Aktivierter Zustand: Volltext einblenden */
.card-toggle:checked ~ .news-text {
    max-height: 1500px; /* Groß genug für langen Text */
    opacity: 1;
    margin-top: var(--spacing-sm);
}

/* Absolute Positionierung für geöffnete Cards */
.news-card:has(.card-toggle:checked) {
    position: absolute !important;
    z-index: 20;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: calc(100vw - 2 * var(--container-padding));
    max-width: var(--container-max-width);
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive Anpassungen für News-Cards */
@media (max-width: 991px) {
    .news-card:has(.card-toggle:checked) {
        width: calc(100vw - 2 * var(--spacing-md));
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
    }
}

@media (max-width: 576px) {
    .news-card:has(.card-toggle:checked) {
        width: 85vw;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        border-radius: var(--border-radius-md); /* Abgerundete Ecken wieder aktivieren */
    }

    .news-card {
        min-height: 320px; /* Kleinere Mindesthöhe für Mobile */
    }

    /* Kleinere Bildhöhe auf Mobile für bessere Proportionen */
    .news-card-image {
        height: 140px;
    }

    .news-grid {
        grid-template-columns: 1fr; /* Einzelne Spalte auf Mobile */
        gap: var(--spacing-sm);
    }
}

/* Alternative Methode für Card-Expansion - nur für moderne Browser */
@supports selector(:has()) {
    .news-card:has(.card-toggle:checked) {
        position: absolute;
        z-index: 20;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        background-color: var(--white);
    }

    .news-card:not(:has(.card-toggle:checked)) {
        position: relative;
        z-index: 1;
    }
}
.news-date {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}
.news-link {
    margin-top: auto;
    display: inline-block;
    font-weight: 500;
}

/* Label-Texte ein-/ausblenden basierend auf Card-Zustand */
.expand-text {
    display: inline;
}
.collapse-text {
    display: none;
}

.news-card:has(.card-toggle:checked) .expand-text {
    display: none;
}

.news-card:has(.card-toggle:checked) .collapse-text {
    display: inline;
}
.read-more-link {
    margin-top: var(--spacing-xs);
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* ===== CONTENT-CARDS ===== */
.info-cards {
    padding: var(--spacing-xl) 0;
}
.card-grid {
    display: grid;
    /* Ein 12-spaltiges Grid-System für maximale Flexibilität */
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}
.card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal), box-shadow var(--transition-normal);
    /* Standardmäßig nimmt eine Karte die volle Breite ein (12 Spalten) */
    grid-column: span 12;
}

/* Hilfsklassen, um die Breite der Karten im 12-spaltigen Grid zu steuern */
.card.col-3 { grid-column: span 3; } /* 25% */
.card.col-4 { grid-column: span 4; } /* 33.3% */
.card.col-6 { grid-column: span 6; } /* 50% */
.card.col-8 { grid-column: span 8; } /* 66.6% */
.card.col-9 { grid-column: span 9; } /* 75% */
.card.col-12 { grid-column: span 12; } /* 100% */

.card:hover {
    box-shadow: var(--shadow-lg);
    filter: contrast(92%) brightness(100%);
    transform: translateY(-5px);
}
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Neues, besseres Styling für svg-Tags */
.card-icon svg {
    fill: none; /* Keine Füllung für Linien-Icons */
    stroke: var(--white); /* Linienfarbe auf Weiß setzen */
}
/* Farbe für currentColor-basierte Sprite-Pfade */
.card-icon, .card-icon .icon {
    color: var(--white);
}
.card h3, .news-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    /* Automatische Silbentrennung für bessere Lesbarkeit */
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.card p {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    color: var(--dark-gray);
}
.legal-content address p,
.info-section address p {
    margin-bottom: var(--spacing-xxs);
    color: var(--text-color);
    font-style: normal;
}
.card .card-address {
    /* Visuelle Trennung zwischen Adressblock und den Action-Links in Karten bei BCA*/
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}
.legal-content address p a,
.info-section address p a{
    color: var(--primary-color);
    font-style: normal;
}
.legal-content address p a:hover,
.info-section address p a:hover {
    color: var(--primary-dark);
}
.card-link {
    position: relative;
    padding-right: 20px;
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 500;
}
.card-link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform var(--transition-fast);
}
.card-link:hover::after {
    transform: translateX(5px);
}
.card .action-link {
    /* Etwas Abstand oberhalb der Aktionslinks, damit die Trennung wirkt */
    margin-top: var(--spacing-sm);
}


/* ===== FOOTER ===== & ===== ADDRESSES ===== */
.site-footer {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background-image: linear-gradient(to bottom, #0f4328, #042614);
    color: var(--white);
}
.footer-grid {
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Zeige die Rechtliches-Spalte als eigene, volle Grid-Zeile und ordne deren Links horizontal an
   auf größeren Bildschirmen. Auf Mobilgeräten (<=576px) fällt sie wieder in das normale
   einspaltige Footer-Layout zurück. */
.footer-grid .legal-col {
    grid-column: 1 / -1; /* volle Breite in einer neuen Zeile */
}
.footer-grid .legal-col .footer-links {
    display: flex;
    gap: var(--spacing-lg); /* größerer horizontaler Abstand zwischen Links (Impressum, Datenschutz usw.) */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* falls zu viele Links, sie umbrechen */
}
.footer-grid .legal-col .footer-links li {
    margin-bottom: 0; /* wird durch Flex-Abstand gesteuert */
}
.footer-col h4 {
    position: relative;
    margin-bottom: var(--spacing-md);    
    padding-bottom: var(--spacing-xs);
    color: var(--white);
}
.footer-col h4::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}
.footer-links li {
    margin-bottom: var(--spacing-xs);
}
.footer-links a {
    color: var(--white);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--medium-gray);
}
footer address {
    margin-bottom: var(--spacing-sm);
    font-style: normal;
}
.footer-col address .icon {
    stroke: var(--white); /* Stellt sicher, dass das Icon im Footer immer weiß ist */
}
.icon {
    color: var(--primary-color);
}
.footer-col address .icon,
.legal-content .icon,
.card address .icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor; /* Farbe vom Elternelement erben */
    vertical-align: middle; /* Vertikal ausrichten */
    margin-right: var(--spacing-xs); /* Abstand zum Text */
    stroke-width: 2px;
}

/* Spezifische Farben für Icons in bestimmten Inhaltsbereichen */
.legal-content address .icon,
.card address .icon {
    stroke: var(--primary-color);
    transition: stroke var(--transition-fast);
}
.legal-content address p:hover .icon,
.card address p:hover .icon {
    stroke: var(--primary-dark);
}
.footer-col p {
    /* Flexbox für p-Tags mit Icons im Footer und in Adress-Blöcken */
    display: flex;
    align-items: flex-start;
}
/* Speziell: weniger Abstand unter den beiden Kontakt‑Paaren im Footer (erste address) */
.footer-col address p.footer-contact-item {
    margin-bottom: var(--spacing-xxs); /* sehr kleiner Abstand */
    padding-bottom: 0; /* keine zusätzliche Innenabstände */
}
/* Entferne expliziten unteren Margin von Links nur in diesen Kontakt-Items (überschreibt die allgemeinere Regel, die sonst zu viel Abstand erzeugt) */
/* (removed specific anchor override for footer-contact-item to avoid !important)
   Spacing for these items is controlled via the parent paragraph `.footer-contact-item`. */
.legal-content address p a,
.info-section address p a {
    /* Erlaubt den Umbruch von langen Wörtern wie E-Mail-Adressen */
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    text-align: left;
    hyphens: none;
}
.footer-col address p a {
    color: var(--white);
    transition: color var(--transition-fast);
}
.footer-col address p a:hover {
    color: var(--medium-gray);
}
.opening-hours {
    /* Robustes Grid: dt bekommt so viel Platz wie nötig, dd füllt den Rest.
       minmax(110px, max-content) stellt sicher, dass die Tages-Kolumne nicht zu schmal wird
       und verhindert frühe Umbrüche der Zeiten. */
    display: grid;
    grid-template-columns: minmax(110px, max-content) 1fr;
    gap: var(--spacing-xs) var(--spacing-sm);
    color: var(--white);
    align-items: start;
}
.opening-hours dt {
    grid-column: 1; /* Tage immer in der ersten Spalte */
    font-weight: 500;
}
.opening-hours dd {
    grid-column: 2; /* Zeiten immer in der zweiten Spalte */
    margin-left: 0; /* Standard-Einzug von dd entfernen */
    /* Verhindert unschöne Umbrüche; zeigt bei Platzmangel Ellipsen an */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Sorgt dafür, dass die zweite Zeit am Donnerstag unter der ersten steht */
.opening-hours dd:not(:first-of-type) {
    grid-column-start: 2;
}
.opening-hours-note {
    margin-top: var(--spacing-sm);
    color: var(--white);
    font-style: italic;
}
.copyright {
    padding-top: var(--spacing-sm);
    text-align: center;
    color: var(--medium-gray);
    font-size: var(--font-size-sm);
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}
.copyright p {
    text-align: center;
}

/* Container für die Links am Boden der Cards */
.news-card .card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-self: flex-start;
}

/* Label styling anpassen */
.news-card .card-link {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-card .card-link:hover {
    color: var(--primary-color);
}

/* ===== SPEZIELLES STYLING FÜR ONLINEKONTAKT-LINK ===== */
.contact-online a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: calc(var(--spacing-xs) * 1.5) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-online a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-online a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.contact-online a:hover::before {
    left: 100%;
}

.contact-online a:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.contact-online a .icon-online {
    width: 14px;
    height: 14px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.contact-online a:hover .icon-online {
    opacity: 1;
}

/* ===== FOOTER BACKGROUND SVG ===== */
.footer-background-svg {
    position: absolute;
    bottom: var(--spacing-md); /* Über dem copyright-Bereich */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    height: auto;
    opacity: 0.15; /* Sichtbarer Hintergrund-Effekt */
    z-index: 1;
    pointer-events: none; /* Keine Interaktion mit dem SVG */
}
.footer-skyline-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== INFORMATIONSSEITE ===== */
section ul li {
    text-align: justify;
    /* Vendor-Präfixe für maximale Browser-Kompatibilität */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.info-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}
.info-category {
    margin-bottom: var(--spacing-xl);
}
/* Einheitlicher Stil für alle linken H2-Überschriften (außer .section-title) */
.info-category-title,
.legal-content h2 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    color: var(--primary-dark);
    font-size: var(--font-size-xl); /* Einheitliche Schriftgröße */
    border-bottom: 2px solid var(--primary-light);
}

/* ===== RECHTLICHE SEITEN (IMPRESSUM, DATENSCHUTZ) ===== */
.legal-section {
    padding: var(--spacing-xl) 0;
}
.legal-content {
    background-color: var(--white);
}
.legal-content ul {
    padding-left: var(--spacing-md);
    list-style: disc;
}

/* ===== ACTION LINKS / DOKUMENT-LINKS ===== */
.action-link {
    position: relative; /* Notwendig für das ::after-Element */
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
}
.action-link::before {
    content: '';
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%- 3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all var(--transition-normal);
}
.action-link:hover,
.action-link:focus {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}
.action-link:hover::before {
    stroke: var(--primary-dark);
    transform: translateY(2px);
}
/* Pfeil-Icon am rechten Rand hinzufügen */
.action-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
}
.action-link:hover::after {
    color: var(--primary-dark);
    transform: translateY(-50%) translateX(4px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 992px) and (max-width: 1280px) {
    /* Reduziert den Abstand und die Schriftgröße im Hauptmenü für mittlere Desktops */
    .nav-list {
        gap: var(--spacing-sm);
    }
    .nav-item a {
        font-size: var(--font-size-sm);
    }
}

/* Auf größeren Bildschirmen die ersten vier Footer-Spalten gleichmäßig über die volle Breite verteilen */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
.mobile-menu-toggle {
        display: block;
    }
    .nav-list {
        position: fixed;
        top: 70px; /* Höhe des Headers anpassen */
        left: 0;
        width: 100%;
        padding: var(--spacing-md) 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        /* Gap für mobile Ansicht zurücksetzen */
        gap: var(--spacing-md);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-100%);
        transition: all var(--transition-normal);
        z-index: 99;
    }
    .nav-list.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .logo img {
        height: 30px;
        margin-top: 8px;
    }
    .card.col-md-6 { grid-column: span 6; }
    .card.col-md-12 { grid-column: span 12; }

    /* Auf Tablets nehmen die Karten oft mehr Platz ein */
    .card.col-3, .card.col-4 {
        grid-column: span 6; /* 2 Karten pro Reihe */
    }
    .card.col-6, .card.col-8, .card.col-9 {
        grid-column: span 12; /* Volle Breite */
    }
    /* Schriftgröße für Action-Links auf kleineren Bildschirmen reduzieren */
    .action-link {
        font-size: var(--font-size-sm);
        /* Silbentrennung für bessere Lesbarkeit auf schmalen Bildschirmen */
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    .footer-background-svg {
        bottom: var(--spacing-lg); /* Über dem copyright-Bereich */
    }

}

/* Mittlere Bildschirme: Footer zweispaltig (zwischen Mobile und Desktop) */
@media (min-width: 577px) and (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 3rem;
    }
    .card-grid {
        gap: var(--spacing-sm);
    }
    /* Auf Mobilgeräten nehmen alle Karten die volle Breite ein */
    .card-grid > .card {
        grid-column: span 12;
    }
    /* Auf Mobilgeräten den Text der action-links mit dem umgebenden Fließtext ausrichten */
    .action-link {
        /* Kompensiert die Breite des ::before-Icons (24px) und dessen margin-right (var(--spacing-sm) = 16px) */
        margin-left: calc(-1 * (24px + var(--spacing-sm)));
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    /* Auf Mobilgeräten "Rechtliches" (Impressum, Datenschutz usw.) wie die anderen Spalten (einspaltig/vertikal) */
    .footer-grid .legal-col {
        grid-column: auto; /* zurück in den normalen Fluss */
    }
    .footer-grid .legal-col .footer-links {
        display: block;
        gap: 0;
    }
    .footer-grid .legal-col .footer-links li {
        margin-bottom: var(--spacing-xs);
    }
    .opening-hours {
        grid-template-columns: 1fr; /* dt/dd untereinander */
    }
    .opening-hours dd {
        white-space: normal;
        text-overflow: initial;
        overflow: visible;
    }
    .copyright {
        font-size: var(--font-size-xs);
    }
}

/* ===== ÜBER UNS SEITE ===== */
.about-us-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Standard: Einspaltig für Mobile */
    gap: var(--spacing-lg);
}

/* Zweispaltiges Layout für breitere Bildschirme */
@media (min-width: 992px) {
    .content-wrapper {
        /* Hauptinhalt nimmt 2/3, Seitenleiste 1/3 des Platzes ein */
        grid-template-columns: 2fr 1fr;
    }
}

.main-content .legal-section {
    padding: 0; /* Entfernt unnötigen Innenabstand, da dieser vom Container kommt */
}

/* ===== STYLING DER PROFIL-KARTE ===== */
.profile-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Stellt sicher, dass das Bild die abgerundeten Ecken nicht überlappt */
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: sticky; /* Karte bleibt beim Scrollen sichtbar */
    top: 100px; /* Abstand zum oberen Rand (Header-Höhe + Puffer) */
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-card__image-container {
    width: 100%;
    height: 320px; /* Feste Höhe für das Bild */
    overflow: hidden;
}

.profile-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Container, ohne sich zu verzerren */
    object-position: center 20%; /* Fokus auf den oberen Teil des Bildes */
}

.profile-card__body {
    padding: var(--spacing-md);
}

.profile-card__content {
    text-align: left;
}

.profile-card__position {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.profile-card__name {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-xl);
    color: var(--primary-dark);
}

.profile-card__description {
    font-size: var(--font-size-md);
    color: var(--dark-gray);
    margin-bottom: 0;
    text-align: left; /* Textausrichtung für die Beschreibung zurücksetzen */
    hyphens: none; /* Silbentrennung hier deaktivieren */
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .profile-card {
        position: static; /* Auf kleineren Bildschirmen nicht mehr "sticky" */
    }

    .about-us-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .profile-card__image-container {
        height: 250px; /* Kleinere Bildhöhe auf Mobilgeräten */
    }
}
