/* ------------------------------------------------------------------
   Kartenlegen Zürich — Stylesheet
   Farbsystem abgeleitet vom klassischen Kartenspiel: Kartenrot und
   Schwarz auf Papier. Rot wird nur als Akzent eingesetzt, wie die
   roten Farben im Deck.
   ------------------------------------------------------------------ */

:root {
  --paper:      #F8F7F4;
  --surface:    #FFFFFF;
  --surface-2:  #EFEDE8;
  --ink:        #1A1A1C;
  --ink-2:      #4A4845;
  --ink-3:      #79766F;
  --rule:       #DEDAD2;
  --rule-2:     #B9B4AA;
  --red:        #A81228;
  --red-ink:    #8E0F22;
  --red-bg:     #F7EAEC;

  --measure: 62ch;

  --s-1:  clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --s0:   clamp(1.02rem, 0.99rem + 0.16vw, 1.12rem);
  --s1:   clamp(1.22rem, 1.15rem + 0.34vw, 1.44rem);
  --s2:   clamp(1.5rem, 1.34rem + 0.78vw, 2.05rem);
  --s3:   clamp(2rem, 1.68rem + 1.55vw, 3.1rem);
  --s4:   clamp(2.5rem, 1.9rem + 2.9vw, 4.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #16151A;
    --surface:   #1E1D23;
    --surface-2: #26252C;
    --ink:       #EDEAE4;
    --ink-2:     #BAB5AC;
    --ink-3:     #8B867D;
    --rule:      #322F38;
    --rule-2:    #4B4753;
    --red:       #E8697F;
    --red-ink:   #F08D9E;
    --red-bg:    #2A151B;
  }
}

:root[data-theme="dark"] {
  --paper:     #16151A;
  --surface:   #1E1D23;
  --surface-2: #26252C;
  --ink:       #EDEAE4;
  --ink-2:     #BAB5AC;
  --ink-3:     #8B867D;
  --rule:      #322F38;
  --rule-2:    #4B4753;
  --red:       #E8697F;
  --red-ink:   #F08D9E;
  --red-bg:    #2A151B;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--s0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  text-wrap: balance;
  letter-spacing: -0.012em;
  margin: 0;
}

h1 { font-size: var(--s3); line-height: 1.08; }
h2 { font-size: var(--s2); line-height: 1.16; }
h3 { font-size: var(--s1); line-height: 1.3; }

p, li { margin: 0; max-width: var(--measure); }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 700; }

/* ---------- Kopf / Navigation ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.topbar-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 0.5rem + 2.2vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}
.brand .logomark { flex: 0 0 auto; display: block; }
.brand-name { display: block; line-height: 1.03; }
.brand-name br { line-height: 0; }
@media (max-width: 30rem) {
  .brand { font-size: 1.05rem; gap: 0.5rem; }
  .brand .logomark { width: 38px; height: 38px; }
}
.brand .pip { color: var(--red); font-size: 0.9em; }

nav.main ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
nav.main a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- Grundlayout ---------- */

main {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2rem, 1.2rem + 3.5vw, 4.5rem) clamp(1rem, 0.5rem + 2.2vw, 2.5rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

section { display: flex; flex-direction: column; gap: 1.15rem; }
.narrow { max-width: var(--measure); }

ul.list, ol.list {
  margin: 0; padding-left: 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
ul.plain { list-style: none; padding: 0; }

/* ---------- Hero ---------- */

.hero { display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-size: var(--s4); max-width: 18ch; }
.hero .lede {
  font-size: var(--s1);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.5;
}

.suits {
  display: flex; gap: 0.55rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-3);
}
.suits .r { color: var(--red); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-block;
  font-family: Karla, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.72rem 1.4rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Karten / Raster ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
}
.grid.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 46rem) { .grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { font-size: var(--s1); }
.card .pip { color: var(--red); font-size: 1.1rem; line-height: 1; }
.card p, .card li { max-width: none; }

/* ---------- Hinweisblöcke ---------- */

.note {
  border-left: 3px solid var(--red);
  background: var(--red-bg);
  padding: 1.1rem 1.3rem;
  border-radius: 0 3px 3px 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.note p, .note li { max-width: none; }
.note .h {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.quiet {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  border-radius: 3px;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.quiet p, .quiet li { max-width: none; }

/* ---------- Preistabelle ---------- */

.pricetable { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-radius: 3px; background: var(--surface); overflow: hidden; }
.pricerow {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  justify-content: space-between; align-items: baseline;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.pricerow:last-child { border-bottom: none; }
.pricerow .what { font-weight: 700; }
.pricerow .sub { color: var(--ink-3); font-size: 0.92rem; display: block; font-weight: 400; }
.pricerow .amt {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Definitionsliste ---------- */

dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.4rem; }
dl.facts dt { font-weight: 700; color: var(--ink-2); }
dl.facts dd { margin: 0; }
@media (max-width: 32rem) {
  dl.facts { grid-template-columns: 1fr; gap: 0.15rem; }
  dl.facts dd { margin-bottom: 0.6rem; }
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.5rem; }
.legal section { gap: 0.7rem; }
.legal h2 { font-size: var(--s1); }
.legal p, .legal li { font-size: 0.97rem; }

/* ---------- Trennzeichen ---------- */

.divider {
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--rule-2);
  font-size: 0.95rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.divider .r { color: var(--red); opacity: 0.65; }

/* ---------- Fuss ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  margin-top: 2rem;
}
.foot-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2rem, 1.4rem + 2vw, 3rem) clamp(1rem, 0.5rem + 2.2vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.8rem 2.5rem;
}
.foot-inner h4 {
  font-family: Karla, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.foot-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.foot-inner a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.foot-inner a:hover { color: var(--red); text-decoration: underline; }
.foot-inner p { font-size: 0.9rem; color: var(--ink-3); max-width: none; }

.foot-legal {
  border-top: 1px solid var(--rule);
  padding: 1rem clamp(1rem, 0.5rem + 2.2vw, 2.5rem);
  max-width: 74rem;
  margin: 0 auto;
}
.foot-legal p { font-size: 0.85rem; color: var(--ink-3); max-width: none; }

/* ---------- Formular (Anmeldung) ---------- */

.form-field {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1rem;
}
.form-field label { font-weight: 700; font-size: 0.92rem; }
.writeline {
  border-bottom: 1px solid var(--rule-2);
  height: 1.9rem;
}
.checkline {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin-bottom: 0.8rem;
}
.checkbox {
  flex: none;
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid var(--ink-2);
  border-radius: 2px;
  margin-top: 0.28rem;
}
.checkline p { font-size: 0.95rem; max-width: none; }

.signrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media print {
  .topbar, footer.site, .foot-legal, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  main { padding: 0; gap: 1.2rem; max-width: none; }
  .note { background: #fff; border-left: 2px solid #000; }
  a { color: #000; text-decoration: none; }
}


/* ── header brand: two-row wordmark + larger suit mark (21.08.2026) ── */
.topbar-inner { align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;      /* logo vertically centred against BOTH text rows */
  gap: 0.55rem;
  line-height: 1.12;
}
.brand .logomark { flex: 0 0 auto; display: block; }
.brand-name { display: block; line-height: 1.12; }
@media (max-width: 30rem) {
  .brand { font-size: 1.05rem; gap: 0.45rem; }
  .brand .logomark { width: 46px; height: 46px; }
}
