/* ==========================================================================
   Hover Media – Stylesheet
   4 Farbschemata über [data-theme] am <html>-Element
   ========================================================================== */

:root,
[data-theme="cyan"] {
  --bg: #05060f;
  --bg-2: #0b0e1f;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .12);
  --text: #e9f1ff;
  --muted: #8d9ab8;
  --accent: #00e5ff;
  --accent-2: #7c4dff;
  --accent-3: #00ffa3;
  --glow: 0 0 24px rgba(0, 229, 255, .45);
  --grid: rgba(0, 229, 255, .06);
  --btn-grad: linear-gradient(135deg, #00e5ff, #6fa8ff);
  --on-accent: #05060f;
  color-scheme: dark;
}
[data-theme="violet"] {
  --bg: #0a0414;
  --bg-2: #140828;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(214, 160, 255, .18);
  --text: #f6ecff;
  --muted: #a993c4;
  --accent: #c04dff;
  --accent-2: #ff3fa4;
  --accent-3: #6ef3ff;
  --glow: 0 0 24px rgba(192, 77, 255, .5);
  --grid: rgba(192, 77, 255, .07);
  --btn-grad: linear-gradient(135deg, #9b2fe0, #d61f78);
  --on-accent: #ffffff;
  color-scheme: dark;
}
[data-theme="sunset"] {
  --bg: #0f0606;
  --bg-2: #1d0b0b;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 170, 120, .18);
  --text: #fff2ea;
  --muted: #c49a8a;
  --accent: #ff8a1f;
  --accent-2: #ff2d55;
  --accent-3: #ffd23f;
  --glow: 0 0 24px rgba(255, 138, 31, .5);
  --grid: rgba(255, 138, 31, .06);
  --btn-grad: linear-gradient(135deg, #ff9a3d, #ff4d6d);
  --on-accent: #120505;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef3fa;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .94);
  --surface-2: rgba(255, 255, 255, .95);
  --border: rgba(10, 30, 70, .12);
  --text: #0b1430;
  --muted: #56617e;
  --accent: #0062ff;
  --accent-2: #00b3a4;
  --accent-3: #7c4dff;
  --glow: 0 6px 24px rgba(0, 98, 255, .25);
  --grid: rgba(0, 98, 255, .06);
  --btn-grad: linear-gradient(135deg, #0057e0, #5b3ce0);
  --on-accent: #ffffff;
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s, color .5s;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-top: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--accent); font-weight: 700; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-move 8s linear infinite;
}
@keyframes gradient-move { to { background-position: 300% 0; } }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; }

/* ---------- Hintergrund-Effekte ---------- */
#fx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -120px; right: -100px; animation-delay: -7s; }
[data-theme="light"] .orb { opacity: .25; }
[data-theme="light"] #fx-canvas { opacity: .4; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .9em 1.6em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit; text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--btn-grad); color: var(--on-accent); box-shadow: var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-danger { background: #e5394f; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(14px); border-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; letter-spacing: .18em; text-decoration: none !important; }
.logo b { color: var(--accent); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; text-decoration: none; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; padding: 1.5rem 16px 2rem; gap: 1.2rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s;
  }
  .main-nav.open { transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 80px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); z-index: 0; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { max-width: 12ch; }
.hero-typed { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; min-height: 1.5em; }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-drone { position: absolute; right: 4%; top: 20%; width: min(400px, 34vw); z-index: 1; animation: hover 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); opacity: .9; }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-26px) rotate(2deg); } }
@media (max-width: 920px) { .hero-drone { opacity: .25; right: -10%; top: 12%; width: 70vw; } }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 2; }
.scroll-hint span { width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* Glitch-Effekt */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: .7;
}
.glitch::before { color: var(--accent); transform: translate(2px, 0); clip-path: inset(0 0 60% 0); animation: glitch 4s infinite steps(2); mix-blend-mode: screen; }
.glitch::after  { color: var(--accent-2); transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 3.3s infinite reverse steps(2); mix-blend-mode: screen; }
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, -1px); opacity: .8; }
  96% { transform: translate(-3px, 1px); opacity: .8; }
}

/* ---------- Laufschrift ---------- */
.ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 1rem 0; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 3rem; animation: ticker 40s linear infinite; }
.ticker-track span { font-weight: 700; text-transform: uppercase; letter-spacing: .15em; font-size: .9rem; }
.ticker-track span::before { content: "◆"; color: var(--accent); margin-right: 3rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
.section { padding: 110px 0 40px; }
[id] { scroll-margin-top: 72px; }
.section-head { margin-bottom: 3rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 60px 0 0; }
.stat { text-align: center; padding: 1.5rem; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); }
.stat > span { color: var(--muted); font-size: .9rem; }
.stat strong small { font-size: .55em; margin-left: .1em; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { min-width: 0; }
@media (max-width: 720px) { .stat { padding: 1.5rem 1rem; } .stat strong { font-size: clamp(1.6rem, 7vw, 3rem); overflow-wrap: anywhere; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 2rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 40%, var(--accent-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.card:hover { box-shadow: var(--glow); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--accent); background: var(--surface-2); margin-bottom: 1.2rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); cursor: default; }
.tile[data-video] { cursor: pointer; }
.tile-1 { grid-row: span 2; }
.tile-6 { grid-column: 1 / -1; }
.tile img, .tile-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img, .tile:hover .tile-placeholder { transform: scale(1.06); }
.tile-placeholder { background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3)); background-size: 300% 300%; animation: gradient-shift 12s ease infinite; opacity: .55; }
.tile-2 .tile-placeholder { animation-delay: -2s; } .tile-3 .tile-placeholder { animation-delay: -4s; }
.tile-4 .tile-placeholder { animation-delay: -6s; } .tile-6 .tile-placeholder { animation-delay: -8s; }
@keyframes gradient-shift { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; gap: .2rem; }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); font-weight: 700; }
.play { font-size: .85rem; opacity: .85; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .tile-1 { grid-row: span 1; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { padding: 1.8rem; border-left: 2px solid var(--accent); background: linear-gradient(90deg, var(--surface), transparent); border-radius: 0 20px 20px 0; }
.step-no { font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--accent); display: block; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; margin-bottom: 1.5rem; }
.price-card { position: relative; padding: 2.2rem; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--glow); transform: scale(1.03); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 2rem; flex: 1; }
.price-card li { padding: .45rem 0; border-bottom: 1px dashed var(--border); color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--accent); margin-right: .6rem; font-weight: 800; }
.price { font-size: 2.4rem; font-weight: 800; margin: 0; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.badge { position: absolute; top: -12px; right: 24px; background: var(--btn-grad); color: var(--on-accent); padding: .25rem .9rem; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } .price-card.featured { transform: none; } }

.faq { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: .8rem; padding: 0 1.4rem; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); }

/* ---------- Formulare ---------- */
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 2rem; backdrop-filter: blur(12px); }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.form input, .form select, .form textarea, .signup input {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus, .signup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-2 > *, .form label, .admin-cols > * { min-width: 0; }
.form select { max-width: 100%; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; color: var(--muted); }
.check input { width: 20px !important; height: 20px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--accent); }
.alert { padding: 1rem 1.2rem; border-radius: 14px; margin: 1rem 0; border: 1px solid; }
.alert-success { border-color: #1ed98a; background: rgba(30, 217, 138, .12); }
.alert-error { border-color: #ff4d6d; background: rgba(255, 77, 109, .12); }
.form input[aria-invalid="true"] { border-color: #ff4d6d; box-shadow: 0 0 0 1px #ff4d6d; }
.field-error { color: #ff8a9e; font-weight: 500; font-size: .85rem; }
[data-theme="light"] .field-error { color: #c8102e; }
.form label .muted { font-weight: 400; }
.alert-info { border-color: var(--accent); background: var(--surface); }

/* ---------- Countdown ---------- */
.page-countdown .site-footer { margin-top: 0; }
.countdown-wrap { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 40px; }
.countdown { text-align: center; position: relative; z-index: 2; padding: 40px 0 60px; }
.countdown .lead { margin-inline: auto; }
.cd-logo { margin: 0 auto 1rem; animation: hover 5s ease-in-out infinite; }
.timer { display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1.4rem); margin: 2.5rem 0; flex-wrap: wrap; }
.tbox { min-width: clamp(74px, 18vw, 140px); padding: 1.2rem .6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.tbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); transform: translateX(-100%); animation: shine 4s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.tbox span { display: block; font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: var(--glow); }
.tbox small { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--muted); }
.signup { max-width: 560px; margin: 0 auto; text-align: left; }
.signup-row { display: flex; gap: .6rem; margin-bottom: .8rem; }
.signup-row input { flex: 1; border-radius: 999px; padding-inline: 1.3rem; }
@media (max-width: 520px) { .signup-row { flex-direction: column; } }
.cd-drone { position: absolute; top: 12%; left: -200px; width: 160px; opacity: .55; animation: fly 26s linear infinite; z-index: 1; }
@keyframes fly { 0% { transform: translate(0, 0); } 50% { transform: translate(60vw, 40px); } 100% { transform: translate(calc(100vw + 400px), -20px); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.plain { list-style: none; padding: 0; margin: 0; }
.plain a { display: inline-block; padding: .45rem 0; }
.plain a { color: var(--text); }
.socials { display: flex; gap: .3rem; font-size: 1.3rem; margin-left: -10px; }
.socials a { color: var(--muted); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; } .socials a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; gap: 1rem; flex-wrap: wrap; }
.to-top { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.theme-switch { display: flex; gap: .6rem; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; transition: transform .2s, border-color .2s; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--accent); }
.swatch-cyan   { background: conic-gradient(#00e5ff, #7c4dff, #05060f, #00e5ff); }
.swatch-violet { background: conic-gradient(#c04dff, #ff3fa4, #0a0414, #c04dff); }
.swatch-sunset { background: conic-gradient(#ff8a1f, #ff2d55, #0f0606, #ff8a1f); }
.swatch-light  { background: conic-gradient(#0062ff, #00b3a4, #eef3fa, #0062ff); }
.lang-switch { display: flex; gap: .4rem; }
.lang-switch a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: .85rem; text-decoration: none; }
.lang-switch a.active { background: var(--btn-grad); color: var(--on-accent); border-color: transparent; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox video { max-height: 85vh; border-radius: 16px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 130px 0 40px; }
.legal h1 { font-size: clamp(1.7rem, 7vw, 3rem); hyphens: auto; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal .placeholder { background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 0 .3em; border-radius: 4px; }

/* ---------- Kundenbereich / Admin ---------- */
.portal { padding: 120px 0 40px; }
.auth-box { max-width: 440px; margin: 0 auto; }
.project { margin-bottom: 1.5rem; }
.project-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--surface-2); border: 1px solid var(--border); }
.status-delivered, .status-won { color: #1ed98a; border-color: #1ed98a; }
.status-editing, .status-offer { color: var(--accent); border-color: var(--accent); }
.status-new { color: #ffd23f; border-color: #ffd23f; }
.status-lost, .status-archived { color: var(--muted); }
.status-problem { color: #ff5d73; border-color: #ff5d73; }
[data-theme="light"] .status-problem { color: #c8102e; border-color: #c8102e; }
.fail-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.files { list-style: none; padding: 0; margin: 1rem 0 0; }
.files li > span:not(.file-actions) { min-width: 0; overflow-wrap: anywhere; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }

.admin-body { padding-top: 0; }
.admin-nav { background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.admin-nav .container { display: flex; align-items: center; gap: 1.4rem; height: 64px; flex-wrap: wrap; }
.admin-nav a { color: var(--text); font-weight: 600; }
.admin-nav a.active { color: var(--accent); }
.admin-nav .spacer { flex: 1; }
.admin-main { padding: 32px 0 60px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { padding: 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.kpi strong { display: block; font-size: 2rem; color: var(--accent); }
.toolbar { display: flex; gap: .8rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .5rem; }
.toolbar input, .toolbar select { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .8rem; }
.inline { display: inline; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.file-actions { display: flex; gap: .8rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.file-actions .btn { white-space: nowrap; }
.temp-pw { font-family: ui-monospace, monospace; font-size: 1.1rem; background: var(--bg-2); padding: .3rem .6rem; border-radius: 8px; user-select: all; }


/* ---------- Barrierefreiheit ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: .7rem 1.2rem; border-radius: 0 0 12px 12px; background: var(--btn-grad); color: var(--on-accent); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { 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; }
}

/* ---------- Utilities & Admin-Layout ---------- */
.h-page { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .3em; }
.h-sub { font-size: 1.3rem; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 1rem; }
.w-full { width: 100%; }
.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 1rem 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.quote { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.admin-theme { padding: 0 0 2rem; justify-content: flex-end; }
.admin-main .glass { padding: 1.5rem; }

/* ==========================================================================
   Responsive Feinschliff (Handy / Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0 24px; }
  .section-head { margin-bottom: 2rem; }
  .hero { min-height: 92vh; padding: 96px 0 72px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .glass { padding: 1.3rem; border-radius: 20px; }
  .card { padding: 1.5rem; }
  .price-card { padding: 1.6rem; }
  .lead { font-size: 1.02rem; }
  .ticker-track { gap: 1.8rem; animation-duration: 28s; }
  .ticker-track span::before { margin-right: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .orb-1, .orb-2 { width: 260px; height: 260px; }
  .portal { padding-top: 96px; }
  .legal { padding-top: 100px; }
  .project-head { align-items: flex-start; }
  .files li .btn { width: 100%; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: .4rem; }

  /* Admin-Navigation horizontal scrollbar */
  .toolbar form { flex-wrap: wrap; width: 100%; }
  .toolbar input[type="search"] { flex: 1 1 100%; }

  /* Tabellen werden auf dem Handy zu Karten */
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
  table.responsive tr:last-child { border-bottom: 0; }
  table.responsive td { border: 0; padding: .25rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; flex-shrink: 0; }
  table.responsive td[colspan] { justify-content: flex-start; text-align: left; }
  table.responsive td[colspan]::before { content: none; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.1rem; }
  .tbox { min-width: 68px; padding: .9rem .3rem; border-radius: 16px; }
  .tbox small { font-size: .58rem; letter-spacing: .1em; }
  .timer { gap: .4rem; }
  .logo span { font-size: .9rem; letter-spacing: .12em; }
  .kicker { letter-spacing: .18em; }
}
/* Touch-Geräte: größere Klickflächen */
@media (pointer: coarse) {
  .main-nav a:not(.btn) { padding: .4rem 0; font-size: 1.05rem; }
  .lang-switch a { padding: .5rem 1rem; }
  .swatch { width: 42px; height: 42px; }
}
.narrow-form { max-width: 560px; }
.admin-nav-end { display: flex; align-items: center; gap: 1rem; }
.admin-nav-end a { display: inline-flex; align-items: center; gap: .4rem; }
.admin-nav-end svg { width: 20px; height: 20px; }
.form input[readonly] { opacity: .65; cursor: default; }
.form .alert-success { margin-bottom: 1rem; }

/* Admin-Leiste: bis Tablet-Breite als waagerecht scrollende Leiste (kein Zeilenumbruch unter die H1) */
@media (max-width: 1024px) {
  .admin-nav { width: 100%; }
  .admin-nav .container { height: 56px; flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; white-space: nowrap; scrollbar-width: none; }
  .admin-nav .admin-nav-end { position: sticky; right: 0; margin-left: auto; padding-left: .6rem; background: var(--bg-2); }
  .admin-nav .admin-nav-end::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, transparent, var(--bg-2)); pointer-events: none; }
  .admin-nav .admin-nav-end .nav-label { display: none; }
  .admin-nav .container::-webkit-scrollbar { display: none; }
  .admin-nav .container > * { flex-shrink: 0; }
  .admin-nav .logo span { display: none; }
  .admin-nav .spacer { display: none; }
}
.inline-confirm { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin-top: .5rem; }
.inline-confirm label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; }
.inline-confirm input { padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); max-width: 100%; }
.mt-2 { margin-top: 2rem; }
.inline-confirm .field-error { font-weight: 500; }
@media (max-width: 760px) {
  table.responsive td.td-action { flex-wrap: wrap; }
  .toggle-admin { flex: 1 1 100%; text-align: left; }
  .toggle-admin .inline-confirm, .toggle-admin label { width: 100%; }
  .toggle-admin .inline-confirm input, .toggle-admin .inline-confirm .btn { width: 100%; }
}
