/* ============================================
   MARIMED GMBH — ONE-PAGER
   Aesthetic: Medical Professional
   ============================================ */

/* --- Custom Properties --- */
:root {
    --brand: #24806F;
    --brand-light: #3BB5A2;
    --brand-dark: #1C655A;
    --sage: #9FBDBA;
    --sage-light: #C5D8D6;
    --dark: #263A38;
    --dark-deep: #1A2B29;
    --dark-surface: #1E302E;
    --light: #F7F9F8;
    --light-warm: #F0F4F3;
    --white: #FFFFFF;
    --text: #2C3E3C;
    --text-muted: #496462;
    --text-on-dark: #E8EEEC;
    --text-on-dark-muted: #B8D0CD;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(38, 58, 56, 0.06);
    --shadow-md: 0 4px 16px rgba(38, 58, 56, 0.08);
    --shadow-lg: 0 8px 40px rgba(38, 58, 56, 0.1);
    --shadow-xl: 0 20px 60px rgba(38, 58, 56, 0.12);
    --shadow-card-hover: 0 12px 48px rgba(45, 148, 132, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav--scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(45, 148, 132, 0.08);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 48px;
    width: auto;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.nav--scrolled .nav__logo-img {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav--scrolled .nav__logo-img:hover {
    opacity: 0.8;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav__links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:hover {
    color: var(--brand);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--brand);
    color: var(--white) !important;
    padding: 0.6rem 1.75rem !important;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.4;
    transition: all 0.3s var(--ease-out-expo) !important;
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 148, 132, 0.3);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(45, 148, 132, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(159, 189, 186, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 148, 132, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 148, 132, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero__logo-wrap {
    margin-bottom: 2.5rem;
}

.hero__logo {
    height: clamp(80px, 12vw, 140px);
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(45, 148, 132, 0.1));
}

.hero__title {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero__title-accent {
    color: var(--brand);
    position: relative;
    display: inline-block;
}

.hero__title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: -0.02em;
    right: -0.02em;
    height: 0.12em;
    background: rgba(45, 148, 132, 0.15);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: accentUnderline 0.8s 1.2s var(--ease-out-expo) forwards;
}

@keyframes accentUnderline {
    to { transform: scaleX(1); }
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(45, 148, 132, 0.25);
}

.btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 148, 132, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--brand), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    border-radius: 1px;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
}

.section--light {
    background: var(--light);
}

.section--dark {
    background: var(--dark);
    color: var(--text-on-dark);
}

.section--dark .section__label {
    color: var(--brand-light);
}

.section--dark .section__title {
    color: var(--white);
}

.section--teal {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-deep) 100%);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.section--teal::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 148, 132, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.section--teal .section__label {
    color: var(--brand-light);
}

.section--teal .section__title {
    color: var(--white);
}

.section__header {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.about__lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about__text p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    padding: 1.75rem 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(45, 148, 132, 0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(45, 148, 132, 0.15);
}

.stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(45, 148, 132, 0.08);
    color: var(--brand);
    margin-bottom: 0.25rem;
}

.stat__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(159, 189, 186, 0.08);
    transition: all 0.45s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(45, 148, 132, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.45s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 148, 132, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(45, 148, 132, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card__icon {
    background: var(--brand);
    transform: scale(1.05);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--brand-light);
    transition: color 0.4s;
}

.service-card:hover .service-card__icon svg {
    color: var(--white);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   TEAM
   ============================================ */
.team__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.team__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.team__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--light-warm) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    border: 2px dashed rgba(45, 148, 132, 0.2);
    border-radius: var(--radius-lg);
}

.team__placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.4;
}

.team__placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
}

.team__lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team__text p:last-child {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact__info {
    display: flex;
}

.contact__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    flex: 1;
}

.contact__card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact__role {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact__item svg {
    color: var(--brand-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__item a {
    color: var(--brand-light);
    transition: color 0.3s;
    text-decoration: underline;
    text-decoration-color: rgba(59, 181, 162, 0.3);
    text-underline-offset: 3px;
}

.contact__item a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

.contact__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 320px;
    padding: 2rem;
    gap: 0.75rem;
    color: var(--text-on-dark-muted);
}

.map-consent svg {
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.map-consent__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.map-consent__text {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

.map-consent__text a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-consent__btn {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-deep);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(159, 189, 186, 0.08);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer__logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer__logo:hover {
    opacity: 1;
}

.footer__middle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__legal {
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    line-height: 1.6;
    text-align: center;
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer__nav a {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    padding: 0.5rem 0;
    transition: all 0.3s;
    text-decoration: underline;
    text-decoration-color: rgba(184, 208, 205, 0.4);
    text-underline-offset: 3px;
}

.footer__nav a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

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

/* Hero reveals play immediately */
.hero .reveal {
    animation: heroReveal 0.9s var(--ease-out-expo) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero .reveal--delay-1 { animation-delay: 0.2s; }
.hero .reveal--delay-2 { animation-delay: 0.4s; }
.hero .reveal--delay-3 { animation-delay: 0.6s; }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 200px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .team__content {
        grid-template-columns: 1fr;
    }

    .team__image-wrap {
        order: -1;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__nav {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out-expo);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav__links.active {
        transform: translateX(0);
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: 5rem 1.5rem 3rem;
    }

    .about__stats {
        flex-direction: column;
    }

    .stat {
        min-width: unset;
    }

    .service-card {
        padding: 2rem;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq__list {
    max-width: 800px;
}

.faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq__question {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-light);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out-expo);
}

details[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    color: var(--brand-light);
}

.faq__answer {
    padding: 0 0 1.5rem;
}

.faq__answer p {
    font-size: 0.95rem;
    color: var(--text-on-dark-muted);
    line-height: 1.8;
}

.faq__answer a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   ACCESSIBILITY (BFSG / WCAG 2.1 AA)
   ============================================ */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    background: var(--brand);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--brand-light);
    outline-offset: 2px;
}

/* Visible focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

.nav__cta:focus-visible {
    outline-color: var(--brand-dark);
    outline-offset: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(45, 148, 132, 0.4);
}

.section--dark a:focus-visible,
.section--teal a:focus-visible,
.footer a:focus-visible {
    outline-color: var(--brand-light);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal {
    padding: 8rem 0 5rem;
    min-height: 100vh;
    background: var(--light);
}

.legal h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 2.5rem;
}

.legal h2 {
    font-size: 1.35rem;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal p, .legal li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(45, 148, 132, 0.3);
}

.legal a:hover {
    color: var(--brand-dark);
    text-decoration-color: var(--brand-dark);
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 2rem;
    text-decoration: none;
}

.legal__back:hover {
    color: var(--brand-dark);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
