/*
Theme Name: Regionalradio Salzkammergut
Description: Helles Radio-Theme mit laut.fm-Player und bearbeitbaren Sendungen.
Version: 1.2.0
Requires at least: 6.2
Text Domain: rrs
*/

:root{--navy:#081522;--panel:#102438;--gold:#e8bb70;--teal:#65d8cf;--text:#f6f7f8;--muted:#b3c3cd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--navy);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}header{position:sticky;top:0;z-index:10;background:#081522eb;border-bottom:1px solid #ffffff22;backdrop-filter:blur(12px)}.wrap{max-width:1160px;margin:auto;padding:0 24px}.top{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;gap:12px;align-items:center;font-weight:800;letter-spacing:.04em;line-height:1.2}.mark{width:47px;height:47px;border:2px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:25px}.brand small{display:block;color:var(--gold);font-size:12px;letter-spacing:.14em}nav{display:flex;gap:24px;font-size:14px}nav a:hover{color:var(--gold)}.hero{position:relative;overflow:hidden;background:linear-gradient(90deg,#061521ee 0%,#071928dc 43%,#0823359e 75%,#08203488),url("assets/salzkammergut-panorama.svg") center 52%/cover no-repeat;min-height:550px}.hero:after{content:"";position:absolute;inset:auto 0 0;height:190px;background:linear-gradient(transparent,var(--navy));pointer-events:none}.mountains{position:absolute;bottom:0;width:100%;height:70%;opacity:.16}.hero-content{position:relative;z-index:1;display:grid;grid-template-columns:1.1fr .9fr;gap:52px;align-items:center;padding-top:110px;padding-bottom:120px}.eyebrow{color:var(--gold);text-transform:uppercase;font-size:12px;letter-spacing:.23em;font-weight:800}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.07;margin:14px 0 20px;letter-spacing:-.045em}.hero p{max-width:530px;color:#d4e1e8;font-size:19px}.btn{border:0;border-radius:999px;background:var(--gold);color:#0a1925;padding:13px 24px;font-weight:800;display:inline-flex;gap:10px;align-items:center}.btn:hover{filter:brightness(1.1)}.outline{border:1px solid #ffffff66;background:transparent;color:white}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.player{background:#0d2238e8;border:1px solid #e8bb7066;box-shadow:0 20px 70px #0008;border-radius:24px;padding:32px;backdrop-filter:blur(8px)}.onair{color:var(--teal);font-size:13px;font-weight:800;letter-spacing:.16em}.onair:before{content:"";display:inline-block;width:9px;height:9px;background:var(--teal);border-radius:50%;margin-right:9px}.player h2{font-size:28px;margin:14px 0 4px}.player p{font-size:14px;color:var(--muted)}.player-controls{display:flex;align-items:center;gap:18px;margin-top:25px}.play{width:66px;height:66px;border:0;border-radius:50%;background:var(--gold);color:#061625;font-size:24px}.volume{flex:1;accent-color:var(--gold);min-width:0}.status{min-height:24px;font-size:13px;color:var(--muted)}section{padding:75px 0}.section-title{font-size:clamp(30px,4vw,43px);line-height:1.2;margin:8px 0 14px}.lead{color:var(--muted);max-width:720px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}.card{border:1px solid #ffffff18;border-radius:18px;background:var(--panel);padding:28px}.card .icon{font-size:30px}.card h3{font-size:22px;margin:16px 0 8px}.card p{color:var(--muted);margin:0}.highlight{background:linear-gradient(120deg,#12384b,#0e2234);border-top:1px solid #ffffff16;border-bottom:1px solid #ffffff16}.feature{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.feature-art{min-height:290px;border:1px solid #e8bb7066;border-radius:24px;background:radial-gradient(circle at center,#27748655,transparent 65%),#0a1829;display:grid;place-items:center;text-align:center;padding:30px}.feature-art strong{font-size:clamp(34px,5vw,54px);color:var(--gold);line-height:1.15}.feature-art span{display:block;font-size:14px;letter-spacing:.25em;color:var(--teal);margin-top:12px}footer{padding:38px 0;border-top:1px solid #ffffff22;color:var(--muted);font-size:14px}.footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:4px}@media(max-width:800px){.hero-content,.feature{grid-template-columns:1fr}.hero-content{padding-top:65px;padding-bottom:75px;gap:30px}.cards{grid-template-columns:1fr}nav{gap:12px;flex-wrap:wrap;justify-content:center}.top{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.player{padding:24px}section{padding:55px 0}}
.senderlogo{display:block;width:165px;height:72px;object-fit:contain;object-position:left center}.brand{min-width:165px}@media(max-width:600px){.senderlogo{width:140px;height:64px}}

/* Salzkammergut Design 1.4 */
:root{--gold:#dfc078;--teal:#8cc9c2;--panel:#102b36;--navy:#071822}
body{background:linear-gradient(180deg,#071822,#0b2330 55%,#071822)}
header{background:#071822ee;border-bottom-color:#dfc07844}
.senderlogo{width:205px;height:86px}.brand{min-width:205px}
.hero{min-height:640px;border-bottom:1px solid #dfc07855}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 62%,#071822 100%);pointer-events:none}
.hero-content{padding-top:125px;padding-bottom:135px}
.regional-tag{display:inline-block;margin-top:14px;padding:5px 12px;border:1px solid #dfc07888;border-radius:30px;color:#f0db9b;font-size:11px;font-weight:700;letter-spacing:.14em;background:#07182288}
.hero h1{text-shadow:0 3px 22px #000a}
.player{background:linear-gradient(155deg,#0a2634f2,#071723ed);border:1px solid #dfc078aa;box-shadow:0 28px 80px #0009,inset 0 1px #ffffff22}
.player:before{content:"SALZKAMMERGUT LIVE";display:block;font-size:10px;letter-spacing:.22em;color:#e4c67f;margin-bottom:15px}
.card{background:linear-gradient(145deg,#11313d,#0b202d);border-color:#dfc07833;box-shadow:0 10px 30px #0002}
.highlight{background:linear-gradient(115deg,#14343d,#0b2331)}
.feature-art{background:linear-gradient(#09222ab0,#09222acc),url("assets/salzkammergut-panorama.svg") center/cover no-repeat}
.section-title{letter-spacing:-.025em}
.region-strip{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;background:#0d2935;border-top:1px solid #dfc07833;border-bottom:1px solid #dfc07833;padding:15px 20px;color:#e4d2a7;font-size:12px;letter-spacing:.11em;text-transform:uppercase}
.region-strip span:not(:last-child):after{content:"✦";margin-left:12px;color:#7fadae}
@media(max-width:600px){.senderlogo{width:165px;height:70px}.brand{min-width:165px}.hero{min-height:0}.hero-content{padding-top:65px;padding-bottom:85px}.region-strip{gap:8px;font-size:10px}}

/* Version 1.5: helles Salzkammergut-Design */
:root{--navy:#f6f9f7;--panel:#ffffff;--gold:#98712b;--teal:#146b73;--text:#18353b;--muted:#526b70}
body{background:linear-gradient(180deg,#f8fbfa,#edf5f2 60%,#ffffff);color:var(--text)}
header{background:#ffffffed;border-bottom:1px solid #cbdedb;box-shadow:0 4px 20px #18464a0d}
nav a{color:#244d52}nav a:hover{color:#8c6c28}
.senderlogo{background:#0b1d24;border-radius:12px;padding:5px 10px;object-fit:contain}
.hero{background:linear-gradient(90deg,#f5faf5f0 0%,#f5faf5dd 43%,#e7f4efb3 75%,#e5f3eaa6),url("assets/salzkammergut-panorama.svg") center 52%/cover no-repeat;border-bottom:1px solid #bcd7d3}
.hero:before{background:linear-gradient(180deg,#ffffff00 55%,#f6f9f7 100%)}
.hero:after{background:linear-gradient(transparent,#f6f9f7)}
.hero h1{text-shadow:none;color:#173c42}.hero p{color:#365c60}
.eyebrow{color:#86651e}.regional-tag{color:#6b5928;background:#ffffffa8;border-color:#c5b078}
.btn{background:#c9a45a;color:#122f34}.btn.outline{background:#ffffffc9;color:#214b50;border:1px solid #89aca9}
.player{background:linear-gradient(145deg,#173b46,#0b2632);border:1px solid #c6a86b;color:#f9fbfa;box-shadow:0 22px 65px #19464a38}
.player p,.player .status{color:#d0e0e1}.player:before{color:#e9d39c}.player h2{color:white}
.onair{color:#99e1ce}.onair:before{background:#99e1ce}
.region-strip{background:#e7f1ed;color:#3b6563;border-color:#c5d9d3}.region-strip span:not(:last-child):after{color:#aa8d51}
.card{background:#ffffff;border:1px solid #d8e5df;box-shadow:0 12px 34px #315f5b12}.card p{color:#567076}
.highlight{background:linear-gradient(110deg,#e8f2ed,#f8f6ed);border-color:#d6e5de}
.feature-art{background:linear-gradient(#ffffffa8,#e7f2e6d9),url("assets/salzkammergut-panorama.svg") center/cover no-repeat;border:1px solid #c2d5ce}
.feature-art strong{color:#6d5827}.feature-art span{color:#2a7778}
footer{background:#ffffff;border-top:1px solid #d7e6e1;color:#526b70}
a:focus-visible,button:focus-visible,input:focus-visible{outline-color:#147985}
@media(max-width:600px){.hero{background-position:58% center}}

/* Live-Playlist */
.playlist-box{margin-top:24px;border-top:1px solid #ffffff36;padding-top:18px}
.playlist-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.playlist-head h3{font-size:16px;margin:0;color:#fff}
.playlist-refresh{border:1px solid #ffffff55;background:transparent;color:#e6f4f2;border-radius:9px;padding:5px 10px;font-size:12px}
.playlist-items{list-style:none;padding:0;margin:0;max-height:230px;overflow-y:auto}
.playlist-items li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #ffffff18;font-size:13px}
.playlist-items li:last-child{border:0}.song-time{color:#b7d1d0;font-variant-numeric:tabular-nums}
.song-title{display:block;color:#fff;font-weight:700;overflow-wrap:anywhere}.song-artist{display:block;color:#bed1d4;overflow-wrap:anywhere}
.playlist-note{font-size:12px!important;color:#c3d6d5!important;margin:10px 0 0}

.admin-bar header{top:32px}@media(max-width:782px){.admin-bar header{top:46px}}.wp-content{max-width:850px;margin:0 auto;padding:55px 24px}.show-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:28px}.show-grid .card img{width:100%;height:180px;object-fit:cover;border-radius:12px}.show-grid .card a{color:#146b73;text-decoration:underline}.site-menu{display:flex;gap:18px;flex-wrap:wrap;list-style:none;padding:0;margin:0}.site-menu a{color:#244d52}.site-menu a:hover{color:#98712b}

/* Version 1.1 – kompakte Kopfzeile, auch für WordPress Custom Logos */
.rrs-header .top{min-height:94px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:10px;padding-bottom:10px}
.rrs-header .brand{display:flex;align-items:center;flex:0 0 auto;min-width:0;max-width:230px;width:230px;line-height:1}
.rrs-header .brand img,.rrs-header .brand .senderlogo,.rrs-header .brand img.custom-logo{display:block!important;width:100%!important;max-width:230px!important;height:74px!important;max-height:74px!important;object-fit:contain!important;object-position:left center!important;padding:5px!important;border-radius:10px}
.rrs-header .brand .custom-logo-link{display:block;width:100%;max-width:230px;line-height:0}
.rrs-header .rrs-nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;flex-wrap:wrap}
.rrs-header .site-menu{align-items:center;justify-content:flex-end}
.rrs-live-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#b38a39;color:#fff!important;border-radius:999px;padding:10px 17px;font-weight:800;font-size:13px;letter-spacing:.025em}
.rrs-live-link:hover{background:#916b28;color:#fff!important}
@media(max-width:700px){.rrs-header .top{min-height:0;gap:10px;flex-wrap:wrap;justify-content:center}.rrs-header .brand{width:175px;max-width:175px}.rrs-header .brand img,.rrs-header .brand .senderlogo,.rrs-header .brand img.custom-logo{max-width:175px!important;height:62px!important;max-height:62px!important}.rrs-header .rrs-nav{width:100%;justify-content:center;gap:12px}.rrs-header .site-menu{justify-content:center;gap:12px}.rrs-live-link{padding:8px 13px}}

/* Version 1.2: bewusst ohne Bildlogo – kompakte Kopfzeile */
.rrs-header .top{min-height:72px!important;padding-top:10px!important;padding-bottom:10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}
.rrs-header .brand{width:auto!important;max-width:none!important;min-width:0!important;flex:0 1 auto!important;display:inline-flex!important;align-items:center!important;color:#19464a!important;text-decoration:none!important}
.rrs-header .rrs-brand-text{display:block;font-size:clamp(16px,1.6vw,22px);font-weight:750;line-height:1.15;letter-spacing:-.025em;white-space:normal}
.rrs-header .rrs-brand-text strong{display:block;color:#a87a29;font-weight:800}
.rrs-header .rrs-nav{margin-left:auto!important;align-items:center!important}
@media(max-width:700px){.rrs-header .top{min-height:64px!important;justify-content:space-between!important}.rrs-header .brand{width:auto!important;max-width:50%!important}.rrs-header .rrs-brand-text{font-size:16px}.rrs-header .rrs-nav{width:auto!important;flex:1 1 auto!important;justify-content:flex-end!important}.rrs-header .site-menu{gap:8px!important}}

/* Version 1.3 – Senderlogo und Schriftzug kompakt */

.rrs-header .wrap,
.rrs-header .top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.rrs-header .brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
}

.rrs-header .brand .rrs-header-logo {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    flex: 0 0 58px !important;
    padding: 0 !important;
}

.rrs-header .brand .rrs-brand-text {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
}

.rrs-header .rrs-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    width: auto !important;
    margin-left: auto !important;
    gap: 18px !important;
}

@media (max-width: 700px) {
    .rrs-header .wrap,
    .rrs-header .top {
        flex-wrap: wrap !important;
    }

    .rrs-header .rrs-nav {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Regionalradio – automatische Sendungskarten */

.show-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* Radiosendungen – Kartenlayout */
.show-grid .card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 26px;
    align-content: center;
    align-items: start;
    padding: 24px;
}

/* Sendungsbild links */
.show-grid .card img {
    grid-column: 1;
    grid-row: 1 / 4;
    display: block;
    width: 100%;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    margin: 0;
}

/* Sendungstitel und Beschreibung rechts */
.show-grid .card h3,
.show-grid .card p,
.show-grid .card a {
    grid-column: 2;
    grid-row: auto;
    min-width: 0;
}

.show-grid .card h3 {
    margin: 0 0 8px;
}

.show-grid .card p {
    margin: 0 0 12px;
}

/* Smartphone-Ansicht */
@media (max-width: 650px) {
    .show-grid .card {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .show-grid .card img,
    .show-grid .card h3,
    .show-grid .card p,
    .show-grid .card a {
        grid-column: 1;
        grid-row: auto;
    }

    .show-grid .card img {
        height: 220px;
        margin-bottom: 16px;
    }
}

/* Regionalradio: Header immer vor dem Sendeplan anzeigen */
header {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    background: #ffffff;
}

/* Regionalradio: Senderheader vor dem Sendeplan */
body .rrs-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
}
/* Regionalradio – Jetzt läuft und Als Nächstes */

.rrs-now-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 45px;
    padding: 0 20px;
}

.rrs-now-next-card {
    background: #102438;
    color: #ffffff;
    border: 1px solid #b88b3b;
    border-radius: 18px;
    padding: 25px 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.rrs-now-next-card span {
    color: #e8bb70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rrs-now-next-card h3 {
    color: #ffffff;
    font-size: 23px;
    margin: 14px 0 8px;
}

.rrs-now-next-card p {
    color: #cbd6df;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 650px) {
    .rrs-now-next {
        grid-template-columns: 1fr;
    }
}

/* Regionalradio – Mobilansicht Jetzt läuft / Als Nächstes */
@media screen and (max-width: 650px) {

  .rrs-now-next {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 24px 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .rrs-now-next-card {
    display: block !important;
    background: #102438 !important;
    color: #ffffff !important;
    border: 1px solid #b88b3b !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

  .rrs-now-next-card span {
    color: #e8bb70 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .rrs-now-next-card h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    margin: 12px 0 8px !important;
  }

  .rrs-now-next-card p {
    color: #cbd4df !important;
    font-size: 14px !important;
    margin: 0 !important;
  }
}
/* Regionalradio – mobile Programmkarten */
@media screen and (max-width: 767px) {

    body .rrs-now-next {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 24px 16px !important;
        box-sizing: border-box !important;
    }

    body .rrs-now-next .rrs-now-next-card {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        background: #102438 !important;
        color: #ffffff !important;
        border: 1px solid #b88b3b !important;
        border-radius: 16px !important;
        padding: 24px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    }

    body .rrs-now-next .rrs-now-next-card span {
        color: #d4a64b !important;
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    body .rrs-now-next .rrs-now-next-card h3 {
        color: #ffffff !important;
        font-size: 22px !important;
        margin: 12px 0 !important;
    }

    body .rrs-now-next .rrs-now-next-card p {
        color: #e2e8f0 !important;
        font-size: 14px !important;
        margin: 0 !important;
    }
}