html, body { background: #F3F5F8; }

@font-face { font-family: Inter; src: url(fonts/Inter-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-500.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0B2545;
  --navy-2: #133461;
  --blue: #1E5AA8;
  --light: #4DA3FF;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #0B2545;
  --ink-70: rgba(11, 37, 69, .7);
  --ink-55: rgba(11, 37, 69, .55);
  --line: rgba(11, 37, 69, .09);
  --on-dark-70: rgba(255, 255, 255, .72);
  --on-dark-50: rgba(255, 255, 255, .5);
  --max: 88rem;
  --pad: clamp(16px, 2.2vw, 24px);
  --radius: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 600; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--light); color: var(--navy); }

/* ---------- nav ---------- */
.nav { max-width: var(--max); margin: 0 auto; height: 76px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand-logo { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-70); text-decoration: none; transition: color 200ms ease; }

/* pills: one shape for every action */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.pill:active { transform: scale(0.97); }
.pill-dark { background: var(--navy); color: #fff; }
.pill-light { background: #fff; color: var(--navy); height: 54px; padding: 0 8px 0 26px; font-size: 16px; }
.pill-arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform 300ms var(--ease-out); }
.pill-arrow svg { width: 18px; height: 18px; }

/* ---------- hero: navy card with the blue light ribbon ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto;
  width: calc(100% - 2 * var(--pad));
  height: calc(100svh - 76px - var(--pad)); min-height: 560px; max-height: 900px;
  border-radius: var(--radius); background: var(--navy); color: #fff;
}
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .6) 38%, rgba(11, 37, 69, 0) 68%); }
.hero-content { position: absolute; left: clamp(28px, 5vw, 72px); bottom: clamp(72px, 12vh, 120px); max-width: 820px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.045em; }
.hero-sub { margin-top: 24px; max-width: 36ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--on-dark-70); }
.hero .pill-light { margin-top: 36px; }
.hero-foot { position: absolute; right: clamp(28px, 5vw, 72px); bottom: 32px; font-size: 14px; color: var(--on-dark-50); }

/* ---------- leistungen ---------- */
.intro, .about, .contact, .footer { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.intro { padding-top: clamp(96px, 12vw, 160px); }
.intro-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.intro h2, .about h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.intro-head p { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--ink-70); max-width: 34ch; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.card { border-radius: var(--radius); padding: clamp(28px, 3.5vw, 48px); min-height: 420px; display: flex; flex-direction: column; }
.card-light { background: var(--surface); }
.card-dark { background: var(--navy); color: #fff; }
.card h3 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.1; }
.card-lead { margin-top: 10px; font-size: 17px; color: var(--ink-70); max-width: 32ch; }
.card-dark .card-lead { color: var(--on-dark-70); }
.card ul { margin-top: auto; padding-top: 40px; }
.card li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.card-dark li { border-color: rgba(255, 255, 255, .12); }

/* ---------- über mich ---------- */
.about { padding-top: clamp(96px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about-body > p { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; max-width: 36ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-55); }
.facts dd { margin-top: 2px; font-size: 16px; font-weight: 500; }

/* ---------- kontakt ---------- */
.contact { padding-top: clamp(96px, 12vw, 160px); }
.contact-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--navy); color: #fff; min-height: 460px; display: flex; align-items: flex-end; }
.contact-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 37, 69, .95) 0%, rgba(11, 37, 69, .7) 45%, rgba(11, 37, 69, .1) 80%); }
.contact-content { padding: clamp(28px, 5vw, 72px); }
.contact h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.contact-content > p { margin-top: 16px; font-size: clamp(17px, 1.45vw, 20px); color: var(--on-dark-70); max-width: 38ch; }
.mail-row { display: flex; align-items: center; gap: 6px; margin-top: 40px; }
.mail { font-size: clamp(20px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; text-decoration: none; overflow-wrap: anywhere; transition: color 200ms ease; }
.vcard { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--on-dark-70); text-underline-offset: 4px; transition: color 200ms ease; }

/* copy button: icons crossfade with a touch of blur so the swap reads as one shape */
.copy { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--on-dark-50); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.copy:active { transform: scale(0.94); }
.copy-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy-done { opacity: 0; filter: blur(2px); transform: scale(0.8); color: var(--light); }
.copy.copied .copy-idle { opacity: 0; filter: blur(2px); transform: scale(0.8); }
.copy.copied .copy-done { opacity: 1; filter: blur(0); transform: scale(1); }

.status { position: fixed; left: 50%; bottom: 24px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(11, 37, 69, .18); pointer-events: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.status.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 40px; font-size: 14px; color: var(--ink-55); }
.footer .brand { color: var(--ink); font-size: 15px; }
.footer .brand-logo { width: 24px; height: 24px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer a { text-decoration: none; transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .footer nav a:hover { color: var(--ink); }
  .pill-dark:hover { background: var(--navy-2); }
  .pill-light:hover .pill-arrow { transform: translateX(3px); }
  .mail:hover { color: var(--light); }
  .vcard:hover { color: #fff; }
  .copy:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}

/* ---------- motion ---------- */
/* headline: word-by-word blur-in on load (CSS only, so it finishes even when scripts stall) */
.blur-words .w { display: inline-block; animation: blur-in 900ms var(--ease-out) both; animation-delay: var(--d); }
@keyframes blur-in { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } }
.rise { animation: rise 800ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero { animation: settle 1200ms var(--ease-out) both; }
@keyframes settle { from { opacity: 0; transform: scale(0.985); } }
/* sections: once, as they scroll in */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { height: calc(100svh - 76px - 16px); min-height: 540px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(11, 37, 69, .95) 0%, rgba(11, 37, 69, .7) 45%, rgba(11, 37, 69, .1) 75%); }
  .hero-content { left: 24px; right: 24px; bottom: 72px; }
  .hero-foot { left: 24px; right: auto; bottom: 26px; }
  .intro-head, .cards, .about { grid-template-columns: 1fr; }
  .intro-head, .about { gap: 20px; }
  .cards { margin-top: 40px; }
  .card { min-height: 0; }
  .facts { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .facts div { padding: 12px 0; }
  .contact-card { min-height: 520px; }
  .contact-scrim { background: linear-gradient(0deg, rgba(11, 37, 69, .96) 0%, rgba(11, 37, 69, .75) 55%, rgba(11, 37, 69, .15) 100%); }
  .footer nav { margin-left: 0; }
  .copyright { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blur-words .w, .rise, .hero { animation: none; }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding: clamp(48px, 8vw, 96px) var(--pad) 64px; margin: 0 auto; display: grid; gap: 40px; }
.legal h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal p, .legal address { font-size: 16px; font-style: normal; color: var(--ink-70); }
.legal p + p { margin-top: 12px; }
.legal p strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal section { padding-top: 24px; border-top: 1px solid var(--line); }
.legal-lead { font-size: 19px !important; line-height: 1.5; color: var(--ink) !important; }
.legal-date { font-size: 14px !important; color: var(--ink-55) !important; }
/* noch offene Angaben: vor dem Livegang ersetzen */
.todo { background: #FFF1C2; color: #6B4E00; padding: 1px 6px; border-radius: 6px; }
.footer [aria-current="page"] { color: var(--ink); }
