/* buon.at
   Magazinsatz nach dem Vorbild der Falstaff-Reiseseiten: zentrierte
   Wortmarke, Versalschlagzeilen in der Didone, kursive Serife für die
   Beizeile, dreispaltiges Raster, Haarlinien statt Kästen.
   Die Didone ist Bodoni - 1790 in Parma geschnitten. */

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

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Marken ---------- */

:root {
  --carta:      #ffffff;
  --inchiostro: #000000;
  --grigio:     #86847e;
  --linie:      #dcdad4;
  --rosso:      #b0121a;

  --titel: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
  --text:  Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --breite: 1200px;
  --breite-schmal: 820px;
  --rand:   22px;
  --spalte: 2.4rem;
}

/* Beitragsseiten: Kopfzeile, Navigation und Fließtext teilen sich dieselbe,
   schmälere Spalte - die Leserichtung bleibt bündig, die Zeile lesbar. */
body.schmal { --breite: var(--breite-schmal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font: 400 1.0625rem/1.68 var(--text);
  font-synthesis: none;
  /* "manual" trennt nie von selbst, beachtet aber die gesetzten Fugen (&shy;).
     "none" würde auch diese ignorieren und lange Komposita überlaufen lassen. */
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  overflow-x: clip;
}

::selection { background: var(--inchiostro); color: var(--carta); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

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

.kopf { padding-top: 1.9rem; text-align: center; }

.marke {
  display: inline-block;
  font-family: var(--titel);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.marke .punkt { color: var(--rosso); }
/* "buon.at" ist ein Wort - der Punkt darin ist das einzige Farbige der Seite */

.kopf-gross .marke { font-size: clamp(3rem, 9.5vw, 5.6rem); }
.kopf-klein .marke { font-size: clamp(1.9rem, 5vw, 2.5rem); }

.marke-satz {
  margin: 0.85rem 0 0;
  font-size: 0.715rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grigio);
}
.kopf-klein .marke-satz { display: none; }

.navigation {
  margin-top: 1.7rem;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.kopf-klein .navigation { margin-top: 1.2rem; }
.navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation a {
  display: block;
  padding: 0.82rem 0;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--inchiostro);
}
.navigation a:hover { color: var(--rosso); }
.navigation a[aria-current="page"] { color: var(--rosso); }

/* ---------- Schlagzeilen ---------- */

h1, h2:not(.etikett), h3 {
  font-family: var(--titel);
  font-optical-sizing: auto;
  font-weight: 600;
  text-transform: uppercase;
  /* Versalien laufen enger als Gemeine - ohne Sperrung kleben sie aneinander.
     Je kleiner der Grad, desto weiter wird gesperrt. */
  letter-spacing: 0.035em;
  line-height: 1.18;
  margin: 0;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
}

/* Kleines Etikett über einem Block - Rubrik oder Abschnittsname */
.etikett {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  font-family: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grigio);
}
.etikett a { text-decoration: none; }
.etikett a:hover { color: var(--rosso); }

/* Beizeile in kursiver Serife, wie die Autorenzeile im Vorbild */
.beizeile {
  margin: 0.6rem 0 0;
  font-family: var(--titel);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--grigio);
}

main { display: block; padding-bottom: 4rem; }
.seite { padding-top: 2.6rem; }

/* ---------- Magazin-Raster der Startseite ---------- */

.magazin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
}
@media (min-width: 900px) {
  .magazin {
    grid-template-columns: 0.72fr 2.72fr 0.88fr;
    gap: 0 var(--spalte);
    /* stretch, damit die senkrechten Trennlinien über die ganze Höhe laufen
       und nicht auf halber Strecke enden */
    align-items: stretch;
  }
  /* Im Quelltext steht der Aufmacher zuerst - für Handy und Vorleseprogramme.
     Auf dem Schirm legt das Raster ihn in die Mittelspalte. */
  .magazin > .links  { grid-column: 1; grid-row: 1; }
  .magazin > .mitte  { grid-column: 2; grid-row: 1;
                       border-inline: 1px solid var(--linie);
                       padding-inline: 2rem; }
  .magazin > .rechts { grid-column: 3; grid-row: 1; }
}

/* Aufmacher in der Mittelspalte */
.aufmacher > a { display: block; margin: 0 0 1.4rem; }
/* Breiter Beschnitt: der Aufmacher soll als Tafel wirken, nicht als Foto */
.aufmacher img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 42%; }
.aufmacher h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.025em;
}
.aufmacher h1 a { text-decoration: none; }
.aufmacher h1 a:hover { color: var(--rosso); }
.aufmacher .anriss {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.64;
  max-width: 56ch;
}

/* Weitere Stücke in der Mittelspalte, zweispaltig */
.mitte-paar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--linie);
}
@media (min-width: 620px) { .mitte-paar { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* Aufmacher einer Kategorieseite: Bild und Text nebeneinander, volle Breite */
.aufmacher-breit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 0 3rem;
  padding: 0 0 2.6rem;
  border-bottom: 2px solid var(--inchiostro);
}
.aufmacher-breit > a { display: block; }
.aufmacher-breit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.aufmacher-breit h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: 0.025em; }
.aufmacher-breit h2 a { text-decoration: none; }
.aufmacher-breit h2 a:hover { color: var(--rosso); }
.aufmacher-breit .anriss { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.64; max-width: 54ch; }
.aufmacher-breit .satzflaeche {
  background: var(--inchiostro);
  color: var(--carta);
  padding: 2.2rem 2rem;
  display: flex;
  align-items: center;
  aspect-ratio: 3 / 2;
}
.aufmacher-breit .satzflaeche h2 a { color: var(--carta); }
@media (min-width: 760px) {
  .aufmacher-breit { grid-template-columns: 1.15fr 1fr; gap: 2.6rem; align-items: center; }
}

/* ---------- Tafeln ---------- */

.tafeln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: 2.8rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tafeln-rand { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; }

.tafel { display: flex; flex-direction: column; }
.tafel > a.platte { display: block; margin: 0 0 0.95rem; }
.tafel .platte {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--inchiostro);
}
.tafel .platte img { width: 100%; height: 100%; object-fit: cover; }

/* Beiträge ohne Bild: die Schlagzeile selbst ist die Fläche */
.tafel .platte-satz {
  display: flex;
  align-items: flex-start;
  padding: 1.15rem 1.1rem;
  font-size: clamp(1.1rem, 1.95vw, 1.42rem);
  line-height: 1.14;
  letter-spacing: 0.03em;
  margin-bottom: 0.95rem;
}
.tafel .platte-satz a { color: var(--carta); text-decoration: none; }
.tafel .platte-satz a:hover { color: var(--carta); text-decoration: underline; }

.tafel > h2:not(.platte), .tafel > h3:not(.platte) {
  font-size: 1.02rem;
  line-height: 1.24;
  letter-spacing: 0.045em;
}
.links .tafel > h2 { font-size: 0.95rem; }
.tafel > h2:not(.platte) a, .tafel > h3:not(.platte) a { text-decoration: none; }
.tafel > h2:not(.platte) a:hover, .tafel > h3:not(.platte) a:hover { color: var(--rosso); }
.tafel .etikett { margin-bottom: 0.5rem; }
.tafel .anriss {
  margin: 0.65rem 0 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: #4a4842;
}

/* Rechte Spalte: Schlagzeile links, kleines Bild rechts */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 1rem 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste a { display: grid; grid-template-columns: 1fr 64px; gap: 0.9rem; align-items: start; text-decoration: none; }
.liste h3 { font-size: 0.86rem; line-height: 1.26; letter-spacing: 0.05em; }
.liste a:hover h3 { color: var(--rosso); }
.liste .mini { width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--inchiostro); }
.liste .mini img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Abschnitt unter dem Raster ---------- */

.abschnitt {
  margin-top: 3.4rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--inchiostro);
}
.abschnitt > .etikett { margin-bottom: 1.8rem; }

/* ---------- Seitenkopf ---------- */

.seitenkopf {
  margin: 0 0 2.8rem;
  padding: 0 0 1.4rem;
  border-bottom: 2px solid var(--inchiostro);
  text-align: center;
}
.seitenkopf h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
.seitenkopf p {
  max-width: 56ch;
  margin: 1rem auto 0;
  font-family: var(--titel);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--grigio);
  text-transform: none;
}

/* ---------- Beitrag ---------- */

.beitrag-kopf {
  margin: 0 0 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--linie);
  text-align: center;
}
.beitrag-kopf h1 { font-size: clamp(1.55rem, 3.9vw, 2.75rem); }
.beitrag-kopf .beizeile { margin-top: 0.9rem; }

.inhalt { font-size: 1.165rem; line-height: 1.75; }
.inhalt > p:first-child { font-size: 1.26rem; line-height: 1.6; }
.inhalt p { margin: 0 0 1.35rem; }
.inhalt a { color: var(--inchiostro); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inhalt a:hover { color: var(--rosso); }
.inhalt ul, .inhalt ol { margin: 0 0 1.45rem; padding-left: 1.3rem; }
.inhalt li { margin: 0 0 0.45rem; }
.inhalt strong { font-weight: 600; }
.inhalt h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
}
.inhalt h3 { font-size: clamp(1.02rem, 1.9vw, 1.2rem); margin: 2.2rem 0 0.6rem; }
.inhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 2.8rem 0; }

.inhalt figure { margin: 2.6rem 0; }
.inhalt figcaption {
  margin-top: 0.7rem;
  font-family: var(--titel);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--grigio);
}
.inhalt figure.bild-breit img, .inhalt img.bild-breit { width: 100%; }
.inhalt img.bild-breit { margin: 2.6rem 0; }
.inhalt figure.bild-mitte { max-width: 700px; margin-inline: auto; }
.inhalt img.bild-links, .inhalt img.bild-rechts, .inhalt img.bild-mitte { margin: 0.4rem 0 1.5rem; }

@media (min-width: 760px) {
  .inhalt figure.bild-links, .inhalt img.bild-links { float: left; margin: 0.5rem 2.2rem 1.4rem 0; max-width: 44%; }
  .inhalt figure.bild-rechts, .inhalt img.bild-rechts { float: right; margin: 0.5rem 0 1.4rem 2.2rem; max-width: 44%; }
  .inhalt h2, .inhalt h3 { clear: both; }
}

.tabelle-rahmen { overflow-x: auto; margin: 2.6rem 0; -webkit-overflow-scrolling: touch; }
.inhalt table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 0.99rem; line-height: 1.5; }
.inhalt th {
  background: var(--inchiostro);
  color: var(--carta);
  font-family: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.8rem 1rem;
}
.inhalt tbody th { background: none; color: var(--inchiostro); width: 32%; letter-spacing: 0.08em; }
.inhalt td { padding: 0.8rem 1rem; vertical-align: top; }
.inhalt tbody tr { border-top: 1px solid var(--linie); }

.video { position: relative; margin: 2.6rem 0; padding-top: 56.25%; background: var(--inchiostro); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Weiterlesen und Blättern ---------- */

.weiterlesen { margin: 4.2rem 0 0; padding-top: 1.5rem; border-top: 2px solid var(--inchiostro); }
.weiterlesen > .etikett { margin-bottom: 1.8rem; }

.blaettern {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin: 3.8rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--linie);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blaettern a { text-decoration: none; }
.blaettern a:hover { color: var(--rosso); }
.blaettern .zaehler { color: var(--grigio); letter-spacing: 0.1em; }

/* ---------- Fuß ---------- */

.fuss { border-top: 2px solid var(--inchiostro); padding: 2.8rem 0 2rem; font-size: 0.94rem; line-height: 1.7; }
.fuss-marke {
  display: block;
  font-family: var(--titel);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
}
.fuss-marke .punkt { color: var(--rosso); }
.fuss-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 2.2rem; margin: 0 0 2.4rem; }
.fuss h2 { font-family: var(--text); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.4; margin: 0 0 0.8rem; color: var(--grigio); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: 0 0 0.3rem; }
.fuss p { margin: 0; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--rosso); }
.fuss-unten {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--linie);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grigio);
}

/* ---------- Fehlerseite ---------- */

.fehler { text-align: center; padding: 2rem 0 4rem; }
.fehler h1 { font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin: 0 0 1.2rem; }
.fehler p { max-width: 46ch; margin-inline: auto; }

/* ---------- Kleine Schirme ---------- */

@media (max-width: 899px) {
  .magazin > .mitte { border: 0; padding: 0; }
  .magazin > .links, .magazin > .rechts { padding-top: 2.4rem; border-top: 2px solid var(--inchiostro); }
  .tafeln-rand { grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 2.4rem 2rem; }
}

/* Textflächen füllen auf schmalen Schirmen keine leere Höhe */
@media (max-width: 619px) {
  .tafel .platte-satz { aspect-ratio: auto; min-height: 7.5rem; padding: 1.3rem 1.15rem; }
}

@media (max-width: 600px) {
  :root { --rand: 18px; }
  .seite { padding-top: 1.8rem; }
  .navigation ul { gap: 0 1.3rem; }
  .navigation a { font-size: 0.76rem; padding: 0.7rem 0; }
  .marke-satz { letter-spacing: 0.18em; font-size: 0.66rem; }
  .tafeln { gap: 2.4rem 1.6rem; }
  .inhalt { font-size: 1.07rem; }
  .inhalt > p:first-child { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.12s linear; }
}
