:root {
    --primary-color: #008f4f;
    --primary-dark: #006f3d;
    --primary-light: #e8f5ee;
    --text-color: #2a2a2a;
    --text-light: #5a5a5a;
    --text-muted: #767676;
    --bg-color: #fafaf8;
    --bg-warm: #f5f3ef;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Bodoni Moda', 'Georgia', serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.75;
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* Hero title */
.hero-text-block h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

/* "Herzlich willkommen" – smaller eyebrow above the main title */
.hero-welcome-label {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

strong {
    font-weight: 600;
    color: var(--text-color);
}

/* ─── Utilities ─── */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.bg-primary { background-color: var(--primary-color); }

/* Umwelt section – darker green background */
.umwelt-section {
    background: #006f3d;
}

.umwelt-section h2 {
    color: #ffffff;
}

.umwelt-section p {
    color: rgba(255, 255, 255, 0.88);
}

.umwelt-car-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    opacity: 0.68;
    filter: saturate(0.7) brightness(1.05);
}
.w-100 { width: 100%; }

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   NAVBAR - Floating Glass
   ═══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 80px;
    z-index: 1000;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: height 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                top 0.3s ease;
    overflow: hidden;
}

.navbar.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 143, 79, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar:has(.nav-item-dropdown:hover) {
    height: 240px;
}

.navbar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: visible;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 80px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    flex-shrink: 0;
}

.logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ─── Nav Menu ─── */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu > ul > li > a,
.nav-menu > ul > li > .dropdown-main-link {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
}

.nav-menu > ul > li > a::after,
.nav-menu > ul > li > .dropdown-main-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu > ul > li > a:hover::after,
.nav-menu > ul > li > a.active::after,
.nav-menu > ul > li > .dropdown-main-link:hover::after,
.nav-menu > ul > li > .dropdown-main-link.active::after {
    width: 100%;
}

/* Desktop: Dropdown-Toggle-Pfeil ausblenden, stattdessen ▾ als Pseudo-Element */
.nav-item-dropdown > .dropdown-toggle-btn {
    display: none;
}

/* Arrow RIGHT of link text via absolute positioning (no flex = same box model as other links) */
.nav-item-dropdown > .dropdown-main-link {
    padding-right: 16px;
}

.nav-item-dropdown > .dropdown-main-link::before {
    content: '▾';
    font-size: 0.75em;
    opacity: 0.55;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ─── Dropdown ─── */
.nav-item-dropdown {
    height: 80px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: static;
}

/* Unsichtbare Brücke: Maus kann vom Link zum Dropdown wandern, ohne dass Hover verloren geht */
.nav-item-dropdown::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 350px;
    z-index: 0;
    display: none;
}

.nav-item-dropdown:hover::before {
    display: block;
}

/* Dropdown: 3 Spalten, 2 Reihen */
.nav-menu ul.dropdown-menu {
    position: absolute;
    top: 78px;
    left: 32px;
    right: auto;
    width: 600px;
    max-width: calc(100% - 64px);
    padding: 16px 24px 24px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    align-items: start;
    align-content: start;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.2s, visibility 0.5s ease 0.2s;
    z-index: 1;
    text-align: left;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* Dropdown-Links: kein nowrap, damit Text umbrechen kann falls nötig */
.nav-menu ul.dropdown-menu li {
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: dropdownItemIn 0.3s ease forwards;
}

/* Staggered animation für jedes Item */
.nav-item-dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(6) { animation-delay: 0.3s; }

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

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-dark);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 143, 79, 0.15);
}

.dropdown-menu a::after { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Bidirectional fill animation: fills L→R on hover, empties L→R on unhover */
.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 143, 79, 0.25);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--text-color);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    padding: 0;
}

.btn-text:hover {
    border-bottom-color: var(--primary-color);
}

/* ═══════════════════════════════════════════════
   HERO & PARALLAX
   ═══════════════════════════════════════════════ */
.hero-section, .page-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-header {
    height: auto;
    min-height: 55vh;
    padding: 130px 24px 70px;
    align-items: center;
    justify-content: center;
}

.page-header .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.page-header .hero-content h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    /* Liquid glass gradient on the text itself */
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 1.0)   0%,
        rgba(214, 238, 225, 0.95) 35%,
        rgba(255, 255, 255, 0.98) 60%,
        rgba(196, 228, 212, 0.90) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55))
            drop-shadow(0 6px 24px rgba(0, 0, 0, 0.30));
}

.page-header .hero-content p {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.65;
    /* Softer glass tint for subtitle */
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(210, 235, 220, 0.88) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5))
            drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

/* Parallax Layer System */
.parallax-container {
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
}

/* Layered parallax slices */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.parallax-layer-1 {
    z-index: -3;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 45%);
}

.parallax-layer-2 {
    z-index: -2;
    clip-path: polygon(0 40%, 100% 35%, 100% 75%, 0 80%);
    opacity: 0.95;
}

.parallax-layer-3 {
    z-index: -1;
    clip-path: polygon(0 75%, 100% 70%, 100% 100%, 0 100%);
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.52) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding-top: 100px;
    width: 100%;
    max-width: 1000px;
}

/* Hero Startseite: Titel zentriert, Notruf-Widget rechts schwebend */
.hero-layout-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 40px;
}

.hero-text-block {
    flex: 1;
    min-width: 280px;
}

.hero-text-block h1 {
    margin-bottom: 1rem;
}

.hero-text-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
}

.hero-widget-floating {
    flex: 0 0 300px;
}

/* Horizontal Notruf-Widget */
.hero-widget-horizontal {
    flex: 1 1 auto;
    min-width: 320px;
    max-width: 520px;
    padding: 18px 24px;
}

.hero-widget-content-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-widget-intro {
    margin-bottom: 0 !important;
}

.hero-widget-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    align-items: center;
}

.hero-widget-number-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-widget-number-item strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-widget-number-item a {
    color: #b8f0d0;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-widget-number-item a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Scroll-Down-Indikator (animierter Pfeil) */
.scroll-down-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-down-indicator:hover {
    color: #fff;
    opacity: 1;
}

.scroll-down-arrow-wrapper {
    display: block;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-down-arrow {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Widget Layout */
.hero-widget-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-top: 40px;
    gap: 40px;
}


.hero-text-left {
    flex: 1;
}

.hero-text-left p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

.hero-widget-right {
    flex: 0 0 320px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 28px;
    border-radius: var(--radius-md);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}


.hero-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    justify-content: center;
}

.hero-widget-horizontal .hero-widget-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
}

/* Kontakt-Seite: Kompaktes horizontales Notruf-Bar (rechts neben Titel) */
.hero-widget-bar {
    flex: none;
    align-self: center;
    width: auto;
    max-width: 420px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.hero-widget-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-widget-bar-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.hero-widget-bar-intro {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.hero-widget-bar-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.hero-widget-bar-numbers span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.9rem;
}

.hero-widget-bar-numbers strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-widget-bar-numbers a {
    color: #b8f0d0;
    font-weight: 600;
    white-space: nowrap;
}

.hero-widget-bar-numbers a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-widget-content p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-widget-content strong {
    color: #b8f0d0;
}

.hero-widget-content small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-lead {
    font-size: 1.15rem !important;
    color: var(--text-light) !important;
    font-weight: 500;
    margin-top: -0.5rem;
    margin-bottom: 0;
}

.text-block-accent {
    border-left: 4px solid var(--primary-color);
    padding-left: 28px;
    margin-left: -4px;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-warm);
}

/* ═══════════════════════════════════════════════
   CONTENT GRID (Text + Image)
   ═══════════════════════════════════════════════ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.text-block {
    padding-top: 10px;
}

.text-block p + p {
    margin-top: 0.5rem;
}

/* ─── Stats Row ─── */
.stats-row {
    display: flex;
    gap: 40px;
    padding-top: 10px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.2;
}

.stat-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ─── Image Block ─── */
.image-block img,
.rounded-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.6s ease;
}

.image-block:hover img {
    transform: scale(1.02);
}

/* Parallax Image (within sections) */
.image-block-parallax {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 380px;
}

.image-block-parallax img {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform 8s ease-out;
}

.image-block-parallax:hover img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
    background: var(--white);
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 143, 79, 0.1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Certification image wrapper */
.cert-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    margin-bottom: 20px;
}

.cert-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* News Cards */
.news-card .date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 16px;
    font-size: 0.95rem;
}

.link-arrow::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card:hover .link-arrow::after {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.gap-40 { gap: 40px; }
.gap-60 { gap: 60px; }
.align-center { align-items: center; }

/* ═══════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 100%;
}

.team-card {
    text-align: center;
    padding: 40px 30px;
}

.team-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   ALERT BOX / IMPORTANT NOTICE
   ═══════════════════════════════════════════════ */
.alert-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 24px 28px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 30px 0;
}

.alert-box h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.alert-box p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

/* CMS-ready marker for dynamic content */
[data-cms-editable] {
    position: relative;
}

/* ═══════════════════════════════════════════════
   STATS LIST (Über Uns)
   ═══════════════════════════════════════════════ */
.stats-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stats-list li {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.stats-list li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-serif);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   CHECK LIST
   ═══════════════════════════════════════════════ */
.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════
   SERVICE ITEMS (Leistungen)
   ═══════════════════════════════════════════════ */
.service-item {
    background: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 143, 79, 0.1);
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 12px;
}

.service-item p {
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   JOB CARDS (Karriere)
   ═══════════════════════════════════════════════ */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 143, 79, 0.1);
}

.job-header {
    padding: 28px 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.job-header h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.job-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.job-content {
    padding: 28px 36px;
}

.job-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.job-content ul {
    list-style: none;
    padding: 0;
}

.job-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.job-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   LOCATION CARDS (Kontakt)
   ═══════════════════════════════════════════════ */
.location-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
}

.location-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.location-card p {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════ */
.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 143, 79, 0.08);
}

/* ═══════════════════════════════════════════════
   SCROLL TIMELINE / PATH ANIMATION
   ═══════════════════════════════════════════════ */
.scroll-timeline {
    position: relative;
    padding: 60px 0;
}

.scroll-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: height 0.1s linear;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    padding: 40px 0;
    transition: opacity 0.6s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--primary-light);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-content {
    padding: 0 20px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col a {
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: block;
    margin: 0 0 15px;
    max-width: 150px;
    opacity: 0.85;
}

.footer-copy {
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ═══════════════════════════════════════════════
   CLOSING SECTION – Linien-Slalom Hintergrund
   ═══════════════════════════════════════════════ */
.section-closing {
    position: relative;
    overflow: hidden;
}

.closing-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    color: var(--primary-color);
    opacity: 0.12;
    pointer-events: none;
}

.closing-lines-bg svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: closing-lines-drift 25s ease-in-out infinite;
}

.closing-lines-bg .line {
    stroke-linecap: round;
}

@keyframes closing-lines-drift {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    50% { transform: translate(-50%, -50%) translateX(-2%); }
}

.section-closing .container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 900px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
    padding: 24px 32px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-decline:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* ═══════════════════════════════════════════════
   REVEAL / SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out,
                transform 0.5s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
    pointer-events: none;
}

/* Dropdown Toggle Button (Pfeil) – desktop hidden, mobile visible */
.dropdown-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.dropdown-toggle-btn:hover {
    background: rgba(0, 143, 79, 0.1);
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    h1 { font-size: 2.2rem; word-break: break-word; overflow-wrap: break-word; }
    h2 { font-size: 1.9rem; }

    .section { padding: 70px 0; }
    .section-header { margin-bottom: 50px; }

    /* ── Parallax: kein Transform auf Mobile ── */
    .parallax-bg,
    .parallax-layer {
        transform: none !important;
        height: 100%;
    }

    /* ── Navbar ── */
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        top: 10px;
        width: 92%;
        height: 64px !important;
        padding: 0;
        overflow: visible;
        border-radius: 32px;
    }

    .navbar:has(.nav-item-dropdown:hover) {
        height: 64px !important;
        border-radius: 32px;
    }

    .navbar-content {
        padding: 0 16px 0 20px;
        height: 64px;
        gap: 8px;
    }

    .logo {
        height: 44px;
        flex-shrink: 0;
    }

    .logo img {
        max-height: 32px;
    }

    /* Login-Button auf Mobile ausblenden – spart Platz */
    .nav-actions .btn {
        display: none;
    }

    /* Dropdown-Toggle-Pfeil auf Mobile sichtbar */
    .dropdown-toggle-btn {
        display: flex;
    }

    /* ── Mobile Nav Menu ── */
    .nav-menu {
        display: block;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-radius: var(--radius-lg);
        padding: 20px 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        max-height: calc(100vh - 90px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-menu > ul > li > a,
    .nav-menu > ul > li > .dropdown-main-link {
        display: block;
        padding: 10px 12px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 10px;
        transition: background 0.2s;
    }

    .nav-menu > ul > li > a:hover,
    .nav-menu > ul > li > .dropdown-main-link:hover {
        background: var(--primary-light);
    }

    /* Desktop-Pfeil (::before) auf Mobile ausblenden – Toggle-Button übernimmt */
    .nav-item-dropdown > .dropdown-main-link::before {
        display: none;
    }

    /* Leistungen-Zeile: Link + Pfeil nebeneinander */
    .nav-item-dropdown {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .nav-item-dropdown > .dropdown-main-link {
        flex: 1;
    }

    /* Wrapper für Link + Toggle-Button */
    .nav-item-dropdown {
        position: relative;
    }

    .nav-item-dropdown > .dropdown-main-link {
        padding-right: 44px;
    }

    .nav-item-dropdown > .dropdown-toggle-btn {
        position: absolute;
        right: 4px;
        top: 2px;
        height: 44px;
        width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 1.1rem;
        color: var(--text-light);
    }

    .nav-item-dropdown::before {
        display: none !important;
    }

    /* ── Dropdown Submenu: Mobile animiert ── */
    .nav-menu ul.dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 !important;
        gap: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.3s ease,
                    padding 0.3s ease;
    }

    .nav-item-dropdown.active .nav-menu ul.dropdown-menu,
    .nav-item-dropdown.active > ul.dropdown-menu {
        max-height: 600px;
        opacity: 1;
        padding: 2px 0 6px 0 !important;
    }

    /* Hover-Trigger auf Mobile deaktivieren — nur .active zählt */
    .nav-item-dropdown:not(.active) > ul.dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
    }

    .nav-item-dropdown.active > ul.dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-menu ul.dropdown-menu li {
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .nav-menu ul.dropdown-menu a {
        font-size: 0.95rem;
        padding: 10px 12px;
        border-radius: 10px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-light);
        border-left: none;
        background: transparent;
        box-shadow: none;
        margin-bottom: 0;
        white-space: nowrap;
        transition: background 0.2s, color 0.2s;
        line-height: 1.5;
        font-weight: 400;
        text-align: center;
    }

    .nav-menu ul.dropdown-menu li:last-child a {
        margin-bottom: 0;
    }

    .nav-menu ul.dropdown-menu a:hover,
    .nav-menu ul.dropdown-menu a:active {
        background: var(--primary-light);
        color: var(--primary-color);
        transform: none;
    }

    /* ── Hero: Titel nicht hinter Navbar ── */
    .hero-content {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .page-header {
        padding: 110px 24px 60px;
        min-height: auto;
    }

    /* Unterseiten-Titel auf Mobile: kleiner für einzeilige Darstellung */
    .page-header .hero-content h1 {
        font-size: 1.8rem;
    }

    /* Bild unter Hero auf Unterseiten: mehr Abstand nach oben */
    .content-grid .image-block,
    .content-grid .image-block-parallax {
        margin-top: 20px;
    }

    /* ── Hero Startseite: Layout auf Mobile ── */
    .hero-layout-centered {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        justify-content: center;
    }

    /* ── Kontakt-Seite: Notruf-Widget unterhalb Titel ── */
    .hero-widget-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        margin-top: 20px;
    }

    .hero-widget-bar {
        max-width: none;
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-widget-bar-inner {
        gap: 8px;
    }

    .hero-widget-bar-title {
        font-size: 0.9rem;
    }

    .hero-widget-bar-intro {
        font-size: 0.8rem;
    }

    .hero-widget-bar-numbers {
        gap: 8px 16px;
    }

    .hero-widget-bar-numbers span {
        font-size: 0.82rem;
    }

    .hero-text-block {
        margin-right: 0;
    }

    .hero-widget-right,
    .hero-widget-floating,
    .hero-widget-horizontal {
        width: 100%;
        flex: none;
        max-width: none;
        margin-top: 0;
        padding: 14px 16px;
    }

    .hero-widget-right.hero-widget-bar {
        padding: 10px 14px;
    }

    .hero-widget-numbers {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px 24px;
        align-items: flex-start;
    }

    .hero-widget-intro {
        font-size: 0.85rem;
    }

    .scroll-down-indicator {
        bottom: 16px;
    }

    /* ── Layout Grids ── */
    .content-grid,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-3,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .image-block {
        order: -1;
    }

    .text-block-accent {
        padding-left: 20px;
        margin-left: 0;
    }

    .hero-text-left,
    .hero-text-block {
        margin-right: 0;
    }

    .stats-row {
        gap: 20px;
    }

    /* ── Timeline mobile ── */
    .scroll-timeline::before,
    .timeline-progress {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
        gap: 0;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
    }

    /* ── Cookie Banner ── */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 24px;
        width: 96%;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.6rem; }

    .hero-text-block h1 {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 100px 20px 50px;
    }

    .page-header .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-welcome-label {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }

    .container { padding: 0 16px; }
    .section { padding: 50px 0; }

    .hero-content {
        padding-top: 110px;
    }

    .hero-layout-centered {
        gap: 20px;
    }

    .hero-widget-numbers {
        flex-direction: column;
        gap: 12px;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .stats-list {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100000;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(0, 143, 79, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .parallax-bg, .parallax-layer { transform: none !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
    .fade-in-up { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE FOOTER ENHANCEMENT
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer {
        padding: 48px 0 24px;
    }
    .footer-grid {
        text-align: center;
        gap: 32px;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-col:not(:last-child) {
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .footer-logo {
        margin: 0 auto 12px;
    }
    .footer-copy {
        text-align: center;
    }
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-col a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}

/* ═══════════════════════════════════════════════
   TOUCH TARGETS
   ═══════════════════════════════════════════════ */
@media (pointer: coarse) {
    .nav-menu a,
    .dropdown-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    .cookie-actions .btn,
    .btn-cookie-accept,
    .btn-cookie-decline {
        min-height: 48px;
        padding: 14px 24px;
    }
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ═══════════════════════════════════════════════
   FLOATING CTA
   ═══════════════════════════════════════════════ */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 26px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 143, 79, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 143, 79, 0.4);
}

.floating-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .floating-cta {
        bottom: 32px;
        right: 20px;
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 28px;
        right: 16px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════
   DSGVO COOKIE CONSENT
   ═══════════════════════════════════════════════ */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 96%;
    max-width: 680px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    padding: 32px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-banner.show {
    transform: translateX(-50%) translateY(0);
}

.consent-banner h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.consent-banner > p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.consent-banner > p a {
    color: var(--primary-color);
    font-weight: 500;
}

.consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.consent-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    font-size: 0.88rem;
    padding: 12px 20px;
}

.consent-btn-accept {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.consent-btn-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.consent-btn-necessary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.consent-btn-necessary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.consent-btn-settings {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.consent-btn-settings:hover {
    color: var(--text-color);
}

.consent-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.consent-details.open {
    display: block;
}

.consent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.consent-category:last-child {
    border-bottom: none;
}

.consent-category-info h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.consent-category-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.consent-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.consent-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.consent-toggle input:checked + .consent-toggle-slider {
    background: var(--primary-color);
}

.consent-toggle input:checked + .consent-toggle-slider::before {
    transform: translateX(20px);
}

.consent-toggle input:disabled + .consent-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.consent-save-btn {
    margin-top: 16px;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.consent-save-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .consent-banner {
        padding: 24px 20px;
        width: 100%;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .consent-actions {
        flex-direction: column;
    }
    .consent-actions .btn,
    .consent-btn-accept,
    .consent-btn-necessary {
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
   ═══════════════════════════════════════════════ */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 1500;
    width: 44px;
    height: 44px;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 143, 79, 0.25);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 28px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ═══════════════════════════════════════════════
   CMS DYNAMIC CONTENT STYLES
   ═══════════════════════════════════════════════ */
.news-loading,
.jobs-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.article-page .article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-page .article-body {
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-page .article-body p {
    margin-bottom: 1.2em;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.article-back:hover {
    text-decoration: underline;
}

.banner-hidden {
    display: none !important;
}
