/* ==========================================================================
   JF Drums – jf-drums.de
   Statische Website ohne externe Abhängigkeiten (keine Webfonts, kein JS-Framework)
   ========================================================================== */

:root {
  --bg: #0c0b0a;
  --bg-2: #15130f;
  --bg-3: #1e1a15;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f1ece3;
  --muted: #a89f92;
  --accent: #d89b3c;        /* warmes Bühnenlicht / Holz */
  --accent-2: #f0c470;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.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;
}

/* ---------- Typografie ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 34em; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1.2rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 11, 10, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
html.ready .site-header .wrap { transition: min-height 0.3s ease; }
.site-header.scrolled .wrap { min-height: 56px; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); border-bottom-color: rgba(255, 255, 255, 0.06); }
.site-header { view-transition-name: site-header; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }
.brand img { height: 40px; width: auto; }
html.ready .brand img { transition: height 0.3s ease; }
.site-header.scrolled .brand img { height: 32px; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .socials { display: flex; gap: 0.35rem; margin-left: 0.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(216, 155, 60, 0.16) 0%, rgba(216, 155, 60, 0.05) 35%, transparent 65%);
  filter: blur(10px);
}
.hero .wrap { position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 span { display: block; }
.hero-text h1 .thin { font-weight: 300; color: var(--muted); }
.hero-text .lead { margin-top: 1.5rem; }
.hero-media { position: relative; }
.hero-media picture img {
  width: 100%; height: 100%; max-height: 82vh; object-fit: cover; object-position: center 20%;
  border-radius: 6px; aspect-ratio: 3 / 4;
}
.hero-media { overflow: hidden; border-radius: 6px; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.25) 0%, transparent 30%, transparent 55%, rgba(12, 11, 10, 0.85) 100%),
    linear-gradient(90deg, rgba(12, 11, 10, 0.45) 0%, transparent 25%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@supports (animation-timeline: scroll()) {
  .hero-media picture img { animation: hero-zoom linear both; animation-timeline: scroll(); animation-range: 0 80vh; }
  @keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
}
.hero-media .hero-logo {
  position: absolute; right: 6%; bottom: 5%; width: clamp(56px, 8vw, 100px); height: auto;
  opacity: 0.95; z-index: 1; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
  .hero-media picture img { max-height: none; height: 100%; min-height: 560px; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.4rem; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-3);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); background: #24201a; }
.btn-primary { background: var(--accent); color: #17120a; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }

/* Zeilenumbruch nur auf Desktop */
.br-desktop { display: none; }
@media (min-width: 820px) { .br-desktop { display: initial; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

/* Logo als Wasserzeichen */
.watermark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%) rotate(-6deg);
  height: 130%; width: auto; opacity: 0.035; pointer-events: none; user-select: none; z-index: 0;
}
@media (max-width: 819px) { .watermark { height: 90%; right: -25%; } }

/* Logo-Trenner */
.divider { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider img { height: 44px; width: auto; opacity: 0.7; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: 1rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.contact-list .icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--accent);
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list h3 { margin-bottom: 0.15rem; font-size: 0.78rem; }
.contact-list a.big {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; text-decoration: none;
  overflow-wrap: anywhere; letter-spacing: -0.01em;
}
.contact-list a.big { transition: color 0.2s ease; }
.contact-list a.big:hover { color: var(--accent); }

/* Telefon- und Mail-Links: Hover in Amber (auch Textlinks im Impressum/Datenschutz und der Telefon-Button) */
a[href^="mailto:"]:not(.btn):hover, a[href^="tel:"]:not(.btn):hover { color: var(--accent); }
.btn:not(.btn-primary)[href^="tel:"]:hover, .btn:not(.btn-primary)[href^="mailto:"]:hover { color: var(--accent-2); border-color: rgba(216, 155, 60, 0.55); }
.contact-list .note { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0; }

.social-cards { display: grid; gap: 0.9rem; }
.social-card {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: 10px; text-decoration: none;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); background: #24201a; }
.social-card .icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.social-card .icon svg { width: 26px; height: 26px; }
.social-card strong { display: block; font-size: 1.05rem; }
.social-card small { color: var(--muted); }
.social-card .arrow { color: var(--muted); font-size: 1.3rem; transition: transform 0.25s ease, color 0.25s ease; }
.social-card:hover .arrow { transform: translate(3px, -3px); color: var(--accent-2); }
.social-card .icon svg { transition: transform 0.25s ease; }
.social-card:hover .icon svg { transform: scale(1.08); }

.copy {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.6rem; vertical-align: middle;
  font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.3rem 0.6rem; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); background: var(--bg-3); }
.copy.ok { color: #17120a; background: var(--accent); border-color: var(--accent); }
html:not(.js) .copy { display: none; }

/* Icon-Buttons im Header */
.icon-link {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); text-decoration: none;
}
.icon-link { transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.icon-link:hover { color: var(--accent-2); background: var(--bg-3); transform: translateY(-1px); }
.icon-link svg { width: 20px; height: 20px; }

/* ---------- Bildstreifen ---------- */
.strip { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.strip figure { margin: 0; overflow: hidden; border-radius: 6px; background: var(--bg-3); position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease; }
.strip figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: var(--accent); mix-blend-mode: soft-light; transition: opacity 0.5s ease;
}
.strip figure:hover img { transform: scale(1.04); filter: contrast(1.05); }
.strip figure:hover::after { opacity: 0.55; }
.strip .wide { grid-column: span 2; }
.strip .wide img { aspect-ratio: 16 / 9; }
@media (min-width: 820px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip .wide { grid-column: span 2; }
  .strip .wide img { aspect-ratio: auto; height: 100%; }
}

/* ---------- Unterricht ---------- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 5; max-height: min(78vh, 720px); object-fit: cover; object-position: center 25%; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.facts li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 2px; background: var(--accent); }

.placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 2rem; text-align: center;
  color: var(--muted); font-size: 0.95rem;
}

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.prose p, .prose ul, .prose address, .prose h2 { max-width: 72ch; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.35rem; text-transform: none; letter-spacing: 0; margin: 2.2rem 0 0.7rem; }
.prose h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { color: #d8d1c6; }
.prose a { color: var(--accent-2); }
.prose address { font-style: normal; line-height: 1.7; }
.todo { background: rgba(216, 155, 60, 0.15); color: var(--accent-2); padding: 0 0.3em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Kleine Screens ---------- */
@media (max-width: 480px) {
  .brand span { display: none; }               /* Nur Logo im Header */
  .nav a.text { display: none; }              /* Nur Icons + Unterricht-Link bleiben */
  .nav a.text.keep { display: inline; }
  .social-card { grid-template-columns: 44px 1fr auto; }
}

/* ---------- Einblenden beim Scrollen ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Koernung ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; mix-blend-mode: overlay;
}
.hero, .section-alt { background-image: radial-gradient(ellipse at 70% 0%, rgba(255, 255, 255, 0.025), transparent 60%); }

/* ---------- Seitenuebergang ---------- */
/* Nativ (Chrome/Edge): Cross-Document View Transition, Header bleibt stehen */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
/* Fallback (Firefox/Safari): per JS ein- und ausblenden */
html.fade body { animation: page-in 0.3s ease both; }
html.fade.leaving body { opacity: 0; transition: opacity 0.2s ease; animation: none; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
