/* procil.ch: gemeinsames Layout der Unterseiten. Farben wie die Startseite (vor O2), Schrift lokal. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Outfit-var.woff2') format('woff2');
}
:root {
  --brand: #2AA07D;
  --brand-deep: #1a4535;
  --brand-soft: #A8E6C8;
  --ink: #14241d;
  --muted: #5c7167;
  --line: #e3efe9;
  --card: #ffffff;
  --paper: #eef9f3;
  --warn-bg: #fff7ec;
  --warn-ink: #854F0B;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; border-radius: 4px; }

.kopf, main, footer { max-width: 820px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.kopf { padding-top: 24px; padding-bottom: 8px; }
.marke { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand-deep); font-weight: 700; font-size: 28px; letter-spacing: -0.01em; }
.marke img { height: 1.42em; width: auto; margin-right: -0.30em; } /* wie die Wortmarke der Startseite */

main { padding-bottom: 40px; }
h1 { color: var(--brand-deep); font-size: 30px; line-height: 1.2; margin: 24px 0 8px; }
h2 { color: var(--brand-deep); font-size: 20px; margin: 32px 0 8px; }
.stand { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.inhalt { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }

[data-platzhalter] { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 16px; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; }
.karte h2 { margin: 0 0 6px; font-size: 20px; }
.karte p { margin: 0 0 16px; flex: 1; }
.knopf { display: inline-block; text-align: center; text-decoration: none; font-weight: 600; background: var(--brand-deep); color: #fff; border-radius: 10px; padding: 10px 16px; }

footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer p { margin: 6px 0; }

/* Sprachwahl (nur /trainer), Form wie auf der Startseite; aktiver Knopf dunkel für genug Kontrast */
.kopf--sprachen { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang { display: flex; gap: 2px; background: #f1f8f4; border: 1px solid var(--line); border-radius: 20px; padding: 3px; }
.lang button { border: none; background: transparent; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); padding: 5px 11px; border-radius: 16px; cursor: pointer; }
.lang button.active { background: var(--brand-deep); color: #fff; }
.lang button:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

/* Rechtstexte (/imp, /dat, /agb, /liz): Tabellen, Listen, Zitate */
.rechtstext h2 { font-size: 19px; margin: 28px 0 8px; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { font-size: 16px; color: var(--brand-deep); margin: 20px 0 6px; }
.rechtstext p, .rechtstext li { margin: 0 0 10px; }
.rechtstext ul, .rechtstext ol { padding-left: 22px; margin: 0 0 12px; }
.rechtstext blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--brand-soft); background: var(--paper); border-radius: 8px; }
.rechtstext blockquote p { margin: 0; }
.rechtstext a { overflow-wrap: anywhere; }
.tabelle { overflow-x: auto; margin: 12px 0 16px; }
.tabelle table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.tabelle th, .tabelle td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tabelle th { background: var(--paper); color: var(--brand-deep); }
