/* ============================================================
   "FÜR SIE" Zentralregulierung GmbH
   Quiet architectural minimalism — ivory, graphite, terracotta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper:        #FBF9F3;
  --ivory:        #F4F0E6;
  --ivory-2:      #ECE5D6;
  --graphite:     #23211C;
  --graphite-2:   #3B382F;
  --stone:        #8A8272;
  --stone-2:      #B4AD9C;
  --line:         #DAD3C4;
  --terracotta:   #B05C40;
  --terracotta-d: #8F4630;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'Courier New', monospace;

  --wrap: 1160px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--graphite);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(35,33,28,0.028) 1px, transparent 0);
  background-size: 4px 4px;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--terracotta); color: var(--paper); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--graphite); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { color: var(--graphite-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--terracotta);
  display: inline-block;
}

.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--graphite-2); line-height: 1.5; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,240,230,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.06rem; line-height: 1.05; letter-spacing: 0.01em; }
.brand-name span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--stone); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; color: var(--graphite-2);
  padding-block: 4px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--terracotta); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--graphite); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--graphite); padding: 0.6rem 1.1rem; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--graphite); color: var(--paper); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--graphite); margin: 3px auto; transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--graphite); background: var(--graphite); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s; text-align: center;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap); align-items: end; }
.hero h1 { margin: 1.4rem 0 1.6rem; max-width: 12ch; }
.hero .lead { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; border-radius: var(--radius); filter: saturate(0.92); }
.hero-figure .caption {
  position: absolute; left: 0; bottom: -1px; background: var(--paper);
  padding: 0.75rem 1.1rem; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; color: var(--stone); border: 1px solid var(--line); border-left: 3px solid var(--terracotta);
}

/* meta bar under hero */
.metabar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2rem,5vw,3.5rem); }
.metabar div { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.metabar div:last-child { border-right: 0; }
.metabar dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); }
.metabar dd { font-family: var(--serif); font-size: 1.6rem; margin-top: 0.4rem; }

/* ---------- generic section head ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { margin: 0.9rem 0 1rem; }

/* ---------- feature / process grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(35,33,28,0.4); }
.card .num { font-family: var(--mono); font-size: 0.74rem; color: var(--terracotta); letter-spacing: 0.1em; }
.card h3 { margin: 0.8rem 0 0.6rem; }
.card p { font-size: 0.96rem; }

/* asymmetric editorial split */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--gap); align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split img { width: 100%; height: clamp(320px, 40vw, 480px); object-fit: cover; border-radius: var(--radius); filter: saturate(0.9); }
.split .body h2 { margin-bottom: 1.1rem; }

/* ---------- settlement diagram (signature) ---------- */
.ledger { background: var(--graphite); color: var(--paper); border-radius: var(--radius); }
.ledger .eyebrow { color: var(--stone-2); }
.ledger .eyebrow::before { background: var(--stone-2); }
.ledger h2, .ledger h3 { color: var(--paper); }
.ledger p { color: var(--stone-2); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.flow-node { border: 1px solid rgba(244,240,230,0.22); border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center; background: rgba(244,240,230,0.03); }
.flow-node .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2); }
.flow-node .v { font-family: var(--serif); font-size: 1.15rem; margin-top: 0.4rem; }
.flow-node.center { border-color: var(--terracotta); background: rgba(176,92,64,0.16); }
.flow-arrow { color: var(--terracotta); font-size: 1.3rem; text-align: center; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--graphite); border-width: 1.5px; box-shadow: 0 20px 50px -34px rgba(35,33,28,0.55); }
.plan .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }
.plan h3 { margin: 0.5rem 0 0.4rem; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; margin: 0.8rem 0 0.2rem; }
.plan .price small { font-family: var(--mono); font-size: 0.72rem; color: var(--stone); letter-spacing: 0.06em; }
.plan .desc { font-size: 0.95rem; min-height: 3.2em; }
.plan ul { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.plan li { font-size: 0.92rem; padding-left: 1.5rem; position: relative; color: var(--graphite-2); }
.plan li::before { content: "§"; position: absolute; left: 0; color: var(--terracotta); font-family: var(--serif); }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }

.price-note { font-family: var(--mono); font-size: 0.78rem; color: var(--stone); margin-top: 1.6rem; text-align: center; }

/* pricing table (detailed) */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.ptable th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); background: var(--ivory-2); }
.ptable td:last-child { font-family: var(--mono); color: var(--graphite); white-space: nowrap; }
.ptable tr:last-child td { border-bottom: 0; }

/* ---------- steps / process ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step .idx { font-family: var(--mono); font-size: 0.9rem; color: var(--terracotta); }
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; max-width: 60ch; }

/* ---------- quote / testimonial ---------- */
.quote { max-width: 46ch; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--stone); font-style: normal; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terracotta); color: var(--paper); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(251,249,243,0.85); margin-top: 0.8rem; }
.cta-band .btn { background: var(--paper); color: var(--graphite); border-color: var(--paper); justify-self: end; }
.cta-band .btn:hover { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--graphite);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; width: 100%; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--graphite-2); }
.checkbox input { width: auto; margin-top: 3px; }
.form-status { font-family: var(--mono); font-size: 0.82rem; padding: 0.9rem 1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(176,92,64,0.1); border: 1px solid var(--terracotta); color: var(--terracotta-d); }

/* contact detail card */
.contact-detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-detail dl { display: grid; gap: 1.3rem; }
.contact-detail dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.contact-detail dd { font-size: 1rem; margin-top: 0.25rem; }
.contact-detail a:hover { color: var(--terracotta); }

/* ---------- legal / prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 0.7rem; }
.prose p, .prose li { color: var(--graphite-2); font-size: 1rem; margin-bottom: 0.9rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--graphite); }
.prose .updated { font-family: var(--mono); font-size: 0.76rem; color: var(--stone); letter-spacing: 0.08em; }

.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1.2rem; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--ivory); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer .brand-name { color: var(--ivory); }
.site-footer .brand-name span { color: var(--stone-2); }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-2); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(244,240,230,0.78); transition: color .2s; }
.footer-col a:hover { color: var(--terracotta); }
.footer-col address { font-style: normal; font-size: 0.9rem; color: rgba(244,240,230,0.78); line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,240,230,0.14); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--stone-2); }
.bafin { display: inline-flex; align-items: center; gap: 0.5rem; }
.bafin b { color: var(--ivory); font-weight: 500; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.2rem;
  width: min(680px, calc(100% - 2rem)); z-index: 100;
  background: var(--paper); border: 1px solid var(--graphite); border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(35,33,28,0.6);
  padding: 1.5rem 1.6rem; display: none;
}
.cookie.show { display: block; animation: slideUp .4s ease; }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.cookie p { font-size: 0.88rem; color: var(--graphite-2); }
.cookie p a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.cookie-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.72rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .split, .split.reverse, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    padding: 5.5rem 2rem 2rem; transform: translateX(100%); transition: transform .3s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 60; }
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .metabar { grid-template-columns: 1fr 1fr; }
  .metabar div:nth-child(2) { border-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .metabar div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .metabar { grid-template-columns: 1fr; }
  .metabar div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metabar div:last-child { border-bottom: 0; }
}

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

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
