/* =========================================================
   Elektrotechnik Hannes Schneeweiss – Stylesheet
   Farbkonzept: Weiß (Bühne) · Navy (tragend) · Gelb (Funke)
   Mobile-First Responsive Design
   Schriften selbst gehostet (DSGVO-konform, kein CDN)
   ========================================================= */

/* ---------- Schriften ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/SpaceGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/SpaceGrotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/SpaceGrotesk-700.woff2") format("woff2"); }

/* ---------- Design Tokens ---------- */
:root {
    --white: #ffffff;
    --paper: #f5f8fd;          /* sehr helles Grau-Weiß für Abschnittswechsel */
    --paper-2: #eef3fb;
    --navy: #14223d;           /* tragende Farbe */
    --navy-900: #101b31;
    --navy-800: #1e3053;
    --navy-600: #33456e;
    --navy-300: #7c89a6;
    --ink: #1a2338;            /* Fließtext */
    --muted: #3f4963;          /* gedämpfter Text */
    --line: #e4e9f2;           /* Trennlinien */

    --yellow: #ffc233;         /* Akzent / CTA – der "Funke" */
    --yellow-600: #f2ab00;
    --yellow-100: #fff4d6;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 12px rgba(20, 34, 61, .05);
    --shadow-md: 0 18px 44px rgba(20, 34, 61, .10);
    --shadow-lg: 0 34px 80px rgba(20, 34, 61, .16);
    --shadow-yellow: 0 12px 30px rgba(242, 171, 0, .38);

    --maxw: 1140px;
    --space: clamp(4rem, 9vw, 7.5rem);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.68;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6.2vw, 3.9rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.24rem; letter-spacing: -0.015em; margin-bottom: .6rem; }

p { color: var(--ink); }
/* Fließtext-Absätze bekommen durchgehend etwas Luft nach unten */
.section p, .hero p, .usp p { margin-bottom: 1.15rem; }
.section p:last-child, .hero p:last-child, .usp p:last-child { margin-bottom: 0; }

::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow-600); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.3rem; }

.muted { color: var(--muted); font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    font-family: var(--font);
    font-weight: 600; font-size: 1rem;
    padding: .9rem 1.7rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
/* dezenter Sheen beim Hover */
.btn::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary {
    background: var(--yellow); color: var(--navy);
    box-shadow: var(--shadow-yellow);
}
.btn-primary:hover { background: var(--yellow-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(242, 171, 0, .48); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(20,34,61,.08), transparent); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,34,61,.07); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; transition: min-height .3s var(--ease); }
.site-header.scrolled .header-inner { min-height: 64px; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 58px; width: auto; display: block; transition: transform .25s var(--ease), height .3s var(--ease); }
.logo:hover .logo-img { transform: scale(1.03); }
.site-header.scrolled .logo-img { height: 50px; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .2rem; }
.primary-nav a { position: relative; padding: .55rem .9rem; border-radius: 999px; font-weight: 500; font-size: .96rem; color: var(--navy); transition: background-color .18s var(--ease), color .18s var(--ease); }
.primary-nav a:not(.nav-cta)::before {
    content: ""; position: absolute; left: 50%; bottom: .3rem; width: 0; height: 2px;
    background: var(--yellow); border-radius: 2px; transform: translateX(-50%);
    transition: width .25s var(--ease);
}
.primary-nav a:not(.nav-cta):hover::before,
.primary-nav a.active:not(.nav-cta)::before { width: 42%; }
.primary-nav a.active:not(.nav-cta) { color: var(--navy); font-weight: 600; }
.primary-nav .nav-cta { background: var(--navy); color: var(--white); font-weight: 600; }
.primary-nav .nav-cta:hover { background: var(--navy-800); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4.5rem, 11vw, 8rem); overflow: hidden; }
.hero-glow {
    position: absolute; inset: -25% -12% auto auto; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
    background: radial-gradient(circle at 62% 34%, rgba(255, 194, 51, .30), transparent 62%);
    z-index: 0; pointer-events: none;
}
/* Leiterbahn-Layer */
.hero-circuit {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 92%);
    mask-image: linear-gradient(to left, #000 45%, transparent 92%);
}
.hero-circuit .trace { fill: none; stroke: rgba(20, 34, 61, .10); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-circuit .pad { fill: rgba(20, 34, 61, .14); }
.hero-circuit .pad-hollow { fill: var(--white); stroke: rgba(20,34,61,.16); stroke-width: 1.4; }
/* Stromimpuls: kurzer gelber Strich, der die Bahn entlangwandert */
.hero-circuit .pulse {
    fill: none; stroke: var(--yellow-600); stroke-width: 2.4; stroke-linecap: round;
    stroke-dasharray: 26 1400; filter: drop-shadow(0 0 4px rgba(242, 171, 0, .9));
}
.hero-circuit .pulse-1 { animation: flow 11s linear infinite; }
.hero-circuit .pulse-2 { animation: flow 14s linear 3s infinite; }
.hero-circuit .pulse-3 { animation: flow 9s  linear 6s infinite; }
@keyframes flow { from { stroke-dashoffset: 1426; } to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 780px; }

.eyebrow {
    position: relative;
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-head);
    font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 600; letter-spacing: 0;
    color: var(--navy);
    margin-bottom: 1.7rem;
    padding-bottom: .55rem;
    background: none; border: none; box-shadow: none;
}
.eyebrow-icon { flex: none; color: var(--yellow-600); filter: drop-shadow(0 0 4px rgba(255, 194, 51, .6)); }
/* Stromlinie unter dem Kicker */
.eyebrow::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--yellow-600), var(--yellow) 45%, rgba(255, 194, 51, .12));
}
/* Lichtpunkt, der die Stromlinie entlangwandert */
.eyebrow::before {
    content: ""; position: absolute; bottom: -1px; left: 0; width: 26px; height: 4px; border-radius: 4px;
    background: radial-gradient(circle at center, var(--yellow) 0%, rgba(255, 194, 51, .35) 45%, transparent 75%);
    animation: eyebrowFlow 3.2s var(--ease) infinite;
}
@keyframes eyebrowFlow { 0% { left: -8%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .hl { position: relative; color: var(--navy); white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .05em; height: .34em; background: var(--yellow); z-index: -1; border-radius: 3px; transform-origin: left center; animation: switchOn 1s var(--ease) .4s both; }
@keyframes switchOn { 0% { transform: scaleX(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scaleX(1); opacity: .92; } }
.hero-claim { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.25rem); letter-spacing: .05em; color: var(--navy-600); margin-bottom: 1.2rem; }
.hero-claim::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--yellow-600); }
.hero-lead { font-size: clamp(1.08rem, 2.4vw, 1.28rem); color: var(--muted); max-width: 640px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.6rem; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--navy); font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow-100); color: var(--yellow-600); font-size: .82rem; font-weight: 700; }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--navy-300); border-radius: 999px; z-index: 1; display: none; opacity: .7; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--navy-600); transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-block: 1px solid var(--line); }
.section-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow-600); margin-bottom: 1.15rem; }
.section-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--yellow-600); border-radius: 2px; }
.section-eyebrow.light { color: var(--yellow); }
.section-eyebrow.light::before { background: var(--yellow); }
.section-head { max-width: 700px; margin-bottom: 3.4rem; }
.section-intro { color: var(--muted); font-size: 1.12rem; margin-top: 1.1rem; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(2.4rem, 5.5vw, 4.2rem); align-items: start; }

/* ---------- Über mich ---------- */
#ueber-mich p { color: var(--muted); margin-bottom: 1.15rem; }
.values-title { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--navy-600); margin: 2rem 0 1rem; }
.values-title::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--yellow-600); }
.value-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 0; }
.value-list li { font-size: .9rem; font-weight: 500; color: var(--navy); background: var(--white); border: 1px solid var(--line); padding: .5rem .95rem; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), border-color .18s var(--ease); }
.value-list li:hover { transform: translateY(-2px); border-color: var(--yellow); }

.qual-card { position: relative; background: linear-gradient(160deg, var(--navy-800), var(--navy)); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); overflow: hidden; }
.qual-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
.qual-card h3 { font-family: var(--font-head); color: var(--white); font-size: 1.35rem; margin-bottom: 1.7rem; }
.timeline { list-style: none; position: relative; padding-left: 1.7rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--yellow), rgba(255,194,51,.12)); }
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -1.7rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); box-shadow: 0 0 0 2px var(--yellow), 0 0 10px rgba(255,194,51,.7); }
.timeline strong { display: block; font-size: 1.04rem; font-weight: 600; }
.timeline span:not(.tl-dot) { display: block; color: var(--navy-300); font-size: .92rem; margin-top: .2rem; }
/* Timeline-Punkte "zünden" nacheinander, sobald sichtbar */
.qual-card.is-visible .tl-dot { animation: ignite .5s var(--ease) both; }
.qual-card.is-visible li:nth-child(1) .tl-dot { animation-delay: .15s; }
.qual-card.is-visible li:nth-child(2) .tl-dot { animation-delay: .35s; }
.qual-card.is-visible li:nth-child(3) .tl-dot { animation-delay: .55s; }
.qual-card.is-visible li:nth-child(4) .tl-dot { animation-delay: .75s; }
@keyframes ignite { 0% { transform: scale(0); box-shadow: 0 0 0 2px var(--yellow); } 60% { transform: scale(1.35); } 100% { transform: scale(1); box-shadow: 0 0 0 2px var(--yellow), 0 0 10px rgba(255,194,51,.7); } }

/* ---------- Leistungen / Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.7rem, 4vw, 2.3rem); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
/* gelbe Akzentlinie läuft bei Hover von links ein */
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: var(--yellow-100); color: var(--yellow-600); margin-bottom: 1.3rem; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.card:hover .card-icon { transform: translateY(-3px) rotate(-4deg); background: var(--yellow); color: var(--navy); }
.card h3 { margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .99rem; }

/* ---------- USP ---------- */
.usp { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); position: relative; overflow: hidden; }
.usp::before { content: ""; position: absolute; inset: auto auto -35% -12%; width: 52vw; height: 52vw; max-width: 580px; max-height: 580px; background: radial-gradient(circle, rgba(255,194,51,.20), transparent 62%); }
.usp-circuit { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; -webkit-mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); }
.usp-circuit .trace { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 1.4; }
.usp-circuit .pad { fill: rgba(255,255,255,.14); }
.usp-inner { position: relative; z-index: 1; max-width: 800px; text-align: center; margin-inline: auto; }
.usp h2 { color: var(--white); margin-bottom: 1.3rem; }
.usp-badge { width: 70px; height: 70px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--navy); background: var(--yellow); border-radius: 20px; box-shadow: 0 12px 34px rgba(255,194,51,.34); animation: badgePulse 3s var(--ease) infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 12px 34px rgba(255,194,51,.34); } 50% { box-shadow: 0 12px 44px rgba(255,194,51,.6); } }
.usp-text { color: #d6dff0; font-size: 1.16rem; margin-bottom: 2.2rem; }
.usp-text strong { color: var(--white); }

/* ---------- Ablauf / Prozess (Navy-Band) ---------- */
.process-inner { position: relative; z-index: 1; }
.process-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.process-head h2 { color: var(--white); }
.process-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.9rem; }
.process-step { position: relative; padding-top: 1.15rem; border-top: 2px solid rgba(255, 194, 51, .38); }
.step-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--yellow); margin-bottom: .55rem; }
.process-step h3 { color: var(--white); font-size: 1.12rem; margin-bottom: .4rem; }
.process-step p { color: #cbd6ea; font-size: .97rem; margin: 0; }
@media (min-width: 720px) {
    .process-steps { grid-template-columns: repeat(4, 1fr); gap: 1.7rem; }
}

/* ---------- Einsatzgebiet ---------- */
.grid-geo { align-items: center; }
.region-list { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0; }
.region-list li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); padding: .6rem 1.15rem; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), border-color .18s var(--ease); }
.region-list li:hover { transform: translateY(-2px); border-color: var(--yellow); }
.geo-visual { position: relative; aspect-ratio: 4 / 4.1; background: radial-gradient(60% 45% at 72% 22%, rgba(255, 194, 51, .13), transparent 70%), radial-gradient(circle at 60% 38%, var(--white), var(--paper)); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: grid; place-items: center; overflow: hidden; padding: clamp(1rem, 3vw, 1.8rem); }
.geo-map { width: 100%; height: 100%; }
/* Bundesländer-Flächen */
.geo-states { filter: drop-shadow(0 14px 18px rgba(20, 34, 61, .22)); }
.geo-state { fill: url(#geoStateGrad); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.geo-wien { fill: url(#geoWienGrad); stroke: var(--navy); filter: drop-shadow(0 0 10px rgba(255, 194, 51, .55)); }
/* Standort-Punkte mit pulsierendem Ring */
.geo-dot { fill: var(--navy); }
.geo-dot-accent { fill: var(--navy); }
.geo-pins::after { content: none; }
.geo-dot { transform-box: fill-box; transform-origin: center; }
.geo-ring { fill: none; stroke: var(--yellow-600); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: geoPing 2.8s var(--ease) infinite; }
@keyframes geoPing { 0% { transform: scale(.4); opacity: .85; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
/* Labels */
.geo-pins .geo-ring:nth-child(3) { animation-delay: .9s; }
.geo-pins .geo-ring:nth-child(5) { animation-delay: 1.8s; }
.geo-labels text { font-family: var(--font-head); font-size: 23px; font-weight: 700; fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.geo-label-accent { fill: var(--yellow-600) !important; }

/* ---------- Portrait-Platzhalter ---------- */
.portrait { margin: 0 auto; max-width: 82%; }
.portrait-frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--paper), var(--paper-2)); border: 2px dashed var(--navy-300); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--navy-300); box-shadow: var(--shadow-sm); overflow: hidden; }
.portrait-frame::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); opacity: .8; }
.portrait-hint { font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: var(--muted); }
.portrait figcaption { margin-top: 1rem; text-align: center; font-weight: 600; color: var(--navy); font-size: .98rem; }
/* Wenn ein echtes Foto eingesetzt wird: <img class="portrait-photo" ...> */
.portrait-photo { width: 100%; aspect-ratio: 4 / 4.6; height: auto; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }

/* ---------- Kontakt ---------- */
.grid-contact { align-items: start; }
.contact-methods { list-style: none; margin-top: 1.7rem; display: grid; gap: .85rem; }
.contact-methods a { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-methods a:hover { transform: translateX(5px); border-color: var(--yellow); box-shadow: var(--shadow-md); }
.cm-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--navy); color: var(--yellow); transition: transform .25s var(--ease); }
.contact-methods a:hover .cm-icon { transform: scale(1.08); }
.contact-methods span:not(.cm-icon) { display: flex; flex-direction: column; font-weight: 600; color: var(--navy); word-break: break-word; }
.contact-methods small { font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .05rem; }
[data-placeholder] { opacity: .68; }

/* ---------- Formular ---------- */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .45rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .85rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow-600); background: var(--white); box-shadow: 0 0 0 4px var(--yellow-100); }
.field textarea { resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid textarea { border-color: #d98324; background: #fff8f0; }
.err { display: block; color: #c76a12; font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.form-note { margin-top: 1rem; font-weight: 600; font-size: .95rem; text-align: center; }
.form-note.ok { color: #1d7a4d; }
.form-note.bad { color: #c76a12; }

/* ---------- Back-to-Top-Button ---------- */
.back-to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: var(--yellow);
    border: none; cursor: pointer; padding: 0;
    box-shadow: 0 10px 26px rgba(20, 34, 61, .3);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--navy-800); box-shadow: 0 14px 32px rgba(20, 34, 61, .38), 0 0 0 4px rgba(255, 194, 51, .16); transform: translateY(-3px) scale(1); }
.back-to-top:active { transform: translateY(-1px) scale(.97); }
@media (max-width: 600px) {
    .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, var(--navy), var(--navy-900)); color: #c3cde0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); opacity: .7; }
.footer-inner { display: flex; flex-direction: column; gap: 1.7rem; padding-block: clamp(2.6rem, 6vw, 3.6rem); }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-mark { display: inline-flex; align-items: center; flex: none; }
.footer-mark img { height: 48px; width: auto; display: block; }
.footer-brand strong { font-family: var(--font-head); display: block; color: var(--white); font-size: 1.08rem; }
.footer-brand small { color: var(--navy-300); font-size: .82rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-weight: 500; color: #c3cde0; transition: color .18s var(--ease); }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-block: 1.25rem; }
.footer-bottom p { color: var(--navy-300); font-size: .84rem; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Karten: gestaffeltes Einblenden nur über Opazität (Delay pro Eigenschaft),
   damit der Hover-Transform schnell und ohne Verzögerung bleibt */
.card.reveal { opacity: 0; transform: none; transition: opacity .6s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card.reveal.is-visible { opacity: 1; }
.card.reveal:nth-child(2) { transition-delay: .12s, 0s, 0s, 0s; }
.card.reveal:nth-child(3) { transition-delay: .24s, 0s, 0s, 0s; }

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(2.6rem, 7vw, 4.5rem) 0; max-width: 820px; }
.legal h1 { margin-bottom: 1.7rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; }
.legal p, .legal li { color: var(--ink); margin-bottom: .7rem; }
.legal ul { padding-left: 1.3rem; }
.legal a { color: var(--yellow-600); font-weight: 600; text-decoration: underline; }
.legal .placeholder { background: var(--yellow-100); border: 1px dashed var(--yellow-600); border-radius: 6px; padding: .05em .4em; font-style: normal; color: #8a6400; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--navy); }
.back-link:hover { color: var(--yellow-600); }

/* =========================================================
   RESPONSIVE – ab Tablet / Desktop
   ========================================================= */
@media (min-width: 720px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .portrait { max-width: 70%; }
    .grid-2 { grid-template-columns: 1.05fr .95fr; }
    .grid-contact { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .scroll-hint { display: block; }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin-inline: auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .primary-nav {
        position: fixed; inset: 76px 0 auto 0;
        background: var(--white); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden;
        transition: max-height .3s var(--ease);
    }
    .primary-nav.open { max-height: 80vh; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem 1.3rem 1.5rem; }
    .primary-nav a { padding: .85rem 1rem; font-size: 1.05rem; }
    .primary-nav a:not(.nav-cta)::before { display: none; }
    .primary-nav a.active:not(.nav-cta) { background: var(--paper); }
    .primary-nav .nav-cta { text-align: center; margin-top: .5rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-circuit .pulse { display: none; }
    .hero h1 .hl::after { transform: scaleX(1); opacity: .92; }
}
