/* ===== CSS Variables ===== */
:root {
    --accent-green: #71901b;
    --accent-olive: #576337;
    --accent-yellow: #fdd000;
    --accent-muted: #80806e;
    --gradient-primary: #71901b;
    --gradient-secondary: #576337;

    /* Default: light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f9faf8;
    --bg-tertiary: #edefe9;
    --bg-card: linear-gradient(145deg, #ffffff, #f9faf8);
    --bg-hero: radial-gradient(ellipse at center, #f9faf8 0%, #ffffff 70%);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.8);
    --text-muted: rgba(26, 26, 26, 0.55);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(113, 144, 27, 0.3);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-bg-scroll: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(113, 144, 27, 0.15);
    --floating-opacity: 0.05;
    --theme-toggle-bg: linear-gradient(135deg, #576337 0%, rgba(245, 245, 247, 0.7) 100%);
    --tab-active-bg: rgba(113, 144, 27, 0.08);
    --tab-indicator: #71901b;
}

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

button, a {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Navigation / Header ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
}

.logo {
    height: 36px;
    transition: all 0.3s ease;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header-tagline {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ===== Nav ===== */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.tab-btn {
    position: relative;
    padding: 14px 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--tab-indicator);
    transition: transform 0.3s ease;
    border-radius: 2px 2px 0 0;
}

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

.tab-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

/* ===== Home / Hero ===== */
.home-hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}

.home-hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-logo {
    margin-bottom: 32px;
}

.home-logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(113, 144, 27, 0.25));
}

.home-h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
}

.home-tagline {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 48px;
    font-weight: 400;
}

.home-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-outline {
    background: transparent !important;
    border: 2px solid var(--accent-green) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.cta-outline:hover {
    background: rgba(113, 144, 27, 0.12) !important;
}

/* Floating elements */
.floating-element {
    position: absolute;
    background: linear-gradient(45deg, var(--gradient-primary), var(--gradient-secondary));
    border-radius: 50%;
    opacity: var(--floating-opacity);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 18%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 55%;
    right: 12%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 22%;
    left: 65%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== Shared Section Styles ===== */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

.section-hero {
    text-align: center;
    margin-bottom: 60px;
}

.section-hero h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gradient-primary) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Über uns ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h1,
.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gradient-primary) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-text .credential {
    font-size: 15px;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-green);
    padding-left: 16px;
    margin-top: 24px;
}

.about-visual {
    background: linear-gradient(135deg, var(--gradient-primary) 0%, var(--gradient-secondary) 100%);
    border-radius: 20px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(253, 208, 0, 0.2) 0%, transparent 60%);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Leistungen ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    padding: 44px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 140px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-color);
    border-color: var(--border-hover);
}

.service-icon {
    font-size: 52px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== FAQ ===== */
.faq-list {
    margin-top: 60px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== Bewerbung ===== */
.career-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.career-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.career-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.career-cta {
    text-align: center;
    padding: 48px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.career-cta h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.career-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Expandable requirements */
.career-requirements {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.career-requirements.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 36px;
}

.req-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
    margin-bottom: 36px;
}

.req-group {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.3s ease;
}

.req-group:hover {
    border-color: var(--border-hover);
}

.req-group-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.req-group h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.req-group > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.req-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-group ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.req-group ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

.career-email-btn {
    margin-top: 4px;
}

#careerToggleBtn {
    transition: all 0.3s ease;
}

#careerToggleBtn.expanded {
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    border: 1px solid var(--border-color);
    font-size: 14px;
    padding: 12px 28px;
}

#careerToggleBtn.expanded:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gradient-primary) 0%, var(--gradient-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px var(--shadow-color);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px var(--shadow-color);
}

/* ===== Kontakt ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.contact-item {
    padding: 36px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 17px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-green);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.legal-btn {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.legal-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===== Legal pages (Impressum/Datenschutz) ===== */
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--text-primary);
}

.legal-content p {
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.legal-content li {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 15px;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent-green);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    padding: 40px 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

footer .footer-links {
    margin-top: 10px;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin: 0 8px;
}

footer .footer-links a:hover {
    color: var(--accent-green);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--theme-toggle-bg);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ===== Scrollbar ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #80806e transparent;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-button { display: none; }
body::-webkit-scrollbar-track { background: var(--bg-primary); }
body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(113, 144, 27, 0.4) 0%, rgba(87, 99, 55, 0.4) 100%);
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(113, 144, 27, 0.6) 0%, rgba(87, 99, 55, 0.6) 100%);
}

/* ===== Theme Classes ===== */
.dark-theme {
    --bg-primary: #000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a2e1b;
    --bg-card: linear-gradient(145deg, #1d2e1a, #163e184b);
    --bg-hero: radial-gradient(ellipse at center, #222e1a 0%, #000 70%);
    --text-primary: #f5f7f5;
    --text-secondary: rgba(245, 247, 245, 0.88);
    --text-muted: rgba(245, 245, 247, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(172, 234, 102, 0.3);
    --navbar-bg: rgba(0, 0, 0, 0.85);
    --navbar-bg-scroll: rgba(0, 0, 0, 0.95);
    --shadow-color: rgba(172, 234, 102, 0.3);
    --floating-opacity: 0.1;
    --theme-toggle-bg: linear-gradient(135deg, rgba(245, 247, 245, 0.7) 0%, #576337 100%);
    --tab-active-bg: rgba(113, 144, 27, 0.15);
    --tab-indicator: #71901b;
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f9faf8;
    --bg-tertiary: #edefe9;
    --bg-card: linear-gradient(145deg, #ffffff, #f9faf8);
    --bg-hero: radial-gradient(ellipse at center, #f9faf8 0%, #ffffff 70%);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.8);
    --text-muted: rgba(26, 26, 26, 0.55);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(113, 144, 27, 0.3);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-bg-scroll: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(113, 144, 27, 0.15);
    --floating-opacity: 0.05;
    --theme-toggle-bg: linear-gradient(135deg, #576337 0%, rgba(245, 245, 247, 0.7) 100%);
    --tab-active-bg: rgba(113, 144, 27, 0.08);
    --tab-indicator: #71901b;
}

/* ===== Mobile Bottom Nav ===== */
.bottom-nav {
    display: none;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .career-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {

    /* --- Header: compact, no tabs --- */
    .header-top {
        padding: 10px 16px;
        justify-content: center;
    }

    .header-tagline {
        display: none;
    }

    .logo {
        height: 28px;
    }

    .tab-nav {
        display: none;
    }

    .header {
        border-bottom: none;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    }

    /* --- Bottom Tab Bar --- */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--navbar-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid var(--border-color);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: stretch;
    }

    .bottom-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        padding: 8px 4px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-family: inherit;
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        min-height: 52px;
        position: relative;
        text-decoration: none;
    }

    .bottom-nav-btn .nav-icon {
        font-size: 22px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .bottom-nav-btn.active {
        color: var(--accent-green);
    }

    .bottom-nav-btn.active .nav-icon {
        transform: scale(1.1);
    }

    .bottom-nav-btn::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 24px;
        height: 2px;
        background: var(--accent-green);
        border-radius: 2px;
        transition: transform 0.25s ease;
    }

    .bottom-nav-btn.active::before {
        transform: translateX(-50%) scaleX(1);
    }

    /* --- Main content spacing --- */
    .main-content {
        margin-top: 52px;
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        min-height: calc(100vh - 52px);
    }

    /* --- Home hero mobile --- */
    .home-hero {
        min-height: calc(100vh - 52px - 68px - env(safe-area-inset-bottom, 0px));
    }

    .home-logo img {
        height: 70px;
    }

    .home-h1 {
        font-size: 21px;
        padding: 0 8px;
    }

    .home-tagline {
        font-size: 15px;
        margin-bottom: 36px;
        padding: 0 8px;
    }

    .home-cta-row {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .home-cta-row .cta-button {
        width: 100%;
    }

    .floating-element:nth-child(1) {
        width: 50px;
        height: 50px;
    }

    .floating-element:nth-child(2) {
        width: 80px;
        height: 80px;
    }

    .floating-element:nth-child(3) {
        width: 40px;
        height: 40px;
    }

    .section-inner {
        padding: 32px 16px 40px;
    }

    .section-hero {
        margin-bottom: 32px;
    }

    .section-hero h1 {
        font-size: 24px;
        margin-bottom: 8px;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .section-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* --- Über uns mobile --- */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-text h1,
    .about-text h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .about-visual {
        height: 200px;
        border-radius: 16px;
        font-size: 56px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 32px;
    }

    .stat-card {
        padding: 20px 8px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* --- Leistungen mobile --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 20px 16px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .service-icon {
        font-size: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
        width: 40px;
        text-align: center;
    }

    .service-card-text {
        flex: 1;
        min-width: 0;
    }

    .service-card h3 {
        font-size: 15px;
        margin-bottom: 3px;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.45;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .faq-item {
        padding: 20px 18px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }

    /* --- Bewerbung mobile --- */
    .career-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .highlight-card {
        padding: 20px 16px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .highlight-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
        width: 36px;
        text-align: center;
    }

    .highlight-card-text {
        flex: 1;
        min-width: 0;
    }

    .highlight-card h3 {
        font-size: 15px;
        margin-bottom: 3px;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .highlight-card p {
        font-size: 13px;
        line-height: 1.45;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .career-cta {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .career-cta h3 {
        font-size: 20px;
    }

    .career-cta p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .req-columns {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .req-group {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .req-group-icon {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .req-group h4 {
        font-size: 15px;
    }

    .req-group > p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .req-group ul li {
        font-size: 13px;
        padding: 4px 0 4px 18px;
    }

    .career-requirements.open {
        max-height: 1200px;
    }

    .career-email-btn {
        width: 100%;
        text-align: center;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    /* --- Kontakt mobile --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 32px;
    }

    .contact-item {
        padding: 24px 20px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .contact-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .contact-item h3 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .contact-item p {
        font-size: 14px;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .legal-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 14px;
        text-align: center;
    }

    /* --- Legal pages mobile --- */
    .legal-content {
        padding: 0;
    }

    /* --- Footer mobile --- */
    footer {
        padding: 24px 16px 16px;
        margin-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    footer p {
        font-size: 12px;
    }

    /* --- Theme toggle: above bottom nav --- */
    .theme-toggle {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* Disable hover effects on touch */
    .service-card:hover,
    .contact-item:hover,
    .highlight-card:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* ===== Small phones ===== */
@media (max-width: 380px) {
    .section-hero h1 {
        font-size: 20px;
    }

    .about-text h2 {
        font-size: 20px;
    }

    .service-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .service-icon {
        font-size: 26px;
        width: 34px;
    }

    .service-card h3 {
        font-size: 14px;
    }

    .service-card p {
        font-size: 12px;
    }

    .highlight-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .highlight-icon {
        font-size: 24px;
        width: 30px;
    }

    .highlight-card h3 {
        font-size: 14px;
    }

    .highlight-card p {
        font-size: 12px;
    }

    .career-cta h3 {
        font-size: 18px;
    }

    .career-cta p {
        font-size: 13px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 9px;
    }

    .bottom-nav-btn {
        font-size: 9px;
    }

    .bottom-nav-btn .nav-icon {
        font-size: 18px;
    }

    .floating-element:nth-child(2) {
        top: 10%;
    }

    .floating-element:nth-child(3) {
        bottom: 10%;
        left: 45%
    }
}

/* ===== Entrance animations (pure CSS, fire on page load) ===== */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-item,
.highlight-card,
.stat-card,
.faq-item,
.about-layout,
.career-intro,
.career-cta {
    opacity: 0;
    animation: fadeInCard 0.5s ease forwards;
}

.service-card:nth-child(1), .contact-item:nth-child(1), .highlight-card:nth-child(1), .stat-card:nth-child(1), .faq-item:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2), .contact-item:nth-child(2), .highlight-card:nth-child(2), .stat-card:nth-child(2), .faq-item:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3), .contact-item:nth-child(3), .highlight-card:nth-child(3), .stat-card:nth-child(3), .faq-item:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4), .highlight-card:nth-child(4), .faq-item:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5), .faq-item:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6), .faq-item:nth-child(6) { animation-delay: 0.3s; }
