/* ==========================================================================
   Teknomann – Stylesheet (Light "Precision Lab")
   Helles, modernes Theme. Akzentfarbe global über --accent steuerbar.
   Schriften selbst gehostet (DSGVO, kein Google-CDN).
   ========================================================================== */

/* ----------------------------- Schriften -------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* >>> Akzentfarbe hier zentral ändern <<< */
  --accent: #2E8BFF;
  --accent-strong: #1568E6;       /* dunklere Variante für Text/Links auf Weiß */
  --accent-ink: #FFFFFF;          /* Text auf Akzentflächen */
  --accent-soft: rgba(46, 139, 255, 0.12);
  --accent-line: rgba(46, 139, 255, 0.32);

  --wa: #25D366;
  --wa-ink: #06231a;

  --bg: #FFFFFF;
  --bg-2: #F3F6FC;
  --surface: #FFFFFF;
  --surface-2: #F3F6FC;
  --line: #E4EAF3;
  --line-soft: rgba(18, 30, 55, 0.08);

  --text: #0C1322;
  --muted: #54607A;
  --muted-2: #8A93A8;

  --danger: #E5484D;
  --ok: #1FAE73;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 22px 50px -30px rgba(20, 40, 90, 0.45);
  --shadow-card: 0 10px 30px -20px rgba(20, 40, 90, 0.40);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ----------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }

/* Eyebrow / Labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-strong);
}
.eyebrow::before {
  content: ""; width: 16px; height: 1px; background: var(--accent-line);
}

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-weight: 600; letter-spacing: 0.01em;
  transition: transform .14s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #3a93ff, var(--accent-strong));
  border-color: var(--accent-strong); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(46,139,255,0.7);
}
.btn-primary:hover { box-shadow: 0 20px 38px -14px rgba(46,139,255,0.8); border-color: var(--accent-strong); }

.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { border-color: var(--wa); box-shadow: 0 14px 30px -14px var(--wa); }
.btn-wa svg { width: 18px; height: 18px; }

.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ----------------------------- Header ----------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-head.scrolled { box-shadow: 0 10px 30px -22px rgba(20,40,90,0.5); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.head-inner { display: flex; align-items: center; gap: 22px; height: 88px; }

.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand .logo { height: 64px; width: auto; }

.mainnav { display: flex; gap: 2px; margin-left: 10px; }
.mainnav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
  transition: color .15s ease, background .15s ease;
}
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--text); }
.mainnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.langswitch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); }
.langswitch a { padding: 3px 5px; border-radius: 5px; color: var(--muted); }
.langswitch a:hover { color: var(--text); }
.langswitch a.on { color: var(--accent-strong); font-weight: 500; }
.head-wa span { font-size: 0.92rem; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobilenav { display: none; flex-direction: column; gap: 4px; padding: 12px clamp(18px, 4vw, 40px) 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.mobilenav:not([hidden]) { display: flex; }
.mobilenav a { padding: 12px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.mobilenav a:hover { background: #fff; }
.mobilenav .btn-wa { margin-top: 6px; }

/* ----------------------------- Sections --------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.head-row .section-head { margin-bottom: 0; }

/* ----------------------------- Hero ------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 7vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: 0;
  background:
    radial-gradient(620px 380px at 82% 6%, var(--accent-soft), transparent 68%),
    radial-gradient(520px 360px at 4% 96%, rgba(46,139,255,0.10), transparent 70%),
    radial-gradient(420px 300px at 60% 120%, rgba(37,211,102,0.07), transparent 70%);
  pointer-events: none; animation: aurora 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%);
  opacity: .7;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero-copy h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -0.03em; margin: 16px 0 0; }
.hero-copy h1 .hl { color: var(--accent-strong); }
.hero-copy p.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); margin-top: 18px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-channel { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.hero-channel .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 4px rgba(255,59,48,0.16); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,59,48,0.16); } 50% { box-shadow: 0 0 0 7px rgba(255,59,48,0.04); } }

/* Featured-Video (Karte verlinkt auf eigene Video-Seite) */
.feature-video {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.feature-video img.thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.feature-video:hover img.thumb { transform: scale(1.04); }
.feature-video .play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(8,12,20,0.06), rgba(8,12,20,0.5));
  border: 0; width: 100%; color: #fff; text-align: left;
}
.feature-video .play-disc {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 16px 40px -10px var(--accent); transition: transform .18s ease;
}
.feature-video .play-disc svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.feature-video:hover .play-disc { transform: scale(1.07); }
.feature-video .v-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(8,12,20,0.92), transparent); color: #fff; }
.feature-video .v-meta .badge { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: #6fb4ff; }
.feature-video .v-meta h3 { font-size: 1.06rem; margin-top: 4px; font-family: var(--font-body); font-weight: 600; color: #fff; }
.feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----------------------------- Video-Grid ------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vcard {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.vcard .thumb-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1322; }
.vcard .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vcard:hover .thumb-wrap img { transform: scale(1.06); }
.vcard .thumb-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,12,20,0.28)); opacity: 0; transition: opacity .2s ease; }
.vcard:hover .thumb-wrap::after { opacity: 1; }
.vcard .pdisc {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; box-shadow: 0 10px 28px -10px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.vcard:hover .pdisc { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.vcard .pdisc svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--accent-strong); }
.vcard .v-body { padding: 14px 16px 18px; }
.vcard .v-body h3 { font-size: 0.98rem; font-family: var(--font-body); font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard:hover .v-body h3 { color: var(--accent-strong); }
.vcard .v-body time { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }

.notice { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.notice a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------- Video-Detailseite ------------------------ */
.video-detail { display: grid; gap: clamp(22px, 3vw, 36px); }
.vd-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.vd-back:hover { color: var(--accent-strong); }
.vd-player { box-shadow: var(--shadow); }
.vd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.vd-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); max-width: 22ch; }
.vd-meta { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); }
.vd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vd-desc { color: var(--muted); max-width: 70ch; white-space: pre-line; line-height: 1.7; border-top: 1px solid var(--line-soft); padding-top: 22px; }

/* ----------------------------- Teaser-Blocks ---------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-card); }
.panel h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.panel p { color: var(--muted); margin-top: 14px; }
.panel .btn { margin-top: 24px; }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 6px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: 0.95rem; }

/* ----------------------------- Repair-Seite ----------------------------- */
.repair-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.wa-card { background: linear-gradient(180deg, rgba(37,211,102,0.10), transparent), var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 92px; box-shadow: var(--shadow-card); }
.wa-card .wa-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; }
.wa-card h3 { margin-top: 16px; font-size: 1.2rem; }
.wa-card p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }
.wa-card .btn { margin-top: 18px; }
.wa-card .num { margin-top: 14px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.divider-or { display: none; }

/* Formular */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field .hint { color: var(--muted-2); font-weight: 400; font-size: 0.82rem; margin-left: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A93A8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Such-Dropdown für Modelle */
.combo { position: relative; }
.combo .combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; display: none; }
.combo.open .combo-list { display: block; }
.combo .combo-list button { display: block; width: 100%; text-align: left; padding: 9px 11px; border: 0; background: transparent; color: var(--text); border-radius: 7px; font-size: 0.94rem; }
.combo .combo-list button:hover, .combo .combo-list button.active { background: var(--accent-soft); color: var(--accent-strong); }
.combo .combo-empty { padding: 11px; color: var(--muted-2); font-size: 0.9rem; }

.model-other { margin-top: 12px; }
.linkish { background: none; border: 0; color: var(--accent-strong); padding: 0; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }

/* Schadens-Checkboxen */
.damage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; font-size: 0.92rem; }
.chip:hover { border-color: var(--accent-line); }
.chip input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.honey { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; font-size: 0.94rem; }
.form-alert.err { background: rgba(229,72,77,0.08); border-color: rgba(229,72,77,0.4); color: #b42318; }
.form-alert.ok { background: rgba(31,174,115,0.10); border-color: rgba(31,174,115,0.4); color: #117a52; }

/* Erfolgs-Screen */
.sent-box { max-width: 560px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow); }
.sent-box .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-strong); display: grid; place-items: center; margin: 0 auto 20px; }
.sent-box h1 { font-size: 1.8rem; }
.sent-box p { color: var(--muted); margin-top: 12px; }
.sent-box .btn { margin-top: 24px; }

/* ----------------------------- Shop ------------------------------------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.product:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.product .p-img { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.product .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product:hover .p-img img { transform: scale(1.05); }
.product .p-img.placeholder { display: grid; place-items: center; color: var(--muted-2); }
.product .p-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.product .p-body h3 { font-size: 1.04rem; font-family: var(--font-body); font-weight: 600; }
.product .p-desc { color: var(--muted); font-size: 0.9rem; margin-top: 7px; flex: 1; }
.product .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.product .price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.product .price small { font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; color: var(--muted-2); display: block; }
.product .btn-wa { margin-top: 14px; }

/* Wartungs-Screen */
.maint { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.maint-inner { max-width: 520px; }
.maint .gear { width: 72px; height: 72px; margin: 0 auto 22px; color: var(--accent); animation: spin 9s linear infinite; }
.maint h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.maint p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.maint .btn { margin-top: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------- Legal ------------------------------------ */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 38px; }
.prose h3 { font-size: 1.05rem; margin-top: 24px; }
.prose p, .prose li { color: var(--muted); margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose .lang-note { margin-top: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ----------------------------- Footer ----------------------------------- */
.site-foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-top: clamp(48px, 6vw, 76px); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.foot-brand .foot-logo .logo { height: 52px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; color: var(--muted); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.foot-social a:hover { color: var(--accent-strong); border-color: var(--accent-line); transform: translateY(-2px); }
.foot-col h3 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.foot-list { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.foot-list a:hover { color: var(--accent-strong); }
.foot-list.hours li { display: flex; justify-content: space-between; gap: 14px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 0.86rem; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: var(--text); }

/* ----------------------------- Admin ------------------------------------ */
body.admin { background: var(--bg-2); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #fff; border-right: 1px solid var(--line-soft); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { margin-bottom: 28px; padding-inline: 8px; }
.admin-side .brand .logo { height: 46px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 0.94rem; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.on { background: var(--accent-soft); color: var(--accent-strong); }
.admin-side .side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.admin-main { padding: clamp(22px, 3vw, 40px); }
.admin-main h1 { font-size: 1.6rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.stat .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.stat .v { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-top: 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--shadow-card); }
.card > h2 { font-size: 1.15rem; margin-bottom: 16px; }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s ease, border-color .2s ease; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted-2); transition: transform .2s ease, background .2s ease; }
.toggle input:checked + .track { background: var(--accent-soft); border-color: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(22px); background: var(--accent); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle .lbl { font-weight: 600; }
.toggle .state { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.tbl th, table.tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.tbl th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
table.tbl tr:hover td { background: var(--surface-2); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-family: var(--font-mono); border: 1px solid var(--line); color: var(--muted); }
.tag.new { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-soft); }
.tag.done { color: var(--ok); border-color: rgba(31,174,115,0.4); }
.tag.on { color: var(--ok); border-color: rgba(31,174,115,0.4); }
.tag.off { color: var(--muted-2); }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login .login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow); }
.admin-login .brand { justify-content: center; margin-bottom: 24px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobile Admin-Topbar + Drawer (auf Desktop ausgeblendet) */
.admin-topnav { display: none; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; }
.admin-topnav .brand .logo { height: 36px; }
.admin-topnav-title { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-burger { display: grid; gap: 4px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; flex: 0 0 auto; }
.admin-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.admin-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.admin-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.admin-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.admin-backdrop { position: fixed; inset: 0; background: rgba(12,19,34,.5); z-index: 70; opacity: 0; transition: opacity .2s ease; }
.admin-backdrop[hidden] { display: none; }
.muted-row td { color: var(--muted-2); }

.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-danger { color: var(--danger); border-color: rgba(229,72,77,0.4); background: rgba(229,72,77,0.06); }
.btn-danger:hover { border-color: var(--danger); }

.inline-form { display: inline; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }

/* ----------------------------- Reparatur-Wizard ------------------------- */
.wizard .wiz-only { display: none; }

/* Stepper */
.wiz-on .wiz-steps { display: flex; list-style: none; padding: 0; margin: 0 0 22px; gap: 6px; max-width: 760px; flex-wrap: wrap; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; font-size: 0.86rem; font-weight: 600; color: var(--muted-2); cursor: pointer; padding: 8px 4px; }
.wiz-steps li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 0.82rem; transition: all .2s ease; }
.wiz-steps li.is-active { color: var(--text); }
.wiz-steps li.is-active .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.wiz-steps li.is-done .n { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.wiz-steps li.is-done .n::after { content: "✓"; }
.wiz-steps li.is-done .n { font-size: 0; }
.wiz-steps li.is-done .n::after { font-size: 0.82rem; }

/* Panels */
.wiz-panel { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.wiz-panel + .wiz-panel { margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 26px; }
.wiz-on .wiz-panel { display: none; }
.wiz-on .wiz-panel.is-active { display: block; animation: wizfade .35s cubic-bezier(.2,.7,.2,1); }
.wiz-on .wiz-panel + .wiz-panel { margin-top: 0; border-top: 0; padding-top: 0; }
@keyframes wizfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 18px; padding: 0; }
.wiz-q .hint { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--muted-2); }

/* Marken-Kacheln */
.wiz-on .brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
.brand-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.brand-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brand-card .brand-mark { width: 46px; height: 46px; }
.brand-card .brand-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }

.brand-fallback { margin-top: 18px; max-width: 420px; }
.wiz-on .brand-fallback { display: none; }
.wiz-on .brand-fallback.is-shown { display: block; animation: wizfade .3s ease; }

/* Beliebte Modelle */
.wiz-on .wiz-popular:not([hidden]) { display: block; }
.model-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.model-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 500; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.model-chip:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.model-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

/* Schaden-Kacheln mit Icon */
.damage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.chip.chip-icon { position: relative; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 15px; }
.chip.chip-icon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip.chip-icon .chip-ic { width: 30px; height: 30px; color: var(--accent-strong); }
.chip.chip-icon .chip-ic svg { width: 30px; height: 30px; }
.chip.chip-icon .chip-tx { font-weight: 500; font-size: 0.92rem; line-height: 1.3; }
.chip.chip-icon:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.chip.chip-icon:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.72rem; display: grid; place-items: center; }
.chip.chip-icon:has(input:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Zusammenfassung */
.wiz-summary { display: none; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-sm); }
.wiz-on .wiz-summary:not([hidden]) { display: block; }
.wiz-summary p { margin-top: 4px; font-weight: 600; color: var(--text); }

/* Fotoupload */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--muted); cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.dropzone:hover { border-color: var(--accent-line); color: var(--accent-strong); background: var(--surface); }
.dropzone .dz-text { font-weight: 600; }
.dropzone .dz-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-strong); }
.dz-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dz-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* Aktionen */
.wiz-submit { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wiz-submit .btn { flex: 1; min-width: 200px; justify-content: center; }
.wiz-nav { justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.wiz-on .wiz-nav { display: flex; }

/* ----------------------------- Produkt-Detail --------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pd-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media.placeholder { display: grid; place-items: center; color: var(--muted-2); }
.pd-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.pd-back:hover { color: var(--accent-strong); }
.pd-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pd-price { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; margin-top: 14px; }
.pd-price small { font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem; color: var(--muted-2); }
.pd-desc { color: var(--muted); margin-top: 18px; line-height: 1.7; white-space: pre-line; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pd-trust { margin-top: 24px; display: grid; gap: 10px; }
.pd-trust li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.92rem; list-style: none; }
.pd-trust svg { width: 18px; height: 18px; color: var(--accent-strong); flex: none; }
.shop-grid .product { cursor: pointer; }
.product .p-link { color: inherit; display: flex; flex-direction: column; flex: 1; }

/* ----------------------------- Shop / Warenkorb ------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Produktkarten-Zusätze */
.p-cat { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.price-req { color: var(--accent-strong); font-weight: 600; }
.add-form { margin-top: auto; }

/* Header-Warenkorb */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s ease, color .15s ease; }
.cart-link:hover { border-color: var(--accent-line); color: var(--accent-strong); }
.cart-badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(20,40,90,.25); }

/* PayPal-Button */
.btn-paypal { background: #ffc439; color: #11193a; border: 1px solid #f0b72e; }
.btn-paypal:hover { background: #f4b62c; color: #11193a; }
.btn-paypal svg { color: #003087; }

/* Warenkorb-Seite */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted-2); flex: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-name { font-weight: 600; color: var(--text); display: block; }
.cart-name:hover { color: var(--accent-strong); }
.cart-sku { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); margin-top: 2px; }
.cart-unit { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.qty-input { width: 72px; text-align: center; padding-left: 8px; padding-right: 8px; }
.cart-line { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.cart-del { display: flex; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .15s ease; }
.iconbtn:hover { border-color: #e2b3b3; color: #c0392b; background: #fdf3f3; }

.cart-summary { position: sticky; top: 90px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.cart-summary h2 { font-size: 1.15rem; margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 1rem; }
.cart-total-row strong { font-family: var(--font-display); font-size: 1.5rem; }
.cart-note { font-size: 0.78rem; color: var(--muted-2); margin: 4px 0 16px; }
.paypal-form { margin: 0; }
.cart-trust { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cart-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted); }
.cart-trust svg { color: var(--accent-strong); }
.cart-continue-link { display: block; text-align: center; margin-top: 16px; }

.cart-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.cart-empty svg { color: var(--muted-2); margin-bottom: 14px; }
.cart-empty p { font-size: 1.05rem; margin-bottom: 20px; }

/* Produktdetail-Zusätze */
.pd-sku { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.qty-field { flex: none; }
.pd-actions .qty-input { width: 84px; height: 100%; min-height: 52px; }
.pd-cart-link { margin-top: 12px; text-align: center; }

@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 60px 1fr auto; grid-template-areas: "thumb info del" "thumb qty line"; row-gap: 10px; }
  .cart-thumb { grid-area: thumb; width: 60px; height: 60px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line { grid-area: line; text-align: right; }
  .cart-del { grid-area: del; justify-self: end; }
  .admin-cols { grid-template-columns: 1fr; }
  /* Header-Logo auf dem Handy etwas kompakter */
  .head-inner { height: 74px; }
  .brand .logo { height: 52px; }
}

/* ----------------------------- Checkout / Konto / Bestellungen ---------- */
.wrap.narrow { max-width: 780px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.head-row .section-head { margin-bottom: 0; }
.co-h { font-size: 1.15rem; margin-bottom: 16px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(20px, 3vw, 34px); align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.checkout-login-hint { margin-bottom: 18px; color: var(--muted); }
.checkout-summary { position: sticky; top: 90px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.checkout-summary h2 { font-size: 1.1rem; margin-bottom: 14px; }

/* Mobil: Kasse auf eine Spalte – steht NACH den Basis-Regeln, damit es greift */
@media (max-width: 760px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; top: auto; order: 2; }
}
.co-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: 0.88rem; }
.co-item .co-q { color: var(--muted-2); font-family: var(--font-mono); }
.co-item .co-n { min-width: 0; }
.co-item .co-p { white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.co-total-row strong { font-family: var(--font-display); font-size: 1.4rem; }

.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin-bottom: 12px; transition: border-color .15s ease, background .15s ease; }
.pay-option:last-child { margin-bottom: 0; }
.pay-option:hover { border-color: var(--accent-line); }
.pay-option input { margin-top: 3px; accent-color: var(--accent); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pay-desc { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 2px; }

/* Bestellbestätigung / Status */
.oc-head { text-align: center; margin-bottom: 26px; }
.oc-head .ok-ic { margin: 0 auto 14px; }
.oc-number { font-size: 1.05rem; margin-top: 6px; }
.oc-table { width: 100%; border-collapse: collapse; }
.oc-table td { padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
.oc-table td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc-table tr.oc-sum td { border-bottom: 0; border-top: 2px solid var(--line); padding-top: 12px; font-size: 1.05rem; }
.bank-card { border-color: var(--accent-line); }
.bank-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0; }
.bank-dl dt { color: var(--muted); font-size: 0.86rem; }
.bank-dl dd { font-weight: 600; }
.bank-mini { margin-top: 14px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }

.status-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.status-pending          { background: #f1f3f8; color: #54607A; }
.status-awaiting_payment { background: #fff4e0; color: #9a6500; }
.status-paid             { background: #e4f7ec; color: #1c8a4e; }
.status-shipped          { background: #e6f0ff; color: #1568E6; }
.status-cancelled        { background: #fdecec; color: #c0392b; }

.order-result-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; margin-top: 12px; }
.status-form .btn { margin-top: 4px; }

/* Konto */
.account-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: 8px; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, transform .12s ease; }
.order-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.order-card-right { display: flex; align-items: center; gap: 14px; }
.order-total { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* ---- Konto: Profil-Kopf + Karten (v5) ---- */
.acc-head { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); margin-bottom: 8px; }
.acc-avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--accent), #1f6fe0); }
.acc-head-info { min-width: 0; }
.acc-head-info .acc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.acc-head-info .acc-mail { color: var(--muted); font-size: 0.86rem; word-break: break-word; }
.acc-head-actions { margin-left: auto; }
.acc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.acc-count { font-size: 0.82rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .order-card { flex-direction: column; align-items: flex-start; }
  .order-card-right { width: 100%; justify-content: space-between; }
  .acc-head { flex-wrap: wrap; padding: 16px; }
  .acc-head-actions { margin-left: 0; width: 100%; }
  .acc-head-actions .btn { width: 100%; }
}
.auth-form { max-width: 480px; margin: 0 auto; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

/* Admin-Zusätze */
.admin-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-link { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.chip-link:hover { border-color: var(--accent-line); color: var(--text); }
.chip-link.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tbl td.r, .tbl th.r { text-align: right; }
.img-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.img-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ----------------------------- Scroll-Reveal ---------------------------- */
html.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------- Shop-Filter & Badges -------------------- */
.input-sm { padding: 9px 12px; font-size: 0.9rem; }
select.input-sm { padding-right: 30px; }

.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.shop-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 14px; }
.sf-search { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 180px; }
.sf-search svg { position: absolute; left: 12px; color: var(--muted-2); pointer-events: none; }
.sf-search input { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--text); }
.sf-price { width: 92px; flex: 0 0 auto; }
.sf-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.sf-check input { accent-color: var(--accent); }
.shop-resultbar { display: flex; justify-content: flex-end; margin-bottom: 16px; font-size: 0.88rem; }

/* Badges */
.badge-sale { display: inline-block; background: var(--danger); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge-soldout { display: inline-block; background: #54607A; color: #fff; font-size: 0.74rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.corner { position: absolute; top: 10px; left: 10px; z-index: 2; }
.badge-soldout.corner { left: auto; right: 10px; }
.product .p-img { position: relative; }

.p-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.badge-cond { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.cond-refurbished { background: #eef6ff; color: #1568E6; border-color: #cfe2ff; }
.cond-used { background: #fff4e0; color: #9a6500; border-color: #ffe2b0; }
.badge-stock { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-stock.in { background: #e4f7ec; color: #1c8a4e; }
.badge-stock.out { background: #fdecec; color: #c0392b; }
.badge-meta { display: inline-block; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.price .price-old { font-size: 0.82rem; color: var(--muted-2); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.btn-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; background: var(--surface-2); }

/* Produktdetail-Zusätze */
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.pd-price-old { font-size: 1rem; color: var(--muted-2); text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.pd-price .badge-sale { vertical-align: middle; margin-left: 8px; font-size: 0.8rem; }
.pd-specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.pd-specs th { text-align: left; color: var(--muted); font-weight: 500; padding: 7px 14px 7px 0; width: 36%; vertical-align: top; }
.pd-specs td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.pd-specs tr:last-child td, .pd-specs tr:last-child th { border-bottom: 0; }

/* Gerenderte Produktbeschreibung (HTML aus Editor) */
.rte-content { line-height: 1.7; }
.rte-content h2 { font-size: 1.25rem; margin: 18px 0 8px; }
.rte-content h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.rte-content h4 { font-size: 0.98rem; margin: 14px 0 6px; }
.rte-content p { margin: 0 0 10px; }
.rte-content ul, .rte-content ol { margin: 0 0 12px; padding-left: 22px; }
.rte-content li { margin-bottom: 4px; }
.rte-content a { color: var(--accent); text-decoration: underline; }

/* Paginierung */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 500; }
.page-link:hover { border-color: var(--accent-line); }
.page-link.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Rich-Text-Editor (Admin) */
.rte { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rte-btn { min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 0.84rem; cursor: pointer; line-height: 1; }
.rte-btn:hover { border-color: var(--accent); color: var(--accent); }
.rte-area { min-height: 150px; padding: 12px 14px; outline: none; line-height: 1.6; border: 0; border-radius: 0; }
.rte-area:focus { box-shadow: none; }
.rte-area h2 { font-size: 1.2rem; margin: 12px 0 6px; }
.rte-area h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.rte-area ul, .rte-area ol { padding-left: 22px; }

/* Admin-Zusätze */
.invoice-box { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.inline-status { margin: 0; }
.stat.accent { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-color: transparent; color: #fff; }
.stat.accent .k { color: rgba(255,255,255,0.85); }
.stat.warn { background: #fff8ec; border-color: #ffe2b0; }
.stat.warn .v { color: #9a6500; }
.stock-out { color: #c0392b; font-weight: 700; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 900px) {
  .mainnav, .head-wa span { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-video { order: -1; }
  .split, .repair-layout { grid-template-columns: 1fr; }
  .wa-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid-2, .form-row.cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-actions { gap: 8px; }
  .btn { padding: 11px 16px; }
  .head-row { flex-direction: column; align-items: stretch; }
  .head-row .btn { align-self: flex-start; }
  .order-meta { gap: 10px; }
  .g-recaptcha { transform: scale(0.86); transform-origin: 0 0; }
  .shop-filter { gap: 8px; }
  .shop-filter .sf-search { flex: 1 1 100%; }
  .shop-filter select.input-sm,
  .shop-filter .btn { flex: 1 1 100%; }
  .sf-price { flex: 1 1 calc(50% - 4px); width: auto; }
  .sf-check { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Kasse: Versand-/Rabattzeilen + Gutschein (v4) ---- */
.co-lines { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.co-line { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); }
.co-line.co-discount { color: #1c8a4e; font-weight: 600; }
.co-freehint { margin: 4px 0 0; font-size: 0.82rem; color: var(--accent-strong); background: var(--accent-soft); padding: 8px 10px; border-radius: var(--radius-sm); }
.coupon-bar { margin-top: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { flex: 1; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.coupon-applied .linkish { color: var(--danger); }
@media (max-width: 560px) { .coupon-form { flex-direction: column; } .coupon-form .btn { width: 100%; } }

/* ---- Admin: mobile Navigation als Drawer (≤900px) ---- */
@media (max-width: 900px) {
  .admin-topnav { display: flex; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; top: 0; left: 0; height: 100dvh; width: min(280px, 86vw);
    z-index: 80; transform: translateX(-100%); transition: transform .25s ease;
    border-right: 1px solid var(--line-soft); box-shadow: 0 0 40px rgba(12,19,34,.18);
    overflow-y: auto; padding: 20px 16px;
  }
  .admin-side.open { transform: translateX(0); }
  .admin-main { padding: 18px 16px 40px; }
  .admin-topbar { margin-bottom: 20px; }
  .admin-topbar h1, .admin-main h1 { font-size: 1.3rem; }
  /* Breite Tabellen horizontal scrollbar machen (Karte scrollt) */
  .admin-main .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-main .tbl { min-width: 520px; }
  .admin-actions { width: 100%; }
  .admin-filter .input, .admin-filter .input-sm { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .admin-main { padding: 16px 12px 36px; }
  .admin-card-pad, .admin-main .card { padding: 16px; }
}

/* ---- Admin: Bildergalerie-Verwaltung ---- */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.ag-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ag-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--surface-2); }
.ag-actions { display: flex; gap: 6px; padding: 8px; }
.ag-actions form { flex: 1; }
.ag-actions .btn { width: 100%; padding: 6px 8px; font-size: .78rem; }

/* ---- Produktgalerie (Frontend) ---- */
.pd-media-wrap { display: flex; flex-direction: column; gap: 12px; }
button.pd-media { display: block; width: 100%; padding: 0; font: inherit; color: inherit; position: relative; cursor: zoom-in; }
.pd-zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(12,19,34,.62); color: #fff; backdrop-filter: blur(2px); opacity: 0; transition: opacity .15s ease; }
button.pd-media:hover .pd-zoom-hint, button.pd-media:focus-visible .pd-zoom-hint { opacity: 1; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 68px; height: 68px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; transition: border-color .15s ease, transform .12s ease; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-1px); }
.pd-thumb.active { border-color: var(--accent); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(8,12,22,.9); opacity: 0; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(94vw, 1100px); max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-family: var(--font-mono); font-size: .85rem; }

@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .pd-thumb { width: 60px; height: 60px; }
}

/* ---- Support-Ticket Dialog ---- */
.ticket-thread { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.tk-msg { display: flex; }
.tk-msg.tk-mine { justify-content: flex-end; }
.tk-msg.tk-staff { justify-content: flex-start; }
.tk-bubble { max-width: 82%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); }
.tk-msg.tk-mine .tk-bubble { background: var(--accent-soft); border-color: var(--accent-line); border-bottom-right-radius: 5px; }
.tk-msg.tk-staff .tk-bubble { border-bottom-left-radius: 5px; }
.tk-meta { font-size: .74rem; color: var(--muted-2); margin-bottom: 6px; font-family: var(--font-mono); }
.tk-body { font-size: .96rem; line-height: 1.55; color: var(--text); white-space: normal; word-break: break-word; }
.tk-attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-file { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.tk-file img { width: 90px; height: 90px; object-fit: cover; display: block; }
.tk-file-ico { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 6px 0 6px 8px; border-radius: 8px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; }
.tk-file-name { padding: 0 12px 0 4px; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ticket-reply-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.t-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; font-size: .9rem; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: middle; }
@media (max-width: 560px) { .tk-bubble { max-width: 92%; } }
