/* Silvio Huonder, Entwurf freeehouse. Farben aus der bisherigen Seite (Oliv/Khaki), Schriften: Jost (Nachfolger der Century-Gothic-Titel) und Hanken Grotesk (statt Helvetica). */
@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --papier: #ffffff;
  --flaeche: #eeede5;
  --linie: #d9d6c6;
  --tinte: #38372c;
  --oliv: #6f6c50;
  --oliv-dunkel: #57553e;
  --khaki: #b8b392;
  --nacht: #2b2a21;
  --hell: #eeede5;

  --f-titel: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-klein: 0.9375rem;   /* 15 */
  --t-text: 1.125rem;     /* 18 */
  --t-lead: 1.375rem;     /* 22 */
  --t-h3: 1rem;           /* 16, Versalien */
  --t-h2: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --t-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --t-held: clamp(3.25rem, 1.2rem + 8.4vw, 8.75rem);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 160px;
  --rand: clamp(16px, 4vw, 48px);
  --breite: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--f-text); font-size: var(--t-text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--oliv); outline-offset: 3px; }
::selection { background: var(--khaki); color: var(--nacht); }
h1, h2, h3 { font-family: var(--f-titel); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; hyphens: manual; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.3; color: var(--oliv); }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--nacht); color: #fff; padding: 8px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.breit { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }

/* Entwurfs-Hinweis */
.entwurf { background: var(--nacht); color: #cfccb8; font-size: 13px; line-height: 1.4; text-align: center; padding: 6px var(--rand); letter-spacing: 0.02em; }

/* Kopf */
.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); position: relative; z-index: 5; }
.kopf-in { max-width: var(--breite); margin-inline: auto; padding: 0 var(--rand); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.marke { font-family: var(--f-titel); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.hauptnav ul { display: flex; gap: var(--s4); }
.hauptnav a { font-family: var(--f-titel); font-size: 1.0625rem; text-decoration: none; padding: 10px 0; display: inline-block; }
.hauptnav a:hover, .hauptnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--khaki); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.menue-knopf { display: none; font: 500 1rem var(--f-titel); letter-spacing: 0.08em; text-transform: uppercase; background: none; color: var(--tinte); border: 1px solid var(--linie); padding: 10px 16px; min-height: 44px; cursor: pointer; }

/* Erster Bildschirm */
.held { position: relative; background: var(--nacht); color: #fff; overflow: hidden; }
.held-bild { width: 100%; height: clamp(520px, 84svh, 960px); object-fit: cover; object-position: 50% 30%; }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 27, 20, 0.78) 0%, rgba(28, 27, 20, 0.35) 34%, rgba(28, 27, 20, 0) 58%); pointer-events: none; }
.held-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; max-width: var(--breite); margin-inline: auto; padding: 0 var(--rand) clamp(32px, 6vw, 72px); }
.held h1 { font-size: var(--t-held); line-height: 0.92; letter-spacing: -0.025em; color: #fff; }
.held-zeile { margin: var(--s3) 0 0; font-size: var(--t-lead); line-height: 1.4; color: var(--hell); max-width: 34ch; }

/* Abschnitte */
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.textlink { font-family: var(--f-titel); font-weight: 500; font-size: 1.0625rem; color: var(--oliv-dunkel); text-decoration: underline; text-decoration-color: var(--khaki); text-decoration-thickness: 2px; text-underline-offset: 0.35em; display: inline-block; padding: 8px 0; }
.textlink:hover { color: var(--tinte); text-decoration-color: var(--oliv); }

.regal-abschnitt { padding: var(--s6) 0 var(--s6); }
.regal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); row-gap: var(--s5); }
.buch { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.buch > a { display: grid; grid-row: span 3; grid-template-rows: subgrid; text-decoration: none; }
.cover { align-self: end; width: 100%; background: var(--flaeche); box-shadow: 0 1px 2px rgba(43, 42, 33, 0.22), 0 14px 30px -12px rgba(43, 42, 33, 0.45); transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.buch > a:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(43, 42, 33, 0.2), 0 22px 36px -14px rgba(43, 42, 33, 0.5); }
.buch-titel { margin-top: var(--s3); font-family: var(--f-titel); font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; }
.buch > a:hover .buch-titel { text-decoration: underline; text-decoration-color: var(--khaki); text-underline-offset: 0.3em; }
.buch-meta { margin-top: 6px; font-size: var(--t-klein); line-height: 1.45; color: var(--oliv-dunkel); }

/* Die Dunkelheit in den Bergen */
.dunkel { background: var(--nacht); color: var(--hell); padding: var(--s6) 0; }
.dunkel-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.dunkel-cover { display: block; max-width: 440px; justify-self: center; width: 100%; }
.dunkel-cover .cover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.dunkel h2 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); }
.unterzeile { margin: var(--s2) 0 var(--s4); font-family: var(--f-titel); font-size: 1.0625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--khaki); }
.stationen { margin: 0 0 var(--s4); }
.stationen div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2); padding: 14px 0; border-top: 1px solid rgba(184, 179, 146, 0.28); }
.stationen div:last-child { border-bottom: 1px solid rgba(184, 179, 146, 0.28); }
.stationen dt { font-family: var(--f-titel); font-weight: 500; color: var(--khaki); font-variant-numeric: tabular-nums; }
.stationen dd { margin: 0; }
.presse-zeile { color: #d8d5c2; max-width: 56ch; }
.dunkel a { color: #fff; text-decoration-color: var(--khaki); }

/* Werklisten */
.werk-abschnitt { background: var(--flaeche); padding: var(--s6) 0; }
.werk-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) clamp(40px, 6vw, 96px); }
.werk-spalten h3 { margin-bottom: var(--s2); }
.werk-spalten h3.abstand { margin-top: var(--s5); }
.werkliste li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s2); padding: 14px 0; border-top: 1px solid var(--linie); }
.werkliste li:last-child { border-bottom: 1px solid var(--linie); }
.werkliste .jahr { grid-row: span 2; font-family: var(--f-titel); font-weight: 500; color: var(--oliv-dunkel); font-variant-numeric: tabular-nums; line-height: 1.5; }
.werkliste .titel { font-family: var(--f-titel); font-weight: 500; font-size: 1.0625rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
.werkliste .titel-normal { text-transform: none; letter-spacing: 0; font-family: var(--f-text); font-weight: 400; font-size: var(--t-text); }
.werkliste .ort { font-size: 1rem; line-height: 1.5; color: var(--oliv-dunkel); }
.chronik { margin-bottom: var(--s6); }
.chronik li { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); align-items: baseline; }
.chronik .jahr { grid-row: auto; }

/* Auszeichnungen, Lehre */
.preise-abschnitt { padding: var(--s6) 0; }
.preise-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.preise { margin-top: var(--s4); }
.preise li { font-family: var(--f-titel); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.2; padding: 20px 0; border-top: 1px solid var(--linie); }
.preise li:last-child { border-bottom: 1px solid var(--linie); }
.lehre-kurz { background: var(--flaeche); padding: var(--s4); }
.lehre-kurz h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: var(--s3); }

/* Kontakt */
.kontakt-abschnitt { background: var(--oliv); color: #fff; padding: var(--s6) 0; }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.kontakt-abschnitt h1, .kontakt-abschnitt h2 { color: #fff; }
.kontakt-abschnitt h1 { font-size: var(--t-h1); }
.mail-gross { margin: var(--s3) 0 var(--s3); font-family: var(--f-titel); font-size: clamp(1.375rem, 0.9rem + 1.9vw, 2.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.mail-gross a { text-decoration-color: var(--khaki); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kontakt-abschnitt p { max-width: 46ch; }
.formular { display: grid; gap: var(--s3); }
.feld label { display: block; font-family: var(--f-titel); font-weight: 500; font-size: 1rem; margin-bottom: 6px; }
.feld input, .feld textarea { width: 100%; font: inherit; font-size: 1.125rem; color: var(--tinte); background: #fff; border: 1px solid transparent; border-radius: 2px; padding: 13px 16px; min-height: 52px; }
.feld textarea { resize: vertical; min-height: 150px; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--nacht); outline-offset: 0; }
.feld [aria-invalid="true"] { border-color: #fff; box-shadow: inset 0 0 0 2px #7a1d12; }
.hinweis { font-size: var(--t-klein); color: #f1f0e8; margin: 0; }
.knopf { justify-self: start; font: 500 1.0625rem var(--f-titel); letter-spacing: 0.04em; color: #fff; background: var(--nacht); border: 0; padding: 16px 28px; min-height: 52px; cursor: pointer; transition: background-color 180ms ease-out; }
.knopf:hover { background: #1c1b14; }
.knopf:focus-visible { outline-color: #fff; }
.meldung { background: #fff; color: var(--tinte); padding: var(--s2) var(--s3); margin: 0; font-size: 1rem; border-left: 0; }
.kontakt-abschnitt :focus-visible { outline-color: #fff; }

/* Unterseiten */
.seitenkopf { padding-top: var(--s6); padding-bottom: var(--s5); }
.seitenkopf h1 { font-size: var(--t-h1); }
.einleitung { margin-top: var(--s3); font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.buchliste { margin-bottom: var(--s6); }
.buchzeile { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: var(--s5) 0; border-top: 1px solid var(--linie); scroll-margin-top: 24px; }
.buchzeile-bild .cover { max-width: 260px; }
.buchzeile h2 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem); }
.buchzeile .buch-meta { margin: var(--s2) 0 var(--s3); font-size: 1.0625rem; }
.buchzeile-text { max-width: 64ch; }
.buchzeile h3 { margin: var(--s4) 0 var(--s2); }
.presse li { padding: 10px 0; border-top: 1px solid var(--linie); }
.presse li:last-child { border-bottom: 1px solid var(--linie); }
.cover.klein { max-width: 140px; margin-top: var(--s2); }
.flaeche { background: var(--flaeche); padding: var(--s6) 0; }
.flaeche h2 { margin-bottom: var(--s5); }
.regal-ueb { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.regal-ueb .cover, .cover-leer { max-width: 240px; }
.cover-leer { align-self: end; display: grid; place-items: center; aspect-ratio: 2 / 3; padding: var(--s3); text-align: center; background: var(--papier); border: 1px solid var(--linie); font-family: var(--f-titel); font-size: 1.125rem; color: var(--oliv-dunkel); }
.weitere { padding-bottom: var(--s6); }

.vita-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); padding-top: var(--s6); padding-bottom: var(--s6); align-items: end; }
.vita-kopf h1 { font-size: var(--t-h1); margin-bottom: var(--s4); }
.eckdaten li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s2); padding: 14px 0; border-top: 1px solid var(--linie); font-size: var(--t-lead); line-height: 1.45; }
.eckdaten li:last-child { border-bottom: 1px solid var(--linie); }
.eckdaten .jahr { font-family: var(--f-titel); font-weight: 500; color: var(--oliv-dunkel); font-variant-numeric: tabular-nums; }
.mitglied { margin-top: var(--s4); max-width: 52ch; }
.vita-bild { width: 100%; }
.vita-raster { columns: 2; column-gap: clamp(40px, 6vw, 96px); padding-bottom: var(--s6); }
.vita-block { break-inside: avoid; padding-bottom: var(--s5); }
.vita-block h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: var(--s3); }
.vita-liste li { padding: 12px 0; border-top: 1px solid var(--linie); }
.vita-liste li:last-child { border-bottom: 1px solid var(--linie); }
.vita-liste .titel { display: block; font-family: var(--f-titel); font-weight: 500; font-size: 1.0625rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
.vita-liste .ort { display: block; color: var(--oliv-dunkel); font-size: 1rem; line-height: 1.5; }

.lehre-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); padding-bottom: var(--s6); align-items: start; }
.lehre-raster h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: var(--s3); }
.flaeche-karte { background: var(--flaeche); padding: var(--s4); }
#h-ausb { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: var(--s3); }

.text-spalte { max-width: 760px; padding-bottom: var(--s6); margin-left: max(0px, calc((100% - var(--breite)) / 2)); }
.platzhalter { background: #f6f1d9; padding: 2px 6px; font-style: italic; }
p.platzhalter { padding: var(--s2) var(--s3); }
.sitemap li { padding: 12px 0; border-top: 1px solid var(--linie); font-family: var(--f-titel); font-size: 1.25rem; }

/* Fuss */
.fuss { background: var(--nacht); color: var(--hell); padding: var(--s5) 0 var(--s4); }
.fuss-in { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3) var(--s5); align-items: baseline; }
.fuss-name { font-family: var(--f-titel); font-weight: 500; font-size: 1.375rem; margin: 0; }
.fuss p { margin: 0; }
.fuss-links { display: flex; gap: var(--s3); flex-wrap: wrap; }
.fuss a { color: var(--hell); text-decoration-color: rgba(184, 179, 146, 0.6); display: inline-block; padding: 11px 0; }

/* Tablet */
@media (max-width: 1080px) {
  .regal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chronik li { grid-template-columns: 96px minmax(0, 1fr); }
  .chronik .ort { grid-column: 2; }
}
@media (max-width: 899px) {
  .menue-knopf { display: inline-block; }
  .hauptnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--linie); }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; gap: 0; padding: var(--s1) var(--rand) var(--s3); }
  .hauptnav a { display: block; padding: 14px 0; font-size: 1.25rem; border-top: 1px solid var(--linie); }
  .dunkel-raster, .kontakt-raster, .preise-raster, .vita-kopf, .lehre-raster { grid-template-columns: minmax(0, 1fr); }
  .dunkel-cover { max-width: 300px; justify-self: start; }
  .vita-raster { columns: 1; }
  .vita-bild { max-width: 520px; }
  .werk-spalten { grid-template-columns: minmax(0, 1fr); }
  .fuss-in { grid-template-columns: minmax(0, 1fr); }
}
/* Handy */
@media (max-width: 699px) {
  :root { --s6: 72px; --s5: 48px; }
  .held-bild { height: min(80svh, 640px); object-position: 50% 20%; }
  .held-zeile { font-size: 1.1875rem; }
  .regal { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
  .buch-titel { font-size: 0.9375rem; letter-spacing: 0.04em; hyphens: auto; }
  .buchzeile { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .buchzeile-bild .cover { max-width: 200px; }
  .regal-ueb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lehre-kurz, .flaeche-karte { padding: var(--s3); }
  .chronik li, .werkliste li { grid-template-columns: 64px minmax(0, 1fr); }
  .lehre-raster .chronik li, .chronik li:has(.titel-normal) { grid-template-columns: 1fr; }
  .eckdaten li { grid-template-columns: 64px minmax(0, 1fr); font-size: 1.1875rem; }
  h1, h2 { hyphens: auto; }
  .knopf { justify-self: stretch; }
}
@media (min-width: 700px) { h1 { hyphens: manual; } }
@media (prefers-reduced-motion: reduce) {
  .cover, .knopf { transition: none; }
  .buch > a:hover .cover { transform: none; }
}
.eigen { text-transform: none !important; letter-spacing: 0.02em !important; }
