/*
 * Ergänzungen für WordPress. Das Aussehen kommt aus dummy.css (wörtlich aus dem Klick-Dummy).
 * Hier steht nur, was WordPress zusätzlich braucht: Play/Pause-Umschaltung, Editor-Inhalte, Formularschutz.
 */

/* Seitenaufbau: WordPress legt .wp-site-blocks um alles */
.wp-site-blocks{display:flex;flex-direction:column;min-height:100vh}
.wp-site-blocks>.fuss-wrap{margin-top:clamp(44px,6vw,72px)}
main#inhalt{flex:1 0 auto}
.admin-bar .menue{top:calc(12px + var(--wp-admin--admin-bar--height,32px));max-height:calc(100vh - 24px - var(--wp-admin--admin-bar--height,32px))}

/* WordPress schreibt width/height an Bilder; die Höhe soll aus dem CSS des Dummys kommen */
:where(img){height:auto}

/* Play/Pause: beide Icons im Knopf, die Klasse .spielt schaltet um */
.cm-ic-play,.cm-ic-pause{display:contents}
.cm-ic-pause{display:none}
.spielt>.cm-ic-play{display:none}
.spielt>.cm-ic-pause{display:contents}
.mini[hidden],.zu-ende[hidden],.leer[hidden],.zeilen[hidden]{display:none}

/* Spamschutz: verstecktes Feld */
.cm-honig{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.formular button[disabled]{opacity:.6;cursor:wait}

/* Beitragstext aus dem Editor (klassisch und Blöcke) in der Spalte */
.spalte>*{margin-top:0;margin-bottom:0}
.spalte .cm-lead{font-size:22px;line-height:33px;font-weight:600}
.spalte h2.anzeige{margin:12px 0 0}
.spalte .cm-zwischen{margin:8px 0 0;font-size:20px;line-height:27px}
.spalte img{max-width:100%;height:auto}
.spalte .wp-block-image,.spalte .wp-caption{margin:12px 0;display:flex;flex-direction:column;gap:8px;width:auto!important;max-width:100%}
.spalte .wp-block-image img,.spalte .wp-caption img,.spalte p>img:only-child{display:block;width:100%;max-height:540px;object-fit:cover;border-radius:4px}
.spalte .wp-element-caption,.spalte .wp-caption-text{margin:0;font-size:14px;line-height:20px;color:#4D4D4D}
.spalte blockquote{margin:8px 0;padding:0 0 0 20px;border-left:4px solid var(--rot)}
.spalte ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.spalte table{width:100%;border-collapse:collapse;font-size:16px;line-height:24px}
.spalte th,.spalte td{padding:8px 10px;border-bottom:1px solid #BDBDBD;text-align:left;vertical-align:top}
.spalte iframe,.spalte video{max-width:100%}
.spalte .alignleft,.spalte .alignright{float:none;margin:12px 0}
.news-lead{font-family:'Erode',Georgia,serif}

/* Shownotes und Transkript auf der Folgenseite */
.shownotes img{max-width:100%;height:auto;border-radius:4px}
.shownotes h2.anzeige{margin-top:.6em}
.cm-transkript details{border-top:1px solid var(--fein);border-bottom:1px solid var(--fein);padding:4px 0}
.cm-transkript summary{display:flex;align-items:center;min-height:44px;font-weight:600;cursor:pointer;text-decoration:underline;text-decoration-color:var(--rot);text-underline-offset:4px}
.cm-transkript details[open] summary{margin-bottom:8px}
.cm-transkript details p{margin:0 0 1em;color:var(--leise)}
.cm-kapitel-liste{list-style:none;padding-left:0}
.cm-kapitel-zeit{display:inline-flex;align-items:center;min-height:32px;margin-right:6px;padding:0 10px;border:1.5px solid var(--rahmen);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;cursor:pointer}
.cm-kapitel-zeit:hover{background:var(--gelb);border-color:var(--gelb);color:#000000}

/* Über uns: Abschnitte aus Editor-Blöcken */
.ueber .wp-block-image{margin:0;display:flex;flex-direction:column;gap:8px}
.ueber .wp-block-image img{display:block;width:100%;height:auto;border-radius:4px}
.ueber .wp-element-caption{margin:0;font-size:14px;line-height:20px;color:var(--leise)}
.ueber .text>*{margin-top:0;margin-bottom:0}

/* Suche und Seitenzahlen */
.pillen a.pille,.pillen span.pille{text-decoration:none}
.steuerung>.pille{align-self:flex-end}

/* Alte Beiträge mit Elementor-Resten im Text: Hüllen auflösen, Galerien als Raster */
.spalte :is(.elementor,.elementor-section,.elementor-container,.elementor-column,.elementor-widget-wrap,.elementor-widget,.elementor-widget-container,.elementor-inner,.elementor-row,.elementor-column-wrap){display:contents}
.spalte .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:12px 0}
.spalte .gallery br{display:none}
.spalte .gallery-item{margin:0;display:flex;flex-direction:column;gap:4px}
.spalte .gallery-item img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:4px}
.spalte .gallery-caption{font-size:13px;line-height:18px;color:#4D4D4D}
.spalte .elementor-widget-text-editor{font-family:'Erode',Georgia,serif;font-weight:300;font-size:var(--copy);line-height:var(--copy-lh)}
section.held+.flaeche{margin-top:clamp(44px,6vw,72px)}

/* Hero niedriger als im Dummy (Wunsch 15.11.2026): Darunter ist der Anfang des Magazins zu sehen,
   damit Hell/Dunkel sofort sichtbar wird, ohne zu scrollen. */
.held-voll{height:clamp(520px,76svh,820px)}

/* Angemeldet: Die WordPress-Leiste liegt sonst über Kopfzeile, Hell/Dunkel-Knopf und Menü. */
body.admin-bar .seite:has(.held-voll) .kopf,
body.admin-bar.seite:has(.held-voll) .kopf{top:var(--wp-admin--admin-bar--height,32px)}
body.admin-bar .menue{top:calc(12px + var(--wp-admin--admin-bar--height,32px));max-height:calc(100vh - 24px - var(--wp-admin--admin-bar--height,32px))}
@media (max-width:599px){body.admin-bar .menue{top:calc(6px + var(--wp-admin--admin-bar--height,46px))}}

/* Startseite: „Aus dem Magazin“ wechselt mit Hell/Dunkel (Wunsch 15.11.2026), damit der Schalter
   direkt unter dem Hero sichtbar wirkt. Hell bleibt wie im Dummy (Papier), dunkel wie die Magazin-Seite. */
.dunkel .cm-wechsel{--bg:#141414;--flaeche:#222222;--text:#FFFFFF;--leise:#BDBDBD;--fein:#3F3F3F;--rahmen:#8A8A8A;--fokus:#CCCC00}
.dunkel .cm-wechsel .vorschau a,.dunkel .cm-wechsel .vorschau-auf{background:#1F1F1F;color:#FFFFFF}
.dunkel .cm-wechsel .pille{border-color:#FFFFFF;color:#FFFFFF}
.dunkel .cm-wechsel .pille.an{background:#FFFFFF;color:#000000}
.dunkel .cm-wechsel select,.dunkel .cm-wechsel .auswahl{color:#FFFFFF;border-color:#FFFFFF}
.dunkel .cm-wechsel .news-karte{background:#1F1F1F;color:#FFFFFF}
.dunkel .cm-wechsel .news-karte .meta,.dunkel .cm-wechsel .news-karte p{color:#BDBDBD}
.dunkel .cm-wechsel .news-tags{color:#BDBDBD}
.dunkel .cm-wechsel .news-folge{color:#FFFFFF;border-top-color:#3F3F3F}
.dunkel .cm-wechsel .vorschau .meta,.dunkel .cm-wechsel .vorschau-auf .meta,
.dunkel .cm-wechsel .vorschau p,.dunkel .cm-wechsel .vorschau-auf p{color:#BDBDBD}
/* 1.0.7: „Zuletzt auf Sendung“ mit Foto, Folgennummer klein als Eyebrow */
.zeile.zeile-eyebrow{grid-template-columns:48px 128px minmax(0,1fr) auto}
.zeile-text>.zeile-nr{order:-1;margin-bottom:2px;font-family:'Inter',sans-serif;font-size:13px;line-height:18px;font-weight:600;color:var(--leise);font-variant-numeric:tabular-nums}
@media (max-width:640px){.zeile.zeile-eyebrow{grid-template-columns:48px minmax(0,1fr) 84px}.zeile-text>span.zeile-nr{display:block}}
@media (max-width:599px){
  /* Hero-Player mobil kompakt: Eyebrow, Titel, Play + „Mehr zur Folge“ */
  .hv-karte{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px;padding:12px 14px 10px}
  .hv-ort,.hv-titel{grid-column:1 / -1}
  .hv-ort{font-size:12px;line-height:16px;margin-bottom:4px}
  .hv-titel{font-size:22px;margin-bottom:10px}
  .hv-spieler .spur,.hv-themen{display:none}
  .hv-play.play-gross{width:44px;height:44px}
  .hv-mehr{grid-column:2;justify-self:start}
}
/* 1.0.9: Bilder zur Folge (bis zu drei) unter den Shownotes */
.folge-bilder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.folge-bilder.anzahl-1{grid-template-columns:minmax(0,640px)}
.folge-bilder.anzahl-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.folge-bilder figure{margin:0;display:flex;flex-direction:column;gap:8px}
.folge-bilder img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
.folge-bilder figcaption{font-size:14px;line-height:20px;color:var(--leise)}
@media (max-width:640px){.folge-bilder,.folge-bilder.anzahl-2{grid-template-columns:minmax(0,1fr)}}
/* 1.0.16: Links & Partner (Link-Sammlung, auch für die Instagram-Bio) */
.link-liste{list-style:none;margin:0;padding:0;border-top:1px solid var(--fein)}
.link-liste li{margin:0;border-bottom:1px solid var(--fein)}
.link-zeile{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:14px 4px;color:var(--text);text-decoration:none}
.link-zeile>span:first-child{display:flex;flex-direction:column;gap:2px}
.link-zeile strong{font-family:'Cabinet Grotesk','Inter',sans-serif;font-weight:800;font-size:clamp(22px,2.4vw,30px);line-height:1.05;text-transform:uppercase;letter-spacing:-.01em}
.link-zeile small{font-family:'Inter',sans-serif;font-size:15px;line-height:22px;color:var(--leise)}
.link-pfeil{flex:none;display:grid;place-items:center;width:44px;height:44px;border:1.5px solid var(--rahmen);border-radius:999px;font-size:18px;transition:background .15s,color .15s}
.link-zeile:hover strong{text-decoration:underline;text-decoration-color:var(--rot);text-decoration-thickness:3px;text-underline-offset:5px}
.link-zeile:hover .link-pfeil{background:var(--gelb);border-color:var(--gelb);color:#000}
.link-gruppe .anzeige{margin-bottom:4px}

/* Newsletter: Bestätigung (1.0.17) */
.nl-panel .nl-titel{margin:0;font-family:"Cabinet Grotesk",Inter,sans-serif;font-weight:800;font-size:clamp(24px,3vw,32px);line-height:1.05;text-transform:uppercase;color:#FFFFFF}
.nl-panel .meldung strong{font-weight:700;overflow-wrap:anywhere}

/* Aktion (Gewinnspiel) über der Newsletter-Anmeldung */
.nl-aktion{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 56px;align-items:center}
.nl-aktion-bild{display:block;width:100%;max-width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}
.nl-aktion-text{min-width:0}
.nl-aktion-text .nl-eyebrow{color:#000000}
.nl-aktion-text h2{margin:0 0 14px;color:#FFFFFF;text-wrap:balance}
.nl-aktion-text p:not(.nl-eyebrow){margin:0;max-width:34em}
.nl-aktion-links{display:flex;flex-wrap:wrap;gap:0 24px;margin-top:6px!important}
.nl-aktion-text .nl-panel{margin-top:24px}
.nl-aktion-links .textlink{color:#FFFFFF;text-decoration-color:#FFFFFF}
.nl-gross.mit-aktion{margin-top:0}
@media (max-width:860px){.nl-aktion{grid-template-columns:minmax(0,1fr)}}
.nl-aktion-text .nl-aktion-hinweis{margin-top:12px!important;font-weight:700}

/* Lange Adressen im Text umbrechen, damit nichts seitlich übersteht */
main :where(p,li,td,blockquote,figcaption) a{overflow-wrap:anywhere}
main video{display:block;max-width:100%;height:auto;border-radius:12px}
/* Gewinnspiel: Galerie und Produktlink unter dem großen Bild */
.nl-aktion-medien{min-width:0;display:grid;gap:12px}
.nl-aktion-galerie{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:10px}
.nl-aktion-galerie button{display:block;width:100%;padding:0;border:2px solid transparent;border-radius:8px;background:none;cursor:pointer;overflow:hidden;opacity:.7;transition:opacity .15s,border-color .15s}
.nl-aktion-galerie button:hover,.nl-aktion-galerie button:focus-visible{opacity:1}
.nl-aktion-galerie button[aria-pressed="true"]{border-color:#FFFFFF;opacity:1}
.nl-aktion-galerie img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.nl-aktion-text .nl-aktion-verlosung{font-size:1.2em;font-weight:700;line-height:1.35}
.nl-aktion-text .nl-aktion-produkt{margin-top:8px!important}
.nl-aktion-produkt a{color:#FFFFFF;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.nl-aktion-produkt a::after{content:" →"}
.nl-aktion-produkt a:hover{text-decoration-thickness:2px}
.nl-aktion{align-items:start}
