/* Technische Ansicht (/technisch/) – derselbe Inhalt als Gespräch, dunkel wie eine Konsole.
   Schalter „Unter die Haube“ ohne JavaScript (Checkbox). Baut auf basis.css auf. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --kalk: #F5F3EE; --ink: #1C2427; --tanne: #1F3D33; --tanne-2: #16302A; --nacht: #0B1714;
  --tuerkis: #0F6E6C; --tuerkis-hell: #74D3CC; --abend: #EBA94F; --abend-hell: #F4C37E;
  --font-body: "Manrope", system-ui, sans-serif; --font-head: "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 10px; --radius-btn: 8px;
}
body {
  --bg: var(--nacht); --bg-alt: #122520; --text: #E6F2EF; --muted: #A9C7C1; --accent: var(--tuerkis-hell);
  --line: rgba(116, 211, 204, .22); --focus: var(--abend-hell); --card: #0F201C; --leiste-bg: #0F201C;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(116, 211, 204, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 211, 204, .045) 1px, transparent 1px);
  background-size: 28px 28px;
}
h1, h2, h3 { font-weight: 750; letter-spacing: -.02em; }
.chat { width: min(100% - 2rem, 46rem); margin-inline: auto; }
a { color: inherit; }

/* Logo hell auf dunkel */
.m-slab1 { fill: rgba(255, 255, 255, .5); }
.m-slab2 { fill: #fff; }
.m-river { stroke: var(--tuerkis-hell); }

/* Kopfzeile */
.t-kopf { position: sticky; top: 0; z-index: 30; background: rgba(11, 23, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.t-kopf-innen { width: min(100% - 2rem, 72rem); min-height: 4rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-name { font-weight: 780; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.pfad { display: flex; align-items: center; gap: .4rem; font: 500 .75rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.pfad::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--tuerkis-hell); }
.t-aktionen { display: flex; align-items: center; gap: 1rem; flex: none; }
.t-anruf { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .45rem 1rem; border-radius: var(--radius-btn); background: var(--abend); color: #1B1A16; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.t-anruf:hover { background: var(--abend-hell); }
.t-anruf svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 47.99rem) { .t-anruf { display: none; } }
@media (max-width: 30rem) { .pfad { display: none; } }

/* Schalter „Unter die Haube“ (Checkbox, ohne JavaScript) – fest verankert, damit der Browser beim Klick nicht springt */
.haube-input { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.haube-switch { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .1rem; cursor: pointer; user-select: none; font: 600 .8125rem/1 var(--mono); color: var(--text); }
.haube-track { position: relative; flex: none; width: 2.3rem; height: 1.35rem; border-radius: 999px; background: #2C4740; transition: background-color .2s; }
.haube-track::after { content: ""; position: absolute; top: .175rem; left: .175rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform .2s; }
#haube:checked ~ .t-kopf .haube-track { background: var(--tuerkis-hell); }
#haube:checked ~ .t-kopf .haube-track::after { transform: translateX(.95rem); background: var(--nacht); }
#haube:focus-visible ~ .t-kopf .haube-switch,
#haube:focus-visible ~ main .haube-inline,
#haube:focus-visible ~ main .haube-close { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 40rem) { .haube-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.haube-inline { color: var(--accent); font-weight: 650; text-decoration: underline dashed; text-underline-offset: .25em; cursor: pointer; }

/* Einleitung */
.chat-intro { padding: 2.25rem 0 .25rem; text-align: center; font-size: .9375rem; color: var(--muted); }
.chat-intro a { color: var(--accent); font-weight: 650; }
.intro-tag { display: inline-block; margin-bottom: .5rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 4px; font: 600 .75rem/1.4 var(--mono); color: var(--tuerkis-hell); }

/* Gesprächsverlauf */
.turn { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.who { display: block; font: 700 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nr { margin-left: .35rem; color: var(--muted); letter-spacing: 0; }
.q { position: relative; width: fit-content; max-width: 85%; margin: 0 0 1.25rem auto; padding: .75rem 1.1rem .85rem; border: 1px solid rgba(244, 195, 126, .42); border-radius: 12px 12px 3px 12px;
  background: rgba(244, 195, 126, .08); color: #F8E6CB; font: 600 clamp(1rem, 2vw, 1.1875rem)/1.4 var(--mono); letter-spacing: -.01em; }
.q-text::before { content: "› "; color: var(--abend-hell); }
.q .who { margin-bottom: .2rem; color: var(--abend-hell); }
.a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.avatar { position: sticky; top: 5rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; outline: 1px solid var(--line); outline-offset: 2px; }
.a-body { display: grid; gap: .6rem; }
.a-body > .who { padding-left: .25rem; color: var(--tuerkis-hell); }
.bubble { padding: clamp(1.15rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 3px 12px 12px 12px; background: var(--card); }
.bubble + .bubble { border-radius: 12px; }
.bubble h3 { font-size: 1.125rem; margin-bottom: .6rem; }
.bubble p + p { margin-top: .9rem; }
.bubble-lead { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 650; }
.bubble-hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 780; color: #fff; }
.bubble-hero h1 span { display: block; color: var(--abend-hell); }
.lead { margin-top: 1rem; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); }
.actions { margin-top: 1.5rem; }
.btn-primary { background: var(--abend); color: #1B1A16; }
.btn-primary:hover { background: var(--abend-hell); }
.btn-secondary { border-color: var(--tuerkis-hell); color: var(--tuerkis-hell); }
.btn-secondary:hover { background: var(--tuerkis-hell); color: var(--nacht); }
@media (max-width: 30rem) { .bubble .btn { padding-inline: 1rem; font-size: 1rem; } }
.vertrauen { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.1rem; font-size: .9375rem; font-weight: 600; }
.vertrauen li { position: relative; padding-left: 1.35rem; }
.vertrauen li::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .8rem; height: .45rem; border-left: 2px solid var(--tuerkis-hell); border-bottom: 2px solid var(--tuerkis-hell); transform: rotate(-45deg); }
.bubble-photo { margin: 0; padding: .5rem; overflow: hidden; }
.bubble-photo img { width: 100%; border-radius: 8px; }
.bubble-photo figcaption { padding: .6rem .5rem .2rem; font: 500 .8125rem/1.4 var(--mono); color: var(--muted); }

/* Für wen: Auswahl-Chips */
.chips { display: grid; gap: .6rem; }
@media (min-width: 38rem) { .chips { grid-template-columns: 1fr 1fr; } }
.chip { display: flex; align-items: center; gap: .75rem; height: 100%; padding: .45rem 1rem .45rem .45rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); text-decoration: none; transition: border-color .15s; }
.chip:hover { border-color: var(--tuerkis-hell); }
.chip img, .chip-plus { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.chip-plus { display: grid; place-items: center; background: var(--tuerkis-hell); color: var(--nacht); font-size: 1.5rem; }
.chip strong { display: block; font-size: .9688rem; line-height: 1.25; }
.chip small { display: block; font-size: .8125rem; line-height: 1.3; color: var(--muted); }

/* Leistungen */
.services-bubble { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .services-bubble { grid-template-columns: 1fr 1fr; } }
.services-bubble h3 { margin-bottom: 1rem; }

/* Preise wie eine Tabelle in der Konsole */
.preis-liste li { display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; align-items: baseline; gap: .2rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.preis-liste li:first-child { border-top: 0; padding-top: 0; }
.preis-name { font: 600 .8125rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tuerkis-hell); }
.preis { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 780; letter-spacing: -.02em; color: #fff; }
.preis-was { grid-column: 2; font-size: .9375rem; color: var(--muted); }
@media (max-width: 30rem) { .preis-liste li { grid-template-columns: 1fr; } .preis-was { grid-column: 1; } }
.preis-text { margin-top: .9rem; font-size: .9375rem; color: var(--muted); }

/* Beispiele: breiter auf großen Bildschirmen */
.design-t .examples { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 76rem) {
  .turn-wide .a { margin-inline: -13rem 0; }
  .design-t .examples { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.notice { border-left-color: var(--abend-hell); background: var(--bg-alt); }
.more { margin-top: 1.5rem; }

/* Ablauf wie ein Protokoll */
.track { counter-reset: t; }
.track li { position: relative; padding: 0 0 1.4rem 2.6rem; counter-increment: t; }
.track li::before { content: counter(t); position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 4px; background: var(--tuerkis-hell); color: var(--nacht); font: 800 .8125rem/1 var(--mono); }
.track li::after { content: ""; position: absolute; left: .82rem; top: 2rem; bottom: .25rem; width: 2px; background: var(--line); }
.track li:last-child { padding-bottom: 0; }
.track li:last-child::after { display: none; }
.track h3 { margin-bottom: .2rem; }
.track p { color: var(--muted); }
.track .ihr-teil { margin-top: .3rem; color: var(--text); font-size: .9375rem; }
.track .ihr-teil strong { color: var(--abend-hell); }

/* Über mich */
.about-bubble { display: grid; gap: 1.5rem; }
.about-portrait { width: min(14rem, 60%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
@media (min-width: 44rem) { .about-bubble { grid-template-columns: 13rem 1fr; align-items: start; } .about-portrait { width: 100%; } }
.about-bubble .text-link { color: var(--accent); }

/* Häufige Fragen */
.faq summary { font-size: 1.0625rem; }

/* Kontakt */
.design-t .contact-list { grid-template-columns: 1fr; gap: .6rem; }
.contact-link { min-height: 4.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); }
.contact-link:hover { border-color: var(--tuerkis-hell); }
.contact-link svg { color: var(--accent); }
.contact-list li:first-child .contact-link { background: var(--abend); border-color: var(--abend); color: #1B1A16; }
.contact-list li:first-child .contact-link svg { color: #1B1A16; }
.rueckruf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.area { margin-top: 1.25rem; color: var(--muted); }

/* Ende: Sie sind dran */
.turn-end { padding-bottom: 3rem; }
.q-typing { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; }
.q-typing .who { flex-basis: 100%; }
.typing { display: inline-flex; gap: .3rem; }
.typing i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; opacity: .55; }
.typing-text { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 700; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
@media (max-width: 30rem) { .end-actions .btn { flex: 1 1 100%; } }

/* Sprungmarken: Inhaltsverzeichnis rechts auf großen Bildschirmen */
.sprung { display: none; }
@media (min-width: 82rem) {
  .sprung { display: block; position: fixed; top: 7rem; left: calc(50% + 26rem); width: 12rem; }
  .sprung ul { display: grid; gap: .1rem; }
  .sprung ul::before { content: "Springen zu" / ""; margin: 0 0 .5rem .95rem; font: 700 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .sprung a { display: block; padding: .35rem .95rem; border-left: 2px solid var(--line); color: var(--muted); font-size: .875rem; font-weight: 650; text-decoration: none; }
  .sprung a:hover { border-left-color: var(--tuerkis-hell); color: var(--text); }
  body:has(#haube:checked) .sprung { display: none; }
}

/* Fußzeile und Statusleiste */
.t-fuss { padding: 2rem 0 2.5rem; text-align: center; font-size: .875rem; color: var(--muted); }
.end-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font: 600 .8125rem/1.4 var(--mono); color: var(--text); }
.end-line::before, .end-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; margin-bottom: .75rem; }
.fuss-links a { color: var(--text); }
.statusleiste { display: none; }
@media (min-width: 48rem) {
  body { padding-bottom: 2rem; }
  .statusleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 1.25rem; border-top: 1px solid var(--line); background: #0F201C; font: 500 .75rem/1.3 var(--mono); color: var(--muted); }
  .statusleiste i { display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: var(--tuerkis-hell); }
}

/* Panel „Unter der Haube“ – schwebt über der Seite, damit beim Einschalten nichts verrutscht */
.haube-panel { display: none; }
body:has(#haube:checked) .haube-panel {
  display: block; position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  max-height: 42vh; overflow: auto; border: 1.5px dashed var(--abend-hell); border-radius: 10px; background: rgba(8, 20, 17, .97); color: var(--text);
}
.haube-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.25rem; list-style: none; cursor: pointer; }
.haube-panel summary::-webkit-details-marker { display: none; }
.haube-panel summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2px solid var(--abend-hell); border-bottom: 2px solid var(--abend-hell); transform: translateY(.15rem) rotate(-135deg); }
.haube-panel details:not([open]) summary::after { transform: translateY(-.15rem) rotate(45deg); }
.haube-panel h2 { margin: 0; font: 700 .9375rem/1.3 var(--mono); color: var(--abend-hell); letter-spacing: 0; }
.haube-inner { padding: 0 1.25rem 1.15rem; }
.haube-panel ul { display: grid; gap: .5rem; margin-bottom: .9rem; }
.haube-panel li { position: relative; padding-left: 1.2rem; font-size: .9375rem; }
.haube-panel li::before { content: "›"; position: absolute; left: 0; color: var(--abend-hell); font-weight: 800; }
.haube-panel strong { color: #fff; }
.haube-panel a { color: var(--tuerkis-hell); }
.haube-panel p { font-size: .9375rem; font-weight: 650; color: var(--tuerkis-hell); }
.haube-close { display: inline-block; margin-top: .8rem; padding: .45rem .95rem; border: 1px solid var(--abend-hell); border-radius: var(--radius-btn); color: var(--abend-hell); font: 600 .8125rem/1.3 var(--mono); cursor: pointer; }
.haube-close:hover { background: var(--abend-hell); color: var(--nacht); }
@media (min-width: 48rem) { body:has(#haube:checked) .haube-panel { left: auto; right: 1.25rem; bottom: 2.75rem; width: 22rem; } }
@media (min-width: 82rem) { body:has(#haube:checked) .haube-panel { top: 6rem; bottom: auto; width: 19rem; max-height: calc(100vh - 9rem); } }

/* Bauplan-Ansicht: Raster deutlicher, Rahmen gestrichelt, Beschriftungen sitzen auf dem Rahmen (nichts verschiebt sich) */
body:has(#haube:checked) {
  background-image: linear-gradient(rgba(116, 211, 204, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 211, 204, .1) 1px, transparent 1px);
  background-size: 24px 24px;
}
body:has(#haube:checked) .bubble { outline: 1.5px dashed rgba(116, 211, 204, .65); outline-offset: 3px; }
body:has(#haube:checked) .q { outline: 1.5px dashed var(--abend-hell); outline-offset: 3px; }
body:has(#haube:checked) main img { filter: grayscale(1) contrast(.95); opacity: .6; }
body:has(#haube:checked) [data-spec] { outline: 1px solid rgba(244, 195, 126, .85); outline-offset: 2px; }
body:has(#haube:checked) [data-spec]:not(.t-kopf) { position: relative; }
body:has(#haube:checked) [data-spec]::before {
  content: attr(data-spec) / ""; position: absolute; left: .6rem; top: 0; z-index: 6; transform: translateY(-60%);
  max-width: calc(100% - 1.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .15rem .45rem; border-radius: 3px; background: var(--abend-hell); color: var(--nacht);
  font: 600 .6875rem/1.35 var(--mono); letter-spacing: 0; text-transform: none;
}
body:has(#haube:checked) .btn[data-spec]::before { max-width: none; }
body:has(#haube:checked) .t-kopf[data-spec]::before { top: 100%; left: 1rem; transform: translateY(4px); }
body:has(#haube:checked) .bubble-photo[data-spec]::before { top: .9rem; left: .9rem; transform: none; }
body:has(#haube:checked) .t-fuss[data-spec] { outline-offset: -4px; }
body:has(#haube:checked) .t-fuss[data-spec]::before { top: .5rem; left: 50%; transform: translateX(-50%); }

/* Bewegung nur, wenn erwünscht (nur Verschieben, keine Durchsichtigkeit – Kontraste bleiben) */
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: tippen 1.2s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  @supports (animation-timeline: view()) {
    .q { animation: von-rechts linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .bubble, .a-body > .who { animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes tippen { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.3rem); } }
@keyframes von-rechts { from { transform: translateX(2rem); } to { transform: none; } }
@keyframes auftauchen { from { transform: translateY(1.5rem); } to { transform: none; } }
