/*
Theme Name: Powerstore
Description: Eigenes Theme für Powerstore Computers, Auer – dunkel, Parallax, Seite baut sich beim Scrollen zusammen. Deutsch und Italienisch (WPML). Erzeugt aus konzept/startseite-entwurf mit theme/theme_bauen.py.
Author: Powerstore Computers
Version: 1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: powerstore
License: proprietär
*/
:root {
  --nacht: #0D1321;
  --flaeche: #151E30;
  --flaeche-hell: #1C2740;
  --kante: #26324A;
  --theke: #6FA8FF;
  --logo-blau: #1E7BE6;
  --logo-blau-hover: #3A8FF0;
  --violett: #9B8CFF;
  --text: #EAF0F8;
  --neben: #A3AEC2;
  --offen: #5FD39A;
  --zu: #F2A65A;
  --breite: 1200px;
  --rand: clamp(16px, 4vw, 40px);
  --radius-klein: 6px;
  --radius-gross: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--theke); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--theke); outline-offset: 3px; border-radius: 4px; }
.innen { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }

/* Überschriften: breit geschnitten, eng gesetzt – die Schrift trägt die Technik-Anmutung */
h1, h2, h3 { font-variation-settings: "wdth" 118; font-weight: 750; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-variation-settings: "wdth" 110; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--neben); max-width: 56ch; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.35em; border-radius: var(--radius-klein);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.knopf-voll { background: var(--logo-blau); color: #fff; }
.knopf-voll:hover { background: var(--logo-blau-hover); }
.knopf-rand { border-color: #4A5A7A; color: var(--text); background: rgba(13,19,33,.35); }
.knopf-rand:hover { border-color: var(--theke); }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }

/* Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: rgba(13,19,33,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38,50,74,.8);
}
.kopf .innen { display: flex; align-items: center; gap: 28px; height: 76px; }
.kopf .logo img { height: 44px; width: auto; }
.menue { display: flex; gap: 26px; margin-left: auto; }
.menue a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.menue a:hover, .menue > a[aria-current] { color: var(--theke); }
.menue a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
/* Untermenü „Werkstatt“: öffnet bei Maus, Tastatur und Klick */
.untermenue { position: relative; }
.unter-knopf { background: none; border: 0; color: var(--text); font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.unter-knopf::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.unter-knopf:hover, .unter-knopf[data-aktiv] { color: var(--theke); }
.unter-knopf[data-aktiv] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.unter {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 290px; display: grid; gap: 2px; padding: 10px;
  background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross); box-shadow: 0 18px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.unter::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.untermenue:hover .unter, .untermenue:focus-within .unter, .untermenue.offen .unter { opacity: 1; visibility: visible; transform: none; }
.untermenue:hover .unter-knopf::after, .untermenue.offen .unter-knopf::after { transform: translateY(1px) rotate(-135deg); }
.menue .unter a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-klein); font-weight: 600; }
.menue .unter a span { color: var(--neben); font-weight: 400; font-size: .86rem; }
.menue .unter a:hover, .menue .unter a[aria-current] { background: var(--flaeche-hell); text-decoration: none; }
.kopf .knopf { padding: .6em 1.05em; }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--kante); color: var(--text); border-radius: var(--radius-klein); padding: .5em .8em; font: inherit; }

/* Hauptbild mit Parallax */
.held { position: relative; min-height: min(88svh, 820px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.held .ebene { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.held .foto { background: url(assets/bilder/laden.jpg) center 40% / cover no-repeat; }
.held .toenung {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(13,19,33,.97) 0%, rgba(13,19,33,.9) 42%, rgba(13,19,33,.6) 72%, rgba(13,19,33,.68) 100%),
    linear-gradient(0deg, var(--nacht) 0%, rgba(13,19,33,0) 35%),
    linear-gradient(0deg, rgba(30,60,140,.25), rgba(30,60,140,.25));
}
.held .muster { z-index: -1; inset: -20% -5% -20% 42%; mix-blend-mode: screen; opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.held .muster svg { width: 100%; height: 100%; }
.muster path { fill: rgba(111,168,255,.07); stroke: url(#leuchten); stroke-width: 3; stroke-linecap: round; filter: url(#glimmen); }
.held-text { padding: 190px 0 40px; display: grid; gap: 26px; }
.held-text h1 { max-width: 20ch; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
.leiste {
  display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 18px; padding-top: 22px;
  border-top: 1px solid var(--kante); color: var(--neben); font-size: .96rem;
}
.leiste strong { color: var(--text); font-weight: 600; }
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; background: var(--offen); box-shadow: 0 0 0 4px rgba(95,211,154,.18); vertical-align: 1px; }
.status.zu::before { background: var(--zu); box-shadow: 0 0 0 4px rgba(242,166,90,.18); }

/* Fernwartung */
.fernwartung { padding: 96px 0; }
.konsole {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross); overflow: hidden;
}
.konsole-text { padding: clamp(28px, 4vw, 52px); display: grid; gap: 22px; align-content: start; }
.schritte { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; counter-reset: schritt; }
.schritte li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--theke);
  border: 1px solid var(--kante); background: var(--nacht);
}
.schritte strong { display: block; font-weight: 650; }
.schritte span { color: var(--neben); font-size: .96rem; }
.konsole-download {
  padding: clamp(28px, 4vw, 52px); display: grid; gap: 16px; align-content: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(111,168,255,.16), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(155,140,255,.12), transparent 60%),
    var(--flaeche-hell);
  border-left: 1px solid var(--kante);
}
.konsole-download .knopf { justify-content: center; font-size: 1.08rem; padding: 1.05em 1.3em; }
.konsole-download .hinweis { color: var(--neben); font-size: .92rem; text-align: center; }
.konsole-download .tel { font-size: 1.5rem; font-weight: 700; font-variation-settings: "wdth" 112; color: var(--text); text-decoration: none; text-align: center; }

/* Leistungen als Liste */
.leistungen { padding: 40px 0 110px; }
.leistungen .innen { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.leistungen-kopf { display: grid; gap: 18px; align-content: start; position: sticky; top: 110px; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kante); }
.liste li { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--kante); }
.liste h3 { font-size: 1.15rem; }
.liste p { color: var(--neben); font-size: .98rem; }

/* Parallax-Band */
.band { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.band .ebene { position: absolute; inset: -32% 0; z-index: -2; background: url(assets/bilder/werkstatt.jpg) center / cover no-repeat; will-change: transform; }
.band::after { content: ""; position: absolute; inset: -2px 0; z-index: -1; background: linear-gradient(180deg, var(--nacht) 0%, rgba(13,19,33,.72) 30%, rgba(13,19,33,.72) 70%, var(--nacht) 100%); }
.band blockquote { position: relative; z-index: 1; margin: 0; max-width: 24ch; font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 700; font-variation-settings: "wdth" 115; line-height: 1.15; }
.band cite { display: block; margin-top: 22px; font-style: normal; color: var(--neben); font-size: 1rem; font-weight: 500; font-variation-settings: "wdth" 100; }

/* Werkstatt: 3D-Druck und Laser */
.werkstatt { padding: 110px 0; }
.werkstatt-kopf { display: grid; gap: 16px; margin-bottom: 44px; }
.raster { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.stueck { position: relative; border-radius: var(--radius-gross); overflow: hidden; background: var(--flaeche); border: 1px solid var(--kante); display: grid; }
.stueck img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.stueck.gross { grid-row: span 2; }
.stueck.gross img { aspect-ratio: auto; min-height: 520px; object-position: center 30%; }
.stueck .text { position: absolute; inset: auto 0 0 0; padding: 90px 26px 26px; display: grid; gap: 8px; background: linear-gradient(0deg, rgba(13,19,33,.97) 0%, rgba(13,19,33,.92) 55%, rgba(13,19,33,0) 100%); }
.stueck .text p { color: #C9D2E2; font-size: .96rem; max-width: 46ch; }
.mass { font-variation-settings: "wdth" 112; font-weight: 700; color: var(--theke); font-size: 1.02rem; }
.stueck a.flaeche-link { position: absolute; inset: 0; z-index: 2; }
.stueck:hover { border-color: #3A4A6A; }

/* Beratung */
.beratung { padding: 20px 0 120px; }
.beratung .innen { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.beratung-bild { border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--kante); }
.beratung-bild img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% center; }
.beratung-text { display: grid; gap: 22px; }

/* Fuß */
.fuss { background: var(--flaeche); border-top: 1px solid var(--kante); padding: 72px 0 36px; color: var(--neben); font-size: .96rem; }
.fuss .innen.spalten { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.fuss h3 { color: var(--text); font-size: 1rem; margin-bottom: 14px; font-variation-settings: "wdth" 105; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--theke); }
.fuss dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.fuss dt { color: var(--text); }
.fuss dd { margin: 0; }
.fuss .unten { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--kante); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* Zusätzliche Parallax-Ebenen: schwebende Thekenscherben im Hintergrund der Abschnitte */
main, .fuss { overflow-x: hidden; overflow-x: clip; }
[data-bau] { will-change: transform, opacity; }
.tiefe { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.deko { position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.deko svg { width: 100%; height: 100%; overflow: visible; }
.deko use { fill: rgba(111,168,255,.03); stroke: rgba(111,168,255,.2); stroke-width: 1.5; }
.deko.violett use { fill: rgba(155,140,255,.03); stroke: rgba(155,140,255,.18); }
.deko-fern-a { width: 520px; height: 520px; left: -220px; top: -40px; }
.deko-fern-b { width: 380px; height: 380px; right: -150px; bottom: -60px; }
.deko-leist { width: 620px; height: 620px; right: -260px; top: 18%; }
.deko-werk { width: 560px; height: 560px; left: -260px; top: 42%; }
.deko-berat { width: 460px; height: 460px; right: -180px; top: -8%; }
.band .band-muster { position: absolute; inset: -30% -10%; z-index: 0; mix-blend-mode: screen; opacity: .55; will-change: transform; }
.band .band-muster svg { width: 100%; height: 100%; }
.band .band-muster use { fill: rgba(111,168,255,.05); stroke: url(#leuchten); stroke-width: 2; }
/* Bilder als Fenster: das Foto ist größer als sein Rahmen und gleitet darin */
.fenster { will-change: transform; transform: scale(1.22); }
.held-text { will-change: transform, opacity; }

/* Handy */
@media (max-width: 960px) {
  .menue { display: none; }
  .menue.offen { display: grid; position: absolute; top: 76px; left: 0; right: 0; background: var(--nacht); border-bottom: 1px solid var(--kante); padding: 12px var(--rand) 20px; gap: 0; }
  .menue.offen a { padding: 12px 0; border-bottom: 1px solid var(--kante); }
  .menue.offen .untermenue { border-bottom: 1px solid var(--kante); }
  .menue.offen .unter-knopf { padding: 12px 0; width: 100%; justify-content: space-between; }
  .menue.offen .unter { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 14px; min-width: 0; display: none; }
  .menue.offen .untermenue.offen .unter { display: grid; }
  .menue.offen .unter a { border-bottom: 0; padding: 8px 0; }
  .menue-knopf { display: block; }
  .kopf .innen { gap: 12px; }
  .kopf .fern-kurz { margin-left: 0; }
  .konsole { grid-template-columns: 1fr; }
  .konsole-download { border-left: 0; border-top: 1px solid var(--kante); }
  .leistungen .innen, .beratung .innen { grid-template-columns: 1fr; gap: 32px; }
  .leistungen-kopf { position: static; }
  .raster { grid-template-columns: 1fr; }
  .stueck.gross { grid-row: auto; }
  .stueck.gross img { min-height: 0; aspect-ratio: 1 / 1; }
  .fuss .innen.spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .kopf .innen { height: 64px; }
  .kopf .logo img { height: 34px; }
  .menue.offen { top: 64px; }
  .kopf .fern-kurz { margin-left: auto; padding: .55em .8em; font-size: .92rem; }
  .menue-knopf { margin-left: 0; }
  .held .muster { inset: -10% -30% 30% 30%; opacity: .4; }
  .held-text { padding: 120px 0 40px; }
  .held .toenung { background: linear-gradient(0deg, var(--nacht) 8%, rgba(13,19,33,.86) 55%, rgba(13,19,33,.6) 100%); }
  .held-knoepfe .knopf { flex: 1 1 100%; justify-content: center; }
  .liste li { grid-template-columns: 1fr; gap: 6px; }
  .fuss .innen.spalten { grid-template-columns: 1fr; }
  .fernwartung { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ebene, .deko, .band-muster, .stueck, .held-text { transform: none !important; opacity: 1 !important; }
  .fenster { transform: none !important; }
  .muster path { animation: none !important; stroke-dashoffset: 0 !important; }
}
/* Ein einziger Auftritt beim Laden: die Thekenlinien zeichnen sich ein */
@keyframes einzeichnen { to { stroke-dashoffset: 0; } }
.muster path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: einzeichnen 2.4s cubic-bezier(.3,.6,.2,1) forwards; }
.muster path:nth-child(odd) { animation-delay: .25s; }
.muster path:nth-child(3n) { animation-delay: .5s; }

/* ===== Unterseiten ===== */
/* Seitenkopf: kleinere Fassung des Hauptbilds */
.held.klein { min-height: min(62svh, 600px); }
.held.klein h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 20ch; }
.held.klein .held-text { padding-bottom: 64px; }
.pfad { color: var(--neben); font-size: .92rem; }
.pfad a { color: var(--neben); text-decoration: none; }
.pfad a:hover { color: var(--theke); }

/* Abschnitte */
.abschnitt { padding: 100px 0; }
.abschnitt.eng { padding: 64px 0; }
.abschnitt-kopf { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zweispaltig.umgekehrt > :first-child { order: 2; }
.textblock { display: grid; gap: 18px; }
.textblock p { color: #C9D2E2; max-width: 62ch; }
.bildrahmen { border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--kante); background: var(--flaeche); }
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bildrahmen.hoch img { aspect-ratio: 4 / 5; }
.bildrahmen.quadrat img { aspect-ratio: 1 / 1; }

/* Kennzahlen aus den echten Seiten (Maße, Materialien, Ort) */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--kante); border-bottom: 1px solid var(--kante); }
.fakten div { padding: 26px 20px 24px 0; }
.fakten div + div { padding-left: 20px; border-left: 1px solid var(--kante); }
.fakten strong { display: block; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-variation-settings: "wdth" 115; font-weight: 750; color: var(--text); line-height: 1.15; }
.fakten span { color: var(--neben); font-size: .94rem; }

/* Karten mit oder ohne Bild */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.karten.drei { grid-template-columns: repeat(3, 1fr); }
.karte { background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross); overflow: hidden; display: grid; align-content: start; }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte .inhalt { padding: 24px 24px 26px; display: grid; gap: 8px; }
.karte p { color: var(--neben); font-size: .97rem; }

/* Listen mit Scherben-Markierung */
.scherbenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scherbenliste.zwei { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.scherbenliste li { position: relative; padding-left: 28px; color: #C9D2E2; }
.scherbenliste li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 9px; background: linear-gradient(135deg, var(--theke), var(--violett)); clip-path: polygon(10% 0, 100% 20%, 80% 100%, 0 75%); }

/* Materialien als Schilder */
.schilder { display: flex; flex-wrap: wrap; gap: 10px; }
.schilder span { border: 1px solid var(--kante); background: var(--flaeche); border-radius: 999px; padding: .4em 1em; font-weight: 600; font-size: .95rem; }

/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: ablauf; }
.ablauf li { counter-increment: ablauf; border-top: 2px solid var(--kante); padding-top: 22px; display: grid; gap: 8px; align-content: start; }
.ablauf li::before { content: counter(ablauf); font-size: 2.6rem; font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; color: var(--theke); }
.ablauf p { color: var(--neben); font-size: .97rem; }

/* Technische Angaben */
.technik { display: grid; grid-template-columns: minmax(180px, .6fr) 1.4fr; margin: 0; border-top: 1px solid var(--kante); }
.technik dt, .technik dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--kante); }
.technik dt { color: var(--neben); padding-right: 20px; }
.technik dd { font-weight: 550; }

/* Hinweis */
.hinweis-box { border-left: 3px solid var(--theke); background: var(--flaeche); padding: 18px 22px; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; color: #C9D2E2; font-size: .97rem; }
.hinweis-box strong { color: var(--text); }

/* Anfrage am Seitenende */
.anfrage {
  border: 1px solid var(--kante); border-radius: var(--radius-gross); padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(111,168,255,.18), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(155,140,255,.14), transparent 60%),
    var(--flaeche);
}
.anfrage .knoepfe { display: grid; gap: 12px; }
.anfrage .knoepfe .knopf { justify-content: center; }

/* Formular (Kontakt) */
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formular label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.formular .breit { grid-column: 1 / -1; }
.formular input, .formular select, .formular textarea {
  font: inherit; color: var(--text); background: var(--nacht); border: 1px solid #3A4A6A; border-radius: var(--radius-klein); padding: .75em .9em;
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--theke); outline-offset: 1px; border-color: var(--theke); }
.formular textarea { min-height: 150px; resize: vertical; }
.formular .zustimmung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--neben); }
.formular .zustimmung input { margin-top: .3em; }
.kontaktkarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.kontaktkarten .karte .inhalt { gap: 6px; }
.kontaktkarten a { color: var(--text); text-decoration: none; font-weight: 600; }
.kontaktkarten a:hover { color: var(--theke); }

/* Anfahrt: eigenes Kartenbild (OpenStreetMap, eingefärbt) statt eingebettetem Google Maps – kein Datenfluss beim Laden */
.anfahrt { margin: 28px 0 0; }
.anfahrt-karte { position: relative; display: block; border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--kante); color: var(--text); text-decoration: none; }
.anfahrt-bild { position: relative; display: block; }
.anfahrt-karte img { display: block; width: 100%; height: clamp(260px, 38vw, 440px); object-fit: cover; object-position: 50% 50%; }
.anfahrt-nadel { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -30px 0 0 -15px; background: var(--logo-blau); border: 3px solid var(--text); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.anfahrt-nadel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text); }
.anfahrt-schild { position: absolute; left: 20px; bottom: 20px; display: grid; gap: 2px; padding: 16px 20px; background: rgba(13,19,33,.9); border: 1px solid var(--kante); border-radius: var(--radius-klein); max-width: calc(100% - 40px); }
.anfahrt-schild strong { font-size: 1.05rem; }
.anfahrt-schild > span { color: var(--neben); }
.anfahrt-schild .anfahrt-knopf { margin-top: 10px; color: var(--theke); font-weight: 650; }
.anfahrt-karte:hover .anfahrt-knopf, .anfahrt-karte:focus-visible .anfahrt-knopf { text-decoration: underline; text-underline-offset: 3px; }
.anfahrt-karte:focus-visible { outline: 2px solid var(--theke); outline-offset: 3px; }
.anfahrt figcaption { margin-top: 8px; font-size: .8rem; color: var(--neben); text-align: right; }
.anfahrt figcaption a { color: var(--neben); }
@media (max-width: 560px) {
  .anfahrt-schild { position: static; max-width: none; border: 0; border-top: 1px solid var(--kante); border-radius: 0; background: var(--flaeche); }
}

/* Fuß: Facebook und Instagram als schlichte Links (keine eingebetteten Plattform-Knöpfe) */
.fuss-sozial { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.fuss-sozial a { display: inline-flex; align-items: center; gap: 7px; }
.fuss-sozial svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Textseiten (Impressum, Datenschutz) */
.textseite { max-width: 72ch; display: grid; gap: 16px; }
.textseite h2 { font-size: 1.5rem; margin-top: 1.6em; font-variation-settings: "wdth" 110; }
.textseite p, .textseite li { color: #C9D2E2; }
.textseite address { font-style: normal; color: var(--text); line-height: 1.8; }
.entwurf-hinweis { font-size: .9rem; color: var(--zu); }

@media (max-width: 960px) {
  .zweispaltig, .anfrage { grid-template-columns: 1fr; gap: 32px; }
  .zweispaltig.umgekehrt > :first-child { order: 0; }
  .ablauf { grid-template-columns: 1fr 1fr; }
  .karten.drei { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 560px) {
  .abschnitt { padding: 64px 0; }
  .scherbenliste.zwei, .formular { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; }
  .held.klein { min-height: 0; }
  .held.klein .held-text { padding: 120px 0 48px; }
  .technik { grid-template-columns: 1fr; }
  .technik dt { border-bottom: 0; padding-bottom: 0; }
  .fakten div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--kante); }
  .fakten div { padding-left: 0; }
}
/* Häufige Fragen: aufklappbar, Antwort sofort sichtbar für Suchmaschinen im Quelltext */
.fragen { border-top: 1px solid var(--kante); max-width: 880px; }
.fragen details { border-bottom: 1px solid var(--kante); }
.fragen summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 650; font-size: 1.1rem; font-variation-settings: "wdth" 105; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--theke); border-bottom: 2px solid var(--theke); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.fragen details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fragen summary:hover { color: var(--theke); }
.fragen details p { color: #C9D2E2; padding: 0 0 22px; max-width: 70ch; }
/* ===== Sortiment: das beleuchtete Regal ===== */
.sortiment { padding: 110px 0 90px; }
.sortiment-raster { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.sortiment-bild { position: sticky; top: 110px; border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--kante); }
.sortiment-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; }
.regal { list-style: none; margin: 8px 0 0; padding: 0; }
.regal li { position: relative; }
.regal a, .regal .brett {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; align-items: center;
  padding: 18px 6px 16px; color: var(--text); text-decoration: none; position: relative;
}
.regal a::before { /* Regalbrett mit Lichtleiste wie im Laden */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(111,168,255,.55), rgba(155,140,255,.35) 60%, rgba(111,168,255,.08));
  box-shadow: 0 0 14px rgba(111,168,255,.35);
}
.regal a::after { /* Pfeil rechts */
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 10px; height: 10px;
  border-right: 2px solid var(--theke); border-top: 2px solid var(--theke); transform: rotate(45deg); transition: transform .2s;
}
.regal strong { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-variation-settings: "wdth" 112; font-weight: 700; }
.regal .brett { grid-template-columns: 1fr; }
.regal .brett::before, .regal a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(111,168,255,.55), rgba(155,140,255,.35) 60%, rgba(111,168,255,.08)); box-shadow: 0 0 14px rgba(111,168,255,.35); }
.regal span { grid-column: 1; color: var(--neben); font-size: .95rem; }
.regal a:hover strong, .regal a:focus-visible strong { color: var(--theke); }
.regal a:hover::after { transform: translateX(4px) rotate(45deg); }
.regal a:hover::before { box-shadow: 0 0 22px rgba(111,168,255,.6); }
.sortiment-fuss { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; justify-content: space-between; margin-top: 34px; }
.plakette { flex: 1 1 360px; border: 1px solid rgba(111,168,255,.45); border-radius: var(--radius-gross); padding: 16px 20px; color: #C9D2E2; font-size: .97rem;
  background: linear-gradient(135deg, rgba(111,168,255,.1), rgba(155,140,255,.06)); }
.plakette strong { display: block; color: var(--text); font-size: 1.05rem; font-variation-settings: "wdth" 110; margin-bottom: 2px; }
@media (max-width: 960px) {
  .sortiment-raster { grid-template-columns: 1fr; gap: 36px; }
  .sortiment-bild { position: static; }
  .sortiment-bild img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .sortiment { padding: 72px 0 56px; }
  .sortiment-fuss .knopf { flex: 1 1 100%; justify-content: center; }
}


/* Fernwartungs-Fenster (öffnet mittig über der Seite) */
.fern-fenster { border: 0; padding: 0; background: none; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; color: var(--text); }
.fern-fenster::backdrop { background: rgba(8,12,22,.72); backdrop-filter: blur(6px); }
.fern-fenster[open] { animation: fenster-rein .28s cubic-bezier(.2,.8,.2,1); }
.fern-fenster .konsole { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.fern-fenster .fern-zu { position: absolute; top: 12px; right: 16px; z-index: 2; background: none; border: 0; color: var(--neben); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.fern-fenster .fern-zu:hover { color: var(--text); }
.fern-fenster .fern-stand { color: var(--offen); }
@keyframes fenster-rein { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .fern-fenster[open] { animation: none; } }

/* Werkstattfoto neben „Was wir für Sie erledigen“ */
.leistungen-bild { margin-top: 18px; border-radius: var(--radius-gross); overflow: hidden; border: 1px solid var(--kante); }
.leistungen-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Sichtbarer Hinweis, dass die Werkstatt-Karten anklickbar sind */
.mehr-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--theke); font-weight: 650; font-size: .95rem; }
.mehr-link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.stueck:hover .mehr-link::after { transform: translateX(4px) rotate(45deg); }
.stueck:hover .mehr-link { color: #9CC3FF; }

/* Sprachwahl DE / IT im Menü */
.menue .sprachwahl { border: 1px solid var(--kante); border-radius: 999px; padding: .15em .75em; font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.menue .sprachwahl:hover { border-color: var(--theke); }
@media (max-width: 960px) { .menue.offen .sprachwahl { border: 0; border-radius: 0; padding: 12px 0; font-size: 1rem; } }
/* ===== Nur in WordPress: Ergänzungen zum Entwurfsstil ===== */
.sprungmarke { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--logo-blau); color: #fff; padding: 10px 16px; border-radius: var(--radius-klein); }
.sprungmarke:focus { left: 16px; }
.lockfeld { position: absolute !important; left: -9999px !important; }
.formular-meldung { padding: 14px 18px; border-radius: var(--radius-klein); font-weight: 600; }
.formular-meldung.gut { background: rgba(95,211,154,.12); border: 1px solid rgba(95,211,154,.5); color: var(--offen); }
.formular-meldung.warn { background: rgba(242,166,90,.12); border: 1px solid rgba(242,166,90,.5); color: var(--zu); }
body.admin-bar .kopf { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kopf { top: 46px; } }

/* Inhalte aus dem Editor (Cookie-Richtlinie, Shop-Seiten) im Stil der Textseiten */
.inhalt-editor a { color: var(--theke); }
.inhalt-editor table { width: 100%; border-collapse: collapse; }
.inhalt-editor th, .inhalt-editor td { border-bottom: 1px solid var(--kante); padding: 10px 8px; text-align: left; color: #C9D2E2; }
.inhalt-editor h3 { font-size: 1.2rem; margin-top: 1.2em; }

/* WooCommerce: Grundanpassung an das dunkle Design (Feinschliff folgt mit der Shop-Freigabe) */
.shop-inhalt { color: var(--text); }
.shop-inhalt .woocommerce-breadcrumb, .shop-inhalt .woocommerce-result-count { color: var(--neben); }
.shop-inhalt ul.products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shop-inhalt ul.products li.product { background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross); padding: 16px; }
.shop-inhalt ul.products li.product a { color: var(--text); text-decoration: none; }
.shop-inhalt .price { color: var(--theke); font-weight: 700; }
.shop-inhalt .button, .shop-inhalt button.button { background: var(--logo-blau); color: #fff; border: 0; border-radius: var(--radius-klein); padding: .7em 1.1em; font-weight: 650; text-decoration: none; display: inline-block; }
.shop-inhalt input, .shop-inhalt select, .shop-inhalt textarea { font: inherit; color: var(--text); background: var(--nacht); border: 1px solid #3A4A6A; border-radius: var(--radius-klein); padding: .6em .8em; }

/* WPML blendet unten eine eigene Flaggenleiste ein – die Sprachwahl steht bereits im Menü und im Fuß */
.wpml-ls-statics-footer { display: none !important; }