/*
Theme Name:   RV Recht Monitor
Theme URI:    https://example.org/
Description:  Frontend-Theme für den "RV Gesetzgebungs-Monitor" mit fünf wählbaren Designvarianten (Amtlich klar, Modern hell, Dunkles Dashboard, Redaktion, Freundlich). Auswahl unter Design > Customizer > Design-Variante.
Author:       Marco
Version:      1.05
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  rvtheme
*/

/* ---------- Grundlage: alle Farben/Formen kommen aus Variablen, die jede Variante (assets/skins) setzt ---------- */
:root{
	--bg:#fafafa;--surface:#fff;--surface2:#f3f4f6;--text:#1f2937;--muted:#5b6472;--line:#d9dde3;
	--acc:#0b4f8a;--onacc:#fff;--radius:10px;--shadow:none;--maxw:1120px;
	--font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--fonthead:var(--font);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.6;font-size:17px}
img{max-width:100%;height:auto}
a{color:var(--acc)}
h1,h2,h3,h4{font-family:var(--fonthead);line-height:1.2;color:var(--text)}
.screen-reader-text,.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;color:#000;padding:.5rem 1rem;z-index:99999}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px}

.rvt-container{width:min(100% - 2rem,var(--maxw));margin-inline:auto}
.rvt-site{min-height:100vh;display:flex;flex-direction:column}
.rvt-body{flex:1;display:flex;flex-direction:column;min-width:0}
.rvt-main{flex:1;padding-block:1.5rem 3rem}

/* Kopf */
.rvt-header{background:var(--surface);border-bottom:1px solid var(--line)}
.rvt-header-in{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.9rem;flex-wrap:wrap}
.rvt-brand{display:flex;flex-direction:column;text-decoration:none;color:var(--text)}
.rvt-brand strong{font-family:var(--fonthead);font-size:1.3rem;line-height:1.1}
.rvt-brand small{color:var(--muted);font-size:.82rem}
.rvt-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.2rem .4rem;margin:0;padding:0}
.rvt-nav a{display:block;padding:.45rem .8rem;color:var(--text);text-decoration:none;font-weight:600;font-size:.95rem}
.rvt-nav .current-menu-item>a,.rvt-nav .current_page_item>a,.rvt-nav a:hover{color:var(--acc)}
.rvt-burger{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:.5rem .8rem;color:var(--text);font-size:1rem;cursor:pointer}
@media (max-width:760px){
	.rvt-burger{display:inline-block}
	.rvt-nav{display:none;width:100%}
	.rvt-nav.is-open{display:block}
	.rvt-nav ul{flex-direction:column}
}

/* Startseite */
.rvt-hero{padding-block:3rem}
.rvt-hero h1{font-size:clamp(2rem,5vw,3.2rem);margin:0 0 .6rem}
.rvt-lead{font-size:1.2rem;max-width:46rem;color:var(--muted);margin:0 0 1.4rem}
.rvt-search{display:flex;gap:.5rem;max-width:42rem}
.rvt-search input[type=search]{flex:1;padding:.9rem 1rem;font-size:1.05rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text)}
.rvt-btn,.rvt-search button{display:inline-block;padding:.85rem 1.3rem;border:0;border-radius:var(--radius);background:var(--acc);color:var(--onacc);font-weight:700;font-size:1rem;text-decoration:none;cursor:pointer;font-family:inherit}
.rvt-btn:hover,.rvt-search button:hover{filter:brightness(1.12)}
.rvt-btn-alt{background:transparent;color:var(--acc);border:2px solid var(--acc)}
.rvt-cta-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.2rem}
.rvt-chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:1rem 0 0}
.rvt-chips a{display:inline-block;padding:.3rem .8rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-size:.9rem;background:var(--surface);color:var(--text)}
.rvt-chips a:hover{border-color:var(--acc);color:var(--acc)}
.rvt-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin-block:1rem 2.5rem}
.rvt-stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem;box-shadow:var(--shadow)}
.rvt-stat b{display:block;font-size:2.2rem;line-height:1;font-family:var(--fonthead);color:var(--acc)}
.rvt-stat span{color:var(--muted);font-size:.92rem}
.rvt-section{margin-block:2.6rem}
.rvt-section>h2{font-size:1.6rem;margin:0 0 1rem}
.rvt-kette{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.rvt-kette-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem;box-shadow:var(--shadow)}
.rvt-kette-card h3{margin:.1rem 0 .7rem;font-size:1.1rem}
.rvt-flow{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;list-style:none;margin:0;padding:0}
.rvt-flow li+li::before{content:"↓";display:block;margin:0 0 .15rem .8rem;color:var(--muted);font-weight:700}
.rvt-flow a{display:inline-block;padding:.2rem .65rem;border-radius:999px;background:var(--surface2);text-decoration:none;font-size:.9rem;font-weight:600;color:var(--text)}
.rvt-flow a:hover{background:var(--acc);color:var(--onacc)}
.rvt-split{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem}
@media (max-width:860px){.rvt-split{grid-template-columns:1fr}}
.rvt-cta{background:var(--acc);color:var(--onacc);border-radius:var(--radius);padding:2rem;display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;justify-content:space-between}
.rvt-cta h2,.rvt-cta p{color:inherit;margin:0}
.rvt-cta .rvt-btn{background:var(--onacc);color:var(--acc)}
.rvt-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.rvt-post{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem}
.rvt-post h3{margin:.1rem 0 .4rem;font-size:1.1rem}
.rvt-post h3 a{text-decoration:none;color:var(--text)}

/* Inhalt */
.rvt-page-title{font-size:clamp(1.8rem,4vw,2.6rem);margin:0 0 1.2rem}
.entry-content>p,.entry-content>ul,.entry-content>ol,.entry-content>h2,.entry-content>h3{max-width:46rem}
.entry-content>.rvgm,.entry-content>.rvgm-abo{max-width:none}
.rvt-meta{color:var(--muted);font-size:.9rem}
.rvt-pagination{margin-top:2rem}

/* Fuss */
.rvt-footer{background:var(--surface);border-top:1px solid var(--line);padding-block:1.6rem;color:var(--muted);font-size:.92rem}
.rvt-footer a{color:var(--muted)}
.rvt-footer ul{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;padding:0;margin:.5rem 0 0}

/* Designumschalter (nur Vorschau) */

/* Plugin-Komponenten uebernehmen die Variablen des Themes */
.rvgm{--rvgm-line:var(--line);--rvgm-bg:var(--surface2);--rvgm-card:var(--surface);--rvgm-text:var(--text);--rvgm-muted:var(--muted);--rvgm-acc:var(--acc);--rvgm-onacc:var(--onacc);--rvgm-acc2:var(--acc2,#0f6b4f);--rvgm-onacc2:var(--onacc2,#fff);--rvgm-radius:var(--radius)}
.rvgm .rvgm-card{box-shadow:var(--shadow)}

.rvt-top{padding-top:1.4rem}
