/* =============================================
   just-order.it — Stylesheet
   Farbpalette: Light & Professional
   ============================================= */

/* ---- CSS-Variablen ---- */
:root {
    --primary:          #1e40af;
    --primary-dark:     #1e3a8a;
    --primary-light:    #3b82f6;
    --secondary:        #0891b2;
    --secondary-light:  #06b6d4;
    --gradient:         linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-subtle:  linear-gradient(135deg, rgba(30,64,175,.08), rgba(8,145,178,.06));

    --text-primary:     #1e293b;
    --text-secondary:   #475569;
    --text-light:       #94a3b8;

    --bg-white:         #ffffff;
    --bg-light:         #f8fafc;
    --bg-subtle:        #f1f5f9;
    --border:           #e2e8f0;
    --border-light:     #f1f5f9;

    --shadow-xs:        0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:        0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:        0 10px 40px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
    --shadow-primary:   0 8px 24px rgba(30,64,175,.2);

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

    --transition:       0.25s ease;
    --transition-slow:  0.4s ease;

    --nav-height:       80px;
    --container-width:  1160px;
    --section-padding:  96px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }

p { color: var(--text-secondary); line-height: 1.75; }

/* ---- Layout Utilities ---- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin: 12px 0 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.05rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(30,64,175,.08);
    padding: 5px 14px;
    border-radius: 100px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.br-desktop { display: block; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30,64,175,.28);
}

.btn-ghost {
    color: var(--primary);
    font-weight: 600;
}

.btn-ghost:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-outline {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-logo img {
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    display: block;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--secondary);
    text-align: center;
}

.nav-logo:hover { color: var(--primary); }
.nav-logo:hover img { transform: scale(1.06); }

.logo-accent { color: var(--secondary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(30,64,175,.06);
}

.nav-link-cta {
    margin-left: 8px;
    background: var(--gradient);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--gradient);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    padding: 6px;
    transition: background var(--transition);
}

.nav-toggle:hover { background: var(--bg-subtle); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
#hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-white);
    padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30,64,175,.12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8,145,178,.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(148,163,184,.35) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-content h1 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 620px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 40px;
    box-shadow: var(--shadow-md);
    display: inline-flex;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 36px;
}

.hero-stat strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.hero-stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* =============================================
   LEISTUNGEN
   ============================================= */
#leistungen {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(30,64,175,.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
}

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

.service-card p {
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(30,64,175,.07);
    padding: 3px 10px;
    border-radius: 100px;
    transition: background var(--transition);
}

.service-card:hover .service-tags span {
    background: rgba(30,64,175,.12);
}

/* =============================================
   ÜBER MICH
   ============================================= */
#ueber-mich {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content .section-tag { margin-bottom: 12px; }

.about-content h2 {
    margin: 12px 0 24px;
    color: var(--text-primary);
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-content p { margin-bottom: 16px; }
.about-content p:last-of-type { margin-bottom: 24px; }

.about-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(30,64,175,.06);
    border: 1px solid rgba(30,64,175,.15);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.about-highlight svg { color: var(--primary); flex-shrink: 0; }

.about-skills { display: flex; flex-direction: column; gap: 32px; }

.skills-block h4 {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.skill-list { display: flex; flex-direction: column; gap: 10px; }

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-dot {
    width: 7px;
    height: 7px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tech-tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   REFERENZEN
   ============================================= */
#referenzen {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ref-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.ref-card:hover {
    border-color: rgba(8,145,178,.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ref-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(8,145,178,.1), rgba(30,64,175,.08));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.ref-icon svg {
    width: 22px;
    height: 22px;
    color: var(--secondary);
    stroke: var(--secondary);
}

.ref-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ref-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.ref-list { display: flex; flex-direction: column; gap: 6px; }

.ref-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ref-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--secondary-light);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================
   KONTAKT
   ============================================= */
#kontakt {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-content .section-tag { margin-bottom: 12px; }

.contact-content h2 {
    margin: 12px 0 20px;
    color: var(--text-primary);
}

.contact-content > p {
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(30,64,175,.04);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
    fill: #fff;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-cta-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.cta-box-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cta-box-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    stroke: #fff;
}

.contact-cta-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-cta-box p {
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.65;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    background: var(--text-primary);
    color: rgba(255,255,255,.7);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-wrap: wrap;
}

.footer-brand .nav-logo {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.footer-brand .logo-accent { color: var(--secondary-light); }

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255,255,255,.45);
}

.footer-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.footer-legal {
    display: flex;
    gap: 8px;
}

.footer-legal a {
    font-size: 0.82rem;
    color: rgba(255,255,255,.45);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,.3);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
    :root { --section-padding: 72px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .references-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-cta-box { position: static; }
}

/* =============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
    :root {
        --section-padding: 56px;
        --nav-height: 60px;
    }

    .br-desktop { display: none; }

    /* Nav mobile */
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    /* Hero mobile */
    #hero { padding: calc(var(--nav-height) + 32px) 20px 60px; }

    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .hero-stats {
        padding: 16px 20px;
        gap: 0;
    }

    .hero-stat { padding: 0 16px; }
    .hero-stat strong { font-size: 1.5rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px; }

    /* About */
    .about-skills { grid-template-columns: 1fr; gap: 24px; }

    /* References */
    .references-grid { grid-template-columns: 1fr; gap: 16px; }
    .ref-card { padding: 24px; }

    /* Contact */
    .contact-cta-box { padding: 28px 24px; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer-legal { flex-wrap: wrap; }
}

/* =============================================
   RESPONSIVE — Small mobile (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 28px;
        text-align: center;
    }

    .hero-stat-sep {
        width: 40px;
        height: 1px;
    }

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

/* =============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================= */
.page-header {
    padding: calc(var(--nav-height) + 56px) 0 56px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.page-header .section-tag { margin-bottom: 12px; }

.page-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--text-primary);
    margin: 12px 0 8px;
}

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

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.legal-content h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 40px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

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

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px;
}

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

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.legal-content a:hover { color: var(--primary-dark); }

.legal-block {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 32px;
}

.legal-block p { margin-bottom: 6px; }
.legal-block p:last-child { margin-bottom: 0; }

.legal-block strong {
    font-weight: 600;
    color: var(--text-primary);
}

.legal-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(30,64,175,.05);
    border: 1px solid rgba(30,64,175,.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 24px 0;
}

.legal-notice svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-notice p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--text-secondary);
}

/* =============================================
   ACCESSIBILITY — Reduce Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; }
}
