
/* ========== SwissVoice – Global Styles ========== */
:root{
  --brand:#e2001a;
  --ink:#0f172a;
  --paper:#f8fafc;
  --muted:#64748b;
  --radius:18px;
  --bg: url('https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?q=80&w=1600&auto=format&fit=crop'); /* default */
}

/* Reset & base */
* { box-sizing: border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--paper);
  background: #000;
  overflow-x: hidden;
}

/* Fullscreen background image with parallax */
.bg{
  position: fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
}
.bg::before{
  filter: url(#sv-neutralize-red);
  content:"";
  position:absolute;
  inset:-5vh;
  background-image: var(--bg);
  background-size: cover;
  background-position:center;
  filter: saturate(1.05) contrast(1.05) brightness(.9);
  transform: translateZ(0);
  will-change: transform;
}
/* soft gradient overlay */
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(226,0,26,.35), transparent 50%),
              linear-gradient(to top, rgba(2,6,23,.75), rgba(2,6,23,.25)),
              linear-gradient(0deg, rgba(2,6,23,.4), rgba(2,6,23,.4));
  mix-blend-mode: overlay;
}

/* Floating shapes for subtle motion */
.floats {
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
}
.floats span{
  --size: clamp(80px, 10vw, 140px);
  position:absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.05));
  filter: blur(6px);
  animation: floaty var(--dur, 18s) ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translate(var(--x1,0), var(--y1,0)) rotate(0.001deg); }
  to   { transform: translate(var(--x2,20px), var(--y2,-40px)) rotate(0.001deg); }
}

/* Navigation */
.nav{
  position: sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(2,6,23,.35);
  border-bottom: 1px solid rgba(255,255,255,.1);
  z-index: 10;
}
.container{
  width:min(1100px, 92%);
  margin-inline:auto;
  padding: 14px 0;
  display:flex;
  align-items:center;
  gap:18px;
}
.brand{
  font-weight:800;
  letter-spacing:.3px;
  font-size:clamp(18px, 2.4vw, 22px);
  display:flex; align-items:center; gap:10px;
}
.brand .dot{ width:10px; height:10px; background:var(--brand); border-radius:999px; box-shadow:0 0 20px rgba(226,0,26,.9); }
.nav a{
  color: #e5e7eb;
  text-decoration: none;
  font-weight:600;
  opacity:.9;
}
.nav .links{
  margin-left:auto; display:flex; gap:18px; flex-wrap:wrap;
}
.nav a:hover{ opacity:1; text-decoration:underline; text-underline-offset:4px; }

/* Hero */
.hero{
  min-height: 70vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding: 8vh 0 14vh;
}
.hero--tight{ 
  padding-bottom: 1vh; 
}
/* straffer Hero nur auf der Kontakt-Seite */
body.kontakt .hero{
  min-height: 50vh;
  padding-top: 0.5vh;
  padding-bottom: 20vh;
}
.h-group h1{
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  line-height:1.3;
  letter-spacing: -1px;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
  font-weight: 500; /* normal statt fett (700) */
  color: #fff;
  margin: 0.6em 0;
}
.h-group p{
  margin:0 auto 22px;
  max-width: 680px;
  color:#e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
  font-family: 'Playfair Display', serif;
}
.cta{
  display:inline-flex; gap:12px; flex-wrap:wrap; justify-content:center;
}
.button{
  padding: 12px 18px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:white; text-decoration:none; font-weight:700;
  transition: transform .2s ease, background .2s ease;
}
.button:hover{ transform: translateY(-2px); background: rgba(255,255,255,.14); }
.button.primary{ background: var(--brand); border-color: rgba(226,0,26,.7); }
.button.primary:hover{ filter: brightness(1.05); }

/* Cards */
.grid{
  width:min(1100px, 92%); margin: 24px auto 80px;
  display:grid; gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
#formular.grid{ 
  margin-top: 4px; 
}
#formular{ scroll-margin-top: 80px; 
}
.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding:18px;
  min-height: 160px;
  position:relative;
  overflow:hidden;
}
.card h3{ margin:2px 0 8px; }
.card p{ color:#e5e7eb; }
.card .shine{
  position:absolute; inset:-2px;
  background: radial-gradient(400px 200px at var(--mx,10%) -10%, rgba(255,255,255,.25), transparent 40%);
  pointer-events:none;
  transition: opacity .2s ease;
  opacity:0;
}
.card:hover .shine{ opacity:1; }

/* Media embeds */
.video-frame{
  aspect-ratio: 16 / 9;
  width:100%;
  border:none;
  border-radius: calc(var(--radius) - 6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Footer */
footer{
  padding: 26px 0 60px;
  text-align:center;
  color:#cbd5e1;
  font-size:14px;
}
footer a{ color:#fff; text-decoration: underline; text-underline-offset:4px; }

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(14px) scale(.98); transition: all .7s cubic-bezier(.22,.7,.08,1); }
.reveal.show{ opacity:1; transform: none; }

/* Small helpers */
.kicker{
  display:inline-block;
  text-transform: uppercase;
  letter-spacing:.2em;
  font-weight:800;
  font-size:12px;
  color:#cbd5e1;
  opacity:.9;
}
.badge{
  font-size:12px; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
}
ul.clean{ padding:0 0 0 18px; margin:8px 0; }
.accordion{ margin: 24px auto; max-width: 900px; }
.acc-summary{
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.acc-summary:hover{ background: rgba(255,255,255,.1); }
.acc-panel{
  padding: 12px 16px 2px;
  border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0 0 12px 12px;
  background: rgba(255,255,255,.04);
}
.acc-icon{ transition: transform .2s ease; }
.acc-summary[aria-expanded="true"] .acc-icon{ transform: rotate(45deg); } /* + wird zu × */
.info-panel{
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.info-panel.show{
  padding: 12px 16px;
  max-height: 600px; /* genug Platz für 2–3 Absätze */
}
#klavierstuecke {
  margin: 40px auto;       /* oben/unten Abstand, links/rechts automatisch */
  max-width: 400px;        /* oder eine Breite, die zu deiner Seite passt */
  display: block;
}
#vorbilder {
  margin: 40px auto;       /* oben/unten Abstand, links/rechts automatisch */
  max-width: 400px;        /* oder eine Breite, die zu deiner Seite passt */
  display: block;
}
/* Overlay darf keine Klicks abfangen */
.shine { pointer-events: none; }

/* falls nötig: sicherstellen, dass der Player über Deko liegt */
.card .track-player { position: relative; z-index: 1; }

/* Offscreen-Bilder erst rendern, wenn nötig */
.sv-gallery { content-visibility: auto; }

/* sanftes Einblenden, sobald geladen */
.sv-gallery img{
  opacity: 0;
  transition: opacity .35s ease;
  will-change: opacity;
}
.sv-gallery img.loaded{ opacity: 1; }