@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrainsmono-latin-var.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }

:root {
  --bg: #0b0b0a;
  --bg-2: #121211;
  --ink: #efe9de;
  --ink-2: #a8a195;
  --ink-3: #6f6a62;
  --line: #22211f;
  --line-2: #3a3835;
  --gold: #c9a961;
  --gold-2: #8f7a4a;
  --gold-deep: #5c4d2c;
  --gutter: 20px;
  --maxw: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 300; font-size: 17px; line-height: 1.55; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(201, 169, 97, .10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(201, 169, 97, .06), transparent 60%);
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fortschrittslinie oben */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; z-index: 5; pointer-events: none; }

/* Großes Monogramm im Hintergrund, bewegt sich beim Scrollen */
.bgmark { position: fixed; right: -12vw; top: 8vh; width: min(70vw, 720px); color: var(--gold); opacity: .045; z-index: 0; pointer-events: none; will-change: transform; }
.bgmark svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .bgmark { width: 95vw; right: -38vw; top: 2vh; opacity: .035; } }

/* Kopfzeile */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.top a { text-decoration: none; }
.top .brand { color: var(--ink); }
.top nav { display: flex; gap: 24px; }
.top nav a { color: var(--ink-2); transition: color .25s; }
.top nav a:hover { color: var(--ink); }
.top nav a.gold { color: var(--gold); }
@media (max-width: 420px) { .top nav a:not(.gold) { display: none; } }

/* Hero */
.hero { min-height: calc(100dvh - 70px); display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 72px; position: relative; }
.hero h1 { margin: 0; line-height: 0; color: var(--gold); }
.hero h1 svg.logo { display: block; width: clamp(220px, 40vw, 380px); height: auto; }
.hero h1 svg .mono-g, .hero h1 svg .word-g { fill: currentColor; }
.hero .hl { display: block; width: 0; height: 1px; background: var(--gold); margin: 34px 0 22px; transition: width 1.1s var(--ease) var(--d, 0ms); }
.hero .hl.in { width: 56px; }
.hero .role { margin: 0; color: var(--ink-2); }
.hero .lead { margin: 26px 0 32px; font-size: clamp(18px, 2.2vw, 22px); max-width: 32ch; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--gold); background: var(--gold); color: var(--bg);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0; position: relative; overflow: hidden;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.scrollhint { position: absolute; left: var(--gutter); bottom: 22px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); text-decoration: none; }
.scrollhint i { display: block; width: 40px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.scrollhint i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

/* Abschnitte */
section + section { border-top: 1px solid var(--line); }
#was, #wunsch, #anfrage { padding-top: 72px; padding-bottom: 80px; }
.grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .grid { grid-template-columns: 4fr 8fr; gap: 48px; } #was, #wunsch, #anfrage { padding-top: 104px; padding-bottom: 112px; } }
.sec-head .n { display: block; margin-bottom: 14px; }
h2 { margin: 0; font-stretch: 125%; font-weight: 300; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; }
p.lead { margin: 0 0 28px; color: var(--ink-2); max-width: 54ch; }

/* Liste Anlässe */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width 1.2s var(--ease) calc(var(--d, 0ms) + 300ms); }
.list li.in::after { width: 100%; }
@media (min-width: 700px) { .list li { grid-template-columns: 56px 14em 1fr; align-items: baseline; } }
.list h3 { margin: 0; font-weight: 400; font-size: 19px; letter-spacing: .01em; }
.list p { margin: 0; color: var(--ink-2); grid-column: 2; }
@media (min-width: 700px) { .list p { grid-column: 3; } }

/* Formulare */
form { display: grid; gap: 22px; margin-bottom: 44px; }
form .two { display: grid; gap: 22px; }
@media (min-width: 700px) { form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink-2); }
input, select, textarea {
  width: 100%; appearance: none; border-radius: 0; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0 12px; font: inherit; font-size: 17px;
  transition: border-color .3s;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg-2); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.85); }
.form-note { margin: 0; color: var(--ink-3); font-size: 14px; }

.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; line-height: 1.5; margin: 0;
}
.row .v { overflow-wrap: anywhere; }
.row .mono { color: var(--ink-3); transition: color .25s; flex: none; }
@media (hover: hover) { .row:hover .mono { color: var(--gold); } }

/* Vorschläge und Bestätigung beim Musikwunsch */
.sug-wrap { position: relative; }
.sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; margin: 0; padding: 0; list-style: none; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 0; max-height: 240px; overflow: auto; }
.sug li { display: grid; gap: 2px; padding: 11px 14px; cursor: pointer; border-top: 1px solid var(--line); }
.sug li:hover, .sug li:focus { background: #1a1917; outline: none; }
.sug b { font-weight: 400; color: var(--ink); }
.sug span { color: var(--ink-3); font-size: 14px; }
.done { border: 1px solid var(--gold-2); padding: 28px 26px; margin-bottom: 44px; display: grid; gap: 14px; justify-items: start; }
.done .done-t { margin: 0; font-size: 19px; }
.done.in { animation: pop .6s var(--ease) both; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
button.btn:disabled { opacity: .6; cursor: default; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 22px; }

/* Rechtstexte */
.legal { padding: 64px 0 88px; max-width: 720px; }
.legal h1 { font-size: clamp(32px, 6vw, 56px); font-stretch: 125%; font-weight: 200; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 40px; }
.legal h2 { font-size: 18px; letter-spacing: .08em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 400; }
.legal ul { padding-left: 18px; }
.todo { color: var(--bg); background: var(--gold); padding: 0 6px; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.hero h1.reveal { transform: translateY(10px) scale(.985); }
.hero h1.reveal.in { animation: glow 1.3s var(--ease) both; }
@keyframes glow { 0% { color: var(--gold-deep); } 100% { color: var(--gold); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .hl { transition: none; opacity: 1; transform: none; }
  .hero .hl { width: 56px; }
  .hero h1.reveal.in { animation: none; }
  .scrollhint i::after { animation: none; transform: none; }
  .list li::after { transition: none; }
  .bgmark { display: none; }
}

/* Standbild ohne Animation (nur für Vorschauen, ?static) */
html.static { scroll-behavior: auto; }
html.static .reveal, html.static .hero .hl { transition: none; opacity: 1; transform: none; animation: none; }
html.static .hero .hl { width: 56px; }
html.static .list li::after { transition: none; width: 100%; }
html.static .scrollhint i::after { animation: none; }
