/* r-bitzer.de – Stylesheet (Neugestaltung November 2026)
   Schriften liegen lokal in assets/fonts (keine Verbindung zu Google). */

@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Farben: Kalkstein der Alb, Tinte, Herbstorange und Abendlicht (aus den MTB-Bildern am Albtrauf) */
  --kalk: #ECEEE8;
  --papier: #F7F8F4;
  --tinte: #1D2623;
  --grau: #56605B;
  --linie: #C9CDC4;
  --alb: #B4561A;      /* Herbstlaub-Orange: Silhouette, Akzente */
  --alb-fern: #EAB27C; /* Abendhimmel */
  --abend: #E9A23B;    /* Sonne */
  --link: #A34A12;
  --knopf: #B4561A;   /* Videoflächen mit weißer Schrift */

  --sans: "Barlow SC", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --text: 40rem;
  --breit: 64rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --kalk: #161C1B;
    --papier: #1E2524;
    --tinte: #E4E7E1;
    --grau: #A3ACA7;
    --linie: #36403E;
    --alb: #C2662A;
    --alb-fern: #4A2E1C;
    --abend: #F2B54A;
    --link: #F0A05A;
    --knopf: #9A4410;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--papier); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Kopf ---------- */
.kopf { position: relative; }
.kopf-innen {
  max-width: var(--breit); margin: 0 auto; padding: 1.25rem 1.25rem 0;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
}
.marke { text-decoration: none; color: var(--tinte); display: block; }
.marke b { font-family: var(--sans); font-weight: 700; font-size: 2.1rem; letter-spacing: .01em; line-height: 1; display: block; }
.marke span { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--grau); display: block; margin-top: .25rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.nav a {
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--tinte);
  text-decoration: none; padding: .2rem 0; border-bottom: 3px solid transparent; display: inline-block;
}
.nav a:hover { border-bottom-color: var(--linie); }
.nav a[aria-current="page"] { border-bottom-color: var(--alb); }
.menue-knopf { display: none; }

.trauf { display: block; width: 100%; height: clamp(56px, 8.75vw, 170px); margin-top: .5rem; }
.trauf .fern { fill: var(--alb-fern); }
.trauf .nah { fill: var(--alb); }
.trauf .sonne { fill: var(--abend); }

@media (max-width: 760px) {
  .marke b { font-size: 1.75rem; }
  .menue-knopf {
    display: inline-block; font: 600 1.05rem var(--sans); color: var(--tinte);
    background: transparent; border: 2px solid var(--tinte); border-radius: 4px; padding: .3rem .8rem; cursor: pointer;
    position: absolute; right: 1.25rem; top: 1.45rem;
  }
  .nav { width: 100%; }
  .js .nav ul { display: none; }
  .js .nav.offen ul { display: flex; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--linie); margin-top: .5rem; }
  .nav li { border-bottom: 1px solid var(--linie); }
  .nav a { display: block; padding: .6rem 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--link); }
}

/* ---------- Inhalt ---------- */
main { max-width: var(--breit); margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.text { max-width: var(--text); }
h1, h2, h3 { font-family: var(--sans); line-height: 1.15; color: var(--tinte); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.65rem; font-weight: 700; margin: 3rem 0 .75rem; padding-top: .9rem; border-top: 2px solid var(--tinte); }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.25rem; line-height: 1.5; }
.klein { font-size: .92rem; color: var(--grau); }
.datum { font-family: var(--sans); font-weight: 500; color: var(--grau); font-size: 1rem; margin: 0 0 .5rem; }

figure { margin: 0 0 2rem; }
figure img { border-radius: 3px; }
figcaption { font-size: .92rem; color: var(--grau); margin-top: .5rem; max-width: 40rem; }

/* Startseite */
.willkommen { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: start; }
.willkommen .portrait { width: 160px; border-radius: 3px; }
.start-bild { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 2rem; align-items: end; margin-top: 2.5rem; }
.start-bild figcaption { margin: 0; }
@media (max-width: 760px) {
  .willkommen { grid-template-columns: 1fr; }
  .willkommen .portrait { width: 120px; order: -1; }
  .start-bild { grid-template-columns: 1fr; gap: .5rem; }
}

.hinweise { list-style: none; padding: 0; margin: 0; max-width: var(--text); }
.hinweise li { padding: .75rem 0; border-bottom: 1px solid var(--linie); }
.hinweise li:first-child { border-top: 1px solid var(--linie); }

/* Listen mit Wegmarke */
.weg { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--text); }
.weg li { position: relative; padding: .45rem 0 .45rem 1.6rem; }
.weg li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem;
  border: 2px solid var(--alb); transform: rotate(45deg);
}

/* ---------- Videos ---------- */
.sprung { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1rem; padding: 0; list-style: none; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.film {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--linie); scroll-margin-top: 1rem;
}
.film:target h3 { color: var(--link); }
.film:has(+ h2), #neu { border-bottom: 0; }
.film .beschreibung p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .film { grid-template-columns: 1fr; } }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--knopf); border-radius: 3px; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.mp4 { aspect-ratio: 4 / 3; background: #000; }
.yt {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; text-align: left;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M300 112c0 40-45 70-100 70S90 150 95 110s50-75 105-72 100 34 100 74z'/%3E%3Cpath d='M270 112c0 26-32 46-70 46s-76-20-73-46 36-50 73-48 70 22 70 48z'/%3E%3Cpath d='M240 112c0 12-18 22-40 22s-44-10-42-22 20-25 42-24 40 12 40 24z'/%3E%3Cpath d='M335 112c0 55-60 95-135 95S55 170 60 110s70-100 140-97 135 45 135 99z'/%3E%3Cpath d='M372 115c0 70-78 118-172 118S20 190 25 112 110-12 200-10s172 55 172 125z'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat,
    var(--knopf);
  font: 600 1.05rem var(--sans); padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
}
.yt::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem;
  border-radius: 50%; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 2.2rem no-repeat;
  border: 2px solid #fff; transition: transform .15s ease;
}
.yt:hover::before, .yt:focus-visible::before { transform: scale(1.08); }
.yt small { font: 400 .82rem/1.35 var(--serif); opacity: .9; max-width: 30rem; }
.yt-link { font-size: .9rem; margin-top: .5rem; }
.yt { isolation: isolate; }
.yt-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.yt.mit-bild::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.6)); }
.yt.mit-bild { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.yt.mit-bild::before { background-color: rgba(180,86,26,.85); }

/* ---------- Bilder Mountainbike ---------- */
.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0 2rem; }
@media (max-width: 760px) { .bildpaar { grid-template-columns: 1fr; } }

/* ---------- Links ---------- */
.linkliste { list-style: none; padding: 0; margin: 0 0 1rem; max-width: var(--text); }
.linkliste li { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.linkliste a { font-weight: 600; }
.linkliste li.mit-logo { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; }
.linkliste li:not(.mit-logo) { padding-left: 8.5rem; }
.linkliste span a { font-weight: 400; }
@media (max-width: 760px) { .linkliste li.mit-logo { grid-template-columns: 4.5rem 1fr; } .linkliste .logo { max-width: 4.5rem; max-height: 3rem; } .linkliste li:not(.mit-logo) { padding-left: 5.5rem; } }
.linkliste .logo { max-width: 7.5rem; max-height: 3.5rem; width: auto; height: auto; justify-self: center; background: #fff; padding: 4px; border-radius: 3px; }
.linkliste span { display: block; color: var(--grau); font-size: .95rem; }

/* ---------- Historie ---------- */
.historie { list-style: none; padding: 0; margin: 0; max-width: var(--text); border-left: 2px solid var(--alb); }
.historie li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.historie li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--kalk); border: 2px solid var(--alb); }
.historie li:first-child::before { background: var(--abend); border-color: var(--abend); }
.historie time { display: block; font-family: var(--sans); font-weight: 600; }

/* ---------- Späßle ---------- */
.witz { max-width: var(--text); padding: 1.25rem 0; border-bottom: 1px solid var(--linie); }
.witz p { margin-bottom: .5rem; }
.passwort { font-size: .98rem; }
.passwort .ein { font-family: var(--sans); font-weight: 600; overflow-wrap: anywhere; }
.passwort .aus { color: var(--grau); font-style: italic; margin-bottom: .6rem; }

/* ---------- Kontakt ---------- */
.adresse { display: grid; grid-template-columns: 6rem 1fr; gap: .3rem 1rem; margin: 0 0 1rem; max-width: var(--text); }
.adresse dt { font-family: var(--sans); font-weight: 600; }
.adresse dd { margin: 0; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); background: var(--papier); }
.fuss-innen { max-width: var(--breit); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .92rem; color: var(--grau); }
.fuss p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Webcam Raichberg ---------- */
.kamera { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.kamera h2 { margin-top: 0; }
.kamera h2 span { font-weight: 500; font-size: 1.1rem; color: var(--grau); margin-left: .4rem; }
.kamera:target h2 { color: var(--link); }
.kamera-bild { overflow-x: auto; background: var(--papier); border: 1px solid var(--linie); border-radius: 3px; min-height: 8rem; }
.kamera-bild img { width: 100%; height: auto; cursor: zoom-in; }
.kamera-bild.voll img { width: auto; max-width: none; cursor: zoom-out; }
.kamera-bild .fehler { padding: 2rem 1rem; color: var(--grau); margin: 0; }
.neu-laden { font: 600 .95rem var(--sans); color: var(--tinte); background: transparent; border: 2px solid var(--alb); border-radius: 4px; padding: .15rem .7rem; cursor: pointer; margin-left: .3rem; }
.neu-laden:hover { background: var(--alb); color: #fff; }
.linkliste .logo-link { justify-self: center; }
