/* Loco Studio – Website. Ruhige Produktseite: große Systemschrift, viel Weißraum, Kacheln, ein Akzent (Waldgrün/Mint aus
   dem eigenen Logo, Verlauf ins Petrol). Bewusst kein sattes Gelbgrün, um Abstand zur Farbwelt von Loxone zu halten
   (keine Verwechslungsgefahr, siehe RECHTLICHES.md). Keine externen Schriften, Bilder oder Skripte. */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --tile: #F5F5F7;
  --tile-2: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --line-soft: #E8E8ED;
  --accent: #0D7A70;
  --accent-hover: #0A655D;
  --accent-text: #FFFFFF;
  --link: #0D7A70;
  --grad: linear-gradient(90deg, #0A5F57 0%, #0D7A70 45%, #1677A0 100%);
  --focus: #0D7A70;
  --danger: #D70015;
  --ok: #0D7A70;
  --todo-bg: #FFF4CC;
  --todo-text: #5C4600;
  --nav-bg: rgba(255, 255, 255, .72);
  --shadow-window: 0 2px 4px rgba(0, 0, 0, .04), 0 30px 80px -20px rgba(0, 0, 0, .28);
  --radius-tile: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101010; --tile: #161617; --tile-2: #1D1D1F; --text: #F5F5F7; --muted: #A1A1A6;
    --line: #424245; --line-soft: #2A2A2D; --accent: #4FD1C5; --accent-hover: #6EDBD1; --accent-text: #04201D; --link: #4FD1C5;
    --grad: linear-gradient(90deg, #4FD1C5 0%, #7FDCE0 50%, #A9D8F0 100%); --focus: #4FD1C5; --danger: #FF6961; --ok: #4FD1C5;
    --todo-bg: #4A3B00; --todo-text: #FFE79A; --nav-bg: rgba(22, 22, 23, .72);
    --shadow-window: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 80px -20px rgba(0, 0, 0, .9);
  }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101010; --tile: #161617; --tile-2: #1D1D1F; --text: #F5F5F7; --muted: #A1A1A6;
  --line: #424245; --line-soft: #2A2A2D; --accent: #4FD1C5; --accent-hover: #6EDBD1; --accent-text: #04201D; --link: #4FD1C5;
  --grad: linear-gradient(90deg, #4FD1C5 0%, #7FDCE0 50%, #A9D8F0 100%); --focus: #4FD1C5; --danger: #FF6961; --ok: #4FD1C5;
  --todo-bg: #4A3B00; --todo-text: #FFE79A; --nav-bg: rgba(22, 22, 23, .72);
  --shadow-window: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 80px -20px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--text); margin: 0; }
p { margin: 0; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.wide { width: min(1200px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--bg); color: var(--text); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 1rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation: schmal und durchscheinend --------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line-soft); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none !important; }
.brand-icon { width: 26px; height: 26px; border-radius: 6px; display: block; }
.brand span { font: 600 15px var(--font-display); letter-spacing: -.01em; }
.app-icon { display: block; margin: 0 auto 1rem; filter: drop-shadow(0 10px 18px rgba(18, 63, 44, .22)); }
.hero-icon { width: clamp(96px, 12vw, 128px); height: auto; margin-bottom: 1.2rem; }
.page-hero .app-icon, .headline .app-icon { margin-bottom: 1rem; }
.foot-logo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--text); text-decoration: none !important; }
.foot-logo img { width: 32px; height: 32px; border-radius: 7px; display: block; }
.foot-logo span { font: 600 17px var(--font-display); letter-spacing: -.01em; }
.logo-dark { display: none !important; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: 12.5px; letter-spacing: -.01em; }
.nav a { color: var(--text); opacity: .8; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.theme { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--line-soft); }
.theme button { display: grid; place-items: center; width: 26px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.theme button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme button svg .fill { fill: currentColor; stroke: none; }
.theme button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.lang { display: flex; gap: 2px; }
.lang button { font: 600 11.5px var(--font); color: var(--muted); background: none; border: 0; border-radius: 6px; padding: .25rem .45rem; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--text); background: var(--line-soft); }
@media (max-width: 734px) {
  .top { height: auto; flex-wrap: wrap; padding-block: .6rem; row-gap: .3rem; }
  .nav { order: 3; width: 100%; gap: 1.1rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav .theme { margin-left: auto; }
}

/* Schaltflächen ------------------------------------------------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 400 17px var(--font);
  letter-spacing: -.022em; padding: 12px 22px; min-height: 44px; border-radius: 980px; border: 0; background: var(--accent);
  color: var(--accent-text); cursor: pointer; text-decoration: none !important; transition: background-color .15s; }
.button:hover { background: var(--accent-hover); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.button.secondary:hover { background: var(--link); color: var(--bg); }
.button.small { font-size: 14px; padding: 8px 16px; min-height: 34px; }
.button.quiet { background: var(--line-soft); color: var(--text); }
.button.quiet:hover { background: var(--line); }
.button.danger { background: var(--danger); color: #fff; }
.button[disabled] { opacity: .5; cursor: progress; }
.more { font-size: 17px; color: var(--link); }
.more::after { content: " ›"; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: center; }

/* Einstieg --------------------------------------------------------------------------------------------------------- */
.hero { text-align: center; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: 0; overflow: hidden; }
.product { font: 600 clamp(19px, 2vw, 24px) var(--font-display); letter-spacing: .004em; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.hero .lead { margin: 1.2rem auto 0; max-width: 30em; font: 400 clamp(19px, 2.2vw, 28px)/1.3 var(--font-display); color: var(--muted); letter-spacing: -.01em; }
.hero .cta-row { margin-top: 2rem; }
.hero-limit { margin-top: .35rem; font-size: 14px; color: var(--text); font-weight: 500; }
.hero-fine { margin-top: .4rem; font-size: 12px; color: var(--muted); }
.badge-line { margin-top: 1.1rem; font-size: 14px; color: var(--muted); }
.badge-line::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: .1em; }
.stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.stage::before { content: ""; position: absolute; inset: 10% 5% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(13, 122, 112, .22), transparent 70%); filter: blur(30px); z-index: 0; }

/* App-Fenster als Illustration (eigene Gestaltung) */
.window { position: relative; z-index: 1; margin: 0 auto; max-width: 1040px; text-align: left; background: var(--tile-2);
  border-radius: 14px; box-shadow: var(--shadow-window), 0 0 0 1px rgba(0, 0, 0, .08); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--tile); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.window-bar i:nth-child(2) { background: #FEBC2E; }
.window-bar i:nth-child(3) { background: #28C840; }
.window-bar span { margin: 0 auto; font-size: 13px; font-weight: 600; color: var(--muted); padding-right: 52px; }
.shot { display: block; width: 100%; height: auto; }
.shot-caption { position: relative; z-index: 1; margin: 1.2rem auto 0; max-width: 46em; text-align: center; font-size: 13px; color: var(--muted); }

/* Abschnitte --------------------------------------------------------------------------------------------------------- */
section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.alt { background: var(--bg-alt); }
.headline { text-align: center; max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.headline .eyebrow { display: block; font: 600 clamp(17px, 1.8vw, 21px) var(--font-display); color: var(--muted); margin-bottom: .5rem; }
.headline h2, .headline h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.03em; font-weight: 700; }
.headline p { margin: 1.1rem auto 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }

.statement { font: 600 clamp(22px, 2.6vw, 36px)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--muted); margin: 0 auto; }
.statement .line { display: block; }
@media (min-width: 760px) { .statement .line { white-space: nowrap; } }
.statement strong { color: var(--text); font-weight: 600; }

/* Kacheln */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; background: var(--tile); border-radius: var(--radius-tile); padding: 36px 32px 38px; overflow: hidden; position: relative; }
.alt .tile { background: var(--tile-2); }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.14; letter-spacing: -.02em; }
.tile p { margin-top: .7rem; color: var(--muted); font-size: 17px; }
.big { display: block; font: 700 clamp(56px, 8vw, 96px)/1 var(--font-display); letter-spacing: -.04em; margin-bottom: .9rem; }
.tile .icon { width: 44px; height: 44px; margin-bottom: 1.4rem; }
.tile .icon svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.chips span { font-size: 13px; padding: 5px 12px; border-radius: 980px; background: var(--bg); color: var(--text); border: 1px solid var(--line-soft); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: span 2; } .tile.half { grid-column: span 1; } }
@media (max-width: 600px) { .tile.half { grid-column: span 2; } .tile { padding: 28px 24px 30px; } }
.note { max-width: 760px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: center; color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }

/* Schwarzer Abschnitt */
.dark { background: #000; color: #F5F5F7; --text: #F5F5F7; --muted: #A1A1A6; --tile: #1D1D1F; --line-soft: #2A2A2D; --link: #4FD1C5; --accent: #4FD1C5; --accent-text: #04201D; }
.dark h2, .dark h3 { color: #F5F5F7; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); max-width: 980px; margin: 0 auto; }
.trio h3 { font-size: 21px; margin: 1rem 0 .5rem; }
.trio p { color: var(--muted); }
.trio .icon svg { width: 40px; height: 40px; fill: none; stroke: #4FD1C5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 734px) { .trio { grid-template-columns: 1fr; } }

/* Schritte */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--tile); border-radius: var(--radius-tile); padding: 32px 28px 34px; }
.alt .steps li { background: var(--tile-2); }
.steps li::before { content: counter(step); display: block; font: 700 64px/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 1.2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 21px; margin-bottom: .4rem; }
.steps p { color: var(--muted); }
@media (max-width: 734px) { .steps { grid-template-columns: 1fr; } }

/* Formulare ---------------------------------------------------------------------------------------------------------- */
.form-card { max-width: 640px; margin: 0 auto; background: var(--tile-2); border-radius: var(--radius-tile); padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 0 0 1px var(--line-soft); }
.form-panel { background: var(--tile); border-radius: var(--radius-tile); padding: clamp(24px, 4vw, 40px); }
.stack { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.hint { font-size: 14px; font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"], input[type="password"], input:not([type]), select, textarea {
  font: 400 17px var(--font); letter-spacing: -.022em; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 140px; line-height: 1.47; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="file"] { font: 15px var(--font); width: 100%; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); color: var(--text); }
input[type="file"]::file-selector-button { font: 14px var(--font); border: 0; border-radius: 980px; padding: 7px 14px; margin-right: 12px; background: var(--line-soft); color: var(--text); cursor: pointer; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 14px; margin: 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.stack > button[type="submit"] { margin-top: 4px; }
.form-message { min-height: 1.4em; font-size: 15px; text-align: center; }
.form-message.ok { color: var(--ok); font-weight: 600; }
.form-message.error { color: var(--danger); }
.form-message.visually-hidden { min-height: 0; }
.warn { padding: 14px 16px; border-radius: 14px; background: var(--todo-bg); color: var(--todo-text); font-size: 14px; }
noscript p { padding: 12px 16px; border-radius: 12px; background: var(--todo-bg); color: var(--todo-text); font-size: 15px; }
.fine-print { margin-top: 1.2rem; text-align: center; font-size: 13px; color: var(--muted); }

/* Unterseiten */
.page-hero { text-align: center; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.page-hero p { margin: 1rem auto 0; max-width: 36em; font: 400 clamp(19px, 2vw, 24px)/1.35 var(--font-display); color: var(--muted); }
.page-body { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tips li { background: var(--tile); border-radius: 20px; padding: 22px 24px; }
.tips strong { display: block; font: 600 17px var(--font-display); margin-bottom: .25rem; }
.tips span { color: var(--muted); font-size: 15px; }
.panel-title { font-size: 24px; letter-spacing: -.02em; margin-bottom: .4rem; }
.form-panel > .hint { margin-bottom: 1.4rem; }

/* Wunschliste -------------------------------------------------------------------------------------------------------- */
.wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wish { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--tile); border-radius: 22px; padding: 22px 24px; }
.wish h3 { font-size: 19px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.wish p { margin-top: .3rem; color: var(--muted); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.vote { display: grid; justify-items: center; align-content: center; gap: 0; width: 64px; height: 64px; border-radius: 18px; border: 0;
  background: var(--bg); color: var(--text); font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .1s; }
.vote svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vote b { font: 600 17px var(--font-display); }
.vote:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.vote:active { transform: scale(.96); }
.vote[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); box-shadow: none; }
.vote[disabled] { cursor: default; opacity: .55; }
.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 3px 9px; border-radius: 980px;
  background: var(--line-soft); color: var(--text); margin-left: .5rem; vertical-align: .2em; }
.status.planned { background: color-mix(in srgb, #4FD1C5 18%, transparent); color: var(--accent); }
.status.in_progress { background: var(--accent); color: var(--accent-text); }
.status.done { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.empty { color: var(--muted); padding: 1rem 0; list-style: none; }
/* Mitreden: Wunschliste und Fehlerbericht als lebendige Kacheln */
.talk { display: flex; flex-direction: column; isolation: isolate; }
.talk::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; top: -170px; right: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: .5; }
.talk-wish { --badge: linear-gradient(135deg, #0A5F57, #0D7A70 55%, #1677A0); --glow: color-mix(in srgb, var(--accent) 30%, transparent); }
.talk-bug { --badge: linear-gradient(135deg, #FF9F0A, #FF5E3A); --glow: color-mix(in srgb, #FF7A2E 26%, transparent); }
.talk-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--badge); margin-bottom: 1.3rem;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.talk-badge svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.talk-eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.talk-actions { margin-top: auto; padding-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.talk-actions .more { font-size: 15px; }
.teaser { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 10px; }
.teaser li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--tile-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line-soft); }
.teaser li.empty { display: block; color: var(--muted); box-shadow: none; background: none; padding: 0; }
.teaser .rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--font-display);
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.teaser li:first-child .rank { background: var(--accent); color: var(--accent-text); }
.wish-body { display: grid; gap: 7px; min-width: 0; }
.wish-title { font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-bar { height: 4px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.wish-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.wish-votes { display: inline-flex; align-items: center; gap: 4px; font: 600 15px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.wish-votes::before { content: ""; width: 0; height: 0; border-inline: 5px solid transparent; border-bottom: 7px solid var(--accent); margin-top: -2px; }
.talk-steps { list-style: none; counter-reset: talk; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 10px; }
.talk-steps li { counter-increment: talk; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; font-size: 16px;
  color: var(--text); padding: 12px 14px; background: var(--tile-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line-soft); }
.talk-steps li::before { content: counter(talk); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--font-display); color: #C2410C; background: color-mix(in srgb, #FF9F0A 18%, transparent); }
.talk-note { font-size: 14px !important; margin-top: 1rem !important; }
.talk-note::before { content: "⚠︎ "; color: #E8590C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .talk-steps li::before { color: #FFB561; } }
:root[data-theme="dark"] .talk-steps li::before { color: #FFB561; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 24px 4px; font: 600 clamp(17px, 1.8vw, 21px) var(--font-display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 30px/1 var(--font); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; color: var(--muted); max-width: 46em; }

/* Fuß ------------------------------------------------------------------------------------------------------------------ */
.foot-band { background: var(--bg-alt); }
.foot { padding-block: 22px 28px; font-size: 12px; color: var(--muted); line-height: 1.5; letter-spacing: -.01em; text-align: center; }
.foot p { max-width: 80ch; margin-inline: auto; }
.foot p + p { margin-top: .5rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 0; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.foot nav a { color: var(--text); opacity: .8; padding-right: .8rem; margin-right: .8rem; border-right: 1px solid var(--line); }
.foot nav a:last-child { border-right: 0; }

/* Textseiten (Datenschutz, Impressum, vom Server erzeugte Seiten) ------------------------------------------------------------ */
.plain main { padding-block: clamp(2.5rem, 6vw, 4.5rem) 5rem; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin-bottom: .6rem; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 2.6rem 0 .7rem; }
.prose h3 { font-size: 19px; margin: 1.8rem 0 .5rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose .stand { color: var(--muted); margin-bottom: 2rem; }
.prose .en { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .3em; border-radius: 5px; }
p.todo, li.todo { padding: .6rem .8rem; border-radius: 10px; }
.message-page { text-align: center; }
.message-page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; font-weight: 700; }
.lead-sm { margin: 1rem auto 2rem; max-width: 34em; font-size: 19px; color: var(--muted); }
.message-page form { display: inline-block; }
.form-error { color: var(--danger); }

/* Admin --------------------------------------------------------------------------------------------------------------------- */
.admin { width: min(1100px, 100% - 44px); margin-inline: auto; padding-block: 1.5rem 5rem; }
.admin h1 { font-size: 40px; letter-spacing: -.03em; font-weight: 700; }
.admin section { padding-block: 2rem 0; }
.admin h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 1rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 0; }
.admin-nav a { padding: 7px 14px; border-radius: 980px; background: var(--bg-alt); color: var(--text); font-size: 14px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-item { background: var(--tile); border-radius: 20px; padding: 20px; display: grid; gap: 12px; }
.admin-item.done { opacity: .6; }
.admin-edit { display: grid; gap: 10px; }
.admin-edit label { display: grid; gap: 4px; }
.admin-edit textarea { min-height: 70px; }
.admin .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin .row label { display: flex; align-items: center; gap: .6rem; }
.admin .row select { width: auto; min-height: 38px; padding-block: 6px; }
.admin .meta { color: var(--muted); font-size: 13px; margin: 0; }
.admin .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-add { margin-top: 1rem; }
.admin-add summary { cursor: pointer; font-weight: 600; margin-bottom: .8rem; color: var(--link); }
form.inline { display: inline; }
.notice { margin-top: 1rem; padding: 10px 16px; border-radius: 12px; background: var(--bg-alt); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.login-card { max-width: 400px; margin: 0 auto; }
.foot-band { border-top: 1px solid var(--line-soft); }
body.plain { min-height: 100vh; display: flex; flex-direction: column; } body.plain > main { flex: 1; width: 100%; }
body.plain > main.narrow { width: min(720px, 100% - 44px); }
body.plain > main.admin { width: min(1100px, 100% - 44px); }
@media (max-width: 600px) { .wish { align-items: start; padding: 18px; gap: 14px; } .vote { width: 54px; height: 58px; } }
@media (forced-colors: active) { .gradient-text, .steps li::before { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

/* Slideshow ---------------------------------------------------------------------------------------------------------------- */
.gallery { padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.slides { --slide: min(960px, 84vw, calc((100svh - 240px) * 1.6)); display: flex; gap: clamp(16px, 2.5vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px calc((100% - var(--slide)) / 2) 28px; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.slide { flex: 0 0 var(--slide); margin: 0; scroll-snap-align: center; transition: opacity .3s ease; opacity: .45; }
.slide.active { opacity: 1; }
.slide:not(.active) figcaption { visibility: hidden; }
.slide-frame { aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 18px; overflow: hidden; background: var(--tile);
  box-shadow: 0 0 0 1px var(--line-soft), 0 24px 60px -28px rgba(0, 0, 0, .45); }
.slide-frame .shot { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { max-width: 46em; margin: 1.2rem auto 0; text-align: center; color: var(--muted); font-size: 17px; }
.slide figcaption strong { color: var(--text); font-weight: 600; }
.slide-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: .4rem; }
.slide-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--line-soft);
  color: var(--text); cursor: pointer; }
.slide-nav:hover { background: var(--line); }
.slide-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 10px; padding: 8px 14px; border-radius: 980px; background: var(--line-soft); }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--muted); opacity: .45; cursor: pointer;
  transition: width .2s ease, opacity .2s ease; }
.dot[aria-current] { width: 24px; border-radius: 980px; opacity: 1; background: var(--text); }
@media (prefers-reduced-motion: reduce) { .slide, .dot { transition: none; } }

/* Videos: selbst gehostet, laden erst beim Abspielen */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.video-card h3 { margin: 1.1rem 0 .3rem; font-size: 21px; }
.video-card p { margin: 0; color: var(--muted); }
.video { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-soft), 0 24px 60px -28px rgba(0, 0, 0, .45); }
.video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 734px) { .video-grid { grid-template-columns: 1fr; } }

/* Beta-Plätze: echte Zahlen aus /api/beta */
.seats { max-width: 640px; margin: -.4rem auto 1.6rem; text-align: center; }
.seats-limit { margin: 0 0 .7rem; font-weight: 600; }
.seats-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px;
  overflow: hidden; background: var(--line-soft); }
.seats-bar::-webkit-progress-bar { background: var(--line-soft); border-radius: 999px; }
.seats-bar::-webkit-progress-value { background: var(--grad); border-radius: 999px; }
.seats-bar::-moz-progress-bar { background: var(--grad); border-radius: 999px; }
.seats-text { margin: .6rem 0 0; font-size: 15px; color: var(--muted); }
.seats-note { margin: .3rem 0 0; font-size: 13px; color: var(--muted); }

/* Fußnote: einmal an der ersten Nennung von Loxone Config, Ziel ist der Markenhinweis im Fuß */
sup.fn, .fn-mark { font-size: .5em; line-height: 0; vertical-align: super; font-weight: 600; }
sup.fn a { color: var(--link); text-decoration: none; padding: 0 .1em; }
sup.fn a:hover { text-decoration: underline; }
#marken { scroll-margin-top: 90px; }
#marken:target { color: var(--text); }
.fn-mark { font-size: .8em; }

/* Admin: Besuche */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.4rem 0 .4rem; }
.stat-card { background: var(--tile); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.stat-card b { font: 700 30px var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-card span { color: var(--muted); font-size: 14px; }
.chart { display: block; width: 100%; height: 180px; background: var(--tile); border-radius: 16px; padding: 12px; }
.chart .pv, .chart-legend .key.pv { fill: var(--line); background: var(--line); }
.chart .vis, .chart-legend .key.vis { fill: var(--accent); background: var(--accent); }
.chart-legend { margin-top: .5rem !important; }
.chart-legend .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 .3rem 0 .6rem; vertical-align: -1px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.stat-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stat-table td { padding: 7px 4px; border-bottom: 1px solid var(--line-soft); }
.stat-table td.num { text-align: right; font-variant-numeric: tabular-nums; width: 4.5em; }
.stat-table td.share { width: 30%; }
.share span { display: block; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.share i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.share i.w0 { width: 0%; } .share i.w5 { width: 5%; } .share i.w10 { width: 10%; } .share i.w15 { width: 15%; } .share i.w20 { width: 20%; } .share i.w25 { width: 25%; } .share i.w30 { width: 30%; } .share i.w35 { width: 35%; } .share i.w40 { width: 40%; } .share i.w45 { width: 45%; } .share i.w50 { width: 50%; } .share i.w55 { width: 55%; } .share i.w60 { width: 60%; } .share i.w65 { width: 65%; } .share i.w70 { width: 70%; } .share i.w75 { width: 75%; } .share i.w80 { width: 80%; } .share i.w85 { width: 85%; } .share i.w90 { width: 90%; } .share i.w95 { width: 95%; } .share i.w100 { width: 100%; }
.admin-nav a[aria-current] { background: var(--accent); color: var(--accent-text); }
