/*
Theme Name: JustChoired
Description: OnePage-Theme für den Chor JustChoired – Startseite mit Über uns, Konzerten und Kontakt, dazu Impressum und Datenschutz. Ohne Cookies, Tracking oder externe Schriften.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: justchoired
*/

:root {
  --bg: #0b0906;
  --bg-alt: #14100a;
  --surface: #1b160e;
  --line: rgba(212, 175, 95, 0.25);
  --gold: #d4af5f;
  --gold-light: #f3dfa6;
  --text: #f4ede0;
  --muted: #b9ad98;
  --nav-bg: #131313; /* = Hintergrundfarbe von assets/logo_glow.jpg */
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-nav { top: 0; } }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* Zeigt nur den Schriftzug aus logo_glow.jpg (ca. x 170–1030, y 110–440 von 1206×554) */
.brand { display: block; position: relative; overflow: hidden; height: 44px; aspect-ratio: 860 / 330; flex-shrink: 0; }
.brand img { position: absolute; max-width: none; width: 140.2%; left: -19.8%; top: -33.3%; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav ul a { color: var(--text); text-decoration: none; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav ul a:hover { color: var(--gold); }

/* Hero */
/* Logo füllt den Bereich (cover). Die Höhe wird so begrenzt, dass der
   Schriftzug (ca. 8–90 % der Bildbreite, 31–63 % der Bildhöhe) nie
   abgeschnitten wird: mind. 50vw (Breitbild), max. 115vw (Hochformat). */
.hero {
  position: relative;
  height: min(max(calc(100vh - 68px), 50vw), 115vw);
  display: grid; place-items: center;
  background: #000 url("assets/logo_gold.webp") center / cover no-repeat;
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 80%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; align-self: end; padding: 0 20px clamp(20px, 6vh, 72px); }
.tagline {
  font-family: var(--serif); letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-light); font-size: clamp(.8rem, 2.2vw, 1rem); margin: 0 0 28px;
  text-shadow: 5px 5px 5px rgba(1, 1, 1, 1), -5px 5px 5px rgba(1, 1, 1, 1), 5px -5px 5px rgba(1, 1, 1, 1), -5px -5px 5px rgba(1, 1, 1, 1);
}
.btn {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--gold);
  color: var(--gold-light); text-decoration: none; letter-spacing: .14em;
  text-transform: uppercase; font-size: .85rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.btn:hover, .btn.solid { background: var(--gold); color: #1a1408; }
.btn.solid:hover { background: var(--gold-light); }

/* Sections */
.section { padding: 96px 20px; }
.section.alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
.section h2 { font-family: var(--serif); font-weight: normal; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 24px; color: var(--gold-light); line-height: 1.2; }
h3 { font-family: var(--serif); font-weight: normal; }
.divider { width: 64px; height: 1px; background: var(--gold); margin: 0 0 32px; }

/* Über uns */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about.no-image { grid-template-columns: 1fr; max-width: 760px; }
.about figure { margin: 0; }
.about img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.about-text p { color: var(--muted); font-size: 1.05rem; }
/* Die Überschrift kommt aus dem Seiteninhalt; die goldene Linie wird hier ergänzt */
.about-text h2 { margin-bottom: 32px; }
.about-text h2::after { content: ""; display: block; width: 64px; height: 1px; background: var(--gold); margin-top: 24px; }
.genres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.genres li { border: 1px solid var(--line); color: var(--gold-light); padding: 6px 16px; border-radius: 999px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* Konzerte */
.concerts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.concert {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
}
.concert > a { display: block; background: #000; }
.concert > a img { width: 100%; height: auto; transition: opacity .2s; }
.concert > a:hover img { opacity: .9; }
.concert-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.date-row { display: flex; align-items: baseline; gap: 14px; }
.date-row .day { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); }
.date-row .month { text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; color: var(--muted); }
.concert h3 { font-size: 1.6rem; margin: 0; color: var(--text); line-height: 1.25; }
.concert-text p { margin: 0 0 .5em; color: var(--muted); }
.concert-text p:last-child { margin-bottom: 0; }
.concert dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.concert dt { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; padding-top: 3px; }
.concert dd { margin: 0; color: var(--muted); }
.concert .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.badge { display: inline-block; background: var(--gold); color: #1a1408; padding: 2px 10px; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.no-concerts { color: var(--muted); font-size: 1.05rem; }

/* Kontakt */
.contact { text-align: center; }
.contact .divider { margin: 0 auto 32px; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-actions .btn { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; text-transform: none; letter-spacing: .04em; }
.contact-actions svg { width: 22px; height: 22px; }

/* Unterseiten (Impressum, Datenschutz) */
.page-content { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; line-height: 1.65; }
.page-content h1 { font-family: var(--serif); font-weight: normal; color: var(--gold-light); font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 32px; }
.page-content h2 { font-family: var(--serif); font-weight: normal; color: var(--gold); font-size: 1.35rem; margin: 40px 0 12px; }
.page-content h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 24px 0 8px; }
.page-content p, .page-content li { color: var(--muted); }
/* Markierte Textstellen = Platzhalter, die noch ersetzt werden müssen */
.page-content mark { background: #7a1f1f; color: #fff; padding: 0 4px; border-radius: 3px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 32px 20px; text-align: center;
  color: var(--muted); font-size: .85rem;
}
.site-footer a { color: var(--muted); }

@media (max-width: 800px) {
  .section { padding: 72px 16px; }
  .about, .concerts { grid-template-columns: 1fr; }
  .site-nav ul { gap: 14px; }
  .site-nav ul a { font-size: .75rem; letter-spacing: .08em; }
}
@media (max-width: 420px) {
  .brand { height: 32px; }
  .nav-inner { padding: 10px 12px; gap: 10px; }
  .site-nav ul { gap: 10px; }
  .site-nav ul a { font-size: .7rem; letter-spacing: .04em; }
}
