/* ==========================================================
   herquist.de — Basic-CD
   Zum selber Pfriemeln. Variablen oben, Regeln unten.
   ========================================================== */

/* --- Fonts ---------------------------------------------------
   Trade Gothic = Brotschrift. Chinese Rocks, Dynamoe, Trixie Text
   sind mitgeliefert und als @font-face startklar, aber aktuell
   nirgends zugewiesen (falls du sie für Akzente/Headlines
   einsetzen willst).
   ------------------------------------------------------------ */

@font-face {
  font-family: "Trade Gothic";
  src: url("assets/fonts/TradeGothicLT-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Trade Gothic";
  src: url("assets/fonts/TradeGothicLT-BoldTwo.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Chinese Rocks";
  src: url("assets/fonts/ChineseRocksRg-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Dynamoe";
  src: url("assets/fonts/Dynamoe-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Trixie Text";
  src: url("assets/fonts/Trixie-Text.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

/* --- Farben: Dark (Default) + Light --------------------------
   Vorgabe: schwarze Seite, weiße Typo als Standard.
   Light-Mode liegt unter [data-theme="light"] bereit, umschaltbar
   per Button (unten, .theme-toggle) oder System-Präferenz.
   ------------------------------------------------------------ */

:root,
[data-theme="dark"] {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-muted: #707070;
  --color-line: #333333;
  --icon-filter: invert(1); /* Icons/Logo sind schwarz -> für Dark auf Weiß drehen */
  --hero-image: url("assets/img/hero-dark.jpg");
  --accent: #95802f; /* Gold, dunklerer Ton */
}

[data-theme="light"] {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #999999;
  --color-line: #dddddd;
  --icon-filter: none;
  --hero-image: url("assets/img/hero-light.jpg");
  --accent: #cbaa3a; /* Gold, hellerer Ton */
}

/* Fallback, falls JS deaktiviert ist: System-Präferenz greift,
   solange kein data-theme gesetzt wurde. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-muted: #555555;
    --color-line: #dddddd;
    --icon-filter: none;
    --hero-image: url("assets/img/hero-light.jpg");
  }
}

:root {
  /* Schrift */
  --font-body: "Trade Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;
  /* Raster */
  --content-max-width: 760px;
  --space: 2rem;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--color-bg);
}

body {
  margin: 0;
  padding: var(--space);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  transition: background-color 0.15s ease, color 0.15s ease;
}

main,
footer {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

section {
  margin-bottom: var(--space);
}

p { margin-bottom: 0.75em; }

/* --- Hero -----------------------------------------------------
   Fotohintergrund wechselt über --hero-image je nach Theme.
   Logo + Tagline liegen als echtes Overlay drüber (kein Text im
   Bild) und werden pro Theme unterschiedlich positioniert, weil
   der freie Bildbereich in den beiden Fotos nicht deckungsgleich
   liegt (dunkles Foto: Freiraum rechts Mitte / helles Foto:
   Freiraum rechts unten).
   ------------------------------------------------------------ */

.hero {
  position: relative;
  margin: calc(var(--space) * -1) calc(var(--space) * -1) var(--space);
  aspect-ratio: 3815 / 2100;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-brand {
  position: absolute;
  max-width: 40%;
}

[data-theme="dark"] .hero-brand {
  right: 6%;
  top: 62%;
  text-align: left;
}

[data-theme="light"] .hero-brand {
  right: 3%;
  bottom: 11%;
  text-align: left;
}

.hero-brand .logo {
  display: block;
  width: 90%;
  filter: var(--icon-filter);
}

.hero-brand .tagline {
  font-weight: 700;
  font-size: 95%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
/*  margin-top: 0.5em;*/
  margin: -0.2em 0 0 1em;
  
  color: var(--accent);
}

/* --- Theme-Toggle --------------------------------------------- */

.theme-toggle {
  position: fixed;
  top: var(--space);
  right: var(--space);
  padding: 0.4em 0.8em;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  z-index: 10;
}

.theme-toggle:hover {
  border-color: var(--color-text);
}

/* --- Überschriften ------------------------------------------ */

h2 {
  font-weight: 700;
  font-size: 115%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 0.25);
  
  /*
  margin-bottom: var(--space);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.25em;
  */

  color: var(--accent);
}

h3 {
  font-weight: 700;
/*  margin-bottom: 0.25em; */
}

/* --- Fotos: Live-Shot, Release-Cover -------------------------
   Keine Filter/Invertierung hier — anders als Logo/Icons sind das
   Halbton-Fotos, kein reines Schwarz-Weiß-Piktogramm.
   ------------------------------------------------------------ */

.section-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--space) 0;
}

.release-cover {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 0.75em;
}

/* --- Tabelle (Termine) --------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  
  /*
  margin-top: calc(var(--space) * 0.5);
  margin-bottom: var(--space);
  */
  margin: var(--space);
}

caption {
  text-align: left;
  /*font-weight: 700;*/
  font-family: "Dynamoe", "Helvetica Neue", Arial, sans-serif;
  font-size: 120%;
  
  margin-left: -0.5%;
/*  margin-bottom: 0.5em; */
}

th,
td {
  text-align: left;
  padding: 0.3em 0.75em 0.3em 0;
  border-bottom: 1px solid var(--color-line);
}

th {
  color: var(--color-muted);
}

/* --- Releases ------------------------------------------------ */

article {
  margin-bottom: calc(var(--space) * 0.5);
  margin-left: var(--space);
}

article span {
  font-weight: 400;
  color: var(--accent);
}

/* --- Kontakt --------------------------------------------------- */

address {
  font-style: normal;
}

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

footer {
  margin-top: calc(var(--space) * 2);
  padding-top: var(--space);
  border-top: 1px solid var(--color-line);
}

/* .links als Kästen im Grid -> reagiert automatisch, ganz ohne float */
footer .links {
  list-style: none;
  margin: 0 0 var(--space);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space);
}

footer .links li {
  border: 1px solid var(--accent);
  padding: 10px;
}

footer .links a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
}

footer .links p {
  margin-bottom: 0;
  color: var(--color-muted);
  max-width: 46em;
}

footer .legal {
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

footer .socials {
  list-style: none;
  margin: 0 0 var(--space);
  padding: 0;
  display: flex;
  gap: var(--space);
  align-items: center;
}

footer .socials img {
  display: block;
  width: 28px;
  height: 28px;
  filter: var(--icon-filter);
}

a {
  color: inherit;
}

/* --- Impressum / Datenschutz -----------------------------------
   Schlichte Textseiten, nutzen dieselben Variablen wie die
   Startseite, aber ohne Hero/Foto - nur Logo klein oben.
   ------------------------------------------------------------ */

.legal-header {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-top: var(--space);
}

.legal-logo {
  display: block;
  width: 160px;
  height: auto;
  filter: var(--icon-filter);
}

main.legal {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

main.legal h2 {
  margin-top: var(--space);
}

main.legal h3 {
  margin-top: calc(var(--space) * 1.25);
  margin-bottom: 0.5em;
  color: var(--accent);
}

main.legal address {
  margin-bottom: 0.75em;
}

main.legal code {
  font-family: monospace;
  background: var(--color-line);
  padding: 0.1em 0.4em;
}

/* --- Mobile ------------------------------------------------------
   .hero-brand ist bei 40% Breite auf schmalen Screens knapp -
   Logo/Tagline bekommen etwas mehr Platz, Grundabstand schrumpft
   leicht, damit nicht zu viel Weißraum verloren geht.
   ------------------------------------------------------------ */

@media (max-width: 480px) {
  :root {
    --space: 1.25rem;
    --font-size-base: 15px;
  }

  .hero-brand {
    max-width: 58%;
  }

  .hero-brand .tagline {
    font-size: 80%;
  }
}
