/* =====================================================================
   Kartentaverne – custom.css
   Nur Dinge, die theme.json nicht abbildet (Block-Stile, Siegel, Glow).
   Farben kommen aus den theme.json-Presets (var(--wp--preset--color--*)).
   ===================================================================== */

/* ---- Block-Stil: Pergament-Lesemodus (für Artikel) ---- */
.wp-block-group.is-style-parchment {
	background: var(--wp--preset--color--parchment);
	color: var(--wp--preset--color--ink);
	border-radius: 14px;
	padding: clamp(20px, 4vw, 48px);
}
.wp-block-group.is-style-parchment :where(h1, h2, h3, h4, p, li, blockquote) {
	color: var(--wp--preset--color--ink);
}
.wp-block-group.is-style-parchment a {
	color: var(--wp--preset--color--amber-deep);
}

/* ---- Block-Stil: Holz-Panel (Card) ---- */
.wp-block-group.is-style-wood-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* ---- Block-Stil: CTA-Band mit Kerzenlicht-Glow ---- */
.wp-block-group.is-style-cta-band {
	background:
		radial-gradient(600px 200px at 80% 0%, rgba(224, 161, 58, .16), transparent 60%),
		var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: clamp(28px, 5vw, 56px);
	text-align: center;
}

/* ---- Primär-Button: Glow on hover (ergänzt theme.json) ---- */
.wp-block-button__link:hover {
	box-shadow: 0 0 28px rgba(224, 161, 58, .28);
	transition: box-shadow .18s ease, background-color .18s ease;
}

/* ---- Wachssiegel-Badge (Trust) ---- */
.kt-seal {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #c2832a, #8a5a22 72%);
	border: 2px solid var(--wp--preset--color--brass);
	color: #fff6e2;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	padding: 10px;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .3);
}

/* ---- Kategorie-Pills (Magic / Pokemon) ---- */
.kt-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.kt-pill--magic   { background: rgba(123, 92, 192, .16); color: #b6a0e8; }
.kt-pill--pokemon { background: rgba(217, 79, 79, .16);  color: #f1a0a0; }

/* ---- Schritt-Nummer (So funktioniert's) ---- */
.kt-step-num {
	display: inline-flex;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(224, 161, 58, .16);
	color: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 18px;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

/* ---- FAQ (einfaches details/summary, kein Plugin nötig) ---- */
.kt-faq {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 10px;
	background: var(--wp--preset--color--surface);
}
.kt-faq > summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--wp--preset--color--txt);
	list-style: none;
}
.kt-faq > summary::-webkit-details-marker { display: none; }
.kt-faq > summary::after { content: " +"; color: var(--wp--preset--color--amber); float: right; }
.kt-faq[open] > summary::after { content: " –"; }
.kt-faq > p { color: var(--wp--preset--color--muted); margin: 10px 0 2px; }

/* =====================================================================
   POLITUR & MOTION (UI/UX – keine Farb-/Brand-Änderung)
   ===================================================================== */

/* ---- FIX: FAQ-Antworten lesbar (Pergament-Regel überschrieb die Farbe) ---- */
.kt-faq > summary { color: var(--wp--preset--color--txt, #efe6d6) !important; }
.kt-faq > p { color: var(--wp--preset--color--muted, #b7a890) !important; }
.is-style-parchment .kt-faq { background: var(--wp--preset--color--surface, #1e1813); }
.kt-faq { transition: border-color .18s ease, background .18s ease; }
.kt-faq[open], .kt-faq:hover { border-color: var(--wp--preset--color--brass, #b8893b); }

/* ---- Nav-CTA „Sammlung bewerten" als hervorgehobener Button + Pulse ---- */
@keyframes kt-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(224,161,58,.45); }
	70%  { box-shadow: 0 0 0 10px rgba(224,161,58,0); }
	100% { box-shadow: 0 0 0 0 rgba(224,161,58,0); }
}
.main-navigation .menu li.kt-nav-cta { display: flex; align-items: center; }
.main-navigation .menu li.kt-nav-cta > a {
	background: var(--wp--preset--color--amber, #e0a13a);
	color: var(--wp--preset--color--ink, #2a2118) !important;
	border-radius: 999px; padding: 8px 18px !important; margin: 4px 0;
	font-weight: 700; line-height: 1.2;
	animation: kt-pulse 2.6s ease-out infinite;
	transition: transform .15s ease, background .15s ease;
}
.main-navigation .menu li.kt-nav-cta > a:hover {
	background: var(--wp--preset--color--amber-soft, #f2c879);
	color: var(--wp--preset--color--ink, #2a2118) !important;
	transform: translateY(-2px) scale(1.02);
}

/* ---- Micro-Interactions: Buttons & Karten heben sich ---- */
.wp-block-button__link { transition: transform .16s ease, box-shadow .18s ease, background-color .18s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-wood-panel { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.is-style-wood-panel:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--brass, #b8893b);
	box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

/* ---- Wachssiegel atmet dezent ---- */
@keyframes kt-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.kt-seal { animation: kt-breathe 5s ease-in-out infinite; }

/* ---- Sanfte Einblend-Reveals beim Laden (gestaffelt) ---- */
@keyframes kt-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.wp-block-group.is-style-cta-band {
	animation: kt-rise .55s cubic-bezier(.2,.7,.3,1) both;
}
.entry-content > .wp-block-group:nth-child(2) { animation-delay: .06s; }
.entry-content > .wp-block-group:nth-child(3) { animation-delay: .12s; }
.entry-content > .wp-block-group:nth-child(4) { animation-delay: .18s; }
.entry-content > .wp-block-group:nth-child(5) { animation-delay: .24s; }

/* ---- Featured Image: dezenter Zoom beim Hover ---- */
.post-image, .featured-image, .page-header-image { overflow: hidden; border-radius: 14px; }
.post-image img, .featured-image img { transition: transform .5s ease; }
.post-image:hover img, .featured-image:hover img { transform: scale(1.03); }

/* ---- Links auf dunkel: weicher Übergang ---- */
.entry-content a, .main-navigation a { transition: color .15s ease; }

/* ---- Rechner-CTA-Block (für Blogbeiträge) ---- */
.kt-rechner-cta {
	position: relative; overflow: hidden;
	background:
		radial-gradient(520px 200px at 12% 0%, rgba(224,161,58,.16), transparent 60%),
		var(--wp--preset--color--surface-2, #2a2118);
	border: 1px solid var(--wp--preset--color--brass, #b8893b);
	border-radius: 16px; padding: clamp(22px, 4vw, 32px);
	margin: 36px 0; text-align: center;
}
.kt-rechner-cta h3 { font-family: 'Marcellus', Georgia, serif; color: var(--wp--preset--color--txt, #efe6d6); margin: 0 0 6px; font-size: 1.4rem; }
.kt-rechner-cta p { color: var(--wp--preset--color--muted, #b7a890); margin: 0 0 16px; }
.kt-rechner-cta .kt-rechner-btn {
	display: inline-block; background: var(--wp--preset--color--amber, #e0a13a);
	color: var(--wp--preset--color--ink, #2a2118) !important; text-decoration: none !important;
	font-weight: 700; padding: 12px 24px; border-radius: 999px;
	transition: transform .16s ease, box-shadow .18s ease, background .16s ease;
}
.kt-rechner-cta .kt-rechner-btn:hover {
	background: var(--wp--preset--color--amber-soft, #f2c879);
	transform: translateY(-2px); box-shadow: 0 0 26px rgba(224,161,58,.4);
}

/* ---- Reduced motion respektieren ---- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   GLOBALER LOOK „Moderne Taverne" (GeneratePress ist ein klassisches
   Theme -> theme.json-Globalstyles greifen nicht, daher hier global).
   ===================================================================== */

/* ---- Schriften lokal laden (zusaetzlich zu theme.json) ---- */
@font-face { font-family:'Marcellus'; src:url(../fonts/marcellus-400.woff2) format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url(../fonts/inter-400.woff2) format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url(../fonts/inter-600.woff2) format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url(../fonts/inter-700.woff2) format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ---- Grundgeruest: dunkles Holz + Kerzen-Glow ---- */
body {
	background-color: var(--wp--preset--color--bg, #14100c);
	background-image: radial-gradient(1100px 560px at 82% -8%, rgba(224,161,58,.07), transparent 60%);
	background-attachment: fixed;
	color: var(--wp--preset--color--txt, #efe6d6);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
}

h1, h2, h3, h4,
.entry-title, .site-title, .main-title,
.wp-block-heading {
	font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
	color: var(--wp--preset--color--txt, #efe6d6);
	font-weight: 400;
	line-height: 1.15;
}
.entry-content h1, h1.wp-block-heading { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.entry-content h2, h2.wp-block-heading { font-size: clamp(1.7rem, 4vw, 2rem); margin-top: 1.4em; }
.entry-content h3, h3.wp-block-heading { font-size: 1.25rem; }

a { color: var(--wp--preset--color--amber, #e0a13a); text-decoration: none; }
a:hover { color: var(--wp--preset--color--amber-soft, #f2c879); text-decoration: underline; }

/* ---- GeneratePress-Container transparent (kein weisser Kasten) ---- */
.separate-containers .site-main,
.separate-containers .inside-article,
.one-container .site-content,
.site-content, .content-area, .site-main, .inside-article,
.entry-content, .page-header, .generate-page-header {
	background-color: transparent !important;
	box-shadow: none !important;
}

/* ---- Kein Sidebar-Layout: Inhalt volle Breite ---- */
.content-area { width: 100% !important; }
.site-content .widget-area,
.site-content .sidebar,
#right-sidebar, #left-sidebar { display: none !important; }
.inside-article { padding: 0 !important; }

/* ---- Header: dunkel, Holzfuge, sticky ---- */
.site-header {
	background-color: var(--wp--preset--color--surface, #1e1813);
	border-bottom: 1px solid var(--wp--preset--color--line, #3a2e22);
	position: sticky; top: 0; z-index: 100;
}
.inside-header { padding-top: 14px; padding-bottom: 14px; }
/* Logo-Bild zuverlaessig anzeigen; doppelten Seitentitel-Text ausblenden */
.site-logo { display: flex; align-items: center; }
.site-logo img, .header-image, .header-image.is-logo-image, .site-header img {
	height: 52px !important; width: auto !important; max-height: none;
}
.site-branding .main-title, .site-header .main-title { display: none !important; }

/* ---- Navigation: dunkel, Amber aktiv ---- */
.main-navigation,
.main-navigation .main-nav > ul,
.main-navigation ul ul {
	background-color: var(--wp--preset--color--surface, #1e1813);
}
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--wp--preset--color--txt, #efe6d6);
	font-weight: 600;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu"] > a {
	color: var(--wp--preset--color--amber, #e0a13a);
}
.main-navigation ul ul { border: 1px solid var(--wp--preset--color--line); }

/* ---- Buttons: Amber erzwingen (GP-Default ueberschreiben) ---- */
.wp-block-button .wp-block-button__link,
.entry-content .wp-block-button__link,
a.wp-block-button__link {
	background-color: var(--wp--preset--color--amber, #e0a13a) !important;
	color: var(--wp--preset--color--ink, #2a2118) !important;
	border-radius: 8px !important; font-weight: 700; padding: .8rem 1.6rem; border: none;
}
.wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--amber-soft, #f2c879) !important;
	color: var(--wp--preset--color--ink, #2a2118) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	color: var(--wp--preset--color--amber, #e0a13a) !important;
	border: 1px solid var(--wp--preset--color--brass, #b8893b) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface-2, #2a2118) !important;
}

/* ---- Full-Bleed fuer alignfull, zentrierte alignwide ---- */
.entry-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw; width: 100vw;
}
.entry-content .alignwide { max-width: 1120px; margin-left: auto; margin-right: auto; }
.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content > :where(:not(.alignfull):not(.alignwide)) { max-width: 1080px; }

/* ---- Listen/Text Standardfarbe in dunklen Sektionen ---- */
.entry-content { color: var(--wp--preset--color--txt, #efe6d6); }
.entry-content :where(p, li) { color: inherit; }

/* ---- Beitrags-Header: Featured Image + Meta-Zeile ---- */
.kt-feat { margin: 0 0 18px; }
.kt-feat img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--wp--preset--color--line, #3a2e22); display: block; }
.kt-postmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--wp--preset--color--muted, #b7a890); font-size: .9rem; margin: 0 0 22px; }
.kt-postmeta .kt-pm-sep { color: var(--wp--preset--color--faint, #8a7c66); }
.kt-postmeta .kt-pm-read { color: var(--wp--preset--color--amber, #e0a13a); }

/* ---- Yoast-Breadcrumbs ---- */
.kt-breadcrumb { max-width: 1080px; margin: 0 auto 18px; padding: 8px 0; color: var(--wp--preset--color--muted, #b7a890); font-size: .9rem; }
.kt-breadcrumb a { color: var(--wp--preset--color--muted, #b7a890); }
.kt-breadcrumb a:hover { color: var(--wp--preset--color--amber, #e0a13a); }
.kt-breadcrumb .breadcrumb_last { color: var(--wp--preset--color--txt, #efe6d6); }

/* ---- Doppelten Seitentitel vermeiden ----
   Seiten (Startseite/Landings/Tool/Recht) bringen ihre Ueberschrift selbst im
   Inhalt mit -> GP-Seitentitel ausblenden. Beitraege (Ratgeber) behalten ihren
   Titel als H1 (der Artikel-Inhalt hat keine eigene H1). */
body.page .inside-article > .entry-header,
body.page .inside-article > .page-header,
body.page .entry-header .entry-title { display: none; }

/* ---- Footer ---- */
.site-footer, .site-info {
	background-color: var(--wp--preset--color--surface, #1e1813);
	border-top: 1px solid var(--wp--preset--color--line, #3a2e22);
	color: var(--wp--preset--color--muted, #b7a890);
}
.site-info a { color: var(--wp--preset--color--amber, #e0a13a); }
.kt-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 8px; }
.kt-footer-copy { text-align: center; color: var(--wp--preset--color--faint, #8a7c66); margin: 0; font-size: .9rem; }
.kt-cardmarket { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--wp--preset--color--muted, #b7a890); font-size: .9rem; }
.kt-cm-badge { display: block; height: auto; max-width: 240px; border-radius: 8px; border: 1px solid var(--wp--preset--color--line, #3a2e22); }
.site-info .inside-site-info { text-align: center; }

/* ---- Fluent Forms an die Marke anpassen ---- */
.fluentform .ff-el-input--label label,
.fluentform label { color: var(--wp--preset--color--txt, #efe6d6); }
/* Nur echte Texteingaben/Selects/Textareas als Box stylen — NICHT Radios/Checkboxen */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform input[type="url"],
.fluentform textarea,
.fluentform select {
	background-color: var(--wp--preset--color--surface-3, #352a1e) !important;
	border: 1px solid var(--wp--preset--color--line, #3a2e22) !important;
	color: var(--wp--preset--color--txt, #efe6d6) !important;
	border-radius: 8px !important;
}
.fluentform input::placeholder, .fluentform textarea::placeholder { color: var(--wp--preset--color--faint, #8a7c66); }
.fluentform input[type="radio"], .fluentform input[type="checkbox"] { accent-color: var(--wp--preset--color--amber, #e0a13a); width:auto !important; }
.fluentform .ff-el-form-check label, .fluentform .ff_el_checkable label { color: var(--wp--preset--color--txt, #efe6d6); }
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-btn-submit,
.fluentform .ff_btn_style {
	background-color: var(--wp--preset--color--amber, #e0a13a) !important;
	color: var(--wp--preset--color--ink, #2a2118) !important;
	border: none !important; border-radius: 8px !important; font-weight: 700;
}
.fluentform .ff-step-titles li.active { color: var(--wp--preset--color--amber, #e0a13a); }
.ff-step-header .ff-el-progress-bar { background-color: var(--wp--preset--color--amber, #e0a13a); }
/* Abschnitts-Ueberschriften im Formular */
.fluentform .kt-form-section { margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--line, #3a2e22); }
.fluentform .kt-form-section:first-child { border-top: none; padding-top: 0; }
.fluentform .kt-form-section h3 { font-family: 'Marcellus', Georgia, serif; color: var(--wp--preset--color--amber, #e0a13a); margin: 0 0 2px; font-size: 1.2rem; }
.fluentform .kt-form-section p { color: var(--wp--preset--color--muted, #b7a890); margin: 0; font-size: .95rem; }
.fluentform .ff-el-form-check-label, .fluentform .ff_item_selectable_pro label { font-weight: 400; }
