/* baristakurs-muenchen.de — Farben und Schriften von Roca Junior (Logo-Petrol, Etiketten-Schreibmaschine). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree.woff2) format("woff2"); }
@font-face { font-family: "Anonymous Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/anonymous-pro-400.woff2) format("woff2"); }
@font-face { font-family: "Anonymous Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/anonymous-pro-700.woff2) format("woff2"); }

:root {
  --rj: #50b4ac;
  --rj-dark: #1b7672;
  --rj-deep: #0d4542;
  --rj-mist: #eaf4f2;
  --ink: #0b1514;
  --paper: #f9fbfa;
  --muted: #4f605e;
  --line: #d5e3e0;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Anonymous Pro", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rj-dark); text-underline-offset: 3px; }
a:hover { color: var(--rj-deep); }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rj-dark); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: #24312f; max-width: 40em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--rj-dark); outline-offset: 3px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--rj); color: var(--ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #46a39c; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--rj-mist); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[aria-disabled="true"] { background: #e3e8e7; border-color: #9aa8a6; color: var(--muted); pointer-events: none; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(249, 251, 250, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.kopf .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.marke img { width: 76px; height: auto; }
.marke span { font-family: var(--mono); font-weight: 700; font-size: 15px; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--rj-dark); text-decoration: underline; }
@media (max-width: 860px) { .nav { display: none; } .kopf .btn { margin-left: auto; } .marke span { display: none; } }

/* Aufmacher */
.auf { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.auf .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.auf h1 { margin-top: 12px; }
.auf .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.auf figure { margin: 0; position: relative; }
.auf figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
@media (max-width: 860px) { .auf .wrap { grid-template-columns: 1fr; } .auf figure img { aspect-ratio: 4 / 3; } }

/* Eckdaten wie ein Etikett */
.etikett { margin-top: 28px; border: 1.5px solid var(--ink); border-radius: 14px; display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--mono); font-size: 14px; background: #fff; }
.etikett div { padding: 12px 14px; border-left: 1px solid var(--line); }
.etikett div:first-child { border-left: 0; }
.etikett dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.etikett dd { margin: 2px 0 0; font-weight: 700; }
@media (max-width: 560px) { .etikett { grid-template-columns: 1fr 1fr; } .etikett div:nth-child(3) { border-left: 0; } .etikett div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Abschnitte */
.abschnitt { padding: clamp(48px, 7vw, 96px) 0; }
.abschnitt--mist { background: var(--rj-mist); }
.abschnitt--deep { background: var(--rj-deep); color: #e6f1ef; }
.abschnitt--deep a { color: #9fdcd5; }
.abschnitt--deep .label { color: #9fdcd5; }
.kopfzeile { max-width: 46em; margin-bottom: 36px; }

/* Kursprogramm */
.programm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .programm { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .programm { grid-template-columns: 1fr; } }
.kurs { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.kurs > a.bild { display: block; overflow: hidden; }
.kurs > a.bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.kurs:hover > a.bild img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .kurs:hover > a.bild img { transform: none; } }
.kurs .text { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.kurs .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kurs h3 { margin-bottom: 6px; }
.kurs h3 a { color: var(--ink); text-decoration: none; }
.kurs h3 a:hover { text-decoration: underline; }
.kurs p { color: #2b3836; font-size: 16px; }
.kurs .fuss { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preis { font-family: var(--mono); font-weight: 700; font-size: 20px; }
.preis small { font-weight: 400; font-size: 12px; color: var(--muted); display: block; }

/* Wegweiser */
.wegweiser { border-top: 1.5px solid var(--ink); }
.wegweiser a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; }
.wegweiser a span:last-child { font-family: var(--mono); font-weight: 700; color: var(--rj-dark); white-space: nowrap; }
.wegweiser a:hover span:first-child { text-decoration: underline; }

/* Raster */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.vier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.vier h3 { font-size: 19px; }
@media (max-width: 900px) { .vier { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .zwei { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vier { grid-template-columns: 1fr; } }
.foto img { width: 100%; border-radius: 18px; object-fit: cover; }
.vier .nr { font-family: var(--mono); color: var(--rj-dark); font-size: 14px; display: block; margin-bottom: 8px; }

/* Anfahrt */
.daten { margin: 0 0 24px; display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; font-size: 16px; }
.daten dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; color: inherit; opacity: .75; }
.daten dd { margin: 0; }

/* Stimmen */
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .stimmen { grid-template-columns: 1fr; } }
.stimme { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.stimme blockquote { margin: 0 0 14px; font-size: 16px; }
.stimme figcaption { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sterne { color: var(--rj-dark); letter-spacing: 2px; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--mono); color: var(--rj-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; margin: 0; color: #2b3836; max-width: 44em; }

/* Kursseite */
.krumen { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 22px; }
.krumen a { color: var(--muted); }
.krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.krumen li + li::before { content: "/"; margin-right: 6px; }
.kursseite { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 28px 0 clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .kursseite { grid-template-columns: 1fr; } }
.kursseite .titelbild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin: 8px 0 32px; }
.liste { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.liste li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.liste li::before { content: attr(data-n); position: absolute; left: 0; top: 13px; font: 700 13px/1.6 var(--mono); color: var(--rj-dark); }
.kasse { position: sticky; top: 92px; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px; }
.kasse .preis { font-size: 30px; }
.kasse .daten { grid-template-columns: 96px 1fr; font-size: 15px; margin: 18px 0; }
.kasse .btn { width: 100%; }
.kasse .hinweis { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.status { font-family: var(--mono); font-size: 13px; }
.status[data-frei="false"] { color: #a0331a; }

/* Gutschein */
.betraege { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.betraege a { font-family: var(--mono); font-weight: 700; }

/* Rechtstext */
.recht { max-width: 760px; padding: 36px 0 80px; }
.recht h2 { font-size: 22px; margin-top: 1.6em; }

/* Fuß */
.fuss-seite { background: var(--rj-deep); color: #cfe3df; padding: 56px 0 32px; font-size: 15px; }
.fuss-seite a { color: #fff; text-decoration: none; }
.fuss-seite a:hover { text-decoration: underline; }
.fuss-seite .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .fuss-seite .spalten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fuss-seite .spalten { grid-template-columns: 1fr; } }
.fuss-seite h2 { font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: #9fdcd5; margin-bottom: 12px; }
.fuss-seite ul { list-style: none; margin: 0; padding: 0; }
.fuss-seite li { margin: 0 0 8px; }
.fuss-seite .unten { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-family: var(--mono); font-size: 12px; }
.fuss-seite .signet { width: 54px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }
.kursseite article h2 { margin-top: 1.5em; }

/* Stadtteile */
.bezirke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; }
.bezirke h3 { font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--rj-dark); margin: 24px 0 8px; }
.bezirke ul, .nachbarn { list-style: none; margin: 0; padding: 0; }
.bezirke .wegweiser a, .nachbarn a { font-size: 16px; padding: 11px 0; }
.bezirke .wegweiser a span:last-child, .nachbarn a span:last-child { font-weight: 400; font-size: 13px; color: var(--muted); }
.nachbarn { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 900px) { .bezirke { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bezirke, .nachbarn { grid-template-columns: 1fr; } }
.programm--eins { grid-template-columns: 1fr; max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .programm--eins { justify-self: stretch; max-width: none; } }
.kursliste { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.kursliste li { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kursliste a { color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.kursliste a:hover { text-decoration: underline; }
.kursliste .muted { font-family: var(--mono); font-size: 13px; }
.kursliste .preis { font-size: 16px; }
@media (max-width: 560px) { .kursliste li { grid-template-columns: 1fr auto; } .kursliste .muted { display: none; } }
.abschnitt--deep .btn, .abschnitt--deep .btn:hover { color: var(--ink); }
