/* =========================================================
   AUTOVIQ – Stylesheet (Design „Futuristisch/Neon“)
   Farben & Abstände zentral in :root anpassen.
   ========================================================= */

@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000000;
  --bg-2: #07080f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #0b0d18;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #eef0ff;
  --text-dim: #aab3d6;
  --text-faint: #6c7499;
  --cyan: #00c8ff;
  --violet: #8c3cff;
  --pink: #ff3cac;
  --green: #00ffa3;
  --accent: var(--cyan);
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --grad-3: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  --danger: #ff5c7a;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.5rem, 1.4rem + 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(120, 140, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 255, .06) 1px, transparent 1px),
    radial-gradient(900px 600px at 75% -5%, rgba(0, 200, 255, .20), transparent 60%),
    radial-gradient(800px 600px at 5% 45%, rgba(140, 60, 255, .20), transparent 60%),
    radial-gradient(700px 500px at 90% 95%, rgba(255, 60, 172, .10), transparent 60%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.03em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { 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(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.tight { padding-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #cfc6ff; border: 1px solid rgba(155, 140, 242, .4); background: rgba(155, 140, 242, .06);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.lead { font-size: var(--step-1); color: var(--text-dim); line-height: 1.55; max-width: 62ch; }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.gradient-text { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1.2 var(--font-body); cursor: pointer; text-decoration: none !important; color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 0 36px -8px var(--violet); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px -6px var(--violet); }
.btn.ghost { background: transparent; border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--cyan); background: rgba(155, 140, 242, .06); }
.btn.danger { background: transparent; border-color: rgba(255, 92, 122, .5); color: var(--danger); }
.btn.small { padding: .6em 1.15em; font-size: var(--step--1); }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .55)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 800; letter-spacing: .2em; font-size: 1.05rem; text-decoration: none !important; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 12px rgba(0, 200, 255, .7)); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.nav a { color: var(--text-dim); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .1); }
.nav .nav-login { color: var(--text); }
.nav .btn { color: #fff; padding: 8px 16px; margin-left: 4px; }
.menu-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong); color: var(--text); width: 46px; height: 46px; border-radius: 999px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s var(--ease), background .2s; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; height: calc(100dvh - 80px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px; border: 0; border-radius: 0;
    background: #000; padding: 16px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .menu-open { overflow: hidden; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav .btn { margin: 12px 0 0; padding: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto .4em; }
.hero .lead { margin: 0 auto 2.2rem; }
.hero .btn-row { justify-content: center; }
.hero-logo { width: 120px; margin: 0 auto 2rem; filter: drop-shadow(0 0 30px rgba(0, 200, 255, .55)); animation: float 7s ease-in-out infinite; }
.checks { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-dim); font-size: var(--step--1); }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .5em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); max-width: 18ch; }
.page-hero .btn-row { margin-top: 1.5rem; }

/* ---------- Glass-Karten ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; transition: transform .25s var(--ease), background .25s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(155, 140, 242, .45), transparent 40%, transparent 60%, rgba(140, 60, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7; transition: opacity .25s;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); background: var(--surface-2); }
a.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-dim); }
.card .more { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--cyan); }
.num { font: 600 .8rem var(--font-head); letter-spacing: .15em; color: var(--cyan); margin-bottom: 1rem; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; color: #fff;
  background: linear-gradient(135deg, rgba(155, 140, 242, .25), rgba(140, 60, 255, .25)); border: 1px solid var(--border-strong);
  box-shadow: 0 0 24px -8px var(--cyan);
}
.icon svg { width: 26px; height: 26px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: rgba(155, 140, 242, .08); color: #cfc6ff; border: 1px solid rgba(155, 140, 242, .3); margin-bottom: 1rem; align-self: flex-start; }

.list-check { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .55em; }
.list-check li { padding-left: 1.7em; position: relative; color: var(--text-dim); }
.list-check li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75em; height: .75em; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--violet); }
.list-check.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55em 2em; }
@media (max-width: 640px) { .list-check.cols { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font: 800 2rem var(--font-head); margin-bottom: .6rem;
  background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }

/* ---------- Statistik-Leiste ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { text-align: center; padding: 24px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font: 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem) var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stat span { color: var(--text-dim); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Preise ---------- */
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; margin: .2em 0 .1em; letter-spacing: -.03em; }
.price-card .price small { font-size: .95rem; font-weight: 500; color: var(--text-dim); margin-right: .3em; }
.price-card .price-note { font-size: var(--step--1); color: var(--text-faint); margin-bottom: 1.2rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: linear-gradient(180deg, rgba(140, 60, 255, .14), rgba(155, 140, 242, .05)); }
.price-card.featured::before { opacity: 1; background: var(--grad-3); }
.price-card.featured::after { content: "Beliebt"; position: absolute; top: -12px; right: 22px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.price-mini { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-top: .3rem; letter-spacing: -.03em; }
.fineprint { font-size: var(--step--1); color: var(--text-faint); margin-top: 1.5rem; }

/* ---------- Preisrechner ---------- */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.calc legend { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; padding: 0; }
.legend-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .82rem; margin-right: .6em; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 540px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px 16px 50px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.option .box::before { content: ""; position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); transition: all .15s; }
.option input:checked + .box { border-color: var(--cyan); background: rgba(155, 140, 242, .07); box-shadow: 0 0 24px -10px var(--cyan); }
.option input:checked + .box::before { background: var(--grad); border-color: transparent; box-shadow: 0 0 10px var(--violet); }
.option input:checked + .box::after { content: "✓"; position: absolute; left: 21px; top: 15px; font-size: .85rem; font-weight: 800; color: #fff; }
.option input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.option:hover .box { border-color: var(--border-strong); }
.option strong { font-weight: 600; }
.option .opt-price { color: var(--cyan); font-size: .9rem; font-weight: 600; }
.option .opt-desc { color: var(--text-dim); font-size: .88rem; line-height: 1.45; }
.summary { position: sticky; top: 100px; }
.summary .total { font-family: var(--font-head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: .2em 0; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary .monthly { color: var(--text-dim); margin-bottom: 1rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 1px solid var(--border); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: .55em 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--text-dim); }
.summary li span:last-child { color: var(--text); white-space: nowrap; }
.summary .empty { color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: rgba(155, 140, 242, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cyan); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-dim); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px;
  padding: clamp(44px, 7vw, 90px) var(--gutter); border: 1px solid var(--border-strong);
  background: radial-gradient(600px 300px at 20% 0%, rgba(155, 140, 242, .22), transparent 70%), radial-gradient(600px 300px at 80% 100%, rgba(140, 60, 255, .28), transparent 70%), var(--bg-2);
}
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto 2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Formulare ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 14px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .92rem; font-weight: 500; }
.opt { color: var(--text-faint); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { padding: 10px; }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23aab3d6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
select option { background: var(--surface-solid); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(155, 140, 242, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-weight: 400; color: var(--text-dim); }
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--violet); padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { flex: 1 1 140px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--violet); padding: 0; }
.radio-row label:has(input:checked) { border-color: var(--cyan); background: rgba(155, 140, 242, .07); }
.notice { padding: 14px 16px; border-radius: 14px; background: rgba(0, 255, 163, .08); border: 1px solid rgba(0, 255, 163, .35); color: #c4ffe7; margin-top: 16px; font-size: .95rem; }
.notice.error { background: rgba(255, 92, 122, .08); border-color: rgba(255, 92, 122, .45); color: #ffd0d9; }

/* ---------- Anmeldung ---------- */
.auth { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 48px 0 80px; }
.auth .card { width: min(100%, 480px); }
.auth h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.auth .alt { text-align: center; color: var(--text-dim); font-size: .95rem; margin-top: 1.4rem; }
.auth .hint { font-size: .85rem; color: var(--text-faint); margin-top: 1rem; }

/* ---------- Kundenbereich / Admin ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 36px; padding-bottom: 80px; align-items: start; }
.app-nav { position: sticky; top: 100px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.app-nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--text-dim); font-weight: 500; }
.app-nav button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.app-nav button[aria-selected="true"] { background: linear-gradient(90deg, rgba(155, 140, 242, .16), rgba(140, 60, 255, .16)); color: var(--text); }
.app-nav button:focus-visible { outline: 2px solid var(--cyan); }
.app-nav .badge { margin-left: auto; }
.app-nav hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; width: auto; }
.app-main { min-width: 0; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.app-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin: 0; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .app-nav { position: static; display: flex; overflow-x: auto; border-radius: 999px; padding: 6px; }
  .app-nav button { white-space: nowrap; border-radius: 999px; padding: 9px 14px; }
  .app-nav hr { display: none; }
}
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-dim); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-anfrage, .badge.s-offen, .badge.s-neu { color: #ffd166; border-color: rgba(255, 209, 102, .4); }
.badge.s-konzept { color: #cfc6ff; border-color: rgba(155, 140, 242, .4); }
.badge.s-entwicklung { color: #b38cff; border-color: rgba(140, 60, 255, .5); }
.badge.s-test { color: #ff8ad0; border-color: rgba(255, 60, 172, .45); }
.badge.s-fertig, .badge.s-bezahlt, .badge.s-erledigt { color: var(--green); border-color: rgba(0, 255, 163, .4); }
.badge.count { background: var(--grad); color: #fff; border: 0; }
.badge.count::before { display: none; }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 12px 0 6px; }
.progress span { display: block; height: 100%; background: var(--grad-3); border-radius: inherit; box-shadow: 0 0 12px var(--violet); }
.list { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.row .grow { flex: 1 1 220px; min-width: 0; }
.row .meta, .meta { color: var(--text-faint); font-size: .85rem; }
.empty-state { padding: 34px; text-align: center; color: var(--text-dim); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.thread { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; margin-bottom: 14px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.msg.me { margin-left: auto; background: linear-gradient(135deg, rgba(155, 140, 242, .18), rgba(140, 60, 255, .18)); border-color: rgba(140, 60, 255, .35); }
.msg .meta { display: block; font-size: .76rem; margin-bottom: 4px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-faint); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpis .card { padding: 18px 20px; }
.kpis b { font: 800 1.9rem var(--font-head); display: block; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 840px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--text-dim); }
.legal .box { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(48px, 8vw, 96px); padding: 56px 0 28px; background: rgba(0, 0, 0, .6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--text-dim); padding: 4px 0; font-size: .95rem; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-grid p { color: var(--text-dim); font-size: .95rem; max-width: 32ch; margin-top: 1rem; }
.copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Scroll-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   KI-Assistent (Chat-Fenster)
   ========================================================= */
.avchat { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-size: .95rem; }
.avchat-fab { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 1px solid rgba(155, 140, 242, .45); cursor: pointer; background: linear-gradient(180deg, #11131f, #05060c); box-shadow: 0 0 22px rgba(140, 60, 255, .55), 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.avchat-fab::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(140, 60, 255, .6); animation: ping 2.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.avchat-fab:hover { transform: scale(1.06); }
.avchat-fab img { width: 40px; height: 40px; border-radius: 50%; }
.avchat-fab span { position: absolute; right: 66px; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #0b0d18; border: 1px solid var(--border-strong); color: var(--text); font: 600 .82rem var(--font-body); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.avchat-fab:hover span, .avchat-fab:focus-visible span { opacity: 1; transform: none; }
.avchat.open .avchat-fab { display: none; }
.avchat-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 40px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #0b0d18, #030409); border: 1px solid rgba(155, 140, 242, .3); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), 0 0 50px -10px rgba(140, 60, 255, .6); }
.avchat-panel[hidden] { display: none; }
.avchat-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.avchat-panel header img { border-radius: 50%; }
.avchat-panel header b { display: block; font-size: .98rem; }
.avchat-panel header small { color: var(--text-faint); font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.avchat-panel header small i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.avchat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.avchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.avmsg { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: .93rem; overflow-wrap: anywhere; }
.avmsg p { margin: 0 0 .5em; } .avmsg p:last-child { margin: 0; }
.avmsg ul { margin: .3em 0 .5em; padding-left: 1.1em; } .avmsg li { margin: .15em 0; }
.avmsg.bot { background: rgba(255, 255, 255, .06); border-bottom-left-radius: 5px; }
.avmsg.me { align-self: flex-end; background: #eef0ff; color: #0b0d18; border-bottom-right-radius: 5px; }
.avmsg.err { background: rgba(255, 92, 122, .12); border: 1px solid rgba(255, 92, 122, .35); }
.avmsg a { color: #cfc6ff; text-decoration: underline; }
.avmsg.typing { display: flex; gap: 5px; padding: 14px; }
.avmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: blink 1.2s infinite; }
.avmsg.typing span:nth-child(2) { animation-delay: .2s; } .avmsg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.avchat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.avchat-chips[hidden] { display: none; }
.avchat-chips button { border: 1px solid rgba(155, 140, 242, .35); background: rgba(140, 60, 255, .1); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 500 .8rem var(--font-body); cursor: pointer; }
.avchat-chips button:hover { background: rgba(140, 60, 255, .22); }
.avchat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.avchat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 14px; padding: 11px 13px; font-size: .93rem; }
.avchat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--grad); box-shadow: 0 0 16px rgba(140, 60, 255, .6); flex: none; }
.avchat-note { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--text-faint); line-height: 1.35; }
.avchat-note a { color: var(--text-dim); }
@media (max-width: 520px) {
  .avchat { right: 12px; bottom: 12px; }
  .avchat-fab span { display: none; }
  .avchat-fab { width: 52px; height: 52px; }
  .avchat.open { inset: 0; right: 0; bottom: 0; }
  .avchat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .avchat-fab::before { animation: none; } }

/* =========================================================
   Terminbuchung
   ========================================================= */
.booking { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.booking > * { min-width: 0; }
@media (max-width: 860px) { .booking { grid-template-columns: minmax(0, 1fr); } }
.step-title { font-size: 1.15rem; display: flex; align-items: center; margin-bottom: 14px; background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.days button, .times button { cursor: pointer; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.days button { flex: none; width: 76px; padding: 10px 6px; display: grid; justify-items: center; gap: 1px; scroll-snap-align: start; }
.days button small { font-size: .74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.days button b { font: 800 1.5rem var(--font-head); line-height: 1.1; }
.days button i { font-style: normal; font-size: .68rem; color: var(--green); margin-top: 4px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.times button { padding: 11px 6px; font-weight: 600; }
.days button:hover, .times button:hover { border-color: var(--border-strong); }
.days button[aria-selected="true"], .times button[aria-selected="true"] { border-color: var(--cyan); background: rgba(155, 140, 242, .1); box-shadow: 0 0 22px -8px var(--cyan); }
.days button:focus-visible, .times button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chosen { padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--border-strong); color: var(--text-dim); margin: 0 0 16px; font-size: .95rem; }
.chosen.on { border-style: solid; border-color: rgba(0, 255, 163, .4); background: rgba(0, 255, 163, .06); color: var(--text); }
.booked { text-align: center; padding: 10px 0; }
.booked .icon { margin: 0 auto 1rem; }
.booked .big { font: 700 1.25rem var(--font-head); margin: .4em 0; }
.booked .btn-row { justify-content: center; margin-top: 1rem; }

/* =========================================================
   Bewertungen
   ========================================================= */
.stars { display: inline-flex; gap: 2px; font-size: 1.15rem; line-height: 1; }
.stars i { font-style: normal; color: rgba(255, 255, 255, .18); }
.stars i.on { color: #ffd166; text-shadow: 0 0 12px rgba(255, 209, 102, .5); }
.rating-sum { display: inline-flex; align-items: center; gap: 12px; margin-top: 1.4rem; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.rating-sum b { font-family: var(--font-head); }
.reviews { columns: 3 320px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; }
.review blockquote { margin: 14px 0 18px; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.review figcaption b { display: block; }
.review figcaption span { color: var(--text-faint); font-size: .85rem; }
/* Sterne-Auswahl im Kundenbereich */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-self: flex-start; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: rgba(255, 255, 255, .2); transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffd166; text-shadow: 0 0 14px rgba(255, 209, 102, .55); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--cyan); border-radius: 6px; }

/* =========================================================
   Statistik (Admin)
   ========================================================= */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.seg button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: .85rem; color: var(--text-dim); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--cyan); }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin: 16px 0 8px; }
.chart-bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; }
.chart-bars span:hover { background: rgba(255, 255, 255, .04); }
.chart-bars i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), var(--violet)); box-shadow: 0 0 10px rgba(140, 60, 255, .4); }
.barlist { display: grid; gap: 8px; margin-top: 10px; }
.barrow { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: .88rem; overflow: hidden; }
.barrow i { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; border-radius: 9px; background: linear-gradient(90deg, rgba(155, 140, 242, .18), rgba(140, 60, 255, .14)); }
.barrow .bl, .barrow b { position: relative; z-index: 1; } .barrow .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Angebote & Rechnungen ---------- */
.items { display: grid; gap: 8px; margin: 8px 0 10px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 130px 120px auto; gap: 8px; align-items: center; }
.item-row input, .item-row select { margin: 0; }
.items-total { margin: 12px 0 0; color: var(--text-dim); }
.items-total b { color: var(--text); font-size: 1.15rem; }
.quote-accept { flex-basis: 100%; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.quote-accept .check-row { margin: 0; font-size: .92rem; }
@media (max-width: 640px) {
  .item-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
  .item-row [data-i="text"] { grid-column: 1 / -1; }
}

/* ---------- Sprachumschalter DE | EN ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0 2px 0 6px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch b, .nav .lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; }
.lang-switch b { color: #fff; background: var(--grad); }
.nav .lang-switch a { color: var(--text-dim); }
@media (max-width: 1240px) {
  .lang-switch { align-self: flex-start; margin: 10px 0 0 12px; font-size: .95rem; }
  .lang-switch b, .nav .lang-switch a { padding: 8px 16px; font-size: .95rem; }
}

/* Hinweis-Banner (Inhalt kommt aus dem Cockpit, wird vom Server eingesetzt) */
.site-banner { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(155, 140, 242, .14), rgba(140, 60, 255, .14)); font-size: .92rem; }
.site-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-block: 10px; text-align: center; }
.site-banner a { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.site-banner.banner-aktion { background: linear-gradient(90deg, rgba(140, 60, 255, .2), rgba(255, 60, 172, .2)); }
.site-banner.banner-aktion a { color: #ff8fd0; }
.site-banner.banner-warnung { background: rgba(255, 194, 74, .12); border-bottom-color: rgba(255, 194, 74, .35); }
.site-banner.banner-warnung a { color: #ffc24a; }

/* Rabatt-Aktion (aus dem Cockpit): Streichpreis = niedrigster Preis der letzten 30 Tage, § 11 PAngV */
.price-old { color: var(--text-faint); font-weight: 500; font-size: .55em; text-decoration-thickness: 2px; text-decoration-color: var(--pink); margin-right: .15em; vertical-align: middle; }
.price-mini .price-old, .opt-price .price-old { font-size: .85em; }
.price-badge { display: inline-block; margin-left: .35em; padding: .15em .55em; border-radius: 999px; font-size: .38em; font-weight: 700; letter-spacing: .02em; vertical-align: middle; color: #fff; background: var(--grad-3); box-shadow: 0 0 16px rgba(255, 60, 172, .45); }

/* Vorschau einer Rabatt-Aktion (nur Admin) */
.preview-bar { position: sticky; top: 0; z-index: 100; padding: 10px 16px; text-align: center; font-weight: 600; font-size: .92rem; color: #fff; background: repeating-linear-gradient(135deg, #8c3cff 0 18px, #ff3cac 18px 36px); }

/* ---------- Projekt-Fragebogen ---------- */
.wizard { padding: clamp(22px, 4vw, 40px); }
.wizard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wizard-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 18px 0 26px; overflow: hidden; }
.wizard-bar i { display: block; height: 100%; width: 25%; background: var(--grad-3); border-radius: inherit; transition: width .35s var(--ease); box-shadow: 0 0 14px var(--violet); }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard legend { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 1.1rem; padding: 0; }
.wizard .options.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard input[type="radio"] + .box::before { border-radius: 50%; }
.wizard-nav { margin-top: 26px; justify-content: space-between; }
.wizard-nav [data-wiz-back][hidden] + * { margin-left: auto; }
.wizard [data-wiz-done] { text-align: center; }
@media (max-width: 540px) { .wizard .options.cols3 { grid-template-columns: 1fr; } .wizard-head { flex-direction: column; } }
.wizard { scroll-margin-top: 100px; }
.wizard [data-wiz-count] { white-space: nowrap; }
.wizard.is-done .wizard-head p { display: none; }

/* ---------- Ratgeber / Blog ---------- */
.post-card { padding: 0 0 24px; overflow: hidden; text-decoration: none; color: inherit; }
.post-card > :not(.ref-img) { margin-left: 24px; margin-right: 24px; }
.post-card h3 { margin-top: 6px; }
.article { font-size: 1.08rem; line-height: 1.75; color: var(--text-dim); }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.2em 0 .6em; color: var(--text); }
.article h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; color: var(--text); }
.article p, .article ul, .article ol { margin: 0 0 1.1em; }
.article li { margin: .35em 0; }
.article strong { color: var(--text); }
.article blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 3px solid var(--violet); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.article-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 2rem; aspect-ratio: 16 / 9; object-fit: cover; }
.md-hint { font-size: .85rem; color: var(--text-faint); }
.md-hint code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Referenzen (wiederhergestellt, ging beim Cockpit-Merge verloren) ---------- */
.ref-card { padding: 0 0 24px; overflow: hidden; }
.ref-card > :not(.ref-img) { margin-left: 24px; margin-right: 24px; }
.ref-img { align-self: stretch; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ref-card:hover .ref-img img, .post-card:hover .ref-img img { transform: scale(1.03); }
.ref-noimg { display: grid; place-items: center; font: 800 2.4rem var(--font-head); color: rgba(255,255,255,.35); background: linear-gradient(135deg, rgba(0,200,255,.18), rgba(140,60,255,.18), rgba(255,60,172,.14)); }
.ref-card .tag { align-self: flex-start; }
.ref-result { color: var(--text); font-size: .95rem; }
.ref-result b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ref-thumb { width: 96px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); flex: none; }
span.ref-thumb { display: block; }

/* Menü etwas kompakter, damit „Kundenbereich“ + DE|EN auch auf Laptops in eine Zeile passen */
@media (max-width: 1480px) and (min-width: 1241px) {
  .nav a { padding: 8px 11px; }
  .nav .btn { padding: 8px 14px; }
}

/* Referenz-Karten: kompakt, Text klappt beim Antippen auf */
.ref-card { cursor: pointer; }
.ref-card .ref-img { aspect-ratio: 16 / 8; margin-bottom: 16px; }
.ref-meta { margin: 0 0 4px; font-size: .85rem; color: var(--text-faint); }
.ref-card h3 { margin: 0 0 6px; }
.ref-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0; color: var(--text-dim); }
.ref-more { display: none; }
.ref-card.open .ref-desc { display: block; -webkit-line-clamp: unset; line-clamp: unset; white-space: pre-line; }
.ref-card.open .ref-more { display: block; margin-top: 12px; }
.ref-result b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.ref-toggle { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.ref-toggle::after { content: " ▾"; color: var(--text-faint); }
.ref-card.open .ref-toggle::after { content: " ▴"; }
.ref-toggle:hover { color: var(--cyan); }
.char-count { font-size: .8rem; color: var(--text-faint); text-align: right; margin-top: 4px; }
.char-count.full { color: var(--danger); }

/* Pillen schlicht: graue Schrift, normale Schreibweise, dünner grauer Rand, kein Leuchten (Wunsch Inhaber 11/2026) */
.tag, .eyebrow {
  text-transform: none; letter-spacing: .01em; font-weight: 500;
  color: var(--text-dim); background: rgba(255, 255, 255, .03); border: 1px solid var(--border-strong); box-shadow: none;
}
.tag { font-size: .8rem; padding: 4px 12px; }
.eyebrow { font-size: .85rem; padding: 6px 14px; }
.eyebrow::before { display: none; }

/* Hauptknöpfe einfarbig gedämpftes Lila, weiße Schrift, ohne Verlauf/Leuchten (Wunsch Inhaber 11/2026: Weiß zu hell) */
.btn.primary { background: #5b3fc4; color: #fff; box-shadow: none; border-color: transparent; }
.btn.primary:hover { background: #6a4dd6; color: #fff; box-shadow: none; transform: translateY(-1px); }
.btn.primary:disabled, .btn.primary[aria-disabled="true"] { background: rgba(91, 63, 196, .45); color: rgba(255, 255, 255, .8); }
.price-card.featured::after { background: #5b3fc4; color: #fff; text-transform: none; letter-spacing: .01em; font-weight: 600; font-size: .78rem; }
.lang-switch b { background: #5b3fc4; color: #fff; }
.price-badge { background: #5b3fc4; color: #fff; box-shadow: none; }


/* Türkis-Akzente → gedämpftes Lila (Wunsch Inhaber 11/2026). Logo und bunte Überschrift-Wörter bleiben farbig. */
:root { --cyan: #9b8cf2; --accent: #9b8cf2; }
.gradient-text { background: linear-gradient(90deg, #00c8ff, #8c3cff, #ff3cac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.ghost:hover { border-color: rgba(155, 140, 242, .7); background: rgba(155, 140, 242, .08); }
a { color: #b7a9ff; }
.card .more, .option .opt-price, .site-banner a { color: #b7a9ff; }

/* ---------- Statusseite (status.html, Admin-Reiter „Status“) ---------- */
.status-wrap { max-width: 980px; }
.status-overall { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-bottom: 16px; }
.status-overall h2 { font-size: var(--step-1); margin: 0; }
.status-overall p { margin: 4px 0 0; }
.status-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text-faint); }
.status-overall.is-ok .status-dot { background: #3fbf86; box-shadow: 0 0 0 5px rgba(63, 191, 134, .15); }
.status-overall.is-down { border-color: rgba(224, 86, 107, .5); }
.status-overall.is-down .status-dot { background: #e0566b; box-shadow: 0 0 0 5px rgba(224, 86, 107, .18); }
.status-notice { margin-bottom: 16px; border-color: rgba(155, 140, 242, .4); }
.status-notice.lvl-stoerung { border-color: rgba(224, 86, 107, .5); }
.status-notice.lvl-wartung { border-color: rgba(217, 164, 65, .5); }
.status-notice p { margin: 6px 0; }
.status-group { font-size: .95rem; color: var(--text-dim); font-weight: 600; margin: 28px 0 10px; }
.status-svc { padding: 16px 18px; margin-bottom: 10px; }
.status-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.status-head b { flex: 1; min-width: 150px; }
.status-up { color: var(--text-dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.status-pill { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.status-pill.st-ok { color: #6fd3a5; border-color: rgba(63, 191, 134, .4); }
.status-pill.st-stoerung { color: #f08a9a; border-color: rgba(224, 86, 107, .5); }
.status-bars { display: flex; gap: 2px; height: 30px; }
.status-bars i { flex: 1; min-width: 0; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.lv-ok { background: #3fbf86 !important; }
.lv-teil { background: #d9a441 !important; }
.lv-stoerung { background: #e0566b !important; }
.lv-none { background: rgba(255, 255, 255, .08) !important; }
.status-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--text-faint); }
.status-axis .ax-30 { display: none; }
.status-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.status-admin-err { color: #f08a9a; font-size: .85rem; margin-top: 8px; }
@media (max-width: 640px) {
  /* Auf dem Handy nur die letzten 30 Tage */
  .status-bars i:nth-child(-n+60) { display: none; }
  .status-axis .ax-90 { display: none; }
  .status-axis .ax-30 { display: inline; }
}

/* Zwei-Faktor-Anmeldung (Profil) */
.twofa-setup { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.twofa-qr svg { width: 200px; height: 200px; display: block; border-radius: 12px; }
.twofa-setup code { word-break: break-all; color: var(--text); }
.twofa-codes { margin: 16px 0; padding: 16px; border: 1px solid rgba(217, 164, 65, .5); border-radius: var(--radius-sm); }
.twofa-codes pre { font: 1rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; columns: 2; margin: 12px 0; color: var(--text); }
@media (max-width: 640px) { .twofa-setup { grid-template-columns: 1fr; } .twofa-qr svg { margin: 0 auto; } }

/* Zeiterfassung (Admin, beim Kunden) */
.time-run { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(155, 140, 242, .45); border-radius: var(--radius-sm); }
.time-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0566b; box-shadow: 0 0 0 4px rgba(224, 86, 107, .18); flex: none; animation: timepulse 1.6s ease-in-out infinite; }
@keyframes timepulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .time-dot { animation: none; } }

/* Live-Chat: Nachrichten vom Inhaber und Hinweise */
.avmsg.human { background: rgba(91, 63, 196, .22); border: 1px solid rgba(155, 140, 242, .35); }
.avmsg-who { display: block; font-size: .75rem; font-weight: 600; color: #cfc6ff; margin-bottom: 3px; }
.avmsg-sys { align-self: center; font-size: .78rem; color: var(--text-faint); text-align: center; padding: 2px 10px; }

/* Live-Chat im Admin */
.lc-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.lc-item { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); }
.lc-item.on { border-color: rgba(155, 140, 242, .6); }
.lc-pane { min-height: 420px; }
.lc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.lc-log { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 14px 2px; }
.lc-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 12px; }
.lc-form textarea { flex: 1; margin: 0; min-height: 0; }
@media (max-width: 900px) { .lc-grid { grid-template-columns: 1fr; } }
.avmsg.me .avmsg-who { color: #4a4f6a; }

/* Projekt-Zeitplan */
.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); }
.timeline li.tl-done::before { background: #3fbf86; border-color: #3fbf86; }
.tl-drafts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.tl-draft-img { display: block; width: 120px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.tl-draft-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-draft-img:hover { border-color: var(--border-strong); }
@media (max-width: 560px) { .tl-draft-img { width: calc(50% - 4px); height: 96px; } }
.timeline li.tl-wait::before { background: #9b8cf2; border-color: #9b8cf2; }
.timeline li.tl-change::before { background: #d9a441; border-color: #d9a441; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-state { font-size: .8rem; color: var(--text-dim); }
.tl-wait .tl-state { color: #cfc6ff; font-weight: 600; }
.tl-info { font-size: .9rem; white-space: pre-wrap; }
.ms-box { margin: -4px 0 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); display: grid; gap: 8px; }
.ms-row { display: grid; grid-template-columns: 64px minmax(180px, 1fr) 150px 180px auto auto; gap: 8px; align-items: center; }
.ms-row input, .ms-row select, .ms-add input, .ms-add select { margin: 0; }
.ms-kind { font-size: .75rem; color: var(--text-faint); }
.ms-note { grid-column: 2 / -1; font-size: .85rem; color: #d9a441; }
.ms-add { display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px auto; gap: 8px; }
@media (max-width: 760px) { .ms-row, .ms-add { grid-template-columns: 1fr 1fr; } .ms-row input[data-ms-f="title"], .ms-add input[name="title"] { grid-column: 1 / -1; } .ms-kind { grid-column: 1 / -1; } }
.google-ask { margin-top: 20px; border-color: rgba(155, 140, 242, .4); }

/* Online-Unterschrift (Angebot annehmen) */
.sig-pad { position: relative; border-radius: var(--radius-sm); background: #f6f5fb; border: 1px solid var(--border-strong); }
.sig-pad canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; border-radius: var(--radius-sm); }
.sig-pad [data-sig-clear] { position: absolute; right: 8px; top: 8px; background: rgba(255, 255, 255, .85); color: #14162b; border-color: #c9c3ee; }
.sig-pad::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1px dashed #b7b3cc; pointer-events: none; }

/* Dateien: Vorschau + Kommentare */
.file-row { flex-wrap: wrap; }
.file-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: #fff; }
.file-comments { flex-basis: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border); }
.fc-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 10px; }
.fc-form { display: flex; gap: 8px; align-items: flex-end; }
.fc-form textarea { flex: 1; margin: 0; min-height: 0; }

/* Zahlen (Umsatz-Dashboard) */
.kz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kz-kpis .meta { display: block; margin-top: 4px; }
.kz-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.kz-legend { display: flex; gap: 14px; font-size: .82rem; color: var(--text-dim); }
.kz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kz-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.kz-info { min-height: 1.4em; margin: 8px 0; }
.kz-chart { display: flex; align-items: stretch; gap: 2px; height: 220px; border-bottom: 1px solid var(--border); }
.kz-col { flex: 1; min-width: 0; display: flex; flex-direction: column; background: none; border: 0; padding: 0 2px; cursor: pointer; color: inherit; font: inherit; border-radius: 6px; }
.kz-col:hover, .kz-col.on, .kz-col:focus-visible { background: rgba(255, 255, 255, .04); outline: none; }
.kz-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.kz-bars i { flex: 1; max-width: 18px; border-radius: 4px 4px 0 0; }
.kz-x { font-size: .7rem; color: var(--text-faint); text-align: center; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; transform: translateY(20px); }
.kz-chart { margin-bottom: 22px; }
@media (max-width: 760px) { .kz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kz-x { font-size: .6rem; } }

/* Aufgaben */
.task-row.done strong { text-decoration: line-through; color: var(--text-faint); }
.task-row .check-row input { width: 20px; height: 20px; }

/* KI-Hilfe bei Anfragen (Admin) */
.inq-ki { border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: rgba(255, 255, 255, .02); }
.inq-ki summary { cursor: pointer; color: var(--text-dim); }
.inq-ki-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inq-ki-head strong { margin-right: 4px; }
.inq-ki-head .tag { margin: 0; }
.inq-ki .tag-warn { color: #ffd166; border-color: rgba(255, 209, 102, .4); }
.inq-ki-q { margin: 4px 0 10px 18px; color: var(--text-dim); }
.inq-ki textarea { width: 100%; }

/* Onboarding-Checkliste „Was wir von dir brauchen“ (Kundenbereich + Admin) */
.checklist { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.cl-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cl-item { padding: 10px 0; border-top: 1px solid var(--border); }
.cl-item:first-of-type { border-top: 0; }
.cl-top { display: flex; align-items: center; gap: 8px; }
.cl-top b { flex: 1; }
.cl-mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; font-size: .75rem; flex: none; }
.cl-done .cl-mark { background: #5b3fc4; border-color: #5b3fc4; color: #fff; }
.cl-done .cl-top b { color: var(--text-dim); }
.cl-hint { margin: 2px 0 8px 28px; }
.cl-form, .cl-item > .cl-answer, .cl-item > .cl-file, .cl-item > div:last-child { margin-left: 28px; }
.cl-form textarea { width: 100%; }
.cl-file { display: inline-block; margin: 4px 10px 4px 0; font-size: .9rem; }
.cl-answer { white-space: pre-wrap; font-size: .93rem; margin: 4px 0; }
.cl-upload { cursor: pointer; }
.cl-upload.is-busy { opacity: .6; pointer-events: none; }
.cl-admin .cl-item { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
@media (max-width: 640px) {
  .project-row { flex-wrap: wrap; }
  .project-row > .grow { flex-basis: 100%; order: 2; }
  .project-row > .badge { order: 1; }
  .checklist { padding: 12px; }
  .cl-hint, .cl-form, .cl-item > .cl-answer, .cl-item > .cl-file, .cl-item > div:last-child { margin-left: 0; }
}
.ms-row.cl-row { grid-template-columns: 64px minmax(180px, 1fr) 150px auto; }
.cl-row .ms-note { grid-column: 2 / -1; }
@media (max-width: 760px) { .ms-row.cl-row { grid-template-columns: 1fr auto; } .cl-row input[data-cl-f="title"] { grid-column: 1 / -1; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }

/* Verkaufs-Board */
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pipe-col { background: rgba(255, 255, 255, .02); border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-height: 120px; }
.pipe-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 10px; }
.pipe-head .meta { margin-left: auto; }
.pipe-card { background: var(--surface, rgba(255,255,255,.04)); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pipe-card strong { display: block; font-size: .95rem; }
.pipe-card.is-stale { border-color: rgba(255, 209, 102, .45); }
.pipe-age { color: #ffd166; font-weight: 600; }
.pipe-sum { font-weight: 700; margin-top: 4px; }
.pipe-card .btn-row { gap: 6px; }
.pipe-card .btn-row { display: flex; flex-wrap: wrap; flex-direction: row; }
.pipe-card .btn-row .btn { width: auto; }
.pipe-card .btn.small { padding: 4px 10px; font-size: .8rem; min-height: 0; }
.ticket-row { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tk-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; align-items: start; }
.ticket-row.is-on { border-color: rgba(155, 140, 242, .6); }
@media (max-width: 900px) { .tk-grid { grid-template-columns: 1fr; } }
.ms-add.tk-time, .ms-add.tk-time:where(*) { grid-template-columns: 110px minmax(0, 1fr) auto; }
.ms-add.tk-time input[name="note"] { grid-column: 1 / 3; }
.ref-notice { width: calc(100% - 32px); max-width: 1120px; margin: 16px auto 0; border-color: rgba(155, 140, 242, .5); background: rgba(91, 63, 196, .14); color: var(--text); }
.progress.is-warn span { background: #b8832a; }
.notice.is-warn { border-color: rgba(255, 209, 102, .45); background: rgba(184, 131, 42, .12); color: var(--text); }
.avv-text { white-space: pre-wrap; max-height: 320px; overflow-y: auto; font-size: .88rem; line-height: 1.55; color: var(--text-dim); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .02); }
.news-hint { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; margin-bottom: 16px; border-color: rgba(155, 140, 242, .45); }
.news-hint .more { color: var(--cyan); margin-left: 6px; }
.news-item { margin-bottom: 10px; }
.news-item.is-new { border-color: rgba(155, 140, 242, .55); }
