/* ==========================================================================
   ONDEK Design System
   Farbe nur mit Bedeutung: Mint = verfügbar, Glut = Last Minute, Flieder = PRO/Fokus.
   Display: Big Shoulders (Clubschild-Typo) · Text: Instrument Sans. Beide lokal (DSGVO).
   ========================================================================== */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/bigshoulders-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrumentsans-700.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --night: #0e1120;
  --surface: #161a2b;
  --raised: #1e2337;
  --raised-2: #262c44;
  --line: #2a3049;
  --line-strong: #3a4163;
  --text: #eceaf4;
  --muted: #9295ad;
  --faint: #636783;
  --chalk: #f3f2f8;
  --live: #4bd69e;
  --live-ink: #0b2a1e;
  --ember: #ff7b47;
  --ember-ink: #2e1206;
  --lilac: #b5a4ff;
  --danger: #ff5a6a;
  --warn: #f5c451;
  --accent: #f3f2f8;      /* Primäre Aktionsfarbe – von Themes/Admin überschreibbar */
  --accent-ink: #0e1120;  /* Textfarbe auf --accent */
  --grain-opacity: 0;     /* Körnung (Warehouse-Theme) */

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-card: 16px;
  --r-ctrl: 12px;
  --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1180px;
  --topbar: 60px;
  --bottombar: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 16px/1.55 var(--sans); min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--lilac); color: var(--night); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--chalk); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: .005em; line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.5rem; line-height: 1.05; }
h4 { font-size: 1rem; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.2em; font-size: 1.7rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.wrap-tight { max-width: 480px; }
main { padding-bottom: calc(var(--bottombar) + 32px); }
@media (min-width: 900px) { main { padding-bottom: 64px; } }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }
.split { display: grid; gap: 24px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .split-wide { grid-template-columns: 260px minmax(0, 1fr); } }
.sticky { position: sticky; top: calc(var(--topbar) + 16px); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  background: color-mix(in srgb, var(--night) 86%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: var(--wordmark-ls, .14em); text-decoration: none; line-height: 1; padding-top: 2px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); background: var(--raised); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) { .topnav { display: flex; } }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--raised); }
.icon-btn svg { width: 20px; height: 20px; }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--ember); color: var(--ember-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.locale-btn { height: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: .85rem; cursor: pointer; }
.locale-btn:hover { color: var(--text); }

/* Rollenwechsel */
.role-switch { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.role-switch select { background: transparent; border: 0; font-weight: 600; font-size: .9rem; padding-right: 4px; cursor: pointer; }
.role-switch select option { background: var(--surface); }

/* ---------- Bottom-Navigation (mobil) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--bottombar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--faint); font-size: .72rem; font-weight: 600; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a[aria-current="page"] { color: var(--text); }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--text); border-radius: 2px; }
.bottomnav .dot-badge { top: 8px; right: calc(50% - 22px); }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 700; font-size: .98rem; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--raised); border-color: var(--line); }
.btn-secondary:hover { background: var(--raised-2); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--raised); }
.btn-live { background: var(--live); color: var(--live-ink); }
.btn-ember { background: var(--ember); color: var(--ember-ink); }
.btn-danger { background: transparent; border-color: rgba(255, 90, 106, .5); color: #ff8b97; }
.btn-danger:hover { background: rgba(255, 90, 106, .1); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.link-btn:hover { color: var(--text); }

/* ---------- Formulare ---------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-ctrl); color: var(--text); transition: border-color .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lilac) 22%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239295ad' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.select option { background: var(--surface); }
.input[type="date"], .input[type="time"] { color-scheme: dark; }
.field-error { color: #ff8b97; font-size: .85rem; margin: 6px 0 0; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: rgba(255, 90, 106, .7); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .9rem; }
.input-affix .input { padding-right: 56px; }
.form-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lilac); flex: none; }

/* Auswahl-Chips (Rollen, Genres, Spezialisierungen) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none;
}
.chip span:hover { border-color: var(--line-strong); color: var(--text); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.chips-lg .chip span { min-height: 52px; padding: 0 22px; font-size: 1.02rem; }

/* Segment-Steuerung */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: var(--raised-2); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--lilac); }

/* Autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-ctrl); overflow: hidden; display: none; max-height: 300px; overflow-y: auto; }
.ac-list.open { display: block; }
.ac-list button { display: flex; width: 100%; justify-content: space-between; text-align: left; padding: 12px 14px; background: none; border: 0; cursor: pointer; }
.ac-list button:hover, .ac-list button.active { background: var(--raised-2); }
.ac-list small { color: var(--muted); }

/* ---------- Karten & Flächen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card-tight { padding: 14px 16px; }
.card h3 { margin-bottom: .3em; }
.card + .card { margin-top: 16px; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-title h3, .panel-title h2 { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; }
.empty { text-align: left; padding: 28px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); }
.empty h3 { color: var(--text); }

/* ---------- Badges & Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.badge-live { background: rgba(75, 214, 158, .12); border-color: rgba(75, 214, 158, .35); color: var(--live); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(75, 214, 158, .6); animation: pulse 2s infinite; }
.badge-ember { background: rgba(255, 123, 71, .12); border-color: rgba(255, 123, 71, .4); color: var(--ember); }
.badge-pro { border-color: rgba(181, 164, 255, .45); color: var(--lilac); letter-spacing: .06em; }
.badge-verified { color: var(--text); }
.badge-verified svg { width: 14px; height: 14px; color: var(--live); }
.badge-warn { border-color: rgba(245, 196, 81, .4); color: var(--warn); }
.badge-danger { border-color: rgba(255, 90, 106, .45); color: #ff8b97; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 214, 158, .55); } 70% { box-shadow: 0 0 0 7px rgba(75, 214, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 214, 158, 0); } }
@media (prefers-reduced-motion: reduce) { .badge-live::before { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-requested::before, .status-awaiting_payment::before { background: var(--warn); }
.status-paid::before, .status-confirmed::before, .status-service_pending::before { background: var(--live); }
.status-completed::before { background: var(--chalk); }
.status-declined::before, .status-expired::before, .status-withdrawn::before, .status-cancelled::before { background: var(--faint); }
.status-disputed::before, .status-no_show_review::before, .status-review_required::before { background: var(--danger); }
.status-refunded::before, .status-partially_refunded::before { background: var(--lilac); }

.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.rating .stars { color: var(--warn); letter-spacing: 1px; }

/* ---------- Flash / Hinweise ---------- */
.flashes { position: fixed; top: calc(var(--topbar) + 12px); left: 0; right: 0; z-index: 60; display: grid; justify-items: center; gap: 8px; padding: 0 var(--gutter); pointer-events: none; }
.flash { pointer-events: auto; max-width: 560px; width: 100%; padding: 14px 16px; border-radius: var(--r-ctrl); background: var(--raised); border: 1px solid var(--line-strong); display: flex; gap: 12px; align-items: flex-start; animation: drop .35s var(--ease); }
.flash-success { border-color: rgba(75, 214, 158, .5); }
.flash-error { border-color: rgba(255, 90, 106, .6); }
.flash-warning { border-color: rgba(245, 196, 81, .5); }
.flash button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.notice { padding: 14px 16px; border-radius: var(--r-ctrl); border: 1px solid var(--line-strong); background: var(--surface); font-size: .95rem; }
.notice-warn { border-color: rgba(245, 196, 81, .45); }
.notice-live { border-color: rgba(75, 214, 158, .45); }
.notice-danger { border-color: rgba(255, 90, 106, .5); }
.test-banner { background: repeating-linear-gradient(-45deg, #2d2510, #2d2510 10px, #241d0c 10px, #241d0c 20px); color: var(--warn); text-align: center; font-size: .82rem; font-weight: 700; padding: 6px var(--gutter); }

/* ---------- Startseite / Hero ---------- */
.hero { position: relative; padding: 40px 0 28px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-glow, var(--lilac)) 14%, transparent), transparent 70%); pointer-events: none;
}
.hero-claim { font-family: var(--display); font-weight: 700; font-size: clamp(4.4rem, 19vw, 11.5rem); line-height: .82; letter-spacing: -.005em; margin: 0 0 20px; }
.hero-claim span { display: block; }
.hero-claim span:nth-child(2) { padding-left: .55em; }
.hero-claim span:nth-child(3) { padding-left: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .hero-claim span { animation: rise .7s var(--ease) both; }
  .hero-claim span:nth-child(2) { animation-delay: .08s; }
  .hero-claim span:nth-child(3) { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 34ch; margin-bottom: 28px; }
@media (min-width: 960px) {
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
}

/* Such-Komponist */
.composer { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px; padding: 18px; position: relative; }
.composer-step { padding: 14px 0; border-top: 1px solid var(--line); }
.composer-step:first-of-type { border-top: 0; padding-top: 4px; }
.composer-q { font-family: var(--display); font-size: 1.55rem; line-height: 1; margin: 0 0 12px; }
.composer .chips span { min-height: 46px; }
.composer-when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.composer-when .input { width: auto; flex: 1 1 150px; min-height: 46px; }
.composer-submit { margin-top: 14px; }
.geo-btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-ctrl); cursor: pointer; }
.geo-btn:hover { background: var(--raised-2); }
.geo-btn svg { width: 20px; height: 20px; }
.pulse-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* Horizontale Scroller */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(280px, 40%); } }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 42px) / 4); } }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.6rem; line-height: .9; color: var(--faint); }
.steps strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--line-strong); } }

/* ---------- Ergebniskarte ---------- */
.result { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); position: relative; }
.result:hover { border-color: var(--line-strong); }
.result-media { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--raised); }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-media .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; color: var(--muted); }
.result-name { font-family: var(--display); font-size: 1.75rem; line-height: .95; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.result-name a { text-decoration: none; }
.result-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.result-meta { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.result-price { font-weight: 700; }
.result-actions { grid-column: 1 / -1; display: flex; gap: 8px; position: relative; z-index: 2; }
.result-actions .btn { flex: 1; }
.result .fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
.result-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
@media (min-width: 900px) {
  .results-grid .result { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .results-grid .result-media { width: 100%; height: 190px; border-radius: 0; }
  .results-grid .result-body { padding: 0 16px; }
  .results-grid .result-actions { padding: 0 16px 16px; }
}
.fav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--night) 70%, transparent); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn[aria-pressed="true"] { color: var(--ember); border-color: rgba(255, 123, 71, .5); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Suche ---------- */
.filters { display: none; }
.filters.open { display: block; }
@media (min-width: 960px) { .filters { display: block; } .filters-toggle { display: none !important; } }
.search-bar { display: grid; gap: 10px; padding: 16px 0; }
@media (min-width: 900px) { .search-bar { grid-template-columns: 180px 1fr 200px auto; align-items: center; } }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.results-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .results-grid.wide { grid-template-columns: repeat(3, 1fr); } }
#map { height: 440px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.map-consent { height: 440px; display: grid; place-items: center; text-align: center; padding: 24px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

/* ---------- Profil ---------- */
.profile-cover { height: clamp(180px, 34vw, 360px); background: var(--surface) center / cover no-repeat; position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--night)); }
.profile-head { position: relative; margin-top: -72px; display: grid; gap: 16px; grid-template-columns: 112px 1fr; align-items: end; }
.avatar { width: 112px; height: 112px; border-radius: 22px; overflow: hidden; border: 3px solid var(--night); background: var(--raised); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 3rem; color: var(--muted); }
.avatar-sm { width: 44px; height: 44px; border-radius: 12px; border-width: 0; flex: none; }
.avatar-sm .initials { font-size: 1.3rem; }
.profile-name { font-size: clamp(2.8rem, 9vw, 5rem); margin: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 16px 0; }
.stat strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .85rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a, .gallery figure { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--raised); margin: 0; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: var(--r-pill); background: var(--raised); font-size: .85rem; font-weight: 600; }
.book-box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 20px; }
.book-box .price { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--bottombar) + env(safe-area-inset-bottom)); z-index: 35; padding: 10px var(--gutter); background: color-mix(in srgb, var(--night) 96%, transparent); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* Kalender */
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.cal td { height: 54px; vertical-align: top; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 6px; font-size: .85rem; position: relative; }
.cal td.out { background: transparent; border-color: transparent; color: var(--faint); }
.cal td.today { border-color: var(--chalk); }
.cal td.st-available { background: rgba(75, 214, 158, .14); border-color: rgba(75, 214, 158, .4); }
.cal td.st-partial { background: rgba(245, 196, 81, .1); border-color: rgba(245, 196, 81, .35); }
.cal td.st-unavailable { background: rgba(255, 90, 106, .08); border-color: rgba(255, 90, 106, .3); }
.cal td.st-booked { background: rgba(181, 164, 255, .16); border-color: rgba(181, 164, 255, .5); }
.cal td button { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Buchung ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding-bottom: 14px; position: relative; font-size: .92rem; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); margin-top: 6px; margin-left: 4px; }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--live); }
.timeline li.current::before { background: var(--chalk); box-shadow: 0 0 0 4px rgba(243, 242, 248, .15); }
.terms { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.terms-head { padding: 12px 16px; background: var(--raised); display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.terms-body { padding: 16px; }
.sum { width: 100%; border-collapse: collapse; }
.sum td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sum tr.total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; padding-top: 12px; }
details.disclosure { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
details.disclosure > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; color: var(--muted); }
details.disclosure[open] > summary::after { content: "–"; }
details.disclosure > div { padding: 0 16px 16px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: min(70vh, 620px); }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--raised); font-size: .95rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--chalk); color: var(--night); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: .72rem; opacity: .6; margin-top: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .82rem; text-align: center; padding: 4px 8px; border: 1px dashed var(--line); }
.chat-form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-form textarea { min-height: 48px; height: 48px; resize: none; }
.chat-note { font-size: .78rem; color: var(--faint); margin-top: 6px; }

/* Bewertungs-Sterne (Eingabe) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; color: var(--line-strong); cursor: pointer; line-height: 1; padding: 0 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--warn); }
.star-input input:focus-visible + label { outline: 2px solid var(--lilac); border-radius: 4px; }
.review-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.table a { font-weight: 600; }
.metric { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.metric strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; margin-top: 4px; }
.metric span { color: var(--muted); font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.bars span { flex: 1; background: var(--raised-2); border-radius: 4px 4px 0 0; min-height: 2px; }

/* Tabs / Unternavigation */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.sidenav a:hover { background: var(--surface); color: var(--text); }
.sidenav a[aria-current="page"] { background: var(--raised); color: var(--text); }
.sidenav .group { font-size: .78rem; color: var(--faint); padding: 14px 12px 4px; font-weight: 600; }
@media (max-width: 959px) { .sidenav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 8px; } .sidenav .group { display: none; } .sidenav a { white-space: nowrap; background: var(--surface); } }

/* Dashboard */
.find-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: 20px; background: var(--chalk); color: var(--night); text-decoration: none; }
.find-cta strong { font-family: var(--display); font-size: clamp(2rem, 6vw, 3rem); line-height: .9; }
.find-cta svg { width: 40px; height: 40px; flex: none; }
.live-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--surface); flex-wrap: wrap; }
.live-toggle.on { border-color: rgba(75, 214, 158, .5); background: linear-gradient(90deg, rgba(75, 214, 158, .08), transparent 70%); }
.item-link { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.item-link:hover .item-title { text-decoration: underline; text-underline-offset: 3px; }
.item-title { font-weight: 700; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(var(--bottombar) + 40px); color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Cookie-Hinweis & Dialoge */
.cookie { position: fixed; z-index: 70; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bottombar) + 12px); max-width: 520px; margin: 0 auto; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 18px; }
@media (min-width: 900px) { .cookie { bottom: 20px; left: auto; right: 20px; } }
dialog { background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 18px; padding: 22px; max-width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: color-mix(in srgb, var(--night) 75%, #000); backdrop-filter: blur(3px); }
.locale-dialog .grid { gap: 10px; }

/* Auth */
.auth { min-height: calc(100vh - var(--topbar)); display: grid; align-items: start; padding: 32px 0 calc(var(--bottombar) + 40px); }
@media (min-width: 900px) { .auth { padding-bottom: 60px; align-items: center; } }
.auth-card { width: 100%; max-width: 560px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(2.6rem, 9vw, 3.6rem); }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card { position: relative; }
.role-card input { position: absolute; opacity: 0; }
.role-card span { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.role-card strong { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.role-card small { color: var(--muted); font-size: .82rem; }
.role-card input:checked + span { border-color: var(--chalk); box-shadow: inset 0 0 0 1px var(--chalk); }
.role-card input:checked + span::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--chalk); color: var(--night); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.role-card input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--ember); transition: width .2s, background .2s; }

/* Admin */
.admin-body .topbar { background: var(--admin-topbar, color-mix(in srgb, var(--night) 92%, #000)); }
.admin-shell { display: grid; gap: 24px; padding-top: 24px; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 220px minmax(0, 1fr); } }
.inline-form { display: inline; }
.actions-cell { white-space: nowrap; display: flex; gap: 6px; }
pre.json { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .8rem; overflow: auto; max-height: 300px; white-space: pre-wrap; }

/* Druck (Belege) */
@media print {
  body { background: #fff; color: #000; }
  .topbar, .bottomnav, .footer, .no-print, .test-banner, .cookie { display: none !important; }
  .card { border-color: #ccc; background: #fff; }
  .muted { color: #555; }
}

/* Ergänzungen */
.inline-ico { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.verified-ico { width: 20px; height: 20px; color: var(--live); flex: none; }
.result-name .verified-ico { width: 18px; height: 18px; }
.list li.row { flex-wrap: nowrap; }
.list li.row svg { flex: none; color: var(--live); }
[hidden] { display: none !important; }
.actions-cell form { display: inline; }
.actions-cell details summary { list-style: none; cursor: pointer; }
.actions-cell details summary::-webkit-details-marker { display: none; }
.btn[aria-current="page"] { border-color: var(--line); }
.timeline { padding: 18px 20px 4px; }
@media (min-width: 640px) {
  .timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-bottom: 18px; }
  .timeline li { grid-template-columns: 1fr; padding: 0; gap: 8px; }
  .timeline li::before { margin-left: 0; }
  .timeline li::after { left: 14px; right: -8px; top: 10px; bottom: auto; width: auto; height: 2px; }
}

/* Logo: Jogwheel als "O" (Admin → Erscheinungsbild → Branding) */
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo-txt { letter-spacing: inherit; }
.logo-o { display: inline-flex; width: .9em; height: .9em; margin-right: var(--wordmark-ls, .14em); flex: none; }
.logo-icon .logo-o { width: 1.25em; height: 1.25em; margin-right: .35em; }
.logo-wheel { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .logo-spin-always .logo-wheel { animation: jog-spin 3.6s linear infinite; }
  .wordmark:hover .logo-spin-hover .logo-wheel, .logo-preview:hover .logo-spin-hover .logo-wheel { animation: jog-spin 1.8s linear infinite; }
}
@keyframes jog-spin { to { transform: rotate(360deg); } }
.logo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.logo-choice { position: relative; display: grid; gap: 10px; padding: 18px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; }
.logo-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.logo-choice input { position: absolute; opacity: 0; }
.logo-choice input:focus-visible + .logo-preview { outline: 2px solid var(--accent); outline-offset: 4px; }
.logo-preview { font-family: var(--display); font-weight: 700; font-size: 2.1rem; letter-spacing: var(--wordmark-ls, .14em); line-height: 1; min-height: 44px; display: flex; align-items: center; }
.logo-preview .brand-logo { height: 40px; }

/* Portfolio-Kategorien & Profil-URL */
.chip-btn { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.chip-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-gal-filter] { margin-bottom: 12px; }
.gallery figure { position: relative; margin: 0; }
.cat-tag { position: absolute; left: 6px; bottom: 6px; font-size: .72rem; padding: 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--night) 80%, transparent); }
.input-prefix { display: flex; }
.input-prefix .affix { position: static; transform: none; order: -1; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-right: 0; background: var(--raised); border-radius: var(--r-ctrl) 0 0 var(--r-ctrl); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.input-prefix .input { padding-right: 14px; border-radius: 0 var(--r-ctrl) var(--r-ctrl) 0; min-width: 0; }

.metric-locked { text-decoration: none; opacity: .85; }
.metric-locked:hover { border-color: var(--lilac); }
.trend-up { color: var(--live); } .trend-down { color: var(--ember); }
.bars-alt span { background: var(--lilac); }


/* PRO-Vergleich */
.pro-compare { padding: 0; overflow: hidden; }
.pro-head { display: grid; grid-template-columns: 1fr 1fr; }
.pro-head > div { padding: 18px 20px; }
.pro-head-pro { background: color-mix(in srgb, var(--lilac) 10%, var(--surface)); }
.pro-price { font-size: 2.2rem; margin: 6px 0 2px; }
.pro-table th:nth-child(n+2), .pro-table td:nth-child(n+2) { width: 26%; }
.pro-table td.pro-col { font-weight: 700; }
.pro-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line); }

.brand-logo-preset { height: 30px; width: auto; }
@media (min-width: 900px) { .brand-logo-preset { height: 34px; } }

/* Abmelden im Header */
.logout-form { display: contents; }

/* Mobile Feinschliff */
.locale-btn { white-space: nowrap; }
@media (max-width: 479px) {
  .hide-xs { display: none !important; }
  .topbar .wrap { gap: 10px; }
  .topbar-right .btn-sm { padding-inline: 12px; }
  .when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .when-row > span { grid-column: 1 / -1; }
  .when-row .input { width: 100% !important; }
  .cookie { padding: 12px 14px; }
  .cookie .small, .cookie p { font-size: .8rem; line-height: 1.45; margin-bottom: 8px !important; }
  .cookie .row { margin-top: 6px; }
}


/* ==========================================================================
   1.1 – Branding, Ticker, Hero-Effekte, Social, Admin-Erscheinungsbild, Plugins
   ========================================================================== */
.brand-logo { height: 34px; width: auto; display: block; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }

/* Hero-Laser: seit 1.7 im Plugin plugins/lasers */
.hero > .wrap { position: relative; z-index: 1; }

/* Laufband: siehe plugins/ticker/assets/ticker.css */

/* Social & Integrationen */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
.social-row a { color: var(--muted); }
.ig-stat { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; background: var(--surface); }
.ig-stat svg { width: 18px; height: 18px; }
.ig-stat:hover { border-color: var(--line-strong); }
.spotify-embed { min-height: 152px; display: grid; place-items: center; text-align: center; gap: 10px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.spotify-frame { width: 100%; height: 352px; border: 0; border-radius: 12px; display: block; }
.inline-ico { width: 1em; height: 1em; vertical-align: -2px; }

/* Admin: Tabs, Themes, Farben, Texte, Sortierung */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.theme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.theme-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.theme-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.theme-swatch { display: flex; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.theme-swatch span { flex: 1; }
.theme-swatch span:first-child { flex: 2.4; }
.color-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.color-field { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.color-field input[type="color"] { width: 100%; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; }
.text-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.text-row.is-changed { border-color: var(--accent); }
.sortable { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sortable-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.plugin-card.is-active { border-color: color-mix(in srgb, var(--live) 50%, var(--line)); }

/* ===================== Seiten-Editor: Blöcke ===================== */
.blk { position: relative; }
.blk-w-narrow .wrap { max-width: 760px; }
.blk-w-normal .wrap { max-width: 1000px; }
.blk-w-full .wrap { max-width: none; }
.blk-a-center .blk-inner, .blk-a-center .panel-title, .blk-a-center h2 { text-align: center; }
.blk-a-right .blk-inner { text-align: right; }
.blk-a-center .blk-buttons { justify-content: center; }
.blk-a-right .blk-buttons { justify-content: flex-end; }
.blk-pt { padding-top: var(--blk-pt); }
.blk-pb { padding-bottom: var(--blk-pb); }
.blk-pt > section, .blk-pt > .hero { padding-top: 0; }
.blk-pb > section, .blk-pb > .hero { padding-bottom: 0; }
.blk-bg-surface { background: var(--surface); }
.blk-bg-night { background: var(--night); }
.blk-bg-accent { background: var(--accent); color: var(--accent-ink); }
.blk-bg-accent .muted, .blk-bg-accent .faint { color: inherit; opacity: .75; }
.blk-bg-custom { background: var(--blk-bg, transparent); }
.blk-ink { color: var(--blk-ink); }
.blk-ink :is(h1, h2, h3, .muted, .hero-sub) { color: inherit; }
@media (max-width: 759px) { .blk-hide-m { display: none !important; } }
@media (min-width: 760px) { .blk-hide-d { display: none !important; } }
.blk-heading { margin: 0; overflow-wrap: anywhere; }
.blk-kicker { margin: 0 0 6px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.blk-bg-accent .blk-kicker { color: inherit; }
.blk-inner { padding-top: 12px; padding-bottom: 12px; }
.blk-text { max-width: 72ch; }
.blk-a-center .blk-text { margin-inline: auto; }
.blk-a-right .blk-text { margin-left: auto; }
.blk-text-s { font-size: .92rem; } .blk-text-l { font-size: 1.15rem; } .blk-text-xl { font-size: 1.4rem; line-height: 1.45; }
.prose p { margin: 0 0 .8em; } .prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 .8em; padding-left: 1.2em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.blk-figure { position: relative; margin: 0; max-width: 100%; transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--rot, 0)); }
.blk-figure img { display: block; width: 100%; height: auto; }
.blk-fig-center { margin-inline: auto; }
.blk-fig-right { margin-left: auto; }
.blk-shadow img { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.blk-figure figcaption { margin-top: 8px; text-align: center; }
.blk-img-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 140px; border: 2px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); }
.blk-split { display: grid; gap: 24px; align-items: center; }
.blk-split-media img { width: 100%; border-radius: var(--r-card); display: block; }
@media (min-width: 760px) { .blk-split { grid-template-columns: 1fr 1fr; gap: 48px; } .blk-split-right .blk-split-media { order: 2; } }
.blk-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.blk-hr { border: 0; border-top: var(--hr, 1px) solid var(--line-strong); margin: 16px 0; }
.blk-hr-dashed { border-top-style: dashed; }
.blk-hr-accent { border-top-color: var(--accent); }
.hero-logo { display: block; max-width: 100%; height: auto; margin: 0 0 18px; }
.hero-has-bg { background: linear-gradient(rgba(0,0,0,var(--hero-ov, .55)), rgba(0,0,0,var(--hero-ov, .55))), var(--hero-bg) center / cover no-repeat; }
.hero-solo .hero-grid { grid-template-columns: 1fr; }
.b-empty, .b-error { margin: 12px 0; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); text-align: center; }
.b-error { border-color: var(--danger); color: var(--danger); }

/* Vorschau im Editor (iframe) */
.ed-preview [data-block] { cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s; }
.ed-preview [data-block]:hover { outline-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ed-preview [data-block].is-selected { outline: 2px solid var(--accent); z-index: 25; }
.ed-preview [data-block]:hover::before, .ed-preview [data-block].is-selected::before {
  content: attr(data-label); position: absolute; z-index: 30; top: 0; left: 0; padding: 3px 8px; font: 600 11px/1.4 var(--sans);
  background: var(--accent); color: var(--accent-ink); border-radius: 0 0 6px 0; pointer-events: none;
}
.ed-preview .blk-hidden { opacity: .35; filter: grayscale(1); }
.ed-preview .blk-hidden::after { content: "⦸"; position: absolute; top: 4px; right: 8px; font-size: 18px; color: var(--muted); }
.ed-preview .b-zone:empty { min-height: 0; }
.ed-preview .is-selected [data-bimg] { cursor: move; outline: 1px dashed var(--accent); touch-action: none; }
.ed-preview .is-selected .hero-logo[data-bimg] { cursor: default; }
.ed-rs { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); border: 2px solid var(--night); cursor: nwse-resize; z-index: 31; touch-action: none; }
.ed-rs-wrap { position: relative; display: inline-block; }
.ed-preview .cookie { display: none !important; }

/* ===================== Kopf- und Fußzeile aus dem Seiten-Editor (1.7) ===================== */
.topbar .wordmark, .footer .wordmark { display: inline-flex; align-items: center; transform: translate(var(--logo-x, 0), var(--logo-y, 0)); }
.topbar .wordmark { font-size: calc(1.75rem * var(--logo-scale, 1)); }
.topbar .brand-logo, .topbar .brand-logo-preset { height: calc(34px * var(--logo-scale, 1)); max-height: calc(var(--topbar) - 6px); }
@media (max-width: 899px) { .topbar .brand-logo-preset { height: calc(30px * var(--logo-scale, 1)); } }
.topbar .topnav { gap: var(--nav-gap, 4px); }
.hd-nav-sized .topnav a { font-size: var(--nav-size); }
.hd-upper .topnav a { text-transform: uppercase; letter-spacing: .06em; }
.hd-full .wrap { max-width: none; }
.hd-nav-center .topnav { margin-inline: auto; }
.hd-nav-center .topbar-right { margin-left: 0; }
.hd-nav-right .topnav { margin-left: auto; }
.hd-nav-right .topbar-right { margin-left: 0; }
@media (min-width: 900px) {
  .hd-logo-center .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hd-logo-center .wordmark { grid-column: 2; grid-row: 1; justify-self: center; }
  .hd-logo-center .topnav { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
  .hd-logo-center.hd-nav-center .topnav, .hd-logo-center.hd-nav-right .topnav { justify-self: end; margin-right: 12px; }
  .hd-logo-center .topbar-right { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
}
@media (max-width: 899px) { .hd-logo-center .wrap { justify-content: center; } .hd-logo-center .topbar-right { position: absolute; right: var(--gutter); } .hd-logo-center .wrap { position: relative; } }
.topbar.lay-bg-transparent { background: transparent; }
.topbar.lay-bg-opaque { background: var(--night); }
.topbar.lay-bg-custom { background: var(--lay-bg, var(--night)); }
.topbar.hd-noblur { backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar.hd-static { position: relative; }
.topbar.hd-shadow { box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.topbar.lay-noborder, .footer.lay-noborder { border-bottom: 0; border-top: 0; }
.lay-ink, .lay-ink .topnav a, .lay-ink .locale-btn, .lay-ink.footer, .lay-ink .faint, .lay-ink .social-row a { color: var(--lay-ink); }
.lay-ink .icon-btn { color: var(--lay-ink); }

.footer { padding-top: var(--ft-pad, 32px); font-size: var(--ft-size, .88rem); }
@media (min-width: 900px) { .footer { padding-bottom: var(--ft-pad, 40px); } }
.footer.lay-bg-transparent { background: transparent; }
.footer.lay-bg-opaque { background: var(--surface); }
.footer.lay-bg-custom { background: var(--lay-bg, var(--surface)); }
.ft-inner { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ft-brandline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer .wordmark { font-size: calc(1.75rem * var(--logo-scale, .75)); }
.footer .brand-logo, .footer .brand-logo-preset { height: calc(34px * var(--logo-scale, .75)); }
.ft-copy { margin: 0; font-size: .85em; }
.ft-center .ft-inner, .ft-stack .ft-inner { flex-direction: column; align-items: flex-start; }
.ft-center .ft-inner { align-items: center; text-align: center; }
.ft-center .ft-brandline, .ft-center .footer-links, .ft-center .social-row { justify-content: center; }
.ft-center .ft-brand { align-items: center; }

/* Editor-Vorschau: Kopf-/Fußzeile anklickbar */
.ed-preview .topbar[data-block], .ed-preview .footer[data-block] { position: relative; }
.ed-preview .topbar[data-block] { position: sticky; }
.ed-preview .topbar.hd-static[data-block] { position: relative; }
.ed-preview .is-selected [data-bmove] { cursor: move; outline: 1px dashed var(--accent); outline-offset: 4px; touch-action: none; }

/* Hero: frei verschiebbare Elemente und vertikale Ausrichtung (Seiten-Editor) */
.hero-claim { font-size: calc(clamp(4.4rem, 19vw, 11.5rem) * var(--claim-scale, 1)); }
@media (min-width: 900px) {
  .hero .mv { transform: translate(var(--mx, 0px), var(--my, 0px)); }
  .hero-va-upper .hero-grid { align-items: start; }
  .hero-va-middle .hero-grid { align-items: center; }
  .hero-va-upper .hero-text, .hero-va-middle .hero-text { align-self: stretch; display: flex; flex-direction: column; }
  .hero-va-middle .hero-text { justify-content: center; }
}
.hero-mv-all .mv { transform: translate(var(--mx, 0px), var(--my, 0px)); }
.hero .hero-claim.mv, .hero .hero-sub.mv { position: relative; }
.ed-preview .is-selected .hero [data-bmove] { cursor: move; outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 4px; touch-action: none; }
.ed-preview .is-selected .hero .composer[data-bmove] input, .ed-preview .is-selected .hero .composer[data-bmove] .chip { cursor: move; }
.ed-preview .mv.is-moving { outline-style: solid !important; z-index: 20; }

/* Bot-Schutz */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.captcha-img { border-radius: 10px; border: 1px solid var(--line-strong); display: block; background: #121218; }
.captcha-input { max-width: 220px; text-transform: uppercase; letter-spacing: .25em; font-weight: 700; }
.activate-icon { font-size: 2.6rem; line-height: 1; }
.activate-steps { padding-left: 1.2em; display: grid; gap: 4px; margin: 0; }

/* Preise: Abend-/Stundenpreis, Rechner, Preisvorschlag (1.8) */
.price-sub { font-weight: 600; margin-top: 4px; }
.price-calc { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--raised); display: grid; gap: 6px; }
.price-calc-row { display: flex; align-items: center; gap: 10px; }
.price-calc-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.price-calc-row output { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-quote { display: grid; gap: 8px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctrl); background: var(--raised); }
.price-quote-lines { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .9rem; }
.price-quote-result strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.offer-choice { margin-bottom: 14px; }
.hint.is-warn { color: var(--danger); }
.offer-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-ctrl); border: 1px solid var(--line-strong); background: var(--raised); display: grid; gap: 6px; }
.offer-box.is-lower { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--raised)); }
.offer-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--warn); }
.offer-compare { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer-new { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; }
.offer-old { color: var(--muted); text-decoration: line-through; }
