/* ============================================================
   Chummu · chummu.ch
   Farben und Typografie nach Brand-Identity-System, Ausgabe 01
   Kalk #F4F1EA · Schiefer #26251F · Stein #BFB8A8 · Muscat #C2A44E
   AA-Korrektur: Stein ist auf Kalk nur Linie, nie Text (1.75:1).
   Sekundärtext auf hellem Grund: #5A5749 (6.4:1).
   Muscat auf hellem Grund nur als Grafiklinie, nie als Text (2.1:1).
   ============================================================ */

/* --- Schriften, selbst gehostet ----------------------------- */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --- Grundwerte --------------------------------------------- */

:root {
  --kalk: #f4f1ea;
  --schiefer: #26251f;
  --stein: #bfb8a8;        /* nur Linien und Flächen */
  --stein-text: #5a5749;   /* Sekundärtext, AA-tauglich */
  --muscat: #c2a44e;       /* Akzentlinie, max. zweimal pro Fläche */

  --mass: 44rem;           /* Satzspiegel */
  --rand: 1.375rem;        /* Seitenrand mobil */
}

* { box-sizing: border-box; }

html {
  background: var(--kalk);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--kalk);
  color: var(--schiefer);
  font-family: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--schiefer); color: var(--kalk); }

a {
  color: var(--schiefer);
  text-decoration: underline;
  text-decoration-color: var(--stein);
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-color: var(--schiefer); }

:focus-visible {
  outline: 2px solid var(--schiefer);
  outline-offset: 3px;
  border-radius: 1px;
}

.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprunglink {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--schiefer);
  color: var(--kalk);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
}

.sprunglink:focus-visible {
  left: 0;
  outline-color: var(--kalk);
  outline-offset: -6px;
}

/* --- Wiederkehrende Bausteine ------------------------------- */

.spiegel {
  max-width: var(--mass);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--schiefer);
}

.label--leise { color: var(--stein-text); }

.serif {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 300;
}

/* Bildmarke: Trockenmauer-Balken */
.marke {
  display: flex;
  flex-direction: column;
  flex: none;
}

.marke > b {
  display: block;
  background: currentColor;
}

/* --- Kopf --------------------------------------------------- */

.kopf {
  border-bottom: 1px solid var(--stein);
}

.kopf__zeile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-block: 1.25rem;
}

.kopf__marke {
  width: 22px;
  gap: 2.8px;
  color: var(--schiefer);
}

.kopf__marke > b:nth-child(1) { height: 1px;   width: 58%; margin-left: 42%; }
.kopf__marke > b:nth-child(2) { height: 1.6px; width: 80%; margin-left: 20%; }
.kopf__marke > b:nth-child(3) { height: 2.7px; width: 100%; }

.kopf__name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
}

.kopf__trenner {
  width: 1px;
  height: 13px;
  background: var(--stein);
}

.kopf__ort {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .kopf__trenner, .kopf__ort { display: none; }
}

/* --- Auftakt ------------------------------------------------ */

.auftakt {
  padding-block: clamp(4rem, 12vw, 7.5rem) 0;
  text-align: center;
}

.auftakt__marke {
  width: clamp(64px, 14vw, 96px);
  gap: clamp(3.2px, 0.7vw, 4.8px);
  margin-inline: auto;
  color: var(--schiefer);
}

.auftakt__marke > b:nth-child(1) { height: 1.2px; width: 46%; margin-left: 54%; }
.auftakt__marke > b:nth-child(2) { height: 1.8px; width: 66%; margin-left: 34%; }
.auftakt__marke > b:nth-child(3) { height: 2.7px; width: 84%; margin-left: 16%; }
.auftakt__marke > b:nth-child(4) { height: 4.2px; width: 100%; }

.auftakt__name {
  margin: 1.75rem 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.875rem, 8.8vw, 3.75rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* gleicht die Sperrung des letzten Zeichens aus */
  text-transform: uppercase;
  line-height: 1;
}

.auftakt__linie {
  width: 180px;
  max-width: 50%;
  height: 1px;
  background: var(--stein);
  margin: 1.625rem auto;
}

.auftakt__ort {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}

.auftakt__satz {
  margin: clamp(3rem, 8vw, 4.5rem) auto 0;
  max-width: 34rem;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  line-height: 1.5;
  text-wrap: balance;
}

/* --- Terrassen-Panorama (das Merkelement) ------------------- */

.hang {
  margin: clamp(3.5rem, 9vw, 5.5rem) 0 0;
  padding-block: 0 clamp(3rem, 8vw, 4.5rem);
  border-bottom: 1px solid var(--stein);
}

.hang__terrassen {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 2vw, 15px);
  max-width: 64rem; /* Panorama läuft bewusst breiter als der Satzspiegel */
  margin-inline: auto;
  padding-inline: var(--rand);
}

.hang__terrassen > .t {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.875rem;
}

.hang__terrassen b {
  display: block;
  background: var(--schiefer);
}

.hang__terrassen .t--chummu b { background: var(--muscat); }

.hang__terrassen .t--chummu span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stein-text);
  white-space: nowrap;
}

.hang figcaption {
  max-width: 64rem;
  margin: 1.5rem auto 0;
  padding-inline: var(--rand);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--stein-text);
  text-align: right;
}

/* --- Abschnitte --------------------------------------------- */

.abschnitt {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  border-bottom: 1px solid var(--stein);
}

.abschnitt__kopf {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
}

.abschnitt__kopf::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stein);
}

.abschnitt h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.abschnitt p {
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.abschnitt p:last-child { margin-bottom: 0; }

.einstieg {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  line-height: 1.55;
}

/* Faktenliste */
.fakten {
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--stein);
}

.fakten > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--stein);
}

.fakten dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stein-text);
  padding-top: 0.2em;
}

.fakten dd {
  margin: 0;
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  .fakten > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* --- Der Weg: Schritte mit echter Reihenfolge --------------- */

.weg {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.weg > li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--stein);
}

.weg > li::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--stein-text);
  padding-top: 0.3em;
}

.weg h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.weg p {
  margin: 0;
  font-size: 0.9375rem;
  max-width: 34rem;
}

/* Gärtreppe, schematisch */
.gaertreppe {
  margin: 1.5rem 0 0;
}

.gaertreppe svg {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
}

.gaertreppe figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--stein-text);
  max-width: 34rem;
}

/* --- Kontakt ------------------------------------------------ */

.kontakt__mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 4.5vw, 1.625rem);
  letter-spacing: 0.02em;
}

/* --- Fuss --------------------------------------------------- */

.fuss {
  padding-block: 2rem 3rem;
}

.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.fuss__ort {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stein-text);
}

.fuss nav {
  display: flex;
  gap: 1.5rem;
}

.fuss nav a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stein-text);
  text-decoration: none;
  padding-block: 0.5rem; /* Tippfläche */
}

.fuss nav a:hover,
.fuss nav a:focus-visible {
  color: var(--schiefer);
}

/* --- Unterseiten (Rechtliches, Flasche) --------------------- */

.unterseite {
  padding-block: clamp(3rem, 8vw, 5rem);
  min-height: 60vh;
}

.unterseite h1 {
  margin: 0 0 2.5rem;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.unterseite h2 {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stein);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.unterseite h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.unterseite p, .unterseite ul {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: 0.9375rem;
}

.unterseite ul { padding-left: 1.25rem; }

.zurueck {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
}
