/* Gemeinsames Aussehen der drei Magazine – nachgebaut nach dem Stand bei OnePage vom 17.11.2026.
   Maße sind an der Live-Seite gemessen (Schriftgrößen, Abstände, Spaltenbreite). */
:root {
  --tinte: #07071a;
  --schrift: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
  --rand: 24px;
  --faktor: 0.5; /* Abschnittsabstände halbieren sich auf dem Handy */
}
@media (min-width: 768px) { :root { --rand: 32px; --faktor: 1; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--tinte); font-family: var(--schrift); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Kopfleiste */
.kopfleiste { background: #f7f7f7; padding: 16px 24px; display: flex; justify-content: center; }
.kopfleiste img { width: 250px; height: auto; }

/* Abschnitt > Rahmen > Reihe > Spalte > Block > Baustein */
.abschnitt { background: var(--grund, #fff); padding: calc(var(--oben, 50px) * var(--faktor)) var(--rand) calc(var(--unten, 50px) * var(--faktor)); }
.rahmen { max-width: var(--breite, 1250px); margin: 0 auto; }
/* Spalten: 24er-Raster mit 48px Zwischenraum, wie im Original gemessen */
.spalten { display: flex; flex-wrap: wrap; gap: 32px var(--luecke, 48px); }
.spalten.mittig { align-items: center; }
.spalte { --teil: var(--sm, 24); flex: 0 0 calc(var(--teil) / 24 * (100% + var(--luecke, 48px)) - var(--luecke, 48px)); min-width: 0; }
@media (min-width: 768px) { .spalte { --teil: var(--md, 24); } }
@media (min-width: 1024px) { .spalte { --teil: var(--lg, 24); } }

.karten { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 640px) { .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.block.kasten { background: var(--kasten, #f2f2f2); border-radius: 4px; padding: var(--innen, 48px); }
@media (max-width: 767px) { .block.kasten { padding: 24px; } }

.a-l { text-align: left; }
.a-z { text-align: center; }
.a-r { text-align: right; }

/* Überschriften: auf dem Handy kleiner, ab Desktopbreite die gemessenen Größen */
.kopf > * { font-weight: 700; }
.h-xl > * { font-size: clamp(34px, 19.9px + 3.62vw, 72px); line-height: 1.16; }
.h-l > * { font-size: clamp(32px, 23px + 2.29vw, 56px); line-height: 1.18; }
.h-m > * { font-size: clamp(30.5px, 27px + 0.9vw, 40px); line-height: 1.2; }
.h-s > * { font-size: clamp(26px, 23.8px + 0.57vw, 32px); line-height: 1.21; }
.h-xs > * { font-size: clamp(16px, 11.6px + 1.14vw, 28px); line-height: 1.21; }
.h-custom > * { font-size: 20px; line-height: 1.4; }
.kopf a { text-decoration: underline; text-underline-offset: 0.12em; }

/* Fließtext */
.text > * { font-size: inherit; }
.text > * + * { margin-top: 16px; }
.text p, .kopf > * { white-space: pre-wrap; }
.t-xs { font-size: 20px; line-height: 30px; }
.t-s { font-size: 22px; line-height: 33px; }
.t-m { font-size: 24px; line-height: 36px; }
.t-l { font-size: 26px; line-height: 39px; }
.t-xl { font-size: 28px; line-height: 42px; }
.t-custom { font-size: 16px; line-height: 1.5; }
.t-custom > * { line-height: 1.5; }
.text ul, .text ol { padding-left: 1.3em; }
.text li + li { margin-top: 0.4em; }
p.leer { user-select: none; }

/* Bilder */
.bildrahmen { position: relative; overflow: hidden; width: 100%; background: #e9e9e9; }
.bildrahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bildrahmen a { position: absolute; inset: 0; }
img.frei { width: 100%; height: auto; }
hr { border: 0; border-top: 2px solid #000; margin: 15px 0; }
.a:has(> hr) { margin-bottom: 6px !important; }

/* Nummerierte Liste (Checkliste): schlanke Ziffer links, Titel und Text rechts */
.liste { list-style: none; padding: 0; counter-reset: punkt; }
.liste > li { counter-increment: punkt; display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; }
.liste > li::before { content: counter(punkt); flex: 0 0 40px; height: 40px; display: grid; place-items: center; font-size: 34px; line-height: 1; font-weight: 200; color: #444; }
.liste > li + li { margin-top: 8px; }
.liste-kopf { font-size: clamp(20px, 17.8px + 0.57vw, 26px); line-height: 32px; font-weight: 700; margin-bottom: 4px; }
.liste p:not(.liste-kopf) { font-size: 22px; line-height: 33px; }

/* Galerie */
.galerie-buehne { position: relative; }
.galerie-spur { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerie-spur::-webkit-scrollbar { display: none; }
.galerie-spur li { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 100 / 62; }
.galerie-spur img { width: 100%; height: 100%; object-fit: cover; }
.galerie-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
.galerie-pfeil.zurueck { left: 12px; }
.galerie-pfeil.vor { right: 12px; }
.galerie-daumen { display: flex; justify-content: center; gap: 8px; margin-top: 16px; padding-bottom: 24px; flex-wrap: wrap; }
.galerie-daumen button { width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.55; }
.galerie-daumen button[aria-current="true"] { opacity: 1; outline: 2px solid var(--tinte); outline-offset: 2px; }
.galerie-daumen img { width: 100%; height: 100%; object-fit: cover; }

/* Fußzeile */
.fuss { background: #000; color: #fff; padding: 100px var(--rand) 60px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.fuss img { width: 250px; height: auto; min-height: 31px; }
.fuss nav { display: flex; gap: 32px; font-size: 14px; padding: 39px 0 40px; }
.fuss nav a:hover, .fuss nav a:focus-visible { text-decoration: underline; }
@media (max-width: 767px) { .fuss { padding: 50px var(--rand) 30px; } }
