/* =========================================================
   Rundgang – Kirchenmusik Südwestharz
   ========================================================= */
:root {
  --bg: #070f1e;
  --bg-2: #0d1a31;
  --panel: #111f3a;
  --line: rgba(255,255,255,.09);
  --text: #e9edf5;
  --muted: #95a1b8;
  --gold: #c9a77c;
  --gold-2: #a6866d;
  --navy: #0a1d38;
  --blue: #194179;
  --green: #4cc38a;
  --red: #ef6b6b;
  --ease: cubic-bezier(.22,.8,.24,1);
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 70% -10%, #18305a 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #2a2340 0%, transparent 55%), var(--bg);
  color: var(--text);
  display: grid;
  grid-template-rows: 60px 1fr auto;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }

/* ---------- Kopfzeile ---------- */
.shell-top {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  background: rgba(7,15,30,.6); backdrop-filter: blur(10px); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); font-weight: 700; }
.brand-text { font-weight: 600; font-size: 14px; }
.brand-text em { font-style: normal; color: var(--muted); font-weight: 400; }
.progress { flex: 1; display: flex; gap: 6px; justify-content: center; }
.progress button {
  width: 34px; height: 6px; border-radius: 3px; border: 0; padding: 0;
  background: rgba(255,255,255,.12); position: relative; overflow: hidden; transition: width .4s var(--ease);
}
.progress button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress button.done::after, .progress button.on::after { transform: scaleX(1); }
.progress button.on { width: 56px; }
.progress button.chapter-gap { margin-left: 10px; }
.step-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Bühne & Szenen ---------- */
.stage { position: relative; overflow: hidden; }
.scene {
  position: absolute; inset: 0; padding: 22px 32px 18px;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.scene.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .7s var(--ease) .1s, visibility 0s; }
.scene.leaving-back { transform: translateX(40px); }
.scene.leaving { transform: translateX(-40px); }
.scene-head { display: flex; flex-direction: column; gap: 4px; }
.scene-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.scene-head.center { align-items: center; text-align: center; }
.scene-head h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: .2px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }

/* Einblend-Animationen innerhalb aktiver Szenen */
.scene .reveal { opacity: 0; transform: translateY(18px); }
.scene.active .reveal { animation: rise .9s var(--ease) forwards; }
.scene.active .reveal:nth-child(2) { animation-delay: .15s; }
.scene.active .reveal:nth-child(3) { animation-delay: .3s; }
.scene.active .reveal:nth-child(4) { animation-delay: .45s; }
.scene.active .reveal:nth-child(5) { animation-delay: .6s; }
.scene.active .reveal:nth-child(6) { animation-delay: .75s; }
.scene.active .reveal:nth-child(7) { animation-delay: .9s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn-gold { background: linear-gradient(135deg, #e0c193, var(--gold-2)); color: #1b1408; box-shadow: 0 8px 30px -8px rgba(201,167,124,.6); }
.btn-gold:hover:not(:disabled) { box-shadow: 0 10px 40px -6px rgba(201,167,124,.85); transform: translateY(-1px); }
.btn-navy { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,167,124,.7); } 70% { box-shadow: 0 0 0 16px rgba(201,167,124,0); } 100% { box-shadow: 0 0 0 0 rgba(201,167,124,0); } }

.seg { display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: all .3s var(--ease); }
.seg button.on { background: var(--gold); color: #1b1408; }
.seg.small button { padding: 6px 12px; font-size: 12px; }

/* ---------- Intro ---------- */
.intro { margin: auto; max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.intro-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(201,167,124,.25), transparent 65%); top: -160px; filter: blur(10px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.intro-title { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.04; }
.intro-title span { background: linear-gradient(90deg, #f3dcb6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.intro-lead { color: #c3cbdb; font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0; }
.intro-chapters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.intro-chapters div { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 14px; }
.intro-chapters b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,167,124,.18); color: var(--gold); font-size: 13px; }

/* ---------- Browser-Rahmen ---------- */
.browser { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: var(--radius); background: #1b2436; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { height: 38px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #222c40; }
.browser-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar > i:nth-child(2) { background: #febc2e; } .browser-bar > i:nth-child(3) { background: #28c840; }
.url { margin-left: 14px; flex: 1; max-width: 560px; background: #131b2b; color: #a8b3c7; border-radius: 8px; padding: 5px 12px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url::before { content: "🔒 "; font-size: 10px; }
.browser-view { flex: 1; min-height: 0; overflow-y: auto; background: #fff; scroll-behavior: smooth; }
.browser-view::-webkit-scrollbar { width: 8px; } .browser-view::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 4px; }

/* Hinweis-Pins */
.pin { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-weight: 700; z-index: 3; opacity: 0; transform: scale(.3); transition: all .5s var(--ease); box-shadow: 0 0 0 0 rgba(239,107,107,.6); }
.pin.show { opacity: 1; transform: none; animation: pinPulse 2s infinite; }
@keyframes pinPulse { 70% { box-shadow: 0 0 0 14px rgba(239,107,107,0); } 100% { box-shadow: 0 0 0 0 rgba(239,107,107,0); } }
.pin-card { position: absolute; right: 20px; bottom: 20px; width: 340px; background: #fff; color: #1d2433; border-radius: 12px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); z-index: 4; opacity: 0; transform: translateY(14px); transition: all .45s var(--ease); pointer-events: none; font-size: 14px; line-height: 1.5; }
.pin-card.show { opacity: 1; transform: none; pointer-events: auto; }
.pin-card b { display: block; margin-bottom: 4px; color: #b23b3b; }

/* ---------- Alter Workflow ---------- */
.flow-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; align-content: start; overflow: auto; }
.flow li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); opacity: .15; transform: translateY(8px); transition: all .5s var(--ease); }
.flow li.on { opacity: 1; transform: none; }
.flow li.on .n { background: var(--red); color: #fff; }
.flow .n { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; font-size: 13px; transition: background .4s; }
.flow .t b { display: block; font-size: 14.5px; }
.flow .t small { color: var(--muted); font-size: 12.5px; }
.flow-meter { display: flex; flex-direction: column; gap: 12px; }
.meter-block { padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.meter-label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.meter-value { display: block; font-family: "Cormorant Garamond", serif; font-size: 46px; font-weight: 700; color: #ffb3b3; font-variant-numeric: tabular-nums; line-height: 1.1; }
.meter-note { color: var(--muted); font-size: 13.5px; font-style: italic; opacity: 0; transition: opacity .6s; }
.meter-note.show { opacity: 1; }

/* ---------- Vergleich ---------- */
.compare-view { position: relative; overflow: hidden; }
.compare-layer { position: absolute; inset: 0; overflow: hidden; }
.compare-layer > div { height: 100%; overflow: hidden; }
.compare-old { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }
.compare-old.dragging { transition: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 100%); width: 3px; background: var(--gold); z-index: 3; cursor: ew-resize; opacity: 0; transition: opacity .4s, left 1.6s var(--ease); }
.compare-handle.dragging { transition: opacity .4s; }
.compare-handle.show { opacity: 1; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #1b1408; display: grid; place-items: center; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.curtain { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,15,30,.45); backdrop-filter: blur(2px); z-index: 4; transition: opacity .6s; }
.curtain.gone { opacity: 0; pointer-events: none; }
.compare-labels { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; }
.compare-labels span { background: rgba(10,29,56,.85); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .5s; }
.compare.revealed .compare-labels span { opacity: 1; }

/* ---------- Geräte ---------- */
.device-stage { flex: 1; min-height: 0; display: flex; justify-content: center; }
.device-stage .browser { width: 100%; transition: width .8s var(--ease), border-radius .8s; }
.device-stage.mobile .browser { width: 390px; border-radius: 36px; border: 10px solid #1b2436; }
.device-stage.mobile .browser-bar { display: none; }

/* ---------- Login & Dashboard ---------- */
.admin-frame { flex: 1; min-height: 0; border-radius: var(--radius); background: #f4f2ee; color: #1d2433; display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.login { width: 360px; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 20px 50px rgba(10,29,56,.12); display: flex; flex-direction: column; gap: 12px; text-align: center; transition: all .6s var(--ease); }
.login.out { opacity: 0; transform: scale(.94); }
.login-logo { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 24px; }
.login h3 { font-family: "Cormorant Garamond", serif; font-size: 28px; }
.login p { margin: 0 0 6px; color: #6a7386; font-size: 13px; }
.login label { text-align: left; font-size: 12px; font-weight: 600; color: #4b5468; display: flex; flex-direction: column; gap: 5px; }
.login input { border: 1px solid #dde1e8; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fafbfc; }
.login .btn { margin-top: 6px; }
.dash { position: absolute; inset: 0; display: grid; grid-template-columns: 210px 1fr; animation: fadeIn .7s var(--ease); }
.dash[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.dash-side { background: var(--navy); color: #c8d2e4; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-brand { color: #fff; font-weight: 700; margin: 0 8px 18px; font-size: 16px; } .dash-brand span { color: var(--gold); }
.dash-side a { padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.dash-side a.on { background: rgba(255,255,255,.1); color: #fff; }
.dash-main { padding: 34px 40px; overflow: auto; }
.dash-hello { margin: 0; color: #6a7386; }
.dash-main h3 { font-family: "Cormorant Garamond", serif; font-size: 34px; margin: 2px 0 22px; }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: #fff; border: 1px solid #e6e2da; border-radius: 16px; padding: 20px; text-align: left; display: flex; flex-direction: column; gap: 4px; color: #1d2433; opacity: .55; }
.tile-icon { width: 40px; height: 40px; border-radius: 12px; background: #eef1f6; display: grid; place-items: center; font-size: 18px; margin-bottom: 8px; }
.tile small { color: #6a7386; }
.tile-primary { opacity: 1; background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; border: 0; transition: transform .25s var(--ease); }
.tile-primary small { color: #b7c6e2; }
.tile-primary .tile-icon { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 22px; }
.tile-primary:hover { transform: translateY(-3px); }
.dash-upcoming { margin-top: 26px; background: #fff; border-radius: 16px; padding: 18px 22px; border: 1px solid #e6e2da; }
.dash-upcoming h4 { margin: 0 0 8px; }
.dash-upcoming ul { list-style: none; margin: 0; padding: 0; }
.dash-upcoming li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f0ede7; font-size: 14px; }
.dash-upcoming li span { color: #6a7386; }

/* ---------- Formular ---------- */
.form-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
.ev-form { background: #f7f5f1; color: #1d2433; border-radius: var(--radius); padding: 20px 22px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.f-row { display: grid; gap: 12px; } .f-row.two { grid-template-columns: 1fr 1fr; } .f-row.three { grid-template-columns: 1.2fr .8fr 1fr; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #4b5468; position: relative; }
.f small { font-weight: 400; color: #8a92a3; }
.f input, .f select, .f textarea { border: 1px solid #dcd8cf; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 400; color: #1d2433; background: #fff; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(166,134,109,.2); }
.f input.typing, .f textarea.typing { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(166,134,109,.25); }
.f.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; align-self: end; padding-bottom: 10px; }
.f-auto { margin: 0; font-size: 12.5px; color: #6c6250; background: #efe7da; padding: 8px 12px; border-radius: 8px; }
.img-pick { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.img-pick button { width: 76px; height: 54px; border-radius: 9px; border: 2px solid transparent; background-size: cover; background-position: center; padding: 0; position: relative; transition: transform .2s, border-color .2s; }
.img-pick button.on { border-color: var(--gold-2); transform: scale(1.05); }
.img-pick button.on::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-2); color: #fff; font-size: 11px; display: grid; place-items: center; }
.upload { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--blue); cursor: pointer; font-weight: 600; }
.ev-form .btn-lg { align-self: flex-start; }
.preview { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pv-pane { flex: 1; min-height: 0; overflow: auto; border-radius: var(--radius); background: #faf8f4; padding: 22px; display: grid; place-items: center; }
.pv-pane[hidden] { display: none; }
.pv-pane.page { padding: 0; display: block; background: #fff; }
.pv-note { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ---------- Veröffentlichen ---------- */
.publish-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px 1fr; gap: 26px; }
.gen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; overflow: auto; }
.gen-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); opacity: .25; transition: all .5s var(--ease); }
.gen-list li.run { opacity: 1; border-color: rgba(201,167,124,.5); }
.gen-list li.ok { opacity: 1; }
.gen-list .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.08); }
.gen-list li.run .ic { border: 2px solid var(--gold); border-top-color: transparent; background: none; animation: spin .8s linear infinite; }
.gen-list li.ok .ic { background: var(--green); color: #06301c; font-weight: 700; animation: pop .4s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.gen-list b { display: block; font-size: 14px; } .gen-list small { color: var(--muted); font-size: 12px; word-break: break-all; }

/* ---------- SEO ---------- */
.seo-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.seo-left { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding-right: 4px; }
.seo-mode { background: #f7f5f1; color: #1d2433; border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.seo-mode[hidden] { display: none; }
.count { position: absolute; right: 10px; top: 0; font-size: 11.5px; font-weight: 600; }
.count.ok { color: #1f8a57; } .count.warn { color: #c47a12; } .count.bad { color: #c23b3b; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.checks li::before { content: "●"; margin-right: 7px; color: #c23b3b; transition: color .3s; }
.checks li.ok::before { color: #1f8a57; }
.seo-auto-lead { margin: 0; font-size: 14px; line-height: 1.55; color: #4b5468; }
.seo-mode .btn { align-self: flex-start; }
.ai-out { display: flex; flex-direction: column; gap: 10px; }
.ai-field { background: #fff; border: 1px solid #e3ded4; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; animation: rise .5s var(--ease) both; opacity: 0; transform: translateY(8px); }
.ai-field span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); font-weight: 700; margin-bottom: 3px; }
.ai-field .caret::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--gold-2); }
@keyframes blink { 50% { opacity: 0; } }
.serp-label { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.serp-card { background: #fff; border-radius: 12px; padding: 16px 18px; font-family: Arial, sans-serif; color: #202124; transition: opacity .3s; }
.serp-card.dim { opacity: .75; }
.serp-site { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.serp-site b { font-weight: 400; display: block; } .serp-site small { color: #4d5156; font-size: 12px; }
.serp-fav { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 14px; }
.serp-fav.old { background: #e8eaed; color: #555; }
.serp-title { display: block; color: #1a0dab; font-size: 20px; margin: 8px 0 4px; line-height: 1.3; }
.serp-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #4d5156; }
.serp-event { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.serp-event span { background: #f1f3f4; border-radius: 8px; padding: 6px 10px; color: #202124; }
.serp-old { margin-top: 4px; }
.code-panel { background: #0b1324; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.code-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.code-head em { font-style: normal; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.code-panel pre { margin: 0; padding: 14px 16px; overflow: auto; flex: 1; font: 12px/1.6 ui-monospace, Menlo, monospace; color: #c9d4ea; white-space: pre-wrap; word-break: break-word; }
.code-panel .tg { color: #7fb4ff; } .code-panel .at { color: #e0c193; } .code-panel .st { color: #9be2b5; } .code-panel .cm { color: #66738f; }
.code-panel .flash { background: rgba(201,167,124,.22); border-radius: 3px; transition: background 1.2s; }

/* ---------- Ablauf ---------- */
.expiry { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 18px; }
.time-ctrl { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid var(--line); flex-wrap: wrap; }
.time-ctrl span { color: var(--muted); font-size: 14px; }
.time-ctrl b { font-family: "Cormorant Garamond", serif; font-size: 28px; min-width: 260px; }
.time-ctrl input { flex: 1; accent-color: var(--gold); min-width: 160px; }
.expiry-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.exp-col { background: #faf8f4; color: #1d2433; border-radius: var(--radius); padding: 18px 20px; overflow: auto; }
.exp-col.muted { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); }
.exp-col h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); }
.exp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.exp-col li { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(10,29,56,.06); animation: slideIn .5s var(--ease); }
.exp-col.muted li { background: rgba(255,255,255,.05); box-shadow: none; opacity: .8; }
.exp-col li .d { flex: none; width: 52px; text-align: center; font-family: "Cormorant Garamond", serif; line-height: 1; }
.exp-col li .d b { display: block; font-size: 26px; } .exp-col li .d small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.exp-col li .tt b { display: block; font-size: 14.5px; } .exp-col li .tt small { color: #6a7386; font-size: 12.5px; }
.exp-col.muted li .tt small { color: var(--muted); }
.exp-col li.mine { outline: 2px solid var(--gold); }
.exp-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Zusammenfassung ---------- */
.summary { max-width: 940px; width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sum-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 14.5px; opacity: 0; transform: translateY(8px); }
.scene.active .sum-row { animation: rise .6s var(--ease) forwards; }
.sum-row.head { border-top: 0; background: rgba(255,255,255,.05); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sum-row span:nth-child(2) { color: #ffb3b3; } .sum-row span:nth-child(3) b { color: #9be2b5; font-weight: 600; }
.sum-row.head span:nth-child(2), .sum-row.head span:nth-child(3) { color: var(--muted); }
.next-steps { max-width: 940px; width: 100%; margin: 4px auto 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.next-steps h3 { font-family: "Cormorant Garamond", serif; font-size: 26px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; counter-reset: s; }
.next-steps li { counter-increment: s; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13px; }
.next-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1b1408; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.next-steps li b { display: block; } .next-steps li span { color: var(--muted); }

/* ---------- Erzähler ---------- */
.guide { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(7,15,30,.8); backdrop-filter: blur(10px); z-index: 5; }
.guide-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 4px rgba(201,167,124,.15); }
.guide-text { flex: 1; min-width: 0; }
.guide-title { margin: 0; font-weight: 600; font-size: 14.5px; }
.guide-body { margin: 2px 0 0; color: #b8c1d3; font-size: 14px; line-height: 1.5; min-height: 21px; }
.guide-nav { display: flex; gap: 8px; }

/* =========================================================
   ALTE WEBSEITE (Nachbau)
   ========================================================= */
.old-site { font-family: Poppins, sans-serif; color: #333; background: #fff; font-size: 14px; }
.old-site .o-head { background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; border-bottom: 1px solid #e8e8e8; }
.old-site .o-logo { height: 46px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: #194179; }
.old-site .o-logo img { height: 46px; }
.old-site .o-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: #194179; }
.old-site .o-hero { position: relative; height: 330px; background: #0a1d38 center/cover; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; }
.old-site .o-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10,29,56,.55); }
.old-site .o-hero h1 { position: relative; font-family: Montserrat, Poppins, sans-serif; font-size: 40px; font-weight: 600; }
.old-site .o-hero h1 + h1 { font-size: 20px; font-weight: 400; margin-top: 6px; }
.old-site .o-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 30px 40px; background: #ececec; }
.old-site .o-ev { background: #fff; border: 1px solid #ddd; position: relative; }
.old-site .o-ev .img { height: 120px; background: #194179 center/cover; }
.old-site .o-ev .b { padding: 12px 14px; }
.old-site .o-ev span { display: block; color: #194179; font-weight: 600; font-size: 13px; }
.old-site .o-ev p { margin: 4px 0; font-size: 13px; }
.old-site .o-ev a { display: inline-block; margin-top: 6px; background: #194179; color: #fff; padding: 6px 12px; font-size: 12px; }
.old-site .o-sec { padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.old-site .o-sec h2 { color: #194179; font-size: 24px; margin: 0 0 10px; font-weight: 600; }
.old-site .o-sec p { line-height: 1.7; font-size: 13px; }
.old-site .o-sec .img { height: 240px; background: #ddd center/cover; }
.old-site .o-foot { background: #0a1d38; color: #c8d0dd; padding: 26px 40px; font-size: 12px; display: flex; justify-content: space-between; }

/* =========================================================
   NEUE WEBSEITE
   ========================================================= */
.new-site { --n-navy: #0a1d38; --n-cream: #f7f3ec; --n-gold: #a6866d; --n-ink: #1b2233; font-family: Inter, sans-serif; color: var(--n-ink); background: var(--n-cream); font-size: 15px; container-type: inline-size; }
.n-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 5cqw; background: rgba(247,243,236,.88); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(10,29,56,.08); }
.n-logo { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 21px; color: var(--n-navy); display: flex; align-items: center; gap: 10px; }
.n-logo i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--n-navy); color: #e0c193; display: grid; place-items: center; font-size: 15px; }
.n-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: #3c465a; }
.n-nav b { background: var(--n-navy); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.n-burger { display: none; font-size: 22px; color: var(--n-navy); }
.n-hero { position: relative; min-height: 520px; display: grid; grid-template-columns: 1.1fr .9fr; }
.n-hero-text { padding: 70px 5cqw 50px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.n-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--n-gold); font-weight: 700; }
.n-hero h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(40px, 6cqw, 72px); line-height: 1.02; font-weight: 600; color: var(--n-navy); }
.n-hero h1 em { color: var(--n-gold); }
.n-hero p { margin: 0; font-size: 17px; line-height: 1.65; color: #4b5468; max-width: 460px; }
.n-hero-cta { display: flex; gap: 12px; margin-top: 6px; }
.n-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--n-navy); color: #fff; font-weight: 600; font-size: 14px; }
.n-btn.light { background: transparent; color: var(--n-navy); border: 1px solid rgba(10,29,56,.25); }
.n-hero-img { background: #0a1d38 center/cover; border-bottom-left-radius: 220px; position: relative; }
.n-next { position: absolute; left: -60px; bottom: 40px; background: #fff; border-radius: 18px; padding: 16px 18px; width: 290px; box-shadow: 0 30px 60px -20px rgba(10,29,56,.35); display: flex; gap: 14px; align-items: center; }
.n-next .d { flex: none; width: 58px; height: 64px; border-radius: 12px; background: var(--n-navy); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1; font-family: "Cormorant Garamond", serif; }
.n-next .d b { font-size: 26px; display: block; } .n-next .d small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #e0c193; font-family: Inter, sans-serif; }
.n-next small.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--n-gold); font-weight: 700; }
.n-next strong { display: block; font-size: 15px; margin: 2px 0; }
.n-next span { font-size: 12.5px; color: #6a7386; }
.n-section { padding: 70px 5cqw; }
.n-section.white { background: #fff; }
.n-section.dark { background: var(--n-navy); color: #dfe5f0; }
.n-sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 20px; }
.n-sec-head h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(30px, 4cqw, 44px); font-weight: 600; color: var(--n-navy); }
.n-section.dark h2 { color: #fff; }
.n-sec-head a { font-size: 14px; font-weight: 600; color: var(--n-navy); border-bottom: 1px solid currentColor; }
.n-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.n-ev { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(10,29,56,.06), 0 12px 30px -18px rgba(10,29,56,.35); transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; }
.n-ev:hover { transform: translateY(-4px); }
.n-ev .img { aspect-ratio: 16/10; background: #0a1d38 center/cover; position: relative; }
.n-ev .badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--n-navy); font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.n-ev .b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.n-ev .when { font-size: 12.5px; font-weight: 700; color: var(--n-gold); text-transform: uppercase; letter-spacing: .08em; }
.n-ev h3 { font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 600; color: var(--n-navy); line-height: 1.15; }
.n-ev .where { font-size: 13.5px; color: #6a7386; }
.n-ev .more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--n-navy); }
.n-ev.is-new { animation: newGlow 2.6s var(--ease) 2; }
@keyframes newGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,167,124,0), 0 12px 30px -18px rgba(10,29,56,.35); } 40% { box-shadow: 0 0 0 6px rgba(201,167,124,.9), 0 20px 50px -10px rgba(166,134,109,.6); transform: translateY(-6px); } }
.n-ev .newtag { position: absolute; right: 14px; top: 14px; background: #c9a77c; color: #1b1408; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.n-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.n-split .img { aspect-ratio: 4/5; border-radius: 24px; background: #ddd center/cover; }
.n-split p { line-height: 1.75; color: #4b5468; }
.n-dark-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.n-tile { border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 16/10; background: #0a1d38 center/cover; display: flex; align-items: flex-end; }
.n-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10,29,56,.9)); }
.n-tile div { position: relative; padding: 24px; }
.n-tile h3 { font-family: "Cormorant Garamond", serif; color: #fff; font-size: 28px; font-weight: 600; }
.n-tile p { margin: 4px 0 0; font-size: 14px; color: #c8d2e4; }
.n-donate { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: linear-gradient(120deg, #efe6d8, #f7f3ec); border-radius: 26px; padding: 40px 44px; }
.n-donate h2 { font-family: "Cormorant Garamond", serif; font-size: 34px; color: var(--n-navy); font-weight: 600; }
.n-donate p { margin: 6px 0 0; color: #5b6478; max-width: 520px; line-height: 1.6; }
.n-foot { background: #071428; color: #93a0b8; padding: 40px 5cqw; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; font-size: 13.5px; line-height: 1.8; }
.n-foot b { color: #fff; display: block; margin-bottom: 4px; }

/* Unterseite */
.n-detail-hero { position: relative; height: 360px; background: #0a1d38 center/cover; display: flex; align-items: flex-end; }
.n-detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(10,29,56,.92)); }
.n-detail-hero div { position: relative; padding: 0 5cqw 34px; color: #fff; }
.n-detail-hero .crumb { font-size: 12.5px; color: #c8d2e4; margin-bottom: 10px; }
.n-detail-hero h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(36px, 5.5cqw, 60px); font-weight: 600; line-height: 1.05; }
.n-detail-hero .when { margin-top: 10px; color: #e0c193; font-weight: 600; letter-spacing: .04em; }
.n-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 50px 5cqw 60px; }
.n-detail p { font-size: 16.5px; line-height: 1.8; color: #3c465a; margin-top: 0; }
.n-facts { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: 0 12px 30px -18px rgba(10,29,56,.35); display: flex; flex-direction: column; gap: 14px; align-self: start; }
.n-facts div { display: flex; gap: 12px; font-size: 14px; } .n-facts div i { font-style: normal; width: 22px; color: var(--n-gold); }
.n-facts small { display: block; color: #8a92a3; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.n-facts .n-btn { text-align: center; }
.n-map { margin-top: 20px; height: 160px; border-radius: 16px; background: linear-gradient(135deg, #e6e0d4 25%, #ece7dd 25%, #ece7dd 50%, #e6e0d4 50%, #e6e0d4 75%, #ece7dd 75%) 0 0/28px 28px; display: grid; place-items: center; color: #6a7386; font-size: 13px; }

/* Vorschau-Kachel im Formular */
.pv-pane .n-ev { width: min(340px, 100%); font-family: Inter, sans-serif; color: #1b2233; }
.pv-pane > .new-site { background: transparent; width: 100%; display: grid; place-items: center; }
.pv-pane.page > .new-site { display: block; }

/* Mobile-Ansicht der neuen Seite (Container Queries) */
@container (max-width: 560px) {
  .n-nav { display: none; } .n-burger { display: block; }
  .n-hero { grid-template-columns: 1fr; }
  .n-hero-text { padding: 40px 22px 30px; }
  .n-hero h1 { font-size: 42px; }
  .n-hero-img { min-height: 260px; border-bottom-left-radius: 0; border-top-left-radius: 120px; margin-left: 22px; }
  .n-next { left: -12px; bottom: -30px; width: calc(100% - 20px); }
  .n-section { padding: 56px 22px; }
  .n-events, .n-dark-grid, .n-split, .n-detail { grid-template-columns: 1fr; }
  .n-sec-head { flex-direction: column; align-items: flex-start; }
  .n-donate { flex-direction: column; align-items: flex-start; padding: 28px; }
  .n-foot { grid-template-columns: 1fr; }
  .n-detail { padding: 34px 22px; }
  .n-detail-hero div { padding: 0 22px 26px; }
}

/* ---------- Responsiv (Rundgang selbst) ---------- */
@media (max-width: 1000px) {
  .flow-wrap, .form-grid, .publish-grid, .seo-grid, .expiry-cols { grid-template-columns: 1fr; }
  .scene { overflow-y: auto; padding: 18px 16px; }
  .browser { min-height: 70vh; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .brand-text em, .step-count { display: none; }
  .next-steps ol { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .progress button { width: 14px; } .progress button.on { width: 26px; }
  .guide { padding: 10px 16px; } .guide-avatar { display: none; }
  .dash { grid-template-columns: 1fr; } .dash-side { display: none; }
  .old-site .o-events, .old-site .o-sec { grid-template-columns: 1fr; }
  .sum-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
