/* PIEP Meditations-Library · Markenwelt von www.emotionspaedagogik.de (Stand 16.10.2026)
   Hintergrund warmes Beige #F7F3EE · Kopfleiste und Karten weiß · Linien #E6E0DA
   Überschriften Libre Baskerville #3A3A3A · Fließtext Source Sans 3 #6B6B6B
   Akzent Magenta #E83E8C (Links, Pill-Buttons, Kategorie-Label) · Schriften lokal, kein Google-CDN */

@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/libre-baskerville-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F7F3EE;
  --flaeche: #FFFFFF;
  --flaeche-2: #FBF8F5;
  --linie: #E6E0DA;
  --text: #6B6B6B;
  --text-stark: #3A3A3A;
  --titel: #3A3A3A;
  --akzent: #E83E8C;
  --akzent-dunkel: #C92A73;
  --akzent-hell: #FCE8F1;
  --verlauf: linear-gradient(90deg, #F59DB0, #E83E8C 45%, #9984B9);
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.7 "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, h4 { font-family: "Libre Baskerville", Georgia, serif; color: var(--titel); font-weight: 400; line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin-top: .3em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { color: var(--text-stark); font-weight: 600; }
a { color: var(--akzent); text-underline-offset: .18em; }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
code { font-size: .85em; word-break: break-all; }

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

/* Kopf und Fuß: weiße Leiste wie auf der Website */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: .8rem clamp(1rem, 4vw, 2.5rem); }
.marke { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--text-stark); }
.marke img { height: 46px; width: auto; }
.marke span { border-left: 1px solid var(--linie); padding-left: .9rem; font-family: "Libre Baskerville", Georgia, serif; font-size: 1rem; color: var(--text-stark); line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--text-stark); }
.nav a:hover { color: var(--akzent); }
.nav .nav-knopf { background: var(--akzent); color: #fff; border-radius: 24px; padding: .45rem 1.1rem; font-weight: 600; }
.nav .nav-knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.nav-name { color: var(--text); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--text-stark); cursor: pointer; }
button.link:hover { color: var(--akzent); }

main { padding: 0 clamp(1rem, 4vw, 2.5rem) 3.5rem; max-width: 1180px; margin: 0 auto; }
.schmal { max-width: 720px; margin-left: auto; margin-right: auto; }

.fuss { background: var(--flaeche); border-top: 1px solid var(--linie); padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 2.5rem; text-align: center; font-size: .92rem; color: var(--text); }
.fuss nav { margin-bottom: .5rem; }
.fuss a { color: var(--text-stark); }
.fuss a:hover { color: var(--akzent); }

/* Start */
.eyebrow { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); font-weight: 600; margin: 2.25rem 0 .25rem; }
.held { max-width: 780px; padding: .5rem 0 .25rem; }
.held .lead { font-size: 1.15rem; }
.status { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1.1rem; }

.filter { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); padding: .75rem 0; margin: 1rem 0 0; border-bottom: 1px solid var(--linie); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; align-items: center; }
.chip { flex: 0 0 auto; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-stark); border-radius: 24px; padding: .4rem 1rem; font: inherit; font-size: .92rem; cursor: pointer; }
.chip:hover { border-color: var(--akzent); color: var(--akzent); }
.chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.nur-frei { flex: 0 0 auto; font-size: .92rem; margin-left: .5rem; white-space: nowrap; }
.nur-frei input { accent-color: var(--akzent); }

.kategorie h2 { margin-top: 2.25rem; }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.kachel a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.2rem 1.3rem 1.3rem; background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); border: 1px solid var(--linie); text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.kachel a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--verlauf); }
.kachel a:hover { transform: translateY(-2px); border-color: #F2B8D2; }
.kachel-kopf { display: flex; justify-content: space-between; align-items: center; }
.dauer { font-size: .8rem; color: var(--text); background: var(--bg); border-radius: 24px; padding: .1rem .65rem; }
.kachel-titel { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.12rem; color: var(--titel); line-height: 1.35; }
.kachel-unter { font-size: .95rem; }
.kachel.zu a { background: var(--flaeche-2); box-shadow: none; }
.kachel.zu a::before { background: var(--linie); }
.kachel.zu .kachel-titel { color: #8A8A8A; }
.kachel-hinweis { margin-top: auto; padding-top: .5rem; font-size: .82rem; color: var(--akzent); }
.schloss { color: #9A9A9A; flex: 0 0 auto; }
.leer { text-align: center; margin: 3rem 0; }

/* Track */
.zurueck { margin: 1.25rem 0 0; font-size: .95rem; }
.zurueck a { text-decoration: none; }
.untertitel { font-size: 1.15rem; font-family: "Libre Baskerville", Georgia, serif; font-style: italic; }
.meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.meta span { font-size: .85rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 24px; padding: .15rem .8rem; color: var(--text-stark); }
.hinweis { border-left: 3px solid var(--akzent); background: var(--flaeche); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.15rem; margin: 1.25rem 0; box-shadow: var(--schatten); }
.hinweis.atem { border-left-color: #9984B9; }
.hinweis p:last-child { margin: 0; font-size: .92rem; }
.player { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem; margin: 1.5rem 0; box-shadow: var(--schatten); }
.player audio { width: 100%; display: block; }
.steuerung { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; align-items: center; }
.steuerung button, .klein-knopf { border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-stark); border-radius: 24px; padding: .4rem .95rem; font: inherit; font-size: .92rem; cursor: pointer; min-height: 40px; }
.steuerung button:hover, .klein-knopf:hover { border-color: var(--akzent); color: var(--akzent); }
.tempo { display: inline-flex; gap: .35rem; margin-left: auto; }
.tempo button.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.umschalter { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.umschalter legend { float: left; margin-right: .75rem; font-size: .92rem; }
.umschalter label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; color: var(--text-stark); }
.umschalter input { accent-color: var(--akzent); width: 1.1rem; height: 1.1rem; }
.gesperrt-box { text-align: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.6rem; margin: 1.5rem 0; }
.gesperrt-box .schloss { width: 28px; height: 28px; }
.attribution { font-size: .92rem; font-style: italic; }
.kurs { font-size: .92rem; }
.kurs span { font-weight: 600; color: var(--text-stark); }

/* Text, Formulare */
.text h2, .text h3, .text h4 { font-size: 1.2rem; }
.text li { margin-bottom: .4rem; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--akzent); background: var(--flaeche); border-radius: 0 var(--radius) var(--radius) 0; }
mark.platzhalter { background: #FFE3E5; color: #A3141E; padding: 0 .25em; border-radius: 4px; border: 1px dashed #FF4D59; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--schatten); margin-top: 1.75rem; }
.formular { display: grid; gap: .6rem; margin: 1rem 0; }
.formular label { font-size: .95rem; display: grid; gap: .3rem; color: var(--text-stark); }
.formular label.check { display: flex; gap: .5rem; align-items: center; }
input[type=email], input[type=text], input[type=search], select { font: inherit; padding: .65rem .9rem; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text-stark); width: 100%; }
input:focus, select:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-hell); }
.suche input[type=search] { width: auto; min-width: 0; max-width: 100%; }
.knopf { display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 24px; padding: .7rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.meldung { background: var(--flaeche); border-left: 3px solid var(--akzent); padding: .7rem 1rem; border-radius: 0 10px 10px 0; }
.klein { font-size: .9rem; }
.warn { border-color: #D9534F !important; color: #C0392B !important; }

/* Admin */
.admin-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.admin-raster .karte { margin-top: 0; }
.admin .knopf { margin: .25rem 0; }
.liste { padding-left: 1.2rem; font-size: .95rem; }
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--flaeche); }
.tabelle th, .tabelle td { padding: .55rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { color: var(--text-stark); font-weight: 600; }
.tabelle select { width: auto; padding: .3rem .4rem; font-size: .88rem; }
.tabelle tr.gesperrt td { opacity: .55; }
.aktionen form { display: inline-block; margin: 0 .25rem .25rem 0; }

@media (max-width: 520px) {
  .marke img { height: 38px; }
  .marke span { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Überschrift als erstes Element einer Karte ohne Abstand nach oben */
.karte > h1:first-child, .karte > h2:first-child { margin-top: 0; }
