/* beratung.bacsol.ch — Component-Add-On über der Wiki-Shell (css/main.css,
   Welt-Klasse html.beratung = Leder-Hintergrund). Definiert NUR, was die
   Wiki-Basis nicht kennt: Kicker, Lede, Punkte-Liste, Vordruck-Formular,
   Platzhalter-Kennzeichnung, CTA-Abschnitt. Kein JS, keine Schatten. */

.kicker {
  font-family: var(--sans);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 .55rem; text-wrap: balance;
}
p.lede {
  font-size: 1.18rem; line-height: 1.45; font-style: italic; color: var(--ink-mid);
  margin: 0 0 1.2rem; text-wrap: pretty;
}
/* Kapitel-Index auf langen Seiten (beratung) */
p.chapter-index {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .02em;
  margin: -.4rem 0 1.6rem; color: var(--ink-mid);
}
p.chapter-index a { color: var(--ink); }
/* Fliesstext-Mass: NICHT gesetzt (Brüder-Entscheid 09.09. = volle Kartenbreite), Owner-Option siehe Notes */
/* Zeilenende-Witwen aus dem Fliesstext nehmen (Unterstützung ist progressiv) */
main p { text-wrap: pretty; }
main h1 { text-wrap: balance; }

/* Docket-Tabellen: wiki-eigene table-Styles reichen; nur Spaltenmasse + Ziffern.
   p-Zeile in td ohne eigenen Absatz-Weissraum (sonst bläht es die Zehe auf) */
table.docket { table-layout: fixed; }
table.docket td p { margin: 0; }
col.k { width: 5.5rem; } col.p { width: 11rem; } col.f { width: 12.5rem; }
table.docket td { overflow-wrap: break-word; }
@media (max-width: 640px) {
  col.k { width: 4.2rem; } col.p { width: auto; } col.f { width: auto; }
  table.docket { font-size: .9rem; }
  table.docket { display: block; overflow-x: auto; }
}
table.docket td.k { color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.fee { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 640px) { .fee { white-space: normal; } }
table.docket caption {
  caption-side: top; text-align: left; padding: 0 0 .4rem;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-text);
}

/* nummerierte Take-aways (01/02/…) — wie Vorgehen im Wiki-Stil */
ol.points { list-style: none; counter-reset: pt; margin: 1rem 0; padding: 0; }
ol.points > li {
  counter-increment: pt; border-bottom: 1px solid var(--border);
  padding: .55rem 0 .55rem 2.6rem; position: relative;
}
ol.points > li:first-child { border-top: 1px solid var(--border); }
ol.points > li::before {
  content: counter(pt, decimal-leading-zero);
  position: absolute; left: .2rem; top: .62rem;
  font-family: var(--sans); font-size: .82rem; color: var(--gold-text);
  font-variant-numeric: tabular-nums lining-nums;
}

/* Schreibfeld-Vordruck im Kontakt */
form.field { margin: 1.2rem 0 0; }
form.field .row { margin-bottom: 1.1rem; }
form.field label {
  display: block; font-family: var(--sans); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 .3rem;
}
form.field input, form.field textarea, form.field select {
  display: block; width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--bund); border-radius: 0;
  padding: 8px 10px; min-height: 44px;
}
form.field select { appearance: auto; }
.form-legend { font-family: var(--sans); font-size: .78rem; color: var(--text-muted); margin: 0 0 1rem; }
.check-row { margin-bottom: 1.1rem; }
form.field label.check {
  display: flex; align-items: flex-start; gap: .5rem; text-transform: none;
  letter-spacing: 0; font-size: .95rem; color: var(--ink); margin: 0;
}
form.field label.check input { width: auto; min-height: 24px; margin-top: 2px; flex: 0 0 auto; }
form.field textarea { min-height: 7rem; resize: vertical; }
form.field input:focus, form.field textarea:focus { outline: 2px solid var(--gold-line); outline-offset: 1px; }
form.field button {
  font-family: var(--sans); font-size: .95rem; letter-spacing: .04em;
  min-height: 44px; border: 1px solid var(--ink); background: #fff;
  color: var(--ink); border-radius: 0; cursor: pointer; padding: 8px 16px;
}
form.field button:hover {
  background: var(--tint, #f2f1ee);
}
.consent { font-family: var(--sans); font-size: .78rem; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; }

/* CTA-Abschnitt am Seitenende — nur Schlüssellinie, kein Kasten */
.section-cta { margin-top: 2.4rem; border-top: 3px double var(--gold-line); padding-top: .4rem; }
/* die doppelte Schlüssellinie trägt den Abschnitt, der Titel braucht keine zweite */
.section-cta h2 { margin-top: 1rem; border-bottom: 0; padding-bottom: 0; }
/* Primär-CTA als Outline-Button (Kanon 28.09., Owner 17:06: Full-Ink zu hart):
   weisses Feld, Tinten-Rand, Tinten-Text, hover = Tint-Feld. secondary bleibt Textlink */
main a.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem;
  letter-spacing: .04em; background: #fff; color: var(--ink);
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0;
  padding: .65rem 1.25rem; min-height: 44px;
}
main a.btn:hover { background: var(--tint); border-color: var(--ink); }
/* Goldregeln laufen nie unter dem schwimmenden Porträt durch */
main h2 { clear: right; }
/* Beweis-Kachel (electioninfo-Screenshot) — Buchplatte, keine Deko */
figure.beleg { margin: 1.8rem 0 2rem; }
figure.beleg img { display: block; width: 100%; height: auto; border: 1px solid var(--gold-line); }
figure.beleg figcaption {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .04em;
  color: var(--text-muted); margin-top: .5rem;
}

/* Porträt auf der Person-Seite: rechtsbündig auf dem Track, goldene Keyline wie im Feld */
figure.portrait { float: right; margin: .1rem 0 1.1rem 1.8rem; width: min(260px, 34%); }
figure.portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--gold-line); }
figure.portrait figcaption { font-family: var(--sans); font-size: .72rem; color: var(--text-muted); padding-top: .3rem; }
@media (max-width: 640px) {
  figure.portrait { float: none; width: min(260px, 70%); margin: 0 auto 1rem; }
}
@media print { figure.portrait { float: none; } }

/* Punchline-Band (Kanon 28.09., Variante C): Box exakt in Textspaltenbreite,
   NICHT edge-to-edge, Rand im Kartenpolster. Feld = #f2f1ee, Text normale
   Serif-Tinte, keine Sonder-Typografie. */
.band-tint {
  background: #f2f1ee;
  margin: 1.4rem 0;
  padding: 1.15rem 1.4rem;
}
.band-tint p {
  font-family: var(--serif); font-style: normal; color: #16191c;
  margin: 0;
}

/* Platzhalter-Kennzeichnung: gedämpft, Signalrot gehört Fristen und Ziffern */
em.ph {
  font-family: var(--sans); font-style: normal; font-size: .72rem;
  color: var(--text-muted); letter-spacing: .05em;
}

.note { font-family: var(--sans); font-size: .8rem; color: var(--text-muted); }

/* Beispielbilder (temporär): Hero direkt unter dem Header, Cluster-Bilder als Kasten */
html.beratung .hero-img { margin: calc(-1 * var(--card-pad, 1.5rem)) calc(50% - 50vw) 1.2rem; max-width: 100vw; }
html.beratung .hero-img img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; display: block; }
html.beratung .hero-img figcaption,
html.beratung .cluster-img figcaption { font-size: 0.78rem; color: #6a6f74; padding: 0.4rem 0 0; }
html.beratung .cluster-img { margin: 1.4rem 0; }
html.beratung .cluster-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid #d8d6d0; }
@media (max-width: 720px) {
  html.beratung .hero-img img { height: 200px; }
}

/* Subhero-Band direkt unter dem Header (erne-Muster, Beispielbilder temporär) */
html.beratung .subhero { position: relative; overflow: hidden; background: #001028; width: 100vw; margin-left: calc(50% - 50vw); }
html.beratung .subhero-track { position: relative; height: clamp(220px, 34vw, 420px); }
html.beratung .subhero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: block; }
html.beratung .subhero-slide.on { opacity: 1; }
html.beratung .subhero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.beratung .subhero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.5rem 1.1rem; color: #fff; font-family: var(--sans); font-size: .95rem; background: linear-gradient(to top, rgba(0,16,40,.72), transparent); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
html.beratung .subhero-btn { border: 1px solid #fff; padding: .3rem .8rem; font-size: .8rem; white-space: nowrap; }
html.beratung .subhero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255,255,255,.85); background: rgba(0,16,40,.35); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
html.beratung .subhero-nav.prev { left: .8rem; }
html.beratung .subhero-nav.next { right: .8rem; }
@media (max-width: 720px) { html.beratung .subhero-track { height: 200px; } html.beratung .subhero-cap { font-size: .8rem; padding: 1.6rem .9rem .7rem; } }

/* Formular-Rückmeldung nach POST (Handler), Kanon 28.09.: neutrale Flächen, Tinte, Hairline */
html.beratung .form-alert { background: #f2f1ee; border-left: 3px solid #c98a32; padding: .9rem 1.2rem; margin: 0 0 1.2rem; }
html.beratung .form-alert p { margin: 0 0 .4rem; }
html.beratung .form-alert ul { margin: 0; padding-left: 1.2rem; }


/* Owner-Entscheid 16.10.: Georgia als Hausschrift */
html.beratung body { font-family: Georgia, 'Times New Roman', 'Liberation Serif', serif; }
html.beratung h1, html.beratung h2, html.beratung h3,
html.beratung .lede, html.beratung .kicker,
html.beratung table caption, html.beratung strong { font-family: Georgia, 'Times New Roman', 'Liberation Serif', serif; }
html.beratung .btld, html.beratung .foot-brand { font-family: Georgia, 'Times New Roman', 'Liberation Serif', serif; letter-spacing: 0.04em; }


/* Owner-Entscheid 16.11.: Fliesstext in Blocksatz (wie Word 'Justify'), mit Silbentrennung.
   Ausnahmen: Tabellenzellen, Fehlerboxen, Chrome — bleiben linksbuendig. */
html.beratung main p,
html.beratung ol.points > li {
  text-align: justify;
  hyphens: auto;
}
html.beratung table.docket td p,
html.beratung .form-alert p { text-align: left; }
