/* ==========================================================================
   FRYA — myfrya.de
   Design-Sprache: „Warme Präzision"
   Hell, papierartig, vertrauenserweckend. Serifen-Kopf (Fraunces),
   sachlicher Text (Instrument Sans), Mono für Zahlen & Belege.
   Einziger scharfer Akzent: FRYA-Orange #E87830.
   Fonts: lokal gehostet (DSGVO). Keine externen Requests.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-v38-latin_latin-ext-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-v38-latin_latin-ext-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-v38-latin_latin-ext-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono-v13-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono-v13-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Papier & Tinte */
  --paper:        #FBF8F2;
  --paper-raise:  #FFFFFF;
  --paper-deep:   #F4EEE3;
  --ink:          #26221B;
  --ink-soft:     #6B6355;
  --ink-faint:    #6E6759;   /* dunkel genug für Kleintext (WCAG AA) */
  --ink-deco:     #98907F;   /* NUR dekorativ (Typing-Dots, Linien), kein Text */
  --line:         #E6DECF;
  --line-strong:  #D6CCB8;

  /* FRYA-Orange */
  --orange:       #E87830;
  --orange-deep:  #C55F1A;
  --orange-text:  #A84F12;   /* für Kleintext auf Papier: >= 4,5:1 (WCAG AA) */
  --orange-tint:  #FBE9DB;
  --orange-ghost: #FDF4EC;

  /* Semantik */
  --green:        #3E7A52;
  --green-tint:   #E4F0E7;

  /* Typo */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Spline Sans Mono', 'Consolas', monospace;

  /* Layout */
  --container:    1120px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-card:  0 1px 2px rgba(38,34,27,.05), 0 12px 32px -12px rgba(38,34,27,.14);
  --shadow-pop:   0 2px 4px rgba(38,34,27,.06), 0 24px 56px -16px rgba(38,34,27,.22);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Kein CSS smooth-scroll — Anker-Scroll macht main.js (robuster, respektiert reduced-motion) */
[id] { scroll-margin-top: 90px; } /* Sticky-Header (68px) + Puffer */
:focus-visible {
  outline: 2.5px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--orange-tint); color: var(--ink); }

/* Papier-Textur: feinstes Korn, rein CSS — bewusst ohne mix-blend-mode/fixed-Overlay,
   damit das Compositing auch auf schwachen Geräten billig bleibt */
/* Bewusst KEIN Korn-Overlay: ein 3px-Muster über die volle Seite friert
   schwache Renderer ein (getestet). Papierton + Hairlines genügen. */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.7; }

.accent-i { font-style: italic; color: var(--orange-deep); }

/* Orange Marker-Unterstreichung für das Schlüsselwort — umbruchfähig
   (background statt ::after, damit mehrzeilige Phrasen sauber markiert werden) */
.mark-swash {
  background-image: linear-gradient(to top, rgba(232,120,48,.34) .16em, transparent .16em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
  margin: 0 -.06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1em 1.55em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: var(--ink); /* Ink auf Orange ≈ 5,3:1 (WCAG AA) — Weiß wäre nur 2,9:1 */
  box-shadow: 0 2px 0 rgba(38,34,27,.08), 0 10px 24px -10px rgba(232,120,48,.65);
}
.btn-primary:hover { background: #DC6E24; box-shadow: 0 2px 0 rgba(38,34,27,.08), 0 14px 28px -10px rgba(232,120,48,.75); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Login-Strip (Verweis auf die App) ---------- */
.login-strip {
  display: block;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  font-size: .84rem;
  padding: .6em 16px;
  line-height: 1.4;
}
.login-strip b { color: var(--orange); font-weight: 600; white-space: nowrap; }
.login-strip:hover b { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper); /* opak — kein Geistertext beim Scrollen */
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo .dot { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .12s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { padding: .7em 1.2em; font-size: .92rem; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
  position: relative;
  overflow: clip;
}
/* Hauptbuch-Linien im Hero-Hintergrund, rechts auslaufend */
.hero::after {
  content: '';
  position: absolute;
  right: -140px; top: 40px;
  width: 560px; height: 78%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 34px,
    var(--line) 34px 35px
  );
  mask-image: linear-gradient(to left, rgba(0,0,0,.5), transparent 85%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.5), transparent 85%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}
.hero-copy > * + * { margin-top: 26px; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero-proof span { display: inline-flex; align-items: center; gap: .5em; }
.hero-proof .tick { color: var(--green); font-weight: 700; }

/* Beleg-Karte im Hero */
.hero-visual { position: relative; }
.receipt-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 26px 26px 20px;
  max-width: 400px;
  margin-left: auto;
  transform: rotate(1.6deg);
  position: relative;
}
/* Perforierte Belegkante oben */
.receipt-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 18px; right: 18px;
  height: 0;
  border-top: 2px dashed var(--line-strong);
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.receipt-rows { border-top: 1px solid var(--line); }
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.receipt-row .k { color: var(--ink-soft); }
.receipt-row .v { font-family: var(--font-mono); font-size: .88rem; }
.receipt-row .v.strong { font-weight: 500; color: var(--ink); }
.receipt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* Stempel „VERBUCHT" */
.stamp {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: .45em .8em;
  transform: rotate(-7deg);
  opacity: .92;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(62,122,82,.06), transparent 60%);
}
.hero .stamp {
  position: absolute;
  right: 18px; bottom: 44px;
  animation: stampIn .5s cubic-bezier(.2, 1.6, .4, 1) .9s both;
}
@keyframes stampIn {
  0%   { transform: rotate(-7deg) scale(2.4); opacity: 0; }
  100% { transform: rotate(-7deg) scale(1);   opacity: .92; }
}

/* kleines Frya-Badge an der Belegkarte */
.receipt-frya {
  position: absolute;
  left: -16px; bottom: -14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: .92rem;
  padding: .5em .95em;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transform: rotate(-3deg);
}
.receipt-frya .dot { color: var(--orange); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > * + * { margin-top: 18px; }
.section-head .lede { margin-top: 14px; }

/* ---------- „So arbeitet Frya" – Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--orange-text);
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step .step-ico { margin-bottom: 18px; }
.steps-note {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 3px solid var(--orange);
  background: var(--orange-ghost);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  max-width: 720px;
}
.steps-note strong { color: var(--ink); }

/* ---------- Chat-Demo ---------- */
.chat-shell {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.chat-bar .who { line-height: 1.25; }
.chat-bar .who b { font-size: .95rem; display: block; }
.chat-bar .who span {
  font-size: .78rem;
  color: var(--green);
  display: inline-flex; align-items: center; gap: .4em;
}
.chat-bar .who span::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.chat-bar .demo-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: .4em .7em;
  border-radius: 999px;
}
.chat-log {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 460px;      /* feste Höhe: kein Layout-Shift, internes Scrollen */
  overflow-y: auto;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .95rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  animation: msgIn .38s ease forwards;
}
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 5px;
}
.msg-frya {
  align-self: flex-start;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.msg-file {
  align-self: flex-end;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper-raise);
  border: 1.5px dashed var(--line-strong);
  color: var(--ink);
}
.msg-file .fico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--orange-tint);
  display: grid; place-items: center;
  color: var(--orange-deep);
  flex: none;
}
.msg-file small { display: block; color: var(--ink-faint); font-family: var(--font-mono); font-size: .74rem; }
.msg-plan { padding: 0; overflow: hidden; max-width: 92%; }
.plan-block { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.plan-block:last-child { border-bottom: 0; }
.plan-block .pb-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: block;
  margin-bottom: 4px;
}
.plan-block p { font-size: .92rem; }
.plan-block .num { font-family: var(--font-mono); font-size: .86rem; }
.msg-actions {
  align-self: flex-start;
  display: flex; gap: 10px;
  opacity: 0;
  animation: msgIn .38s ease forwards;
}
.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  padding: .6em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raise);
  cursor: pointer;
  transition: all .14s ease;
}
.chip-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.chip:not(.chip-primary):hover { border-color: var(--ink); }
.msg-booked {
  align-self: flex-start;
  background: var(--green-tint);
  border: 1px solid #C5DCCB; /* Fallback für Browser ohne color-mix */
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--ink);
}
.msg-booked .bk-head {
  display: flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--green);
  margin-bottom: 4px;
}
.msg-booked small { color: var(--ink-soft); font-family: var(--font-mono); font-size: .78rem; }
.typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px;
  padding: 14px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-deco);
  animation: blink 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .35; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }
.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: .8rem;
  color: var(--ink-faint);
}
.chat-foot button {
  font: inherit;
  font-weight: 600;
  color: var(--orange-text);
  background: none; border: 0; cursor: pointer;
  padding: .3em .2em;
}
.chat-foot button:hover { text-decoration: underline; }

/* ---------- Trust-Teaser ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-card .t-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange-ghost);
  color: var(--orange-deep);
  display: grid; place-items: center;
}
.trust-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.trust-card p { color: var(--ink-soft); font-size: .92rem; }
.trust-more { margin-top: 34px; }
.link-arrow {
  font-weight: 600;
  color: var(--orange-text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .45em;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- CTA / Alpha ---------- */
.cta-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 110%, rgba(232,120,48,.28), transparent 65%),
    radial-gradient(400px 240px at 8% -20%, rgba(232,120,48,.14), transparent 60%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta-panel .lede { color: rgba(251,248,242,.78); max-width: 52ch; margin: 18px auto 0; }
.cta-panel .hero-ctas { justify-content: center; margin-top: 32px; }
.cta-panel .btn-ghost { color: var(--paper); border-color: rgba(251,248,242,.35); }
.cta-panel .btn-ghost:hover { border-color: var(--paper); }
.cta-note { margin-top: 20px; font-size: .85rem; color: rgba(251,248,242,.6); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 48px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .logo { font-size: 1.2rem; }
.footer-brand p { margin-top: 8px; max-width: 34ch; font-size: .88rem; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-privacy {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .82rem;
  color: var(--ink-faint);
}
.footer-privacy span { display: inline-flex; align-items: center; gap: .45em; }

/* ---------- Trust-Seite ---------- */
.trust-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.trust-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.trust-hero h1 { max-width: 18ch; }
.trust-hero .lede { max-width: 56ch; margin-top: 24px; }
.trust-hero-fig svg { width: 100%; max-width: 380px; margin-left: auto; display: block; }
@media (max-width: 960px) {
  .trust-hero .container { grid-template-columns: 1fr; }
  .trust-hero-fig { display: none; } /* rein dekorativ */
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
}
.pillar:first-of-type { border-top: 0; }
.pillar.rev .pillar-fig { order: 2; }
.pillar-copy > * + * { margin-top: 16px; }
.pillar-copy h2 { max-width: 16ch; }
.pillar-copy p { color: var(--ink-soft); max-width: 52ch; }
.pillar-copy .tech-note {
  font-size: .88rem;
  font-family: var(--font-mono);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.pillar-fig {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  place-items: center;
}
.pillar-fig svg { width: 100%; max-width: 460px; height: auto; }
.fig-caption {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--ink-faint);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* Ehrlichkeits-Box */
.honesty {
  background: var(--paper-raise);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin: clamp(40px, 6vw, 64px) 0 0;
}
.honesty h2 { font-size: 1.5rem; }
.honesty > p { color: var(--ink-soft); margin-top: 12px; max-width: 66ch; }
.honesty ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.honesty li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.honesty li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--orange-deep);
  font-weight: 600;
}
.honesty li strong { color: var(--ink); }

/* ---------- Scroll-Reveal ----------
   Nur versteckt, wenn JS läuft (html.js wird per Inline-Einzeiler im <head>
   gesetzt) — ohne JS ist die komplette Seite sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion-Reduktion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .receipt-card { margin: 0 auto; max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 1fr; }
  .pillar.rev .pillar-fig { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    background: none; border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: .5em .8em;
    font: inherit; font-weight: 600; font-size: .88rem;
    cursor: pointer;
  }
  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 24px;
    gap: 18px;
  }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .chat-log { height: 420px; }
}

/* ==========================================================================
   Bewerbungsformular (bewerbung.html) — „Warme Präzision", Beleg-Anmutung
   ========================================================================== */
.form-section { padding-top: clamp(40px, 6vw, 72px); }
.form-wrap { max-width: 640px; }

.form-intro { margin-bottom: clamp(28px, 4vw, 40px); }
.form-intro > * + * { margin-top: 18px; }
.form-intro h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); max-width: 15ch; }
.form-intro .lede { max-width: 54ch; }

.form-hint {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: var(--orange-ghost);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.form-hint strong { color: var(--ink); }

/* Belegkarte als Formular-Träger */
.form-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
/* perforierte Belegkante oben — greift das Hero-Beleg-Motiv auf */
.form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 22px; right: 22px;
  border-top: 2px dashed var(--line-strong);
}

.field { margin-bottom: 20px; }
.field > label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .req { color: var(--orange-text); font-weight: 700; }
.field .opt { color: var(--ink-faint); font-weight: 400; font-size: .88rem; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .8em 1em;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
/* Platzhalter WCAG-AA-tauglich (>= 4,5:1) — ink-deco waere nur ~3:1 */
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.field input[type="text"]:hover,
.field input[type="email"]:hover,
.field textarea:hover { border-color: var(--ink-soft); }
/* Fokus-Override NUR fuer Textfelder — Checkbox/andere behalten den globalen
   :focus-visible-Ring (WCAG 2.4.7) */
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--paper-raise);
  box-shadow: 0 0 0 3px rgba(232,120,48,.30);
}
/* rote Markierung erst nach Interaktion (kein „Fehler beim Laden") */
.field input:not(:placeholder-shown):invalid,
.field input:focus:invalid {
  border-color: var(--orange-deep);
}

/* Consent-Zeile */
.field-consent { margin-top: 4px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: .95rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.55;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.consent input[type="checkbox"]:focus-visible {
  outline: 2.5px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.consent a { color: var(--orange-text); text-decoration: underline; }
.consent a:hover { color: var(--orange-deep); }

/* Honeypot — für Menschen unsichtbar, aber nicht display:none (Bots meiden das) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto; width: 1px; height: 1px;
  overflow: hidden;
}

/* Status-Zeile (Fehler/Info) */
.form-status { font-size: .95rem; }
.form-status.is-error {
  margin: 4px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #FBEBE4;
  border: 1px solid #E7B9A2;
  color: #8A3A12;
}
.form-status.is-info { margin: 4px 0 18px; color: var(--ink-soft); }

.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-mini {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-faint);
  text-align: center;
}

/* Siegel — „Eingegangen" (greift den VERBUCHT-Stempel auf) */
.form-seal {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: .45em .85em;
  transform: rotate(-3deg);
}
.form-seal-ok { color: var(--green); border-color: var(--green); }

/* Erfolgs-Panel */
.form-success {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
}
.form-success > * + * { margin-top: 16px; }
.form-success h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; max-width: 18ch; margin-left: auto; margin-right: auto; }
.form-success p { color: var(--ink-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }
.form-success .btn { margin-top: 26px; }

@media (max-width: 640px) {
  .form-actions .btn { width: 100%; }
}
