/*
Theme Name: Gemonio MNML Child
Theme URI: https://gemonio.ch/
Description: Schlankes Child Theme für Gemonio MNML. Space 4 Records: updatefester Ort für projektspezifisches CSS und PHP.
Author: Gemonio
Template: gemonio-mnml
Version: 1.0.0
Text Domain: gemonio-mnml-child
*/

/*
 * Projektspezifische Styles ab hier.
 * MNML selbst bleibt unangetastet und updatefähig.
 */

/* Kopf-Formular: Höhe des Headerbilds (Seite und Produkt) */
body.gm-hero-low{--gm-hero-h:min(44vh,480px)}
body.gm-hero-high{--gm-hero-h:min(80vh,860px)}
@media(max-width:900px){body.gm-hero-low{--gm-hero-h:32vh}body.gm-hero-high{--gm-hero-h:60vh}}

/* Abschnitte (freie Seiten) */
.gm-sections{margin-top:clamp(40px,6vw,90px)}
.gm-sec{margin:0 0 clamp(48px,7vw,96px)}
.gm-sec__title{font-family:var(--mnml-font-heading);text-transform:uppercase;color:var(--gm-orange,#c14722);font-size:clamp(30px,4vw,56px);line-height:1.02;font-weight:400;margin:0 0 .5em}
.gm-sec__body p{margin:0 0 1em;color:var(--gm-creme,#f9eed8)}
.gm-sec__body a{color:var(--gm-orange,#c14722)}
.gm-sec--bildtext{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:center}
.gm-sec--bildtext.gm-sec--right .gm-sec__media{order:2}
.gm-sec--bildtext img{display:block;width:100%;height:auto}
@media(max-width:800px){.gm-sec--bildtext{grid-template-columns:1fr}.gm-sec--bildtext.gm-sec--right .gm-sec__media{order:0}}
.gm-sec--zitat blockquote{margin:0;padding:0;border:0;max-width:34em}
.gm-sec--zitat blockquote,.gm-sec--zitat blockquote p{font-size:clamp(24px,3vw,40px);line-height:1.25;color:var(--gm-creme,#f9eed8)}
.gm-sec--zitat cite{display:block;margin-top:1em;font-style:normal;font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--gm-sand,#b9a98a)}
.gm-sec--galerie{display:grid;gap:12px}
.gm-sec--galerie.gm-cols-2{grid-template-columns:repeat(2,1fr)}
.gm-sec--galerie.gm-cols-3{grid-template-columns:repeat(3,1fr)}
.gm-sec--galerie.gm-cols-4{grid-template-columns:repeat(4,1fr)}
.gm-sec--galerie figure{margin:0}
.gm-sec--galerie img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1/1}
@media(max-width:700px){.gm-sec--galerie.gm-cols-3,.gm-sec--galerie.gm-cols-4{grid-template-columns:repeat(2,1fr)}}
.gm-sec__album{display:flex;align-items:center;gap:24px;text-decoration:none}
.gm-sec__album img{display:block;width:min(220px,40vw);height:auto}
.gm-sec__albumname{font-family:var(--mnml-font-heading);text-transform:uppercase;color:var(--gm-creme,#f9eed8);font-size:clamp(26px,3.4vw,44px);line-height:1.05}

/* ===== Space 4 Records: Palette (Variablennamen wie bei den anderen Gemonio-Seiten) ===== */
:root{--gm-creme:#f2f0ea;--gm-sand:#9b9a93;--gm-orange:#2b9ae3}
h1,h2,h3,h4,h5,h6,.mnml-page-title{text-transform:uppercase}
.mnml-entry h1,.mnml-entry h2,.mnml-entry h3,.mnml-entry h4,.mnml-entry h5,.mnml-entry h6{color:var(--gm-orange)}
.mnml-entry a{color:var(--gm-orange)}
.mnml-entry h2{font-size:clamp(28px,4vw,48px);line-height:1.05;margin:1.4em 0 .5em}
/* Webwerk: Seitentitel bündig zur Marke (MNML rückt ihn sonst 0.07em nach links) */
.mnml-page-title{inset-inline-start:0}

/* Webwerk: Headerbild Startseite, begrenzte Höhe */
.gm-hero{display:block;width:100%;height:min(46vh,520px);object-fit:cover;object-position:50% 30%;margin:0 0 2rem}
@media(max-width:700px){.gm-hero{height:36vh}}

/* Webwerk: Seitenbild (ehemaliges Bridge-Titelbild) mit begrenzter Höhe */
.mnml-template-media img{display:block;width:100%;height:min(40vh,460px);object-fit:cover}
@media(max-width:700px){.mnml-template-media img{height:30vh}}

/* Webwerk: Seitenbild vollbreit ganz oben, hinter Kopfzeile und Titel */
:root{--gm-hero-h:min(62vh,680px)}
@media(max-width:900px){:root{--gm-hero-h:44vh}}
body:has(.mnml-template-media) .mnml-header{background:transparent}
.mnml-template-media{position:absolute;top:0;left:0;right:0;width:100%;max-width:none;margin:0;padding:0;height:var(--gm-hero-h);z-index:0;overflow:hidden}
.mnml-template-media::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(11,11,12,.72) 0%,rgba(11,11,12,.25) 45%,rgba(11,11,12,.92) 100%)}
.mnml-template-media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 35%}
.mnml-header,.mnml-template-head{position:relative;z-index:2}
.mnml-template-head{min-height:calc(var(--gm-hero-h) - 130px)}
@media(max-width:900px){.mnml-template-head{min-height:calc(var(--gm-hero-h) - 90px)}}

/* Webwerk: Seitenbild bis ganz an den Rand (Theme-Regel .mnml-shell setzt sonst Rand und Breite) */
body .mnml-template-media.mnml-shell{width:100%!important;max-width:none!important;margin:0!important;left:0!important;right:0!important}
/* Bildausschnitt: 0% = Foto oben ausgerichtet (Motiv sitzt tiefer), 100% = Foto unten ausgerichtet.
   Je Seite änderbar, z. B.:  .page-id-109{--gm-focus-y:30%}  (Seiten-ID steht in der Adresszeile des Seiteneditors: post=109) */
.mnml-template-media img{object-position:50% var(--gm-focus-y,0%)!important}
/* Text beginnt unter dem Bild (Desktop: Kopfzeile 100 px, Abstand -16 px) */
.mnml-template-head{min-height:calc(var(--gm-hero-h) - 44px)!important}
@media(max-width:900px){.mnml-template-head{min-height:calc(var(--gm-hero-h) - 90px)!important}}

/* Webwerk: Variante C – Titel unten links im Bild (Marke oben links, klein, hell) */
.mnml-template-head{min-height:calc(var(--gm-hero-h) - 40px)!important}
.mnml-template-head .mnml-text-page-head__copy{position:absolute;left:0;right:0;top:calc(var(--gm-hero-h) - 84px - 2px - 80px)}
@media(max-width:900px){.mnml-template-head{min-height:calc(var(--gm-hero-h) - 90px)!important}.mnml-template-head .mnml-text-page-head__copy{top:calc(var(--gm-hero-h) - 30px - 4px - 120px)}}

/* Webwerk: Kopfzeile (Menü) in Sand wie Marke und Footer; Fliesstext bleibt Creme (Entscheid später) */
.mnml-header .mnml-navigation a{color:var(--gm-sand)}
.mnml-header .mnml-navigation a:hover,.mnml-header .mnml-navigation .current-menu-item>a{color:var(--gm-creme)}

/* Webwerk: YouTube-Einbettungen so breit wie der Inhalt, 16:9 */
.mnml-entry iframe[src*="youtube"]{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0}

/* Webwerk: Albumseite zweispaltig wie bisher (links Cover und Player, rechts Text, Daten, Presse) */
.gm-albumpage{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:60px;align-items:start}
.gm-albumpage .gm-cover{max-width:none;width:100%;margin:0 0 24px}
.gm-albumpage__r>p:first-child{margin-top:0}
.gm-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 22px;margin:28px 0;font-size:.8em}
.gm-facts dt{color:var(--mnml-muted)}.gm-facts dd{margin:0}
@media(max-width:900px){.gm-albumpage{grid-template-columns:1fr;gap:30px}}

/* Webwerk: dritte Schriftebene «Meta» (klein, Versalien, gedämpft, wie das Menü) und Discography-Kacheln */
.gm-meta{font-family:var(--mnml-font-nav);font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--mnml-muted);line-height:1.4;font-weight:500}
.gm-albumgrid .gm-tile__t{font-family:var(--mnml-font-heading);text-transform:uppercase;color:var(--gm-orange);font-size:30px;line-height:1.05;margin-top:.5em}
.gm-albumgrid .gm-meta{margin-top:.3em;font-size:13px;color:var(--mnml-muted)}
p.gm-meta{margin:0 0 8px}
.gm-facts dt.gm-meta{font-size:12px;padding-top:.45em}
.gm-btn{display:inline-block;padding:.5em 1.1em;border:1px solid var(--gm-orange);color:var(--gm-orange);text-decoration:none;font-family:var(--mnml-font-nav);text-transform:uppercase;letter-spacing:.08em;font-size:14px}
.gm-btn:hover{background:var(--gm-orange);color:var(--mnml-bg)}

/* Webwerk: Player – eine Schrift für «Now playing», Titel, Zeit und Tasten; Playlist unter der Albumübersicht */
html body .gemonio-audio,html body .gemonio-audio *{font-family:var(--mnml-font-body)!important}
.gm-albumgrid~.gm-playlist-label{margin-top:90px}

/* Webwerk: Player – «Now playing»-Titel wie die Songliste (Brockmann gibt es nur in 500, kein künstliches Fett) */
html body .gemonio-audio__now,html body .gemonio-audio__now *{font-weight:500!important}
html body .gemonio-audio__now strong,html body .gemonio-audio__now [class*=title]{font-size:22px!important}

/* Webwerk: Player – «NOW PLAYING: Titel» in einer Zeile; Songliste in Sand, laufender Titel in Creme (ohne Unterstreichung) */
html body .gemonio-audio__now-copy{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15em .7em}
html body .gemonio-audio__eyebrow::after{content:":"}
html body .gemonio-audio__now-copy small{flex-basis:100%}
html body .gemonio-audio__track,html body .gemonio-audio__track .gemonio-audio__track-title{color:var(--gm-creme)!important;text-decoration:none!important}
html body .gemonio-audio__track.is-current,html body .gemonio-audio__track.is-current .gemonio-audio__track-title{color:var(--gm-sand)!important;text-decoration:none!important}
html body .gemonio-audio__track:hover .gemonio-audio__track-title{color:var(--gm-sand)!important}

/* Webwerk: Player – «NOW PLAYING: TITEL» eine Zeile, gleiche Schrift, Grösse, Gewicht, Schreibweise (Farbe: Label Sand, Titel Creme) */
html body .gemonio-audio__now{display:flex!important;align-items:baseline!important;justify-content:space-between;gap:1rem}
html body .gemonio-audio__now-copy{flex:1 1 auto!important;min-width:0!important;width:auto!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:baseline!important;gap:.5em!important}
html body .gemonio-audio__now-copy small{display:none!important}
html body .gemonio-audio__now-copy .gemonio-audio__eyebrow,html body .gemonio-audio__now-copy strong{font-family:var(--mnml-font-body)!important;font-size:13px!important;font-weight:500!important;letter-spacing:.08em!important;text-transform:uppercase!important;line-height:1.4!important;font-style:normal!important}
html body .gemonio-audio__now-copy .gemonio-audio__eyebrow{flex:none;white-space:nowrap}
html body .gemonio-audio__now-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Webwerk: Player – «NOW PLAYING: TITEL» und Zeit gleich gross und klein (13 px, Versalien, gleicher Abstand) */
html body .gemonio-audio__time,html body .gemonio-audio__time *{font-family:var(--mnml-font-body)!important;font-size:13px!important;font-weight:500!important;letter-spacing:.08em!important;text-transform:uppercase!important;line-height:1.4!important;color:var(--gm-sand)!important}

/* Webwerk: eine Kachel für Discography und Plattenladen – Band (Orange) / Album (Creme) / Meta-Zeile, drei pro Reihe */
.gm-band,.gm-album{display:block;font-family:var(--mnml-font-heading)!important;text-transform:uppercase;font-size:clamp(30px,2.8vw,42px)!important;line-height:1.02!important}
.gm-band{color:var(--gm-orange)!important}
.gm-album{color:var(--gm-creme)!important;margin-top:.12em}
.gm-albumgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:56px 30px!important}
.gm-albumgrid a{display:block;text-decoration:none}
.gm-albumgrid a .gm-band{margin-top:.7em}
.gm-albumgrid a .gm-meta{margin-top:.5em}

/* Webwerk: Band und Album enger beisammen */
.gm-band,.gm-album{line-height:.96!important}
.gm-album{margin-top:0!important}

/* Webwerk: Platzhalter für ein Cover, das noch fehlt (Rio Cinema) */
.gm-cover-ph{display:flex;align-items:center;justify-content:center;aspect-ratio:1;width:100%;background:var(--mnml-surface,#1f160a);color:var(--gm-sand);font-family:var(--mnml-font-nav);text-transform:uppercase;letter-spacing:.08em;font-size:13px}
.gm-cover-ph::after{content:"Cover folgt"}

/* Webwerk: Band und Album noch enger (Schrift hat viel Leerraum in der Zeile) */
html body .gm-band,html body .gm-album{line-height:.84!important}
html body .gm-album{margin-top:-.1em!important}

/* Webwerk: Knöpfe – Sand-Hintergrund (dunkles Creme) mit dunkler Schrift, beim Darüberfahren helles Creme; Band/Album noch enger; Cover-Platzhalter */
html body .gm-btn{display:inline-flex;align-items:center;gap:.8em}
html body .gm-btn::after{content:"→";display:inline-block;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
html body .gm-btn:hover::after{transform:translateX(5px)}
html body .gm-band,html body .gm-album{line-height:.84!important}
html body .gm-album{margin-top:-.3em!important}
.gm-cover-ph{display:block!important;position:relative;aspect-ratio:1;width:100%}
.gm-cover-ph::after{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gm-sand)}

/* Webwerk: Trackliste als Text (Album ohne Audio), im Stil der Player-Liste */
.gm-tracklist{list-style:none;margin:28px 0 0;padding:0;counter-reset:gmtr}
.gm-tracklist li{counter-increment:gmtr;display:flex;gap:1.4em;padding:12px 0;border-bottom:1px solid rgba(242,240,234,.16);font-size:22px;line-height:1.3;color:var(--gm-creme)}
.gm-tracklist li::before{content:counter(gmtr) ".";color:var(--gm-sand);min-width:1.6em}
.gm-tracklist li::marker{content:none}

/* Webwerk: Albumseiten am Handy – der Player drückte die Spalte über den Bildschirmrand */
@media(max-width:900px){html body .gm-albumpage{grid-template-columns:minmax(0,1fr)!important}html body .gm-albumpage>*{min-width:0}}

/* Startseite: Foto rechts neben dem Text, am Handy darüber */
.s4-portrait{float:right;width:min(38%,300px);margin:.3em 0 1.2em 2em}
.s4-portrait img{display:block;width:100%;height:auto}
@media(max-width:700px){.s4-portrait{float:none;width:100%;max-width:220px;margin:0 0 1.4em}}
.s4-credit{font-size:.8em;color:var(--gm-sand)}
.s4-lang{margin-top:3em;padding-top:2em;border-top:1px solid var(--mnml-line)}
/* Presse: Bildraster */
.s4-press{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.s4-press a,.s4-press img{display:block;width:100%}
.s4-press img{height:auto}
@media(max-width:900px){.s4-press{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Albumraster: Band/Album etwas kleiner in der Monospace-Schrift */
.gm-band,.gm-album{font-size:clamp(18px,1.9vw,26px)!important;line-height:1.15!important}
html body .gm-band,html body .gm-album{line-height:1.15!important}
html body .gm-album{margin-top:.1em!important}
.gm-albumgrid img{aspect-ratio:1;object-fit:cover}
body{--gm-focus-y:35%}

/* Albumraster und Cover (Grundregeln) */
.gm-albumgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:56px 30px}
.gm-albumgrid a{display:block;color:inherit;text-decoration:none}
.gm-albumgrid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.gm-cover{display:block;max-width:420px;width:100%;height:auto;margin:0 0 1.2rem}

.s4-press{align-items:start}
@media(max-width:700px){body{font-size:17px}.mnml-entry,.mnml-entry p{font-size:17px;line-height:1.55}.gm-tracklist li,html body .gemonio-audio__track{font-size:18px}}

/* Titel in BD Geminis, Farbe #bc2739 */
:root{--s4-title:#bc2739}
.mnml-entry h1,.mnml-entry h2,.mnml-entry h3,.mnml-entry h4,.mnml-entry h5,.mnml-entry h6,.mnml-page-title,.gm-band,.gm-album,html body .gm-band,html body .gm-album{color:var(--s4-title)!important;font-family:var(--mnml-font-heading)!important;font-weight:400!important}
