/* ============================================================
   Konkordanz — Öffentliche Website
   Designsystem: "Das Dienstsiegel" (modernisiert / editorial)
   Marke abgeleitet vom internen Tool (static/app.css):
   gleiche Tokens, großzügigeres Landingpage-Layout.
   ============================================================ */

:root {
  /* Farben (1:1 aus dem Tool für Wiedererkennung) */
  --ink:        #1b1a2e;
  --ink-soft:   #4a4862;
  --ink-faint:  #6f6d85;
  --paper:      #f4f4f1;
  --paper-pure: #fcfcfa;
  --seal:       #5b3e96;
  --seal-deep:  #432b73;
  --seal-tint:  #ece6f5;
  --seal-wash:  #f6f3fb;
  --line:       #ddd9ce;
  --line-soft:  #e9e6dd;

  /* Typografie */
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Maße */
  --wrap: 1140px;
  --r-sm: 5px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 46, .05);
  --shadow:    0 2px 6px rgba(27, 26, 46, .05), 0 18px 50px -28px rgba(27, 26, 46, .28);
  --shadow-lg: 0 10px 24px -8px rgba(27, 26, 46, .10), 0 40px 80px -40px rgba(67, 43, 115, .35);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* sticky-Header-Höhe */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* dünne violette Urkunden-Kopflinie über der ganzen Seite */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--seal-deep), var(--seal) 45%, #8a6fc7);
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
p  { margin: 0; }
a  { color: var(--seal); text-decoration: none; }
img, svg { display: block; }

::selection { background: var(--seal-tint); color: var(--seal-deep); }

/* ---------- Hilfsklassen ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-block; max-width: 100%;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--seal);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: currentColor; opacity: .55;
  vertical-align: middle; margin-right: .6rem; position: relative; top: -2px;
}

.mono { font-family: var(--font-mono); letter-spacing: .04em; }

.lead { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.6; }

.seal-mark { color: var(--seal); width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-size: .98rem; font-weight: 600;
  padding: .82rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .1s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--seal); color: #fff; box-shadow: 0 1px 2px rgba(27,26,46,.06), 0 10px 22px -12px rgba(67,43,115,.7); }
.btn--primary:hover { background: var(--seal-deep); }
.btn--ghost { background: var(--paper-pure); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--seal); color: var(--seal-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 244, 241, .82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px; padding-block: .55rem;
}

.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.03em; }
.brand__sub {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: .3rem;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--seal); border-color: var(--seal); }

.header-side { display: flex; align-items: center; gap: 1rem; }

/* Sprachumschalter */
.lang {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--paper-pure);
}
.lang a { padding: .34rem .7rem; color: var(--ink-soft); }
.lang a.is-active { background: var(--seal); color: #fff; }
.lang a:not(.is-active):hover { color: var(--seal-deep); background: var(--seal-tint); }
.lang span { width: 1px; align-self: stretch; background: var(--line); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tint { background: var(--seal-wash); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 640px; margin-bottom: 2.8rem; }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__head h2 { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.6rem); }
.section__head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero::before { /* konzentrische Siegel-Ringe als zarter Hintergrund rechts oben */
  content: ""; position: absolute; z-index: 0;
  top: -22%; right: -14%; width: 720px; height: 720px;
  background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0 46px, rgba(91,62,150,.05) 46px 47px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 66%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 66%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 4.8vw, 4.3rem);
  letter-spacing: -0.035em; line-height: 1.04;
  margin: 1.4rem 0 0;
}
.hero__title .pair { display: inline-block; }
.hero__title .vi { color: var(--seal); }
.hero__title .arrow { color: var(--seal); font-weight: 600; padding: 0 .12em; }
.hero__lead { margin-top: 1.6rem; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.trust { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 2.2rem; }
.trust__item {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 100%;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.trust__item svg { width: 15px; height: 15px; color: var(--seal); flex: none; }

/* Hero-Artefakt: gestempelte beglaubigte Übersetzung */
.doc { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.doc__sheet {
  position: relative;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 1.9rem 1.8rem 2.2rem;
  transform: rotate(-1.4deg);
}
.doc__sheet::before { /* violette Kopflinie wie auf einer Urkunde */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--seal), #8a6fc7);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.doc__kicker { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--seal); }
.doc__heading { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin-top: .55rem; }
.doc__heading small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-faint); letter-spacing: .01em; margin-top: .15rem; }
.doc__lines { margin: 1.3rem 0 1.4rem; display: grid; gap: .55rem; }
.doc__lines span { height: 7px; border-radius: 99px; background: var(--line-soft); }
.doc__lines span:nth-child(1) { width: 92%; }
.doc__lines span:nth-child(2) { width: 78%; }
.doc__lines span:nth-child(3) { width: 85%; }
.doc__vermerk {
  border-top: 1px dashed var(--line);
  padding-top: 1.1rem;
}
.doc__vermerk .mono { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.doc__vermerk p { font-size: .82rem; line-height: 1.5; color: var(--ink-soft); margin-top: .4rem; }
.doc__sign { display: flex; align-items: flex-end; gap: .7rem; margin-top: 1.3rem; }
.doc__sigline { flex: 1; height: 1px; background: var(--ink); opacity: .35; margin-bottom: .35rem; }
.doc__signname { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em; color: var(--ink-soft); }
.doc__stamp {
  position: absolute; right: -26px; bottom: -26px;
  width: 116px; height: 116px;
  color: var(--seal);
  filter: drop-shadow(0 6px 14px rgba(67,43,115,.28));
  transform: rotate(-12deg);
  opacity: .96;
}
.doc__stamp .seal-mark { mix-blend-mode: multiply; }

/* ---------- Leistungen (editoriales Register) ---------- */
.register { border-top: 1.5px solid var(--ink); }
.register__row {
  display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 1rem 2.75rem;
  align-items: start;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.register__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -0.025em; }
.register__desc { color: var(--ink-soft); font-size: 1.04rem; max-width: 48ch; }
.register__meta {
  margin: 1rem 0 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  line-height: 1.85; color: var(--ink-faint);
}
.register__meta span:not(:last-child)::after { content: " · "; color: var(--seal); }

/* ---------- So funktioniert's (echte Sequenz → nummeriert) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 1.6rem; }
.step::before { /* fortlaufende Haarlinie oben */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--line);
}
.step:first-child::before { background: var(--seal); }
.step__no {
  font-family: var(--font-mono); font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; color: var(--seal);
}
.step h3 { font-size: 1.2rem; margin-top: 1rem; letter-spacing: -0.02em; }
.step p { margin-top: .6rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__portrait {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.4rem); }
.about p { margin-top: 1.1rem; color: var(--ink-soft); }
.about__name { margin-top: 1.4rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.facts dt, .facts .k {
  flex: none; width: 9.5rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); padding-top: .15rem;
}
.facts .v { font-size: .98rem; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer;
  padding: 1.25rem .25rem;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .sign {
  flex: none; width: 26px; height: 26px; position: relative;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .2s, background .2s;
}
.faq__item summary .sign::before,
.faq__item summary .sign::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--seal); transition: transform .2s, opacity .2s;
}
.faq__item summary .sign::before { width: 11px; height: 1.6px; }
.faq__item summary .sign::after  { width: 1.6px; height: 11px; }
.faq__item[open] summary .sign { background: var(--seal-tint); border-color: var(--seal); }
.faq__item[open] summary .sign::after { transform: rotate(90deg); opacity: 0; }
.faq__item summary:hover .sign { border-color: var(--seal); }
.faq__answer { padding: 0 .25rem 1.4rem; color: var(--ink-soft); max-width: 68ch; }
.faq__answer p + p { margin-top: .8rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.4rem); margin-top: 1rem; }
.contact__lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; }
.channels { display: grid; gap: .9rem; align-content: start; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .18s, transform .12s, box-shadow .18s;
}
.channel:hover { border-color: var(--seal); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.channel__ico {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--seal-tint); color: var(--seal-deep);
}
.channel__ico svg { width: 22px; height: 22px; }
.channel__k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.channel__v { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-top: .15rem; }

.contact__assure {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: 1.4rem; font-size: .9rem; color: var(--ink-soft);
}
.contact__assure svg { width: 18px; height: 18px; flex: none; color: var(--seal); margin-top: .12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcde0; padding-block: 3.5rem 2.5rem; }
.site-footer a { color: #cfcde0; }
.site-footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.footer__brand { max-width: 30ch; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #8d8aa8; }
.footer__brand p { margin-top: .9rem; font-size: .9rem; color: #908ead; }
.footer__brand .seal-mark { color: #8a6fc7; }
.footer__cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #8d8aa8; font-weight: 500; }
.footer__col ul { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.footer__col a { font-size: .92rem; }
.footer__bar {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center;
}
.footer__bar small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: #807da0; }
.footer__lang { display: inline-flex; gap: .6rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; }
.footer__lang a.is-active { color: #fff; font-weight: 600; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__wrap { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.legal .eyebrow { margin-bottom: .9rem; }
.legal h1 { font-size: clamp(1.8rem, 1rem + 2.4vw, 2.5rem); }
.legal__updated { margin-top: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-faint); }
.legal__body { margin-top: 2.4rem; }
.legal__body h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 .5rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.legal__body > h2:first-child { padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: 1rem; margin: 1.3rem 0 .25rem; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body p { margin-top: .55rem; }
.legal__body h2 + p, .legal__body h3 + p { margin-top: 0; }
.legal__body ul { margin: .6rem 0; padding-left: 1.2rem; }
.legal__body li { margin: .3rem 0; }
.legal__body address { font-style: normal; color: var(--ink); line-height: 1.7; }
.legal__body a { color: var(--seal); }
.legal__note {
  margin-top: .9rem; padding: .85rem 1.1rem;
  border: 1px solid var(--seal-tint); border-left: 3px solid var(--seal);
  border-radius: var(--r-sm); background: var(--seal-wash);
  font-size: .9rem; color: var(--seal-deep);
}

/* ---------- Scroll-Reveal (Progressive Enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* einmaliges "Stempeln" des Hero-Siegels */
@keyframes seal-press { 0% { opacity: 0; transform: rotate(-12deg) scale(1.25); } 55% { opacity: .96; } 100% { opacity: .96; transform: rotate(-12deg) scale(1); } }
.js .doc__stamp { animation: seal-press .8s cubic-bezier(.2,.8,.2,1) .25s both; }

/* ---------- Zugänglichkeit ---------- */
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: -9999px; top: .5rem; z-index: 300;
  background: var(--seal); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
}
.skip:focus { left: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .doc__stamp { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .doc { order: -1; margin-bottom: .5rem; max-width: 360px; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-side .btn--primary { display: none; } /* CTA steckt im Hero */
  .nav-toggle { display: grid; place-items: center; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper-pure); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem; box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav a { width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
  .steps { grid-template-columns: 1fr; }
  .register__row { grid-template-columns: 1fr; gap: .5rem; }
  .footer__top { flex-direction: column; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .facts li { flex-direction: column; gap: .2rem; }
  .facts dt, .facts .k { width: auto; }
}
