/* ==========================================================
   Uke Gym — Seitenspezifisches CSS
   Schriften + Farben liegen in brand-tokens.css (Haus-CD,
   projektübergreifend). Hier nur Layout/Komponenten, die nur
   auf ukegym.de vorkommen.
   ========================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* --- Projekt-Override: Uke Gym nutzt Blau statt des Haus-Golds.
   brand-tokens.css bleibt unverändert (identisch zu herquist.de),
   diese Regel überschreibt --accent nur hier. */
:root,
[data-theme="dark"] {
  --accent: #1b7abe;
}
[data-theme="light"] {
  --accent: #3d9ee3;
}

/* Zentrale Breite für Content-Container (main, footer, legal-header, ...) */
:root {
  --content-width: 900px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  transition: background 0.2s, color 0.2s;
}

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

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* --- Hero -------------------------------------------------------------
   Foto als Hintergrund, Text im leeren Bildbereich links. Zwei Varianten
   (hero-dark.jpg / hero-light.jpg), analog zum Theme-Umschalter. */

.hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 4rem 1.5rem;
/*  border-bottom: 1px solid var(--color-line);*/
  background-image: url("assets/img/hero-dark.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}
[data-theme="light"] .hero {
  background-image: url("assets/img/hero-light.jpg");
}

.hero-brand {
  max-width: 30rem;
  margin-top: -4rem;
  margin-left: 5rem;
}

.hero-brand .logo {
  max-width: 320px;
  width: 60vw;
}

/* Logo: zwei echte Dateien (schwarz/weiß), keine CSS-Invert-Krücke mehr */
.theme-dark-only { display: block; }
.theme-light-only { display: none; }
[data-theme="light"] .theme-dark-only { display: none; }
[data-theme="light"] .theme-light-only { display: block; }

.hero-brand .tagline {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* --- Main / Sections ------------------------------------------------ */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-line);
}
section:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.h2-sub {
  font-weight: 400;
/*  color: var(--color-muted);
  font-size: 1rem; */
}

h3 {
  font-family: "Chinese Rocks", var(--font-body);
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 3rem;
  line-height: 100%;
  margin: 0 0 0.2rem 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

main a:not(.button) {
  color: var(--accent);
}
main a:not(.button):hover {
  text-decoration: none;
}

.lead {
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- Angebote --------------------------------------------------------- */

.offer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--color-line);

  margin-top: 3rem;
}
.offer:first-of-type { border-top: none; padding-top: 0; }

.trial-callout {
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.trial-callout strong { color: var(--accent); }

.stoerer-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 0 -4rem;
  padding: 1rem 2rem 2rem 4rem;
}
.stoerer-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img/pinselstrich.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: var(--icon-filter);
  z-index: -1;
}
.stoerer-row p {
  margin: 0;
  flex: 1;
}



@media (max-width: 480px) {
  .stoerer-row { gap: 0.7rem; }
}

.price-footnote {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.offer-sub {
  font-family: "Trixie Text", var(--font-body);
  /*color: var(--color-muted);*/
  font-size: 1.4rem;
  margin: 0 0 0.9rem -0.3rem;
  line-height: 125%;

  rotate: -0.5deg;
}

.tag {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bg);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.7rem 0rem 0.7rem;
  vertical-align: middle;
  margin: -2rem 0 0 -0.4rem;
  letter-spacing: 0.03em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Layout-Platzhalter: noch kein finaler Text, nur fürs Layout ------- */

.layout-flag,
.layout-flag * {
  color: deeppink !important;
}

.layout-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: deeppink;
  color: #fff !important;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}


/* --- Preis-Kärtchen (Post-it-Look) ------------------------------------ */

.price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.price-card {
  border: none;
  border-radius: 4px;
  padding: 2.4rem 1.1rem 1rem;
  min-width: 9.5rem;
  max-width: 12rem;
  background-image:
    url("assets/img/ringbuch-papier.png"),
    linear-gradient(to bottom, transparent 30px, #fbfbf8 30px);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 520px auto, 100% 100%;
  transition: transform 0.2s;

  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.25);
}
.price-card:nth-child(4n+1) { transform: rotate(-1.2deg); }
.price-card:nth-child(4n+2) { transform: rotate(0.9deg); }
.price-card:nth-child(4n+3) { transform: rotate(-0.4deg); }
.price-card:nth-child(4n+4) { transform: rotate(1.5deg); }
.price-card:hover { transform: rotate(0deg); }

.price-title {
/*  font-family: "Dynamoe", var(--font-body); */
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  color: #1a1a1a;
}

.price-note {
  display: block;
  font-family: "Trixie Text", var(--font-body);
  font-weight: 100;
  font-size: 1rem;
  text-transform: none;
  color: #555;
  margin-top: 0.15rem;
}

.price-amount {
  font-family: "Chinese Rocks", var(--font-body);
  font-size: 2.25rem;
  margin: 0;
  color: #1a1a1a;
  text-align: right;
}

.price-period {
  font-family: "Trixie Text", var(--font-body);
  font-size: 0.75rem;
  color: #555;
  margin-left: 0.15rem;
}

.price-card a.price-buy {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}
.price-card a.price-buy:hover {
  background: #1a1a1a;
  color: #fbfbf8;
}

.price-card a.price-info {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.price-card a.price-info:hover {
  opacity: 0.85;
}

/* --- CTA Button --------------------------------------------------------- */

.button {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.button:hover {
  background: var(--accent);
  color: var(--color-bg);
}

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

address { font-style: normal; }
address a { color: var(--color-text); }
address a:hover { color: var(--accent); }

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

footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 0;
  margin: 0 0 1rem;
}
.socials img { filter: var(--icon-filter); opacity: 0.85; }
.socials a:hover img { opacity: 1; }

.legal-links {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.legal-links a { color: var(--color-muted); text-decoration: none; }
.legal-links a:hover { color: var(--accent); }

/* --- Mobile --------------------------------------------------------- */

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero {
    min-height: 70vh;
    padding: 2rem 1rem;
    align-items: flex-start;
    background-position: center 15%;
  }
  .hero-brand {
    margin-top: -2rem;
    margin-left: 1rem;
    width: fit-content;
    max-width: none;
  }
  .hero-brand .logo {
    width: 40vw;
    max-width: 140px;
  }
  section { padding: 2.5rem 0; }
}

/* --- Legal (Impressum/Datenschutz) ----------------------------------- */

.legal-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.legal-logo {
  height: 100px;
  margin-left: -3rem;
}

main.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
main.legal h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.8rem 0 0.5rem;
}
main.legal address { font-style: normal; margin-bottom: 1rem; }
main.legal a { color: var(--accent); }
main.legal code {
  background: var(--color-line);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* --- Ausgaben ---------------------------------------------------------- */

.ausgaben-search {
  margin-top: 1.5rem;
}
.ausgaben-search input[type="search"] {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.ausgaben-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.toggle-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.9rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.toggle-link:hover { text-decoration: underline; }

.ausgaben-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.ausgaben-tagcloud[hidden] {
  display: none;
}
.ausgabe-tag-filter {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}
.ausgabe-tag-filter:hover { border-color: var(--accent); color: var(--accent); }
.ausgabe-tag-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-bg);
}

.ausgaben-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .ausgaben-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ausgaben-grid { grid-template-columns: 1fr; }
}

.ausgabe-card {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  transform: rotate(var(--card-rotate, 0deg));
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.ausgabe-card:hover {
  transform: rotate(0deg);
}
.ausgabe-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

/* --- Feature: nächste Ausgabe, volle Breite -------------------------- */

.ausgabe-feature {
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.ausgabe-feature .ausgabe-img-wrap {
  flex: 0 0 40%;
  aspect-ratio: auto;
  min-height: 100%;
}

.ausgabe-feature-text {
  flex: 1;
  padding: 1.2rem 1.2rem 1.5rem 0;
  min-width: 0;
}

.ausgabe-feature .ausgabe-titel {
  margin: 0 0 0.3rem;
  font-size: 2.5rem;
}

.ausgabe-feature .ausgabe-kommend {
  margin-left: 0; /*0 0 1rem;*/
}

.ausgabe-feature-inhalte {
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

.ausgabe-feature .ausgabe-songs {
  margin-left: 0;
}



.ausgabe-feature .ausgabe-buchen {
  display: inline-block;
  margin: 0;
  padding: 0.6rem 1.2rem;
}

@media (max-width: 700px) {
  .ausgabe-feature { flex-direction: column; }
  .ausgabe-feature .ausgabe-img-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .ausgabe-feature-text { padding: 0 1.2rem 1.2rem; }
}

.ausgabe-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-line);
}
.ausgabe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ausgabe-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ausgabe-nr {
  color: var(--accent);
  font-family: "Dynamoe", var(--font-body);
  font-size: 0.75em;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.ausgabe-titel {
  font-size: 1.75rem;
  margin: 0.8rem 0.9rem 0.3rem;
}
.ausgabe-kommend {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  margin: 0.8rem 0.9rem 0.5rem;
}
.ausgabe-songs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0.9rem 0.5rem;
}
.ausgabe-tags {
  margin: 0 0.9rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ausgabe-inhalte {
  font-size: 0.9rem;
  margin: 0 0.9rem 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ausgabe-buchen {
  display: block;
  margin: 0 0.9rem 0.9rem;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent) !important;
  text-decoration: none;
}
.ausgabe-buchen:hover {
  background: var(--accent);
  color: var(--color-bg) !important;
}
.ausgabe-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  color: var(--color-muted);
}

.ausgaben-empty {
  color: var(--color-muted);
  padding: 2rem 0;
  text-align: center;
}

.ausgaben-mehr {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0.7rem;
  margin-top: 1.5rem !important;
}
.ausgaben-mehr[hidden] {
  display: none;
}
.ausgaben-mehr:hover {
  border-color: var(--accent);
  text-decoration: none !important;
}

/* --- Songindex ---------------------------------------------------------- */

.songindex-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.songindex-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.95rem;
}
.songindex-song { color: var(--color-text); }
.songindex-refs {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  white-space: nowrap;
  font-size: 0.85rem;
}
.songindex-refs a { color: var(--accent); }
.songindex-link-disabled { color: var(--color-line); }
.songindex-ausgabe-link { color: var(--color-muted) !important; text-align: right; }

.zurueck-zum-song {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--accent);
  color: var(--color-bg);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.zurueck-zum-song[hidden] {
  display: none;
}
