:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --muted: #6b7489;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --card: #fffdf9;
  --line: #e2dccf;
  --accent: #c8553d;
  --accent-ink: #a8432e;
  --blue: #2f5d8a;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1160px, 100% - 2 * clamp(1rem, 4vw, 3rem));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece6da;
    --ink-soft: #c3bdb1;
    --muted: #979eae;
    --paper: #0f1626;
    --paper-2: #141d31;
    --card: #182238;
    --line: #26314a;
    --accent: #e27a5f;
    --accent-ink: #f0937a;
    --blue: #7fa9d4;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Zweisprachigkeit: nur die aktive Sprache anzeigen */
html[lang="de"] body [lang="fr"],
html[lang="fr"] body [lang="de"] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }

.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 38rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem max((100% - 1160px) / 2, clamp(1rem, 4vw, 3rem));
  transition: background .3s, box-shadow .3s, padding .3s;
}
site-header[scrolled] .site-header {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .65rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font: 500 1rem/1 var(--serif); letter-spacing: .04em;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: 25%; right: 25%; bottom: 6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; }

.site-header nav { display: flex; gap: 1.75rem; }
.site-header nav a {
  text-decoration: none; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding-block: .25rem;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .3s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { right: 0; }

lang-switch { display: inline-flex; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}
.lang-switch button {
  font: 600 .78rem/1 var(--sans); letter-spacing: .08em;
  border: 0; background: transparent; color: var(--muted);
  padding: .45rem .7rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .site-header nav { display: none; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  width: var(--wrap); margin-inline: auto;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem;
  padding-block: 7rem 4rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--sans);
  padding: 1rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn.primary:hover { background: var(--accent); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

voice-waves {
  display: block; position: relative;
  aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end;
}
voice-waves svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
voice-waves .ring { fill: none; stroke: var(--line); }
voice-waves .wave { fill: none; stroke-width: 2.5; stroke-linecap: round; }
voice-waves .wave.de { stroke: var(--ink); }
voice-waves .wave.fr { stroke: var(--accent); }
voice-waves .wave.echo { stroke-width: 1; opacity: .35; }
.wave-label {
  position: absolute; font: 600 .75rem/1 var(--sans); letter-spacing: .2em;
  padding: .45rem .7rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line);
}
.wave-label.de { left: 6%; top: 22%; color: var(--ink); }
.wave-label.fr { right: 6%; bottom: 22%; color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7.5rem; gap: 2rem; }
  voice-waves { max-width: 360px; justify-self: center; order: -1; }
}

/* ---------- Sprachpaar-Band ---------- */
.pair { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.pair-inner {
  width: var(--wrap); margin-inline: auto; padding-block: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 5vw, 4rem);
  font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 3.2rem);
}
.pair-arrow { color: var(--accent); font-family: var(--sans); font-size: .8em; }

/* ---------- Sections ---------- */
.section { width: var(--wrap); margin-inline: auto; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 22ch; margin-bottom: 1.2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--ink) 55%, transparent);
}
.card-icon {
  width: 3.2rem; height: 3.2rem; border-radius: 14px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink);
}
.card-icon svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; counter-reset: fact; }
.facts li {
  display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
  counter-increment: fact;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before {
  content: "0" counter(fact); grid-row: span 2;
  font: 500 .9rem/1.9 var(--serif); color: var(--accent);
}
.fact-key { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact-val { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin-top: .3rem; }

.quote {
  margin: clamp(4rem, 9vw, 7rem) 0 0; padding: 0; text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; color: var(--ink);
}
.quote p { margin: 0 auto; max-width: 28ch; text-wrap: balance; }

/* ---------- Kontakt ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

contact-form { display: block; }
contact-form form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -45px color-mix(in srgb, var(--ink) 60%, transparent);
}
@media (max-width: 600px) { contact-form form { grid-template-columns: 1fr; } }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field [aria-invalid="true"] { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; }
.consent.invalid { color: #c0392b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.status { margin: 0; font-size: .95rem; }
.status.ok { color: #2e7d4f; }
.status.error { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .status.ok { color: #7ccf9c; }
  .status.error, .consent.invalid { color: #ff8a7a; }
}

/* ---------- Footer / Dialog ---------- */
.site-footer {
  width: var(--wrap); margin-inline: auto; padding-block: 2rem 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.dialog {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  width: min(620px, 100% - 2rem); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.dialog::backdrop { background: rgb(10 15 30 / .55); backdrop-filter: blur(4px); }
.dialog h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.dialog p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Reveal-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
