/*
Theme Name: Konterfrei
Theme URI: https://konterfrei.com
Author: Konterfrei
Description: Feuriges Band-Theme für Konterfrei – Rock Cover aus Darmstadt. Großer Flammen-Header, Konzerttermine, Band, Videos, Galerie und Booking-Formular. Ohne externe Schriftarten oder Tracker (DSGVO-freundlich).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: konterfrei
*/

:root {
	--kf-black: #070707;
	--kf-dark: #101010;
	--kf-card: #171717;
	--kf-line: #2a2a2a;
	--kf-red: #e03e4b;
	--kf-fire: #ff5a14;
	--kf-orange: #ff8a1f;
	--kf-yellow: #f6d24a;
	--kf-blue: #2f4fa3;
	--kf-text: #ececec;
	--kf-muted: #a8a8a8;
	--kf-head: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Condensed", "Arial Black", sans-serif;
	--kf-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
	margin: 0;
	background: var(--kf-black);
	color: var(--kf-text);
	font-family: var(--kf-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kf-orange); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--kf-yellow); }

h1, h2, h3, h4 {
	font-family: var(--kf-head);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.05;
	margin: 0 0 .5em;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.kf-wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header / Navigation ---------- */
.kf-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.55));
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(255, 90, 20, .35);
}
body.admin-bar .kf-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kf-header { top: 46px; } }

.kf-header .kf-wrap {
	display: flex; align-items: center; justify-content: space-between;
	height: 64px;
}
.kf-brand { display: flex; align-items: center; gap: .6rem; color: var(--kf-text); }
.kf-brand img { height: 48px; width: 48px; object-fit: contain; }
.kf-brand span {
	font-family: var(--kf-head); font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--kf-red);
}

.kf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.kf-nav a {
	font-family: var(--kf-head);
	text-transform: uppercase; letter-spacing: .08em;
	font-size: 1.1rem; color: var(--kf-text);
	padding: .3rem 0; position: relative;
}
.kf-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px;
	background: linear-gradient(90deg, var(--kf-fire), var(--kf-yellow));
	transition: right .25s;
}
.kf-nav a:hover::after, .kf-nav .current-menu-item > a::after { right: 0; }
.kf-nav a:hover { color: #fff; }

.kf-burger {
	display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.kf-burger span, .kf-burger span::before, .kf-burger span::after {
	display: block; width: 26px; height: 3px; background: var(--kf-orange); position: relative; content: "";
	transition: transform .25s, background .25s;
}
.kf-burger span::before { position: absolute; top: -8px; }
.kf-burger span::after { position: absolute; top: 8px; }

@media (max-width: 860px) {
	.kf-burger { display: block; }
	.kf-nav {
		position: absolute; top: 64px; left: 0; right: 0;
		background: rgba(0,0,0,.97);
		max-height: 0; overflow: hidden; transition: max-height .3s;
		border-bottom: 1px solid rgba(255,90,20,.35);
	}
	.kf-nav.open { max-height: 420px; }
	.kf-nav ul { flex-direction: column; gap: 0; padding: .5rem 4%; }
	.kf-nav li a { display: block; padding: .9rem 0; font-size: 1.3rem; }
}

/* ---------- Hero mit Feuer ---------- */
.kf-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	overflow: hidden;
	padding: 90px 0 190px;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(255, 90, 20, .35), transparent 60%),
		linear-gradient(to bottom, #000 0%, #0a0504 60%, #1a0705 100%);
	isolation: isolate;
}
.kf-hero-inner { position: relative; z-index: 3; }

.kf-hero-logo {
	width: min(340px, 46vh, 72vw);
	margin: 0 auto .8rem;
	filter: drop-shadow(0 0 22px rgba(255, 90, 20, .55)) drop-shadow(0 0 60px rgba(224, 62, 75, .35));
	animation: kf-glow 3.2s ease-in-out infinite alternate;
}
@keyframes kf-glow {
	from { filter: drop-shadow(0 0 16px rgba(255, 90, 20, .45)) drop-shadow(0 0 40px rgba(224, 62, 75, .25)); }
	to   { filter: drop-shadow(0 0 30px rgba(255, 138, 31, .75)) drop-shadow(0 0 80px rgba(224, 62, 75, .45)); }
}

.kf-hero h1 { font-size: clamp(2.2rem, 6.2vw, 4.8rem); margin: 0; color: #fff; text-shadow: 0 0 25px rgba(255, 90, 20, .7); }
.kf-hero h1 em { font-style: normal; color: var(--kf-red); }
.kf-tagline {
	font-family: var(--kf-head); text-transform: uppercase; letter-spacing: .18em;
	font-size: clamp(1rem, 2.6vw, 1.7rem); color: var(--kf-yellow); margin: .4rem 0 1.4rem;
}
.kf-hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.kf-btn {
	display: inline-block; cursor: pointer;
	font-family: var(--kf-head); text-transform: uppercase; letter-spacing: .1em; font-size: 1.2rem;
	padding: .8rem 2rem; border: 2px solid var(--kf-fire); color: #fff;
	background: linear-gradient(135deg, var(--kf-red), var(--kf-fire));
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
	transition: transform .2s, filter .2s;
}
.kf-btn:hover, .kf-btn:focus { color: #fff; transform: translateY(-3px); filter: brightness(1.15) drop-shadow(0 6px 14px rgba(255, 90, 20, .5)); }
.kf-btn.ghost { background: rgba(0, 0, 0, .55); border-color: var(--kf-orange); color: var(--kf-orange); }
.kf-btn.ghost:hover { background: rgba(255, 138, 31, .12); color: var(--kf-yellow); }

/* Flammen */
.kf-fire { position: absolute; left: -4%; right: -4%; bottom: -6%; height: 44%; z-index: 1; pointer-events: none; filter: url(#kf-heat); }
.kf-fire i {
	position: absolute; bottom: 0; width: 13%; height: 100%;
	clip-path: polygon(50% 0, 70% 28%, 92% 62%, 100% 100%, 0 100%, 8% 62%, 30% 28%);
	background: linear-gradient(to top, #fff3a8 0%, #ffc02a 18%, #ff5a14 46%, #c4180f 74%, rgba(120, 10, 10, .0) 100%);
	filter: blur(5px);
	transform-origin: 50% 100%;
	animation: kf-flick 2.4s ease-in-out infinite alternate;
	opacity: .95;
}
.kf-fire i:nth-child(1)  { left: -4%;  height: 62%; animation-delay: -.4s; animation-duration: 2.1s; }
.kf-fire i:nth-child(2)  { left: 5%;   height: 90%; animation-delay: -1.2s; }
.kf-fire i:nth-child(3)  { left: 14%;  height: 70%; animation-delay: -.8s; animation-duration: 2.7s; }
.kf-fire i:nth-child(4)  { left: 23%;  height: 100%; animation-delay: -1.7s; animation-duration: 2.3s; }
.kf-fire i:nth-child(5)  { left: 32%;  height: 76%; animation-delay: -.2s; animation-duration: 2.9s; }
.kf-fire i:nth-child(6)  { left: 41%;  height: 94%; animation-delay: -1s; animation-duration: 2.2s; }
.kf-fire i:nth-child(7)  { left: 50%;  height: 68%; animation-delay: -1.5s; animation-duration: 2.8s; }
.kf-fire i:nth-child(8)  { left: 59%;  height: 98%; animation-delay: -.6s; }
.kf-fire i:nth-child(9)  { left: 68%;  height: 74%; animation-delay: -1.1s; animation-duration: 2.6s; }
.kf-fire i:nth-child(10) { left: 77%;  height: 92%; animation-delay: -.3s; animation-duration: 2.4s; }
.kf-fire i:nth-child(11) { left: 86%;  height: 66%; animation-delay: -1.4s; animation-duration: 3s; }
.kf-fire i:nth-child(12) { left: 94%;  height: 84%; animation-delay: -.9s; animation-duration: 2.2s; }
@keyframes kf-flick {
	0%   { transform: scaleY(.82) scaleX(1.05); }
	35%  { transform: scaleY(1.04) scaleX(.88); }
	70%  { transform: scaleY(.9) scaleX(1.08); }
	100% { transform: scaleY(1.12) scaleX(.92); }
}
.kf-flames {
	position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66%;
	z-index: 1; pointer-events: none; display: block;
}
.kf-hero.kf-gl .kf-fire { display: none; }
.kf-hero.kf-gl { background: radial-gradient(ellipse at 50% 110%, rgba(255, 90, 20, .22), transparent 60%), #000; }
.kf-embers { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.kf-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 4;
	background: linear-gradient(to bottom, transparent, var(--kf-black));
	pointer-events: none;
}

.kf-scroll {
	position: absolute; bottom: 26px; left: 50%; z-index: 5; width: 28px; height: 46px; margin-left: -14px;
	border: 2px solid rgba(255,255,255,.55); border-radius: 16px;
}
.kf-scroll::before {
	content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
	background: var(--kf-yellow); border-radius: 2px; animation: kf-scroll 1.6s infinite;
}
@keyframes kf-scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sektionen ---------- */
.kf-section { padding: 90px 0; position: relative; }
.kf-section.alt { background: var(--kf-dark); }
.kf-section.alt::before, .kf-section.alt::after {
	content: ""; position: absolute; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, transparent, var(--kf-fire), var(--kf-yellow), var(--kf-fire), transparent);
	opacity: .7;
}
.kf-section.alt::before { top: 0; }
.kf-section.alt::after { bottom: 0; }

.kf-title { text-align: center; margin-bottom: 3rem; }
.kf-title h2 {
	font-size: clamp(2.2rem, 6vw, 4rem); display: inline-block; position: relative; color: #fff; margin: 0;
	text-shadow: 0 0 18px rgba(255, 90, 20, .5);
}
.kf-title h2::after {
	content: ""; display: block; height: 5px; margin: .45rem auto 0; width: 70%;
	background: linear-gradient(90deg, var(--kf-red), var(--kf-fire), var(--kf-yellow));
	clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}
.kf-title p { color: var(--kf-muted); margin: 1rem 0 0; }

/* ---------- Termine ---------- */
.kf-events { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 1rem; }
.kf-event {
	display: grid; grid-template-columns: 96px 1fr auto; gap: 1.4rem; align-items: center;
	background: var(--kf-card); border: 1px solid var(--kf-line); border-left: 5px solid var(--kf-fire);
	padding: 1rem 1.4rem; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.kf-event:hover { transform: translateX(6px); border-left-color: var(--kf-yellow); box-shadow: 0 0 28px rgba(255, 90, 20, .15); }
.kf-date { text-align: center; font-family: var(--kf-head); text-transform: uppercase; line-height: 1; }
.kf-date b { display: block; font-weight: 400; font-size: 3rem; color: var(--kf-yellow); }
.kf-date span { display: block; font-size: 1.1rem; letter-spacing: .12em; color: var(--kf-red); }
.kf-date small { display: block; font-size: .8rem; letter-spacing: .1em; color: var(--kf-muted); margin-top: .2rem; }
.kf-event h3 { font-size: 1.6rem; margin: 0; color: #fff; }
.kf-event p { margin: .15rem 0 0; color: var(--kf-muted); font-size: .98rem; }
.kf-empty { text-align: center; color: var(--kf-muted); font-size: 1.1rem; }
@media (max-width: 640px) {
	.kf-event { grid-template-columns: 70px 1fr; }
	.kf-event .kf-btn { grid-column: 1 / -1; text-align: center; }
	.kf-date b { font-size: 2.3rem; }
}

/* ---------- Band ---------- */
.kf-about { max-width: 780px; margin: 0 auto 3.5rem; text-align: center; font-size: 1.15rem; }
.kf-about p { margin: 0 0 1em; }
.kf-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.kf-member { position: relative; background: var(--kf-card); overflow: hidden; border: 1px solid var(--kf-line); }
.kf-member img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; filter: grayscale(.85) contrast(1.1); transition: filter .35s, transform .5s; }
.kf-member:hover img { filter: grayscale(0) contrast(1.05); transform: scale(1.05); }
.kf-member .ph {
	aspect-ratio: 6 / 7; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 60%, #2a0d09, #0b0b0b);
	font-family: var(--kf-head); font-size: 5rem; color: var(--kf-red);
}
.kf-member figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 1rem; text-align: center;
	background: linear-gradient(to top, rgba(0,0,0,.95), transparent);
}
.kf-member h3 { margin: 0; font-size: 1.7rem; color: #fff; }
.kf-member span { font-family: var(--kf-head); letter-spacing: .12em; text-transform: uppercase; color: var(--kf-orange); font-size: 1rem; }
.kf-member { margin: 0; }

/* ---------- Videos ---------- */
.kf-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }
.kf-video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--kf-line); overflow: hidden; }
.kf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kf-video button {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff;
	background: radial-gradient(circle at 50% 120%, rgba(255, 90, 20, .55), transparent 70%), linear-gradient(135deg, #1a0705, #000);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1rem;
}
.kf-video button .play {
	width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--kf-fire); position: relative;
	transition: transform .2s, background .2s;
}
.kf-video button .play::after {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-left: 22px solid var(--kf-yellow); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.kf-video button:hover .play { transform: scale(1.12); background: rgba(255, 90, 20, .25); }
.kf-video button strong { font-family: var(--kf-head); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; font-size: 1.3rem; }
.kf-video button small { color: var(--kf-muted); font-size: .78rem; max-width: 30ch; line-height: 1.35; }

/* ---------- Galerie ---------- */
.kf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.kf-gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #000; }
.kf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; filter: saturate(.9) brightness(.9); }
.kf-gallery a:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }
.kf-gallery a::after {
	content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--kf-fire); transition: box-shadow .25s; pointer-events: none;
}
.kf-gallery a:hover::after { box-shadow: inset 0 0 0 4px var(--kf-fire); }

.kf-lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.94); display: none;
	align-items: center; justify-content: center; padding: 3vw;
}
.kf-lightbox.open { display: flex; }
.kf-lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; box-shadow: 0 0 60px rgba(255, 90, 20, .3); }
.kf-lightbox button {
	position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
	font-family: var(--kf-head); font-size: 3rem; padding: .6rem 1rem; transition: color .2s;
}
.kf-lightbox button:hover { color: var(--kf-fire); }
.kf-lightbox .x { top: 1rem; right: 1rem; }
.kf-lightbox .prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.kf-lightbox .next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt / Booking ---------- */
.kf-contact { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.kf-contact h3 { font-size: 2.2rem; color: var(--kf-yellow); }
.kf-contact p { margin: 0 0 1.2rem; }
.kf-contact .kf-btn { font-size: 1.4rem; padding: 1rem 2.6rem; }
.kf-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; justify-content: center; }
.kf-social a {
	border: 2px solid var(--kf-line); padding: .35rem 1rem; font-family: var(--kf-head);
	text-transform: uppercase; letter-spacing: .1em; color: var(--kf-text); transition: all .2s;
}
.kf-social a:hover { border-color: var(--kf-fire); color: var(--kf-yellow); background: rgba(255, 90, 20, .1); }

/* ---------- Normale Seiten / Beiträge ---------- */
.kf-page { padding: 140px 0 80px; min-height: 70vh; }
.kf-page .kf-wrap { max-width: 860px; }
.kf-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; text-shadow: 0 0 18px rgba(255, 90, 20, .45); margin-bottom: .8rem; }
.kf-page h2 { font-size: 2rem; color: var(--kf-yellow); margin-top: 2rem; }
.kf-page h3 { font-size: 1.5rem; color: var(--kf-orange); margin-top: 1.6rem; }
.kf-page .entry p, .kf-page .entry li { color: #d8d8d8; }
.kf-page .entry img { margin: 1.4rem 0; }
.kf-meta { color: var(--kf-muted); margin-bottom: 1.6rem; }
.kf-post-list article { border-bottom: 1px solid var(--kf-line); padding: 1.4rem 0; }
.kf-post-list h2 { margin: 0 0 .3rem; font-size: 2rem; }
.kf-post-list h2 a { color: #fff; }
.kf-post-list h2 a:hover { color: var(--kf-fire); }
.kf-pagination { margin-top: 2rem; display: flex; gap: 1rem; justify-content: space-between; }

/* ---------- Footer ---------- */
.kf-footer { background: #000; border-top: 3px solid var(--kf-fire); padding: 2.4rem 0; text-align: center; color: var(--kf-muted); font-size: .92rem; }
.kf-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.kf-footer ul a { font-family: var(--kf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--kf-text); }
.kf-footer ul a:hover { color: var(--kf-fire); }
.kf-footer p { margin: 0; }
.kf-footer .star { color: var(--kf-red); }

/* Scroll-Einblendung */
.kf-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.kf-reveal.in { opacity: 1; transform: none; }
.no-js .kf-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kf-fire i, .kf-hero-logo, .kf-scroll::before { animation: none; }
	.kf-reveal { opacity: 1; transform: none; transition: none; }
	.kf-fire { filter: none; }
}

/* WordPress-Kern-Klassen */
.alignleft { float: left; margin: 0 1.4rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { color: var(--kf-muted); font-size: .9rem; }
