/* ============================================================
   SOLVE RECORDS — STYLESHEET
   Brass-tones · Tube glow · Bodoni typography
   ============================================================ */

:root {
  /* ===== FARBEN (vom Logo abgeleitet) ===== */
  --bg: #0a0705;
  --bg-2: #15100a;
  --bg-3: #1c130a;

  --brass: #d4a24a;
  --brass-bright: #f4cc6f;
  --brass-deep: #8a5e1f;
  --brass-glow: #ffb347;

  --tube: #ff7a2e;
  --tube-glow: #ffb066;

  --cream: #f3e7c8;
  --cream-soft: rgba(243, 231, 200, 0.75);
  --cream-mute: rgba(243, 231, 200, 0.45);

  --line: rgba(212, 162, 74, 0.22);
  --line-soft: rgba(212, 162, 74, 0.12);

  /* ===== TYPOGRAPHY ===== */
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --font-sans: 'Oswald', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ===== SPACING ===== */
  --max-width: 1280px;
  --gutter: clamp(20px, 5vw, 60px);
  --section-pad: clamp(80px, 12vw, 160px);

  /* ===== ANKER-OFFSET =====
     --header-h = Höhe der fixen .nav im gescrollten (kleineren) Zustand, gemessen.
     Einziger Offset-Mechanismus: html { scroll-padding-top } unten; script.js nutzt scrollIntoView. */
  --header-h: 60px;
  --anchor-gap: 12px;

  /* ===== EFFECTS ===== */
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 700ms cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 2px;
}

/* Mobil (Burger-Menü): Header gleich hoch, weniger Luft */
@media (max-width: 900px) {
  :root {
    --header-h: 60px;
    --anchor-gap: 10px;
  }
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Kein scroll-behavior: smooth hier: sonst animiert der Browser auch den
   Hash-Sprung beim Laden (z. B. ../#services) zu einer Zielposition, die
   veraltet, sobald Webfonts nachladen. Smooth-Scroll für Klicks macht script.js. */
html {
  scroll-padding-top: calc(var(--header-h) + var(--anchor-gap));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 122, 46, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 162, 74, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ===== FILMKORN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--brass);
  text-transform: uppercase;
}

.section-num {
  color: var(--brass-bright);
  opacity: 0.7;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 60%);
  opacity: 0.5;
}

.section-title {
  margin-bottom: 60px;
}

/* ===== TYPOGRAPHY ===== */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.h-display em {
  font-style: italic;
  color: var(--brass-bright);
  font-weight: 500;
}

.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--cream-soft);
  margin-top: 28px;
}

p {
  margin-top: 18px;
  color: var(--cream-soft);
  max-width: 60ch;
}

p em {
  color: var(--brass);
  font-style: italic;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 7, 5, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 7, 5, 0.85);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--brass-bright);
  letter-spacing: -0.02em;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--brass);
  opacity: 0.4;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-soft);
  position: relative;
  padding: 8px 0;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--brass-bright);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Desktop: Menüpunkte auf dieselbe Mittellinie wie die Marke setzen.
   Ohne das sitzt die 12px-Schrift auf der Grundlinie der geerbten 16px-Zeile
   und liegt rund 3px tiefer als "SR" / "Solve Records". Das Mobile-Menü (≤ 900px)
   bleibt davon unberührt. */
@media (min-width: 901px) {
  .nav-links li {
    display: flex;
    align-items: center;
  }
  .nav-links a {
    line-height: 1.2;
  }
}

/* Schmaler Desktop: acht Menüpunkte passen sonst nicht in eine Zeile
   (Schriftzug bricht um, Kontakt-Button ragt rechts heraus) */
@media (min-width: 901px) and (max-width: 1279px) {
  .nav-inner {
    gap: 24px;
  }
  .nav-links {
    gap: clamp(14px, 1.6vw, 20px);
  }
  .nav-links a {
    letter-spacing: 0.18em;
  }
  .brand-text {
    display: none;
  }
}

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid var(--brass);
  color: var(--brass-bright) !important;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--brass);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 80vw;
  height: 80vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 122, 46, 0.18) 0%,
    rgba(255, 179, 71, 0.08) 30%,
    transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-glow-2 {
  width: 40vw;
  height: 40vh;
  background: radial-gradient(ellipse at center,
    rgba(255, 179, 102, 0.2) 0%,
    transparent 65%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--brass);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-est .bar {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.hero-est .sep {
  opacity: 0.5;
}

.hero-logo {
  margin: 0 auto 32px;
  max-width: min(700px, 90vw);
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(255, 122, 46, 0.15));
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--cream-soft);
  margin-bottom: 48px;
}

.hero-tagline em {
  color: var(--brass-bright);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  display: inline-block;
  margin-top: 8px;
  color: var(--cream-mute);
  font-size: 0.85em;
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  box-shadow: 0 8px 30px rgba(255, 179, 71, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brass);
  color: var(--brass);
}

.btn-ghost:hover {
  background: rgba(212, 162, 74, 0.1);
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--cream-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--brass));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ===== STUDIO SECTION ===== */
.studio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.studio-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--brass-bright);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-mute);
  line-height: 1.5;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  /* genau drei Kacheln: fest dreispaltig, damit nie eine leere Zelle (Linienfarbe) sichtbar wird */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 48px 36px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  /* Spalte, damit Zusatz- und Aktionszeile unten bündig sitzen */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top,
    rgba(255, 122, 46, 0.06),
    transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover {
  background: var(--bg-2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--brass);
  margin-bottom: 28px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 14px;
}

.service-card p {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
}

/* Zusatzzeile (Preis bzw. Hinweis) und Aktionszeile "Mehr erfahren →" */
.service-meta {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cream-soft);
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
}

.service-more-arrow {
  display: inline-block;
  transition: transform var(--transition-base), color var(--transition-base);
}

/* Kacheln sind Links auf die Unterseiten: Rand und Pfeil in Messing, Pfeil leicht nach rechts */
.service-card:hover,
.service-card:focus-visible {
  box-shadow: inset 0 0 0 1px var(--brass);
}

.service-card:focus-visible {
  outline: 2px solid var(--brass-glow);
  outline-offset: -2px;
}

.service-card:hover .service-more-arrow,
.service-card:focus-visible .service-more-arrow {
  color: var(--brass-bright);
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover .service-more-arrow,
  .service-card:focus-visible .service-more-arrow {
    transform: none;
  }
}

/* Mobil: Kacheln untereinander */
@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 36px 28px;
  }
}

/* ===== EQUIPMENT ===== */
.equipment-intro {
  max-width: 700px;
  margin-bottom: 80px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px 40px;
}

.eq-cat-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.eq-list {
  list-style: none;
}

.eq-list li {
  padding: 11px 0;
  font-size: 15px;
  color: var(--cream-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--transition-base);
}

.eq-list li:hover {
  color: var(--cream);
}

.eq-list li:last-child {
  border-bottom: none;
}

.eq-list span {
  display: inline-block;
  min-width: 80px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass-bright);
  margin-right: 10px;
  font-style: italic;
}

/* ===== WORKS (Cards CSS entfernt - jetzt nur Audio-Embeds) ===== */

.works-note {
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: var(--cream-mute);
  font-style: italic;
}

.works-note a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 162, 74, 0.3);
  padding-bottom: 1px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.works-note a:hover {
  color: var(--brass-bright);
  border-bottom-color: var(--brass-bright);
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.7;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  font-style: normal;
  transition: color var(--transition-base);
}

a.contact-value:hover {
  color: var(--brass-bright);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 50px 40px;
  background: rgba(20, 16, 10, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
}

.req {
  color: var(--tube);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(10, 7, 5, 0.5);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--cream);
  transition: border-color var(--transition-base), background var(--transition-base);
  outline: none;
  font-family: var(--font-display);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brass);
  background: rgba(10, 7, 5, 0.8);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23d4a24a' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row select option {
  background: var(--bg-2);
  color: var(--cream);
}

.form-submit {
  margin-top: 8px;
  width: 100%;
}

.form-note {
  font-size: 12px;
  color: var(--cream-mute);
  text-align: center;
  margin-top: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 100px;
  height: 100px;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--cream-mute);
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--cream-soft);
  padding: 6px 0;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--brass-bright);
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cream-mute);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-meta {
  font-style: italic;
}

/* Impressum / Datenschutz: klein, Mono, wie die übrigen Footer-Links */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.legal-links a {
  color: var(--cream-soft);
  transition: color var(--transition-base);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--brass-bright);
}

.legal-links a:focus-visible {
  outline: 2px solid var(--brass-glow);
  outline-offset: 3px;
}

/* Schlanker Footer für Unterseiten, die styles.css laden (tools/) */
.legal-foot {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 85vw);
    background: rgba(15, 11, 7, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 32px 40px;
    gap: 6px;
    margin: 0;
    list-style: none;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 101;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    width: 100%;
  }

  .nav-links .nav-cta {
    margin-top: 20px;
    text-align: center;
  }

  .nav-links.open {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .brand-text {
    display: none;
  }

  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .studio-stats {
    padding-left: 0;
    padding-top: 30px;
    border-left: none;
    border-top: 1px solid var(--line);
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 32px 24px;
  }

  .hero-est {
    font-size: 9px;
    gap: 10px;
  }

  .hero-est .bar {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .legal-links {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 220px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform var(--transition-base);
  display: block;
}

/* Reihe 1 (groß): Live Room, Control Room, Recording Room */
.gallery-tile-1 { grid-column: 1; grid-row: 1; }
.gallery-tile-2 { grid-column: 2; grid-row: 1; }
.gallery-tile-3 { grid-column: 3; grid-row: 1; }
/* Reihe 2 (klein): Outboard-Rack, Manley Force, Mic-Locker */
.gallery-tile-4 { grid-column: 1; grid-row: 2; }
.gallery-tile-5 { grid-column: 2; grid-row: 2; }
.gallery-tile-6 { grid-column: 3; grid-row: 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
              filter var(--transition-base);
  filter: brightness(0.85) saturate(0.95);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}

/* Fallback wenn kein Bild geladen werden kann */
.gallery-item img:not([src]),
.gallery-item img[src=""] {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 7, 5, 0.7) 50%,
    rgba(10, 7, 5, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

.gallery-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.gallery-note {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--cream-mute);
  font-style: italic;
}

.gallery-note code {
  font-family: var(--font-mono);
  background: rgba(212, 162, 74, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--brass-bright);
  font-size: 12px;
  font-style: normal;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 2, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--cream-soft);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 10, 0.6);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 28px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-base);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brass);
  color: var(--bg);
  border-color: var(--brass);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 32px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ============================================================
   AUDIO-REFERENZEN
   ============================================================ */
.works-intro {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--cream-soft);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.works-audio {
  margin-top: 0;
}

.audio-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  color: var(--cream);
  text-align: center;
  margin-bottom: 50px;
}

.audio-list {
  display: grid;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.audio-item {
  position: relative;
  border: 1px solid rgba(212, 162, 74, 0.2);
  background: linear-gradient(135deg,
    rgba(28, 19, 10, 0.65) 0%,
    rgba(15, 10, 6, 0.85) 100%);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: center;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Linker Brass-Akzent als Tube-Inspiration */
.audio-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--brass) 30%,
    var(--brass-bright) 50%,
    var(--brass) 70%,
    transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-base), width var(--transition-base);
}

.audio-item:hover {
  border-color: rgba(212, 162, 74, 0.5);
  background: linear-gradient(135deg,
    rgba(40, 26, 12, 0.75) 0%,
    rgba(20, 14, 8, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 162, 74, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.4);
}

.audio-item:hover::before {
  opacity: 1;
  width: 4px;
}

.audio-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px;
  border-right: 1px solid rgba(212, 162, 74, 0.15);
}

.audio-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  color: var(--brass-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}

.audio-genre {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
  line-height: 1.5;
}

.audio-embed {
  width: 100%;
  min-width: 0;
  border-radius: 2px;
  overflow: hidden;
}

.audio-embed iframe {
  display: block;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px 240px 160px;
    gap: 12px;
  }
  /* Die drei großen Räume je volle Breite, darunter die drei kleinen nebeneinander */
  .gallery-tile-1 { grid-column: 1 / -1; grid-row: 1; }
  .gallery-tile-2 { grid-column: 1 / -1; grid-row: 2; }
  .gallery-tile-3 { grid-column: 1 / -1; grid-row: 3; }
  .gallery-tile-4 { grid-column: 1; grid-row: 4; }
  .gallery-tile-5 { grid-column: 2; grid-row: 4; }
  .gallery-tile-6 { grid-column: 3; grid-row: 4; }
  /* kleine Tiles: Overlay kompakter, damit der Titel in die schmale Kachel passt */
  .gallery-tile-4 .gallery-overlay,
  .gallery-tile-5 .gallery-overlay,
  .gallery-tile-6 .gallery-overlay {
    padding: 14px 12px;
  }
  .gallery-tile-4 .gallery-title,
  .gallery-tile-5 .gallery-title,
  .gallery-tile-6 .gallery-title {
    font-size: 16px;
  }

  .audio-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 18px 14px;
  }

  .audio-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .audio-year {
    font-size: 22px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px) repeat(3, 160px);
  }
  .gallery-tile-1,
  .gallery-tile-2,
  .gallery-tile-3,
  .gallery-tile-4,
  .gallery-tile-5,
  .gallery-tile-6 {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ============================================================
   FOUNDER / DER MENSCH DAHINTER
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.founder-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
}

.founder-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(212, 162, 74, 0.3);
  filter: brightness(1.05) saturate(0.85);
  z-index: 2;
}

.founder-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center,
    rgba(255, 122, 46, 0.18) 0%,
    rgba(255, 176, 102, 0.08) 40%,
    transparent 70%);
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}

.founder-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.05;
  margin: 0;
}

.founder-bio {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--cream-soft);
  margin: 8px 0 0;
  max-width: 600px;
}

.founder-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.founder-line {
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

.founder-cta a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.founder-cta a:hover {
  border-bottom-color: var(--brass-bright);
}

@media (max-width: 800px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 60px;
    padding-top: 50px;
  }
  .founder-image-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  .founder-text {
    text-align: center;
  }
  .founder-cta {
    justify-content: center;
  }
}
