/*
Theme Name: Rüschelack Ratgeber
Theme URI: https://rueschelack.com/
Author: PSCoat-SEO
Description: Ratgeberportal-Theme für rueschelack.com – Themenkacheln, Icon-Leiste, klappbares Inhaltsverzeichnis und FAQ-Akkordeon rund um die Fassadenbeschichtung Rüschelack.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: t-rueschelack-com
*/

/* -------------------------------------------------------------------------
 * Grundlagen & Tokens
 * ---------------------------------------------------------------------- */
:root{
	--bg:#fbfbfc;
	--surface:#edf0f2;
	--text:#272e34;
	--muted:#586874;
	--primary:#3d9f98;
	--primary-tint:#d9f2f0;
	--secondary:#366663;
	--secondary-tint:#deebea;
	--accent:#1f7f92;
	--accent-tint:#e9f1f3;
	--link:#257e78;
	--border:#dce0e4;
	--radius:8px;
	--radius-sm:4px;
	--shadow:0 2px 14px rgba(38,52,53,.08);
	--shadow-md:0 6px 24px rgba(38,52,53,.12);
	--font-head:'Domine', Georgia, 'Times New Roman', serif;
	--font-body:'Open Sans', -apple-system, Segoe UI, Arial, sans-serif;
	--container:1180px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
	margin:0;
	background:var(--bg);
	color:var(--text);
	font-family:var(--font-body);
	font-size:16px;
	line-height:1.65;
	overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--link)}
a:hover{color:var(--text)}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:700;line-height:1.25;color:var(--text);margin:0 0 .55em}
p{margin:0 0 1.1em}
ul,ol{margin:0 0 1.1em;padding-left:1.4em}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:0;background:var(--text);color:#ffffff;padding:10px 18px;z-index:200;border-radius:0 0 6px 0}
.skip-link:focus{left:0}
button{font-family:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.btn{
	display:inline-flex;align-items:center;gap:8px;
	font-weight:600;font-size:.96rem;
	padding:.75em 1.4em;border-radius:var(--radius-sm);
	border:1px solid transparent;cursor:pointer;text-decoration:none;
	transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{background:var(--link);color:#ffffff}
.btn-primary:hover{background:#1d6b66;color:#ffffff}
.btn-outline{background:transparent;border-color:var(--text);color:var(--text)}
.btn-outline:hover{background:var(--text);color:#ffffff}
.btn-sm{font-size:.86rem;padding:.55em 1.1em}

.bg-primary{background:var(--primary)}
.bg-secondary{background:var(--secondary)}
.bg-accent{background:var(--accent)}
.bg-link{background:var(--link)}

/* -------------------------------------------------------------------------
 * Topbar
 * ---------------------------------------------------------------------- */
.topbar{background:var(--surface);border-bottom:1px solid var(--border);font-size:.86rem}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}
.topbar-links{display:flex;gap:16px;flex-wrap:wrap}
.topbar-links a{color:var(--muted);text-decoration:none}
.topbar-links a:hover{color:var(--link)}
.topbar-phone{display:flex;align-items:center;gap:6px;color:var(--text);text-decoration:none;font-weight:600}
.topbar-phone svg{width:15px;height:15px;flex:none}

/* -------------------------------------------------------------------------
 * Header / Mega-Menü
 * ---------------------------------------------------------------------- */
.site-header{background:var(--header-bg,var(--bg));position:relative;z-index:50}
.header-main{padding:18px 0;border-bottom:1px solid var(--border)}
.header-main .container{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.site-logo{display:flex;flex-direction:column;text-decoration:none;color:var(--header-text,var(--text));flex:none}
.logo-word{font-family:var(--font-head);font-size:1.55rem;font-weight:700;letter-spacing:.01em}
.logo-word strong{color:var(--link);font-weight:700}
.logo-tagline{font-size:.72rem;color:var(--muted);font-family:var(--font-body);letter-spacing:.02em}

.header-search{flex:1 1 260px;max-width:420px}
.header-search form{display:flex;border:1.5px solid var(--border);border-radius:999px;overflow:hidden;background:var(--surface)}
.header-search input[type="search"]{flex:1;border:0;background:transparent;padding:.62em 1.1em;font-size:.94rem;font-family:var(--font-body);color:var(--text);min-width:0}
.header-search input[type="search"]:focus{outline:none}
.header-search button{border:0;background:var(--link);color:#ffffff;padding:0 1.1em;display:flex;align-items:center;cursor:pointer}
.header-search button svg{width:17px;height:17px}

.burger-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:42px;height:38px;border:1px solid var(--border);background:var(--bg);border-radius:var(--radius-sm);cursor:pointer;margin-left:auto}
.burger-toggle span{display:block;height:2px;background:var(--text);width:22px;margin:0 auto}

.main-nav-wrap{background:var(--surface);border-bottom:1px solid var(--border)}
.main-nav{}
.main-nav>ul{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;flex-wrap:wrap}
.main-nav>ul>li{position:relative}
.main-nav>ul>li>a,.main-nav .nav-toplink{
	display:flex;align-items:center;gap:6px;
	padding:13px 18px;color:var(--text);text-decoration:none;font-weight:600;font-size:.94rem;
	background:transparent;border:0;cursor:pointer;font-family:var(--font-body);
}
.main-nav>ul>li>a:hover,.main-nav .nav-toplink:hover,.main-nav .nav-toplink[aria-expanded="true"]{color:var(--link);background:var(--primary-tint)}
.caret{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px}

.has-mega .mega-panel{
	display:none;position:absolute;left:0;top:100%;background:var(--bg);
	border:1px solid var(--border);border-top:3px solid var(--primary);
	box-shadow:var(--shadow-md);padding:26px;gap:30px;
	grid-template-columns:repeat(3,220px);z-index:60;border-radius:0 0 var(--radius) var(--radius);
}
.has-mega.open .mega-panel{display:grid}
.mega-col h4{font-family:var(--font-body);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 .7em}
.mega-col ul{list-style:none;padding:0;margin:0}
.mega-col li{margin-bottom:.55em}
.mega-col a{color:var(--text);text-decoration:none;font-size:.92rem}
.mega-col a:hover{color:var(--link);text-decoration:underline}

@media (max-width:900px){
	.burger-toggle{display:flex}
	.header-search{order:3;flex:1 1 100%;max-width:none}
	.main-nav-wrap{display:none}
	.main-nav-wrap.open{display:block}
	.main-nav>ul{flex-direction:column}
	.main-nav>ul>li>a,.main-nav .nav-toplink{padding:14px 20px;width:100%;justify-content:space-between}
	.has-mega .mega-panel{position:static;display:none;box-shadow:none;border:0;border-top:1px solid var(--border);border-radius:0;grid-template-columns:1fr;padding:10px 20px 16px;background:var(--surface)}
	.has-mega.open .mega-panel{display:grid}
}

/* -------------------------------------------------------------------------
 * Breadcrumb
 * ---------------------------------------------------------------------- */
.page-breadcrumb{background:var(--surface);border-bottom:1px solid var(--border);font-size:.85rem;padding:10px 0}
.page-breadcrumb a{color:var(--muted);text-decoration:none}
.page-breadcrumb a:hover{color:var(--link)}
.page-breadcrumb .sep{margin:0 8px;color:var(--muted)}
.page-breadcrumb [aria-current]{color:var(--text);font-weight:600}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.hero{position:relative;background:var(--text);color:#ffffff;overflow:hidden}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 62%}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(38,52,53,.92) 0%,rgba(38,52,53,.82) 42%,rgba(38,52,53,.42) 78%,rgba(38,52,53,.18) 100%)}
.hero-inner{position:relative;padding:64px 0 58px;max-width:640px}
.hero-eyebrow{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#ffffff;font-size:.78rem;font-weight:600;letter-spacing:.04em;padding:.35em .9em;border-radius:999px;margin-bottom:18px}
.hero h1{color:#ffffff;font-size:2.5rem;margin-bottom:.4em}
.hero p{color:#e9ecf1;font-size:1.12rem;margin-bottom:1.5em}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap}
.hero .btn-outline{border-color:rgba(255,255,255,.7);color:#ffffff}
.hero .btn-outline:hover{background:#ffffff;color:var(--text)}

@media (max-width:640px){
	.hero-inner{padding:44px 0 40px}
	.hero h1{font-size:1.85rem}
}

/* -------------------------------------------------------------------------
 * Themen-Icon-Leiste
 * ---------------------------------------------------------------------- */
.icon-strip{background:var(--surface);border-bottom:1px solid var(--border)}
.icon-strip .container{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--border)}
.icon-item{background:var(--surface);display:flex;align-items:center;gap:12px;padding:20px 18px;text-decoration:color inherit;color:var(--text);text-decoration:none}
.icon-item:hover{background:var(--bg)}
.icon-item .icon-badge{
	width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;color:#ffffff;
}
.icon-item .icon-badge svg{width:21px;height:21px}
.icon-item .icon-text{min-width:0;overflow-wrap:break-word}
.icon-item span.label{display:block;font-weight:700;font-size:.92rem;line-height:1.2}
.icon-item small{display:block;color:var(--muted);font-weight:400;font-size:.78rem;margin-top:2px;white-space:normal}

@media (max-width:760px){
	.icon-strip .container{grid-template-columns:repeat(2,1fr);padding:0}
}
@media (max-width:480px){
	.icon-strip .container{grid-template-columns:1fr}
}

/* -------------------------------------------------------------------------
 * Sektionen allgemein
 * ---------------------------------------------------------------------- */
.section{padding:56px 0}
.section-surface{background:var(--surface)}
.section-head{max-width:680px;margin:0 auto 34px;text-align:center}
.section-head h2{font-size:1.85rem;margin-bottom:.35em}
.section-head p{color:var(--muted);margin:0}
.section-head.align-left{text-align:left;margin-left:0}

/* -------------------------------------------------------------------------
 * Themenwelten-Karten
 * ---------------------------------------------------------------------- */
.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.theme-card{
	background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);
	padding:28px 26px;box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%;
	text-decoration:none;color:var(--text);transition:box-shadow .15s ease, transform .15s ease;
}
.theme-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);color:var(--text)}
.theme-card .card-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:18px;color:#ffffff}
.theme-card .card-icon svg{width:26px;height:26px}
.theme-card h3{font-size:1.2rem;margin-bottom:.5em}
.theme-card p{color:var(--muted);font-size:.95rem;margin-bottom:1.3em;flex:1}
.theme-card .card-link{font-weight:700;font-size:.92rem;color:var(--link)}

@media (max-width:900px){
	.theme-grid{grid-template-columns:1fr}
}

/* -------------------------------------------------------------------------
 * Artikel-Teaser (News-Grid)
 * ---------------------------------------------------------------------- */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.news-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.news-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin-bottom:.8em}
.news-cat{background:var(--primary-tint);color:var(--link);font-weight:700;padding:.25em .75em;border-radius:999px;font-size:.74rem;text-transform:uppercase;letter-spacing:.04em}
.news-card h3{font-size:1.14rem;margin-bottom:.5em}
.news-card h3 a{color:var(--text);text-decoration:none}
.news-card h3 a:hover{color:var(--link)}
.news-card p{color:var(--muted);font-size:.94rem;flex:1;margin-bottom:1.1em}
.news-readmore{font-weight:700;font-size:.9rem;color:var(--link);text-decoration:none}
.news-readmore:hover{text-decoration:underline}

@media (max-width:900px){
	.news-grid{grid-template-columns:1fr}
}

/* -------------------------------------------------------------------------
 * PSCoat-Hinweisblock (Footer-Banner-Werbeplatz)
 * ---------------------------------------------------------------------- */
.ad-banner{background:var(--bg);border:1px dashed var(--border);border-radius:var(--radius);padding:26px 30px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.ad-banner .ad-kicker{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border:1px solid var(--border);padding:.2em .7em;border-radius:999px;margin-bottom:.6em}
.ad-banner .ad-body{flex:1;min-width:240px}
.ad-banner h3{font-size:1.15rem;margin-bottom:.3em}
.ad-banner p{color:var(--muted);margin:0;font-size:.95rem}
.ad-banner .btn{flex:none}

/* -------------------------------------------------------------------------
 * FAQ-Akkordeon
 * ---------------------------------------------------------------------- */
.faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.faq-q{
	width:100%;text-align:left;background:transparent;border:0;padding:18px 22px;
	display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;
	font-family:var(--font-head);font-weight:700;font-size:1.02rem;color:var(--text);
}
.faq-q .faq-plus{flex:none;width:22px;height:22px;position:relative}
.faq-q .faq-plus::before,.faq-q .faq-plus::after{content:"";position:absolute;background:var(--link);border-radius:2px}
.faq-q .faq-plus::before{width:16px;height:2px;top:10px;left:3px}
.faq-q .faq-plus::after{width:2px;height:16px;top:3px;left:10px;transition:transform .15s ease}
.faq-item[data-open="true"] .faq-plus::after{transform:scaleY(0)}
.faq-a{padding:0 22px 20px;color:var(--muted);font-size:.96rem}
.faq-a a{color:var(--link)}
.faq-a[hidden]{display:none}

/* -------------------------------------------------------------------------
 * Artikel (single.php)
 * ---------------------------------------------------------------------- */
.article-header{padding:34px 0 18px;max-width:780px;margin:0 auto}
.article-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:.84rem;color:var(--muted);margin-bottom:1em}
.article-header h1{font-size:2.1rem}
.article-excerpt{color:var(--muted);font-size:1.08rem}

.article-toc{max-width:780px;margin:0 auto 32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.article-toc summary{cursor:pointer;list-style:none;padding:16px 22px;font-family:var(--font-head);font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px}
.article-toc summary::-webkit-details-marker{display:none}
.article-toc summary .toc-caret{width:10px;height:10px;border-right:2px solid var(--text);border-bottom:2px solid var(--text);transform:rotate(45deg);transition:transform .15s ease}
.article-toc[open] summary .toc-caret{transform:rotate(225deg)}
.article-toc ol{margin:0;padding:0 22px 20px 40px}
.article-toc li{margin-bottom:.5em;font-size:.95rem}
.article-toc a{color:var(--link);text-decoration:none}
.article-toc a:hover{text-decoration:underline}

.article-body{max-width:780px;margin:0 auto 20px;font-size:1.05rem}
.article-body h2{font-size:1.5rem;margin-top:1.6em;scroll-margin-top:110px}
.article-body h3{font-size:1.2rem;margin-top:1.3em;scroll-margin-top:110px}
.article-body p{color:var(--text)}
.article-body ul li,.article-body ol li{margin-bottom:.4em}
.article-body table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:.94rem}
.article-body th,.article-body td{border:1px solid var(--border);padding:.7em .9em;text-align:left}
.article-body th{background:var(--surface);font-family:var(--font-head)}
.article-body tr:nth-child(even) td{background:rgba(241,238,241,.5)}
.article-body blockquote{border-left:4px solid var(--primary);background:var(--primary-tint);margin:1.6em 0;padding:1em 1.3em;border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic;color:var(--text)}
.article-body figure{margin:1.6em 0}
.article-body figcaption{font-size:.85rem;color:var(--muted);margin-top:.5em}
.article-body code{background:var(--surface);padding:.15em .4em;border-radius:4px;font-size:.9em}
.article-body pre{background:var(--text);color:#ffffff;padding:1em 1.2em;border-radius:var(--radius-sm);overflow-x:auto}

.article-body .anzeige{
	background:var(--accent-tint);border:1px solid #c1ebf2;border-left:5px solid var(--accent);
	border-radius:0 var(--radius) var(--radius) 0;padding:22px 26px;margin:2em 0;
}
.article-body .anzeige-label{margin:0 0 .5em}
.article-body .anzeige-label strong{
	display:inline-block;background:var(--accent);color:#ffffff;font-size:.72rem;font-weight:700;
	text-transform:uppercase;letter-spacing:.06em;padding:.25em .75em;border-radius:999px;
}
.article-body .anzeige p{color:var(--text);margin-bottom:.8em}
.article-body .anzeige a{font-weight:700}

.article-body h2[id="belegstatus"]{
	margin-top:2.2em;font-size:1.1rem;
}
.article-body h2[id="belegstatus"] + ul{
	background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
	padding:18px 20px 18px 42px;list-style:none;
}
.article-body h2[id="belegstatus"] + ul li{
	font-size:.88rem;color:var(--muted);position:relative;margin-bottom:.7em;
}
.article-body h2[id="belegstatus"] + ul li::before{
	content:"i";position:absolute;left:-24px;top:0;width:16px;height:16px;border-radius:50%;
	background:var(--secondary);color:#ffffff;font-size:.7rem;font-weight:700;text-align:center;line-height:16px;font-family:var(--font-head);
}
.article-body h2[id="belegstatus"] + ul li:last-child{margin-bottom:0}

.article-share{max-width:780px;margin:0 auto 50px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:22px;border-top:1px solid var(--border);font-size:.9rem;color:var(--muted)}
.article-share a{display:flex;align-items:center;gap:6px;color:var(--text);text-decoration:none;font-weight:600}
.article-share a:hover{color:var(--link)}
.article-share svg{width:15px;height:15px}

@media (max-width:640px){
	.article-header h1{font-size:1.6rem}
}

/* -------------------------------------------------------------------------
 * Einfache Seiten (page.php)
 * ---------------------------------------------------------------------- */
.page-body{max-width:780px;margin:0 auto;padding:36px 0 60px}
.page-body h1{font-size:2rem;margin-bottom:.7em}
.page-body address{font-style:normal}

/* -------------------------------------------------------------------------
 * 404 / Suche
 * ---------------------------------------------------------------------- */
.error-404{max-width:620px;margin:0 auto;padding:80px 20px;text-align:center}
.error-404 h1{font-size:3.4rem;color:var(--primary);margin-bottom:0}
.error-404 h2{margin-bottom:.6em}
.error-404 p{color:var(--muted)}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer{background:var(--footer-bg,var(--bg));color:var(--footer-text,var(--text));border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px;padding:50px 0 36px}
.footer-col h4{font-family:var(--font-body);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:1em}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:.6em}
.footer-col a{color:var(--text);text-decoration:none;font-size:.94rem}
.footer-col a:hover{color:var(--link)}
.footer-logo{font-family:var(--font-head);font-size:1.3rem;font-weight:700;color:var(--text);text-decoration:none}
.footer-logo strong{color:var(--link)}
.footer-tagline{color:var(--muted);font-size:.92rem;margin:.6em 0 1.1em}
.footer-address{font-size:.9rem;color:var(--muted);line-height:1.6}
.footer-contact{display:flex;align-items:center;gap:8px;font-size:.92rem}
.footer-contact svg{width:15px;height:15px;flex:none;color:var(--muted)}

.footer-bottom{background:var(--surface);border-top:1px solid var(--border);font-size:.84rem;color:var(--muted)}
.footer-bottom .container{padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.footer-legal-line{margin:0}
.footer-transparency{margin:0}
.footer-transparency a{color:var(--link);font-weight:600}
.footer-bottom-row{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;align-items:center;margin-top:4px}
.footer-bottom-links{display:flex;gap:16px;flex-wrap:wrap}
.footer-bottom-links a{color:var(--muted)}
.footer-bottom-links a:hover{color:var(--link)}
.footer-credit{font-size:.78rem;color:var(--muted);opacity:.85}

@media (max-width:900px){
	.footer-grid{grid-template-columns:1fr 1fr;padding:40px 0 28px}
}
@media (max-width:560px){
	.footer-grid{grid-template-columns:1fr;gap:26px}
}

/* -------------------------------------------------------------------------
 * Zurück nach oben
 * ---------------------------------------------------------------------- */
.back-to-top{
	position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;
	background:var(--text);color:#ffffff;border:0;display:flex;align-items:center;justify-content:center;
	box-shadow:var(--shadow-md);cursor:pointer;opacity:0;pointer-events:none;transform:translateY(8px);
	transition:opacity .2s ease, transform .2s ease;z-index:80;
}
.back-to-top.visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.back-to-top svg{width:20px;height:20px}

/* -------------------------------------------------------------------------
 * PSCoat-Disclaimer-Banner (nur falls Kern ihn ausgibt) — nicht ausblenden
 * ---------------------------------------------------------------------- */
.ps-disclaimer{font-family:var(--font-body)}
