/* =============================================================
   Harry's Lounge — Custom Theme
   Fender 3-Tone-Sunburst: Butterscotch -> Cherry -> dunkles Holz
   Akzent: Vintage-Marineblau · Schrift: Grand Hotel (Gibson-Stil)
   Datei ueberlebt Sitepackage-Updates (liegt in fileadmin).
   ============================================================= */

/* ---------- Schrift: Grand Hotel, selbst gehostet ---------- */
@font-face {
  font-family: 'Grand Hotel';
  src: url('Fonts/GrandHotel.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- Farbwelt ---------- */
:root {
  /* Sunburst-Toene */
  --hl-butterscotch: #E8B04A;
  --hl-cherry: #B33A25;
  --hl-rim: #43200F;          /* Sunburst-Rand */
  --hl-wood: #241812;         /* dunkles Holz, Grundflaeche */
  --hl-wood-deep: #1A0F09;    /* fast schwarz, Fusszeile */
  --hl-wood-warm: #33221A;    /* Boxen, Menue */
  --hl-gold: #D9A93F;         /* Messing/Gold: Links, Akzente */
  --hl-gold-bright: #EFCB6B;
  --hl-navy: #2E4A6B;         /* Vintage-Blau */
  --hl-navy-bright: #4A6E96;
  --hl-cream: #F2E7CE;        /* Text */
  --hl-cream-dim: #CBB794;    /* Text gedaempft */

  /* Grauskala des Sitepackage auf warme Toene umbiegen */
  --gray1: var(--hl-cream);
  --gray2: var(--hl-wood-deep);
  --gray3: #4A3222;
  --gray4: #8A6A4A;
  --gray5: var(--hl-wood-warm);

  /* Primaer-/Sekundaerfarbe */
  --color1: var(--hl-gold);
  --color2: var(--hl-gold-bright);

  /* Body */
  --font-color: var(--hl-cream);
  --font-color-light: var(--hl-cream-dim);
  --body-bg-color: var(--hl-wood);

  /* Links */
  --body-link-color: var(--hl-gold);
  --body-link-hover-color: var(--hl-gold-bright);
  --body-link-text-decoration-color: var(--hl-gold);
  --body-link-invers-color: var(--hl-cream-dim);
  --body-link-invers-hover-color: var(--hl-cream);

  /* Header */
  --header-bg-color: var(--hl-wood-deep);
  --header-bg-overlay: rgba(26, 15, 9, 0.94);
  --header-color: var(--hl-cream);
  --header-link-color: var(--hl-gold);
  --header-link-hover-color: var(--hl-gold-bright);
  --logo-height: 4.5rem;

  /* Ueberschriften: Gibson-Script in Gold */
  --header-font-family: 'Grand Hotel', 'Brush Script MT', cursive;
  --header-font-weight: 400;
  --header-font-color: var(--hl-gold);
  --header-font-variation-settings: normal;
  --font-size1: 3.2rem;
  --font-size2: 2.3rem;
  --font-size3: 1.7rem;

  /* Menue */
  --menu-bg-100vw: transparent;
  --menu-bg: transparent;
  --menu-hover-bg: transparent;
  --menu-current-bg: transparent;
  --menu-link-color: var(--hl-cream);
  --menu-link-hover-color: var(--hl-gold-bright);
  --menu-arrow-color: var(--hl-gold);
  --submenu-bg: var(--hl-wood-warm);
  --submenu-hover-bg: var(--hl-wood-deep);
  --submenu-current-bg: var(--hl-wood-deep);
  --submenu-link-color: var(--hl-cream);
  --submenu-link-hover-color: var(--hl-gold-bright);
  --submenu-current-color: var(--hl-gold);
  --submenu-arrow-color: var(--hl-gold);
  --desktop-submenu-border-color: var(--hl-rim);
  --menu-icon-button: var(--hl-gold);
  --collapsible-separators-color: rgba(232, 176, 74, 0.15);
  --collapsible-toggle-bg: rgba(26, 15, 9, 0.7);

  /* Buttons */
  --button-color: var(--hl-wood-deep);
  --button-hover-color: var(--hl-wood-deep);
  --button-bg: var(--hl-gold);
  --button-hover-bg: var(--hl-gold-bright);
  --button-border: var(--hl-gold);
  --button-hover-border: var(--hl-gold-bright);
  --button2-color: var(--hl-cream);
  --button2-hover-color: var(--hl-cream);
  --button2-bg: var(--hl-navy);
  --button2-hover-bg: var(--hl-navy-bright);
  --button2-border: var(--hl-navy);
  --button2-hover-border: var(--hl-navy-bright);

  /* Fusszeile */
  --footer-bg: var(--hl-wood-deep);
  --footer-color: var(--hl-cream-dim);
  --footer-link-color: var(--hl-gold);
  --footer-link-hover-color: var(--hl-gold-bright);
  --footer2-bg: #120A05;
  --footer2-color: var(--hl-cream-dim);

  /* Flaechen, Rahmen, Tabellen */
  --border-color: var(--hl-rim);
  --table-border-color: var(--hl-rim);
  --table-header-bg: var(--hl-wood-warm);
  --table-header-color: var(--hl-gold);
  --table-hover-bg: var(--hl-wood-warm);
  --table-hover-color: var(--hl-cream);
  --stripedblock-bg: var(--hl-wood-warm);
  --layout-100-bg: var(--hl-wood-warm);
  --toggle-bg: var(--hl-wood-warm);
  --box-shadow: rgba(0, 0, 0, 0.55);
  --border-radius: 6px;

  /* Hero-Text */
  --hero-text-light: var(--hl-cream);
  --hero-text-bg-dark: rgba(26, 15, 9, 0.82);
}

/* ---------- Buehnenlicht: Sunburst-Vignette als Grundstimmung ---------- */
body {
  background: var(--hl-wood);
}
/* Sunburst-Vignette als eigene fixe Ebene — vermeidet
   background-attachment: fixed, das Safari Probleme bereitet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 120% 90% at 50% 20%,
    rgba(232, 176, 74, 0.10) 0%,
    rgba(179, 58, 37, 0.07) 38%,
    rgba(26, 15, 9, 0) 72%);
}

/* ---------- Ueberschriften: Script gross, mit Luft ---------- */
h1, h2 {
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
h3, h4, h5 {
  font-family: var(--font-family-normal);
  font-weight: var(--font-weight-semibold);
  color: var(--hl-gold-bright);
}

/* ---------- Header: Schild ueber der Tuer ---------- */
.content-header {
  border-bottom: 1px solid var(--hl-rim);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ---------- Hauptmenue: Messing auf Holz ---------- */
.main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.92rem;
}
.main-nav li.current > a,
.main-nav li.active > a {
  color: var(--hl-gold);
  box-shadow: inset 0 -3px 0 var(--hl-gold);
}

/* ---------- Bilder wie gerahmte Fotos im Musikzimmer ---------- */
main .ce-gallery img,
main figure img {
  border: 4px solid var(--hl-rim);
  border-radius: 3px;
  box-shadow: 0 8px 24px var(--box-shadow);
}

/* ---------- Buttons: Sunburst-Lackierung ---------- */
.btn, button.btn, a.btn, input[type="submit"] {
  background: radial-gradient(ellipse at 50% 35%,
    var(--hl-butterscotch) 0%, var(--hl-cherry) 62%, var(--hl-rim) 100%);
  color: var(--hl-cream) !important;
  border: 1px solid var(--hl-rim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: filter var(--transition), transform var(--transition);
}
.btn:hover, input[type="submit"]:hover {
  filter: brightness(1.15) saturate(1.05);
  transform: translateY(-1px);
}

/* ---------- Blockquote: blaue Saite am Rand ---------- */
blockquote {
  border-left: 4px solid var(--hl-navy);
  background: var(--hl-wood-warm);
  padding: var(--base-size) var(--gutter);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--hl-cream-dim);
}

/* ---------- Downloads (uploads-CE): wie Setlisten-Zettel ---------- */
.ce-uploads li {
  background: var(--hl-wood-warm);
  border: 1px solid var(--hl-rim);
  border-radius: var(--border-radius);
  margin-bottom: var(--gutter-half);
  padding: var(--gutter-half) var(--gutter);
}
.ce-uploads a { text-decoration: none; }

/* ---------- Auswahl & Fokus: Vintage-Blau ---------- */
::selection { background: var(--hl-navy); color: var(--hl-cream); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hl-navy-bright);
  outline-offset: 2px;
}

/* ---------- Sprachumschalter dezent ---------- */
.wrapper-language a { color: var(--hl-cream-dim); }
.wrapper-language a:hover,
.wrapper-language .active a { color: var(--hl-gold); }

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Inhalte niemals verstecken ----------
   Das Sitepackage setzt .fade auf visibility:hidden und blendet erst
   per jQuery beim Scrollen ein — ohne JS bliebe die Seite leer.
   Hier: immer sichtbar; sanftes Aufblenden rein per CSS in modernen
   Browsern (Scroll-Driven Animations), sonst sofort sichtbar. */
.fade { visibility: visible; }
.fadeIn { animation: none !important; -webkit-animation: none !important; }

/* Scroll-getriebene Animationen entfernt: animation-timeline: view()
   verursachte in Safari Abstuerze beim Aendern der Fenstergroesse.
   Inhalte erscheinen jetzt schlicht sofort — robust auf allen Browsern. */

/* ---------- Safari-Absicherung: variablen Font stilllegen ----------
   Das Sitepackage laedt Roboto Flex (variabler Font, 13 Achsen) und
   setzt font-variation-settings. Variable Fonts + Resize sind eine
   bekannte Absturzquelle in Safari/CoreText. Wir nutzen stattdessen
   den nativen Systemfont — der Font wird dann gar nicht erst geladen. */
:root {
  --font-family-normal: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-variation-settings-extralight: normal;
  --font-variation-settings-light: normal;
  --font-variation-settings: normal;
  --font-variation-settings-medium: normal;
  --font-variation-settings-semibold: normal;
  --font-variation-settings-bold: normal;
  --font-variation-settings-extrabold: normal;
  --header-font-variation-settings: normal;
}
body, .main-nav a, .menu-horizontal a {
  font-variation-settings: normal;
}

/* ---------- Hero auf der Startseite: Bild volle Breite, Text darueber ---------- */
.header-image { width: 100%; }
.header-image .frame-type-heroimage { margin: 0; }
.ce-heroimage { position: relative; }
.ce-heroimage figure,
.ce-heroimage .ce-gallery,
.ce-heroimage .ce-row,
.ce-heroimage .ce-column { margin: 0; width: 100%; }
.ce-heroimage img {
  display: block;
  width: 100%;
  height: clamp(420px, 62vh, 780px);
  object-fit: cover;
  object-position: center 26%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Lesbarkeits-Verlauf: oben leicht, unten kraeftig dunkel */
.ce-heroimage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(23, 16, 10, 0.30) 0%,
    rgba(23, 16, 10, 0.00) 34%,
    rgba(18, 10, 5, 0.82) 100%);
}
/* Text unten mittig, ueber dem Verlauf */
@media screen and (min-width: 481px) {
  .frame-type-heroimage .hero-text {
    top: auto;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: min(92%, 960px);
    z-index: 2;
  }
}
.frame-type-heroimage .hero-text h1,
.frame-type-heroimage .hero-text h2 {
  color: var(--hl-gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
  margin-bottom: var(--base-size-half);
}
.frame-type-heroimage .hero-text p {
  color: var(--hl-cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  font-size: 1.12rem;
}
/* Mobil: Text unter dem Bild auf Holzgrund — gut lesbar */
@media screen and (max-width: 480px) {
  .frame-type-heroimage .hero-text { background: var(--hl-wood-deep); }
}

/* ---------- Hero: konsistente Hoehe auf allen Bildschirmen ----------
   Ohne Limit rendert das Hero-Bild in voller Bildhoehe; je nach
   Fensterformat war ein anderer Ausschnitt sichtbar. Der eigentliche
   Ausschnitt kommt aus dem Bild-Crop, das hier ist das Sicherheitsnetz. */
.frame-type-heroimage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Hero-Text: gross, golden, auf Plakette ---------- */
@media screen and (min-width: 481px) {
  .header-image .frame-type-heroimage .hero-text {
    top: auto;
    bottom: clamp(1.6rem, 7vh, 4.2rem);
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: min(92%, 58rem);
    text-align: center;
    background: rgba(20, 12, 7, 0.68);
    border: 1px solid rgba(217, 169, 63, 0.5);
    border-radius: 12px;
    padding: clamp(0.9rem, 2.5vw, 1.5rem) clamp(1.4rem, 4vw, 3rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
@media screen and (max-width: 480px) {
  .header-image .frame-type-heroimage .hero-text {
    text-align: center;
    background: var(--hl-wood-deep);
    border-top: 1px solid var(--hl-rim);
  }
}
.header-image .hero-text h1,
.header-image .hero-text h2 {
  font-family: 'Grand Hotel', 'Brush Script MT', cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  margin: 0 0 0.3rem;
  color: var(--hl-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
/* Gold-Verlauf wie im Logo, wo der Browser es kann */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .header-image .hero-text h1,
  .header-image .hero-text h2 {
    background: linear-gradient(180deg, #EFCB6B 0%, #D9A93F 55%, #A87A22 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  }
}
.header-image .hero-text .ce-bodytext,
.header-image .hero-text .ce-bodytext p {
  color: var(--hl-cream);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
