/* ==========================================================================
   CAMPFIRE – campfiremusic.de
   Reines CSS, mobile-first, automatischer Dark Mode, nur System-Fonts.
   ========================================================================== */

/* ----- Farbschema: hell (Standard) und dunkel (prefers-color-scheme) ----- */

/* Markenfarben gemäß Brandstrategie (images/Brandstrategie_CAMPFIRE.png):
   #0B0B0B Schwarz, #E56A1D Flamme/Orange, #D4A25A Gold, #F2E8D7 Creme, #2E3B2E Palmgrün.
   Die Wartungsseite nutzt fest das dunkle Markenbild (kein Light-Mode-Wechsel). */
:root {
  color-scheme: dark;

  --bg: #060606;
  --bg-elevated: #16160f;
  --bg-header: #060606;
  --text: #f2e8d7;
  --text-muted: #d4a25a;
  --heading: #f2e8d7;
  --accent: #e56a1d;          /* Kontrast auf #060606: 6:1 */
  --border: #2a2a20;
  --focus-ring: #f2e8d7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060606;
    --bg-elevated: #16160f;
    --bg-header: #060606;
    --text: #f2e8d7;
    --text-muted: #d4a25a;
    --heading: #f2e8d7;
    --accent: #e56a1d;
    --border: #2a2a20;
    --focus-ring: #f2e8d7;
  }
}

/* ----- Basis ----- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sprunglink für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ----- Header & Navigation (mobile-first, Menü ohne JavaScript) ----- */

.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: var(--heading);
  text-transform: uppercase;
}

.site-title:hover {
  color: var(--accent);
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
}

.nav-toggle {
  display: block;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 0;
}

.nav-toggle-input:focus-visible + .nav-toggle {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle-input:checked ~ .nav-toggle .icon-open {
  display: none;
}

.nav-toggle-input:checked ~ .nav-toggle .icon-close {
  display: block;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  list-style: none;
  flex-direction: column;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.nav-toggle-input:checked ~ .nav-menu {
  display: flex;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a[aria-current='page'] {
  color: var(--accent);
}

@media (min-width: 46rem) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-menu a {
    padding: 0.25rem 0;
    font-size: 0.85rem;
  }
}

/* ----- Hero (Startseite) ----- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(88svh, 60rem);
  padding: 2rem 1.25rem;
  background-color: var(--bg);
}

.hero img {
  width: min(30rem, 85vw);
}

/* Nur für Screenreader sichtbar */
.visually-hidden-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----- Inhalt ----- */

main {
  display: block;
}

.page-content {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.page-content h1 {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  margin: 0 0 2rem;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

.page-content p {
  margin: 0 0 1.25rem;
}

.about-figure {
  margin: 2.5rem 0 0;
}

.about-figure img {
  border-radius: 8px;
}

/* ----- Social-Links ----- */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
}

.social-icons a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-icons svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.hero .social-icons {
  justify-content: center;
}

.hero .social-icons a {
  color: var(--text-muted);
  border-color: var(--border);
}

.hero .social-icons a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ----- 2-Klick-Embeds (SoundCloud / Spotify) ----- */

.embed {
  margin: 0 0 2rem;
}

.embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
}

.embed-consent {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  align-content: center;
  min-height: 14rem;
  padding: 1.5rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.embed-consent h2 {
  margin: 0;
  font-size: 1.05rem;
}

.embed-consent p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.embed-load-button {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background-color: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.5rem;
}

@media (prefers-color-scheme: dark) {
  .embed-load-button {
    color: #000000;
  }
}

.embed-load-button:hover {
  filter: brightness(1.15);
}

/* ----- Formular (Booking) ----- */

.booking-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.consent-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.submit-button {
  justify-self: start;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background-color: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
}

@media (prefers-color-scheme: dark) {
  .submit-button {
    color: #000000;
  }
}

.submit-button:hover {
  filter: brightness(1.15);
}

/* ----- Rechtstexte ----- */

.legal address {
  font-style: normal;
}

.placeholder-hinweis {
  padding: 0.9rem 1.1rem;
  background-color: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem;
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}
