/*
Theme Name: Drachenreich
Theme URI: https://hoardofdragons.com
Author: Hoard of Dragons
Description: Mystisches Block-Theme für den Drachen-Atlas: schwarz, organisch, mit sich windenden Drachen und Bewegung.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drachenreich
*/

/* ---------- Grundstimmung ---------- */
html { scroll-behavior: smooth; }
body {
	background:
		radial-gradient(1200px 700px at 85% -10%, rgba(255,92,173,.10), transparent 60%),
		radial-gradient(1000px 800px at -10% 30%, rgba(63,224,192,.08), transparent 60%),
		radial-gradient(900px 900px at 50% 120%, rgba(42,31,74,.55), transparent 70%),
		#050406;
	background-attachment: fixed;
	overflow-x: hidden;
}
::selection { background: #FF5CAD; color: #050406; }

/* ---------- Drachen-Ebene (fixiert, hinter dem Inhalt) ---------- */
.dr-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wp-site-blocks { position: relative; z-index: 1; }
.dr-layer svg { position: absolute; width: 100%; height: 100%; }
.dr-serpent {
	fill: none; stroke-linecap: round;
	stroke-dasharray: 1400 2600;
	animation: dr-glide 38s linear infinite;
	filter: drop-shadow(0 0 6px rgba(63,224,192,.55));
}
.dr-serpent.b { animation-duration: 52s; animation-direction: reverse; filter: drop-shadow(0 0 6px rgba(255,92,173,.5)); }
@keyframes dr-glide { to { stroke-dashoffset: -4000; } }
.dr-ember {
	position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%;
	background: #D9B26A; box-shadow: 0 0 10px 2px rgba(217,178,106,.7);
	animation: dr-rise linear infinite; opacity: 0;
}
@keyframes dr-rise {
	0% { transform: translate(0,0); opacity: 0; }
	10% { opacity: .9; }
	100% { transform: translate(40px,-110vh); opacity: 0; }
}
.dr-mist {
	position: absolute; inset: -20%;
	background: radial-gradient(closest-side, rgba(42,31,74,.35), transparent),
	            radial-gradient(closest-side at 70% 60%, rgba(63,224,192,.07), transparent);
	animation: dr-drift 40s ease-in-out infinite alternate;
}
@keyframes dr-drift { to { transform: translate(6%, -4%) scale(1.08); } }

/* ---------- Kopfzeile ---------- */
.dr-header {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	background: linear-gradient(to bottom, rgba(5,4,6,.88), rgba(5,4,6,.55));
	border-bottom: 1px solid rgba(217,178,106,.18);
}
.dr-header .wp-block-site-title a { text-decoration: none; letter-spacing: .06em; }
.dr-header .wp-block-navigation a { text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.dr-header .wp-block-navigation a:hover { color: #3FE0C0; }

/* ---------- Hero mit Video ---------- */
.dr-hero { position: relative; overflow: hidden; }
.dr-hero video { filter: saturate(115%); }
.dr-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
	background: linear-gradient(to bottom, transparent, #050406);
	pointer-events: none; z-index: 1;
}
.dr-hero .wp-block-cover__background { z-index: 0; }
.dr-hero .wp-block-cover__inner-container { position: relative; z-index: 3 !important; }
.dr-hero .wp-block-buttons { position: relative; z-index: 3; }
.dr-hero h1 { text-shadow: 0 4px 40px rgba(0,0,0,.8), 0 0 30px rgba(63,224,192,.25); }
.dr-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: #D9B26A; }

/* ---------- Organische Karten ---------- */
.dr-card {
	position: relative;
	background: linear-gradient(160deg, rgba(42,31,74,.55), rgba(14,10,26,.85));
	border: 1px solid rgba(217,178,106,.22);
	border-radius: 38px 14px 38px 14px;
	overflow: hidden;
	transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s;
}
.dr-card:hover {
	transform: translateY(-6px) rotate(-.4deg);
	border-color: rgba(63,224,192,.6);
	box-shadow: 0 20px 60px -20px rgba(63,224,192,.45), 0 0 0 1px rgba(63,224,192,.2) inset;
}
.dr-card img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.dr-card:hover img { transform: scale(1.06); }
.dr-card a { text-decoration: none; }

.dr-reich .wp-block-image img {
	border-radius: 50%; aspect-ratio: 1; object-fit: cover;
	border: 2px solid rgba(217,178,106,.5);
	box-shadow: 0 0 0 6px rgba(5,4,6,.8), 0 0 40px rgba(63,224,192,.25);
	animation: dr-breathe 6s ease-in-out infinite;
}
.dr-reich:nth-child(2n) .wp-block-image img { animation-delay: -2s; }
.dr-reich:nth-child(3n) .wp-block-image img { animation-delay: -4s; }
@keyframes dr-breathe { 50% { box-shadow: 0 0 0 6px rgba(5,4,6,.8), 0 0 60px rgba(255,92,173,.35); } }

/* Organische Trenner */
.dr-divider { height: 60px; margin: 0 !important; background:
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 150 0, 300 60, 450 30 S 750 0, 900 30 S 1100 60, 1200 30' fill='none' stroke='%23D9B26A' stroke-opacity='.5' stroke-width='1.5'/%3E%3Cpath d='M0 36 C 200 10, 350 62, 600 34 S 1000 8, 1200 38' fill='none' stroke='%233FE0C0' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* ---------- Artikel-Bausteine (SEO/GEO) ---------- */
.dr-kurz {
	border-left: 3px solid #3FE0C0;
	background: linear-gradient(90deg, rgba(63,224,192,.10), rgba(63,224,192,0));
	border-radius: 0 24px 24px 0;
}
.dr-steckbrief table { border-collapse: separate; border-spacing: 0; width: 100%; }
.dr-steckbrief td, .dr-steckbrief th { border: 0; border-bottom: 1px solid rgba(217,178,106,.2); padding: .7em 1em; vertical-align: top; }
.dr-steckbrief tr td:first-child { color: #D9B26A; font-family: var(--wp--preset--font-family--cinzel); width: 38%; }
.dr-steckbrief figure { border: 1px solid rgba(217,178,106,.3); border-radius: 24px 8px 24px 8px; overflow: hidden; background: rgba(14,10,26,.7); }
.dr-faq details { border-bottom: 1px solid rgba(217,178,106,.2); padding: 1em 0; }
.dr-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--cinzel); color: #E9E4F5; list-style: none; }
.dr-faq summary::before { content: "✦ "; color: #3FE0C0; }
.dr-hinweis { font-size: .85rem; opacity: .8; border: 1px dashed rgba(217,178,106,.35); border-radius: 14px; }

/* Buttons mit Glut */
.wp-block-button__link { transition: box-shadow .4s, transform .4s; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,92,173,.55); }
.is-style-outline .wp-block-button__link:hover { box-shadow: 0 0 30px rgba(63,224,192,.5); }

/* Einblenden beim Scrollen */
.dr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.dr-reveal.is-in { opacity: 1; transform: none; }

/* Fusszeile */
.dr-footer { border-top: 1px solid rgba(217,178,106,.18); background: linear-gradient(to top, #000, rgba(5,4,6,.6)); }
.dr-footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.dr-reveal { opacity: 1; transform: none; }
	.dr-ember { display: none; }
}
@media (max-width: 781px) {
	.dr-card { border-radius: 26px 10px 26px 10px; }
	.dr-serpent { stroke-width: 1.2 !important; }
}
