/* ============================================
   Walz Unternehmensberatung GmbH – Design Slot 4
   Anthrazit / Teal / Akzent
   ============================================ */

:root {
    --primary: #1b2838;
    --primary-light: #2a3d54;
    --primary-dark: #111c28;
    --secondary: #48a9a6;
    --secondary-light: #5fbfbc;
    --secondary-dark: #3a8a87;
    --accent-bg: #e6f7f7;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #0e1620;
    --text: #2d2d2d;
    --text-light: #555555;
    --border: #e0e0e0;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --z-dropdown: 10;
    --z-sticky: 20;
    --z-overlay: 30;
    --z-modal: 40;
    --z-toast: 50;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-dark);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

a:active {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    z-index: var(--z-toast);
    font-size: var(--text-sm);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---- Typografie ---- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 600;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--text-3xl);
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--text-xl);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
}

p {
    max-width: 70ch;
    margin-bottom: var(--space-md);
}

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-primary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.2;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

/* ---- Top-Bar (Dunkle Variante – Slot 4) ---- */
.top-bar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.top-bar a {
    color: var(--secondary-light);
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---- Header (Fixed Slim – Slot 4) ---- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: var(--transition);
    padding: var(--space-md) 0;
}

.site-header.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--primary);
    font-size: var(--text-xl);
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

.logo-sub {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-weight: 400;
}

/* ---- Navigation ---- */
.main-nav {
    display: none;
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--secondary);
    box-shadow: var(--shadow);
    padding: var(--space-md);
    z-index: var(--z-dropdown);
}

.main-nav a {
    color: var(--text);
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary);
    background: var(--accent-bg);
}

.main-nav a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger:hover {
    background: var(--accent-bg);
}

.hamburger:active {
    background: var(--border);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero (Zentral mit kreisförmigem Akzent – Slot 4) ---- */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 169, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(72, 169, 166, 0.2);
    pointer-events: none;
}

.hero h1 {
    color: var(--white);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
    margin: 0 auto var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-trust {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

/* ---- Page Header (Unterseiten) ---- */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-header-badge {
    display: inline-block;
    background: rgba(72, 169, 166, 0.2);
    color: var(--secondary-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 60ch;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-md) 0;
    background: var(--light);
    font-size: var(--text-sm);
}

.breadcrumb-list {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: var(--space-sm);
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--secondary);
}

/* ---- Sections ---- */
.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--light);
}

.section-accent {
    background: var(--accent-bg);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--text-light);
    max-width: 60ch;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

/* ---- Cards (Flat mit linkem Farbbalken – Slot 4) ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--secondary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    color: var(--primary);
}

.card p {
    color: var(--text-light);
    font-size: var(--text-sm);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
    min-height: 44px;
}

.card-link:hover {
    gap: var(--space-sm);
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: var(--space-lg);
}

.card-grid-2 {
    grid-template-columns: 1fr;
}

.card-grid-3 {
    grid-template-columns: 1fr;
}

/* ---- Timeline (Storytelling – Slot 4) ---- */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) - 5px);
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--white);
}

.timeline-year {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}

.timeline-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ---- Firmen-Banner ---- */
.company-banner {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2xl) 0;
}

.banner-grid {
    display: grid;
    gap: var(--space-lg);
}

.banner-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.banner-item svg {
    width: 24px;
    height: 24px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-item strong {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.banner-item span {
    font-size: var(--text-base);
}

/* ---- Testimonials (Grid mit Avataren – Slot 4) ---- */
.testimonial-grid {
    display: grid;
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.testimonial-meta strong {
    display: block;
    color: var(--primary);
    font-size: var(--text-base);
}

.testimonial-meta span {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--text);
    font-style: italic;
    line-height: 1.65;
    max-width: 70ch;
}

.testimonial-text::before {
    content: '\201E';
    font-size: var(--text-3xl);
    color: var(--secondary);
    line-height: 0;
    vertical-align: -0.3em;
    margin-right: var(--space-xs);
}

/* ---- FAQ (Klassisches Akkordeon +/- Icons – Slot 4) ---- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-primary);
    min-height: 44px;
    gap: var(--space-md);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.faq-question:active {
    color: var(--secondary-dark);
}

.faq-icon {
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--secondary);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding: 0 0 var(--space-lg);
    color: var(--text-light);
    line-height: 1.65;
    max-width: 70ch;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--secondary);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 55ch;
    margin: 0 auto var(--space-lg);
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
}

/* ---- Footer (3-Spalten mit Logo-Bereich links – Slot 4) ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 0;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-brand .logo-name {
    color: var(--white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.footer-brand .logo-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-top: var(--space-md);
    max-width: 35ch;
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: var(--transition);
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
}

.footer-col a:hover {
    color: var(--secondary-light);
}

.footer-col a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-bottom-links a:hover {
    color: var(--secondary-light);
}

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-lg);
    z-index: var(--z-modal);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: var(--text-sm);
    min-width: 200px;
}

.cookie-text a {
    color: var(--secondary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-accept {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    min-height: 44px;
    transition: var(--transition);
}

.cookie-accept:hover {
    background: var(--secondary-dark);
}

.cookie-accept:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.cookie-accept:active {
    transform: scale(0.98);
}

.cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-primary);
    min-height: 44px;
    transition: var(--transition);
}

.cookie-decline:hover {
    border-color: var(--white);
    color: var(--white);
}

.cookie-decline:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.cookie-decline:active {
    transform: scale(0.98);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: var(--z-sticky);
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary-dark);
    box-shadow: var(--shadow-hover);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-size: var(--text-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--text);
    transition: var(--transition);
    min-height: 44px;
    background: var(--white);
}

.form-control:hover {
    border-color: var(--secondary-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(72, 169, 166, 0.15);
}

.form-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--secondary);
}

.checkbox-group label {
    font-weight: 400;
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---- Contact Layout (Formular rechts, Info links – Slot 4) ---- */
.contact-grid {
    display: grid;
    gap: var(--space-xl);
}

.contact-info {
    order: 2;
}

.contact-form-wrap {
    order: 1;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.contact-info-card h3 {
    margin-bottom: var(--space-md);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Geschäftsführung (Split-Layout – Slot 3, 4) ---- */
.gf-split {
    display: grid;
    gap: var(--space-xl);
}

.gf-profile {
    position: static;
}

.gf-profile-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.gf-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    font-weight: 700;
    margin: 0 auto var(--space-lg);
}

.gf-profile-card h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.gf-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.gf-company {
    color: var(--text-light);
    font-size: var(--text-sm);
}

.gf-content section {
    margin-bottom: var(--space-xl);
}

/* ---- Leistungen (Linksbündig mit rechtem Icon – Slot 2, 4) ---- */
.leistung-section {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border);
}

.leistung-section:last-child {
    border-bottom: none;
}

.leistung-inner {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
}

.leistung-content h2 {
    margin-bottom: var(--space-md);
}

.leistung-content p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.leistung-content ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.leistung-content ul li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-light);
}

.leistung-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.leistung-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.leistung-icon svg {
    width: 40px;
    height: 40px;
}

/* ---- Disclosure Box ---- */
.disclosure-box {
    background: var(--accent-bg);
    border-left: 4px solid var(--secondary);
    padding: var(--space-lg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--space-lg) 0;
}

.disclosure-box strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.disclosure-box p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* ---- Legal Pages ---- */
.legal-content {
    padding: var(--space-2xl) 0;
}

.legal-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-bg);
}

.legal-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.legal-content a {
    color: var(--secondary);
    text-decoration: underline;
}

/* ---- Cookie Table ---- */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cookie-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.cookie-table tr:hover {
    background: var(--accent-bg);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Stats ---- */
.stats-row {
    display: grid;
    gap: var(--space-lg);
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: var(--text-4xl);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.stat-item span {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.section-dark .stat-item span {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================
   Responsive
   ============================ */

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: var(--space-xs);
    }

    .main-nav a {
        padding: var(--space-sm) var(--space-md);
    }

    .hamburger {
        display: none;
    }

    .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        order: 1;
    }

    .contact-form-wrap {
        order: 2;
    }

    .gf-split {
        grid-template-columns: 300px 1fr;
    }

    .gf-profile {
        position: sticky;
        top: 100px;
    }

    .leistung-inner {
        grid-template-columns: 1fr 80px;
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
