/* MASCHERA — stil.css
   Ein Blatt für die ganze Seite. Nichts wird von aussen geladen.
   Farben und Masse stammen aus dem Stilblatt der Anwendung. */

/* ── Schriften ───────────────────────────────────────────────────────────
   Die vier .woff2 gehören nach schriften/ und werden hier eingebunden.
   Bis sie geliefert sind, bleibt dieser Block auskommentiert und die Seite
   nutzt die Systemschrift. Siehe schriften/LIESMICH.txt.

@font-face { font-family:"Barlow"; font-style:normal; font-weight:400;
  font-display:swap; src:url("schriften/barlow-400.woff2") format("woff2"); }
@font-face { font-family:"Barlow"; font-style:normal; font-weight:500;
  font-display:swap; src:url("schriften/barlow-500.woff2") format("woff2"); }
@font-face { font-family:"Barlow"; font-style:normal; font-weight:700;
  font-display:swap; src:url("schriften/barlow-700.woff2") format("woff2"); }
@font-face { font-family:"Barlow Condensed"; font-style:normal; font-weight:600;
  font-display:swap; src:url("schriften/barlow-condensed-600.woff2") format("woff2"); }
──────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #fdfaf6;
  --flaeche: #f3ece2;
  --text: #2a2724;
  --akzent: #1f4d35;
  --akzent-dunkel: #2c6b48;
  --akzent-hell: #e6efe8;
  --mint: #dcecdf;
  --mint-linie: #7ba98c;
  --linie: color-mix(in srgb, #2a2724 18%, transparent);
  --leise: color-mix(in srgb, #2a2724 62%, transparent);

  --schrift-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-titel: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --breite: 1080px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px;
}

  :root[data-thema="dunkel"] {
    --bg: #191a18;
    --flaeche: #22241f;
    --text: #eeeae3;
    --akzent: #6f9d7f;
    --akzent-dunkel: #9cc4a8;
    --akzent-hell: #23301f;
    --mint: #24302a;
    --mint-linie: #6f9d7f;
    --linie: color-mix(in srgb, #eeeae3 20%, transparent);
    --leise: color-mix(in srgb, #eeeae3 66%, transparent);
  }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(25px, 3.1vw, 35px); }
h3 { font-size: 21px; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--akzent-dunkel); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--akzent); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--akzent) 28%, transparent); }

.bereich { max-width: var(--breite); margin: 0 auto; padding-left: var(--s6); padding-right: var(--s6); }
section { padding-top: var(--s24); padding-bottom: var(--s24); border-top: 1px solid var(--linie); }
section:first-of-type { border-top: 0; }
.kicker {
  font-family: var(--schrift-titel);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--akzent-dunkel); margin: 0 0 var(--s3);
}
.fuehrung { font-size: 19px; max-width: 62ch; color: var(--text); }
.leise { color: var(--leise); }
.klein { font-size: 15px; }

/* ── Wireframe-Rahmen ──────────────────────────────────────────────── */
.rahmen { position: relative; border: 1px solid var(--linie); border-radius: 0; }

/* ── Kopf ──────────────────────────────────────────────────────────── */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf-inhalt {
  max-width: var(--breite); margin: 0 auto; padding: var(--s3) var(--s6);
  display: flex; align-items: center; gap: var(--s6);
}
.marke { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; margin-right: auto; }
.marke img { width: 30px; height: 30px; display: block; }
:root[data-thema="dunkel"] .marke img { filter: invert(1); }
.wortmarke { font-family: var(--schrift-titel); font-size: 23px; letter-spacing: 0.06em; font-weight: 500; }
/* Gleiche Schriftstärke für alle Zeichen — CH wird über die Strichbreite
   fett gemacht, damit Versalhöhe und Breite unverändert bleiben. */
.che { color: inherit; font-weight: inherit; -webkit-text-stroke: 0.7px currentColor; }
.kopf-navi { display: flex; gap: var(--s4); }
.kopf-navi a { font-family: var(--schrift-titel); font-size: 16px; letter-spacing: 0.04em; text-decoration: none; color: var(--text); }
.kopf-navi a:hover { color: var(--akzent-dunkel); }
@media (max-width: 860px) { .kopf-navi { display: none; } }

.sprachen { display: flex; border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; }
.sprachen button {
  font: inherit; font-family: var(--schrift-titel); font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; background: none; border: 0; border-left: 1px solid var(--linie);
  color: var(--leise); padding: 4px 9px; cursor: pointer;
}
.sprachen button:first-child { border-left: 0; }
.sprachen button:hover { background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--text); }
.sprachen button[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.kopf-navi a:hover, a:hover { color: #14351f; }

/* ── Knöpfe ────────────────────────────────────────────────────────── */
.knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--schrift-titel); font-weight: 600; font-size: 17px; letter-spacing: 0.02em;
  padding: 11px 20px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff;
  text-decoration: none; border-radius: 4px; cursor: pointer;
  text-align: center; align-self: start; min-height: 49px;
}
.knopf:hover { background: #14351f; border-color: #14351f; color: #fff; }
.knopf.zweit { font-weight: 600; }
.knopf .groesse { font-weight: 400; font-size: 14px; letter-spacing: 0.04em; opacity: 0.85; }
.knopf:has(.groesse) { align-items: baseline; }
.knopf .groesse::before { content: "· "; }
.knopf.zweit { background: none; color: var(--text); border-color: var(--linie); }
.knopf.zweit:hover { background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--text); border-color: var(--akzent); }

/* ── Vorher / Nachher ──────────────────────────────────────────────── */
.beispiel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.beispiel > div { background: var(--bg); padding: var(--s6); }
.beispiel h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); margin-bottom: var(--s4); }
.zeile { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14.5px; line-height: 2.1; white-space: nowrap; overflow-x: auto; }
/* Farbige Fundstellen wie in der Anwendung: ein Farbton je Merkmalsart */
mark.platz {
  background: var(--mint); color: var(--akzent-dunkel);
  padding: 1px 5px; border: 1px solid var(--mint-linie); border-radius: 3px;
  font-size: 13.5px; white-space: nowrap;
}
mark.p-name   { background: #f3ecfb; border-color: #7c5cbf; color: #4b2e85; }
mark.p-ahv    { background: #e6f7f4; border-color: #4fa89b; color: #1b6055; }
mark.p-street { background: #f6f2e4; border-color: #b9a35c; color: #5f5019; }
mark.p-num    { background: #fdf3dd; border-color: #d9a72c; color: #7a4f0c; }
mark.p-zip    { background: #fdf0e6; border-color: #c98a4e; color: #7d461a; }
mark.p-city   { background: #f8ecf8; border-color: #b968b9; color: #7d2a7d; }
  :root[data-thema="dunkel"] mark.platz { background: color-mix(in srgb, currentColor 16%, transparent); }
  :root[data-thema="dunkel"] mark.p-name { color: #c3a8f0; border-color: #8a6bd0; }
  :root[data-thema="dunkel"] mark.p-ahv { color: #86ccc0; border-color: #4fa89b; }
  :root[data-thema="dunkel"] mark.p-street { color: #cfbd7d; border-color: #b9a35c; }
  :root[data-thema="dunkel"] mark.p-num { color: #e8c375; border-color: #d9a72c; }
  :root[data-thema="dunkel"] mark.p-zip { color: #e0a97c; border-color: #c98a4e; }
  :root[data-thema="dunkel"] mark.p-city { color: #dda2dd; border-color: #b968b9; }
@media (max-width: 720px) { .beispiel { grid-template-columns: 1fr; } }

/* ── Platzhalterbilder ─────────────────────────────────────────────── */
.platzhalter {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--text) 5%, transparent) 9px 10px);
  color: var(--leise); text-align: center; padding: var(--s6);
}
.schirm { display: block; width: 100%; height: auto; }
figure.rahmen .schirm { border: 0; }
.schritt .schirm.zusatz { aspect-ratio: auto; object-fit: contain; margin-top: var(--s3); }
.schirm.nur-dunkel { display: none; }
:root[data-thema="dunkel"] .schirm.nur-hell { display: none; }
:root[data-thema="dunkel"] .schirm.nur-dunkel { display: block; }
.schritt .schirm { aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; margin-top: var(--s4); border: 1px solid var(--linie); }

.platzhalter b { font-family: var(--schrift-titel); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--akzent-dunkel); }
.platzhalter span { font-size: 13px; }

/* ── Raster ────────────────────────────────────────────────────────── */
.raster-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8) var(--s6); }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12); align-items: start; }
.raster-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 1000px) { .raster-4, .raster-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .raster-2, .raster-3, .raster-4, .raster-5 { grid-template-columns: minmax(0, 1fr); } }

.merkmal h3 { margin-bottom: var(--s2); }
.merkmal .nr { font-family: var(--schrift-titel); font-size: 13px; letter-spacing: 0.14em; color: var(--akzent-dunkel); display: block; margin-bottom: var(--s3); }
.merkmal p { font-size: 16px; }

.schritt { border-top: 2px solid var(--akzent); padding-top: var(--s3); }
.schritt .nr { font-family: var(--schrift-titel); font-size: 28px; color: var(--akzent-dunkel); line-height: 1; }
.schritt h3 { font-size: 18px; margin: var(--s2) 0 var(--s2); }
.schritt p { font-size: 15px; }
.schritt .platzhalter { aspect-ratio: 4 / 3; margin-top: var(--s4); }

/* ── Tabellen ──────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linie); }
thead th { font-family: var(--schrift-titel); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); border-bottom: 1px solid var(--text); }
td.stufe, td.moegl { font-family: var(--schrift-titel); font-size: 19px; white-space: nowrap; }
td.stufe { color: var(--akzent-dunkel); }

.stufen { border: 1px solid var(--linie); padding: var(--s6); }
.stufen-titel {
  margin: 0 0 var(--s4); font-size: 21px;
  display: flex; align-items: baseline; gap: var(--s3);
}

/* ── Prüfen ────────────────────────────────────────────────────────── */
.hinweis { background: var(--flaeche); border-left: 3px solid var(--akzent); padding: var(--s4) var(--s6); }
blockquote.verantwortung { margin: 0; padding: var(--s8); background: var(--flaeche); }
blockquote.verantwortung p:first-child { font-family: var(--schrift-titel); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin-bottom: var(--s4); }

/* ── Herunterladen ─────────────────────────────────────────────────── */
.pakete { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); align-items: start; }
@media (max-width: 1000px) { .pakete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pakete { grid-template-columns: minmax(0, 1fr); } }
.paket { border: 1px solid var(--linie); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); min-height: 100%; }
.paket h3 { margin: 0; }
.paket .zeug { font-size: 15px; color: var(--leise); margin: 0; flex: 1; }
.paket .knopf { width: 100%; white-space: nowrap; padding-left: var(--s3); padding-right: var(--s3); }
.paket .knopf .groesse { font-size: 13px; }

.knopfstapel { display: flex; flex-direction: column; gap: var(--s2); }
.knopfstapel .knopf { width: 100%; }
.teilknopf { display: flex; align-items: stretch; }
.teilknopf .knopf { flex: 1; align-self: stretch; }
.teilknopf .auf { flex: 0 0 auto; width: 36px; min-width: 36px; padding: 0; border-left: 1px solid color-mix(in srgb, #fff 45%, transparent); }
.teilknopf .auf::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.teilknopf .auf[aria-expanded="true"]::after { transform: rotate(225deg) translate(-1px, -1px); }
.weitere { display: none; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.weitere[data-offen="true"] { display: flex; }
.weitere a { display: flex; justify-content: space-between; gap: var(--s3); border: 1px solid var(--linie); padding: 8px 12px; text-decoration: none; color: var(--text); font-size: 15px; }
.weitere a:hover { background: color-mix(in srgb, var(--akzent) 12%, transparent); border-color: var(--akzent); }
.weitere a b { font-family: var(--schrift-titel); font-weight: 600; }
.weitere a span { color: var(--leise); white-space: nowrap; }

.knopf[aria-disabled="true"] { background: none; color: var(--leise); border-color: var(--linie); cursor: not-allowed; pointer-events: none; }
/* Ein Befehl im Fliesstext einer Karte (macOS): Festbreitenschrift, darf umbrechen. */
.zeug code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em;
  overflow-wrap: anywhere; background: var(--flaeche); padding: .1em .35em; border-radius: 4px; }
.marke-arbeit {
  display: inline-block; font-family: var(--schrift-titel); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--akzent-dunkel); align-self: start;
  border: 1px solid var(--akzent); padding: 1px 7px;
}

/* ── Verweise ──────────────────────────────────────────────────────── */
.verweis { border: 1px solid var(--linie); padding: var(--s6); display: block; text-decoration: none; color: inherit; }
.verweis:hover { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 7%, transparent); color: inherit; }
.verweis h3 { margin-bottom: var(--s2); color: var(--akzent-dunkel); }
.verweis p { font-size: 15px; color: var(--leise); margin: 0; }

/* ── Fuss ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--linie); padding: var(--s12) 0; font-size: 15px; color: var(--leise); }
footer .zeilen { display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: space-between; }

.tbd { border-bottom: 1px dashed var(--akzent); color: var(--akzent-dunkel); }

.thema {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; margin-left: var(--s2); border-radius: 4px;
  border: 1px solid var(--linie); background: transparent; color: var(--text); cursor: pointer;
}
.thema:hover { border-color: var(--akzent); color: var(--akzent-dunkel); }
.thema svg { width: 18px; height: 18px; display: block; }
.thema .sonne { display: none; }
:root[data-thema="dunkel"] .thema .mond { display: none; }
:root[data-thema="dunkel"] .thema .sonne { display: block; }

/* Vergrösserte Schirmbilder */
img.schirm { cursor: zoom-in; }
.zoom-grund {
  position: fixed; inset: 0; z-index: 100; cursor: zoom-out;
  background: rgba(12,13,11,.72);
}
.zoom-bild {
  position: fixed; display: block; max-width: none;
  transform-origin: 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  background: var(--bg);
}
html.zoom-offen { overflow: hidden; }

/* ── Handy ─────────────────────────────────────────────────────────── */
html, body { overflow-x: clip; }
@media (max-width: 620px) {
  .bereich { padding-left: var(--s4); padding-right: var(--s4); }
  section { padding-top: var(--s16); padding-bottom: var(--s16); }
  .kopf-inhalt { padding: var(--s2) var(--s4); gap: var(--s2); }
  .marke { gap: var(--s2); min-width: 0; }
  .marke img { width: 24px; height: 24px; }
  .wortmarke { font-size: 18px; letter-spacing: 0.04em; }
  .sprachen button { padding: 4px 7px; font-size: 13px; }
  .thema { margin-left: 0; flex: 0 0 auto; }
  .zeile { white-space: normal; overflow-wrap: anywhere; line-height: 1.9; }
  mark.platz { white-space: normal; overflow-wrap: anywhere; }
  .beispiel > div { padding: var(--s4); }
  .stufen { padding: var(--s4); }
  .stufen table, .stufen thead, .stufen tbody, .stufen tr, .stufen th, .stufen td { display: block; width: 100%; }
  .stufen thead { display: none; }
  .stufen tr { border-bottom: 1px solid var(--linie); padding: var(--s3) 0; }
  .stufen td { border: 0; padding: 0; }
  .stufen td.stufe, .stufen td.moegl { white-space: normal; margin-bottom: var(--s1); }
  table { display: block; overflow-x: auto; }
  td.stufe, td.moegl { white-space: normal; }
  .knopf { white-space: normal; }
  blockquote.verantwortung { padding: var(--s6) var(--s4); }
  .hinweis { padding: var(--s4); }
}
