/* Prototyp Konzept A "Die Werkstatt" – Schema "Blueprint & Code"
   Keine externen Abhängigkeiten, keine Cookies. Schriften: System-Sans (Inter/Roboto falls installiert),
   Monospace (JetBrains Mono/Fira Code falls installiert). Selbst hosten wäre später möglich. */
:root {
  --bg: #1e1e2e;
  --bg-tief: #181825;
  --flaeche: #262637;
  --text: #e4e6f1;
  --text-leise: #9aa0b8;
  --akzent: #00f0ff;
  --akzent-dunkel: #00a9b5;
  --linie: #36384f;
  --glow: 0 0 0 1px rgba(0, 240, 255, .55), 0 0 18px rgba(0, 240, 255, .18);
  --sans: Inter, Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; color: var(--text); font: 1.05rem/1.65 var(--sans);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 240, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}
a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { text-shadow: 0 0 10px rgba(0, 240, 255, .6); }
a:focus-visible, button:focus-visible, .carousel:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; }
code, .mono { font-family: var(--mono); }

header.site { border-bottom: 1px solid var(--linie); background: rgba(24, 24, 37, .88); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.marke { font-family: var(--mono); font-size: .95rem; color: var(--text); text-decoration: none; }
.marke::before { content: "{"; color: var(--akzent); }
.marke::after { content: "}"; color: var(--akzent); }
nav a { font-size: .95rem; margin-left: 1.5rem; color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--akzent-dunkel); text-shadow: none; }
nav a[aria-current="page"] { border-bottom-color: var(--akzent); color: var(--akzent); }

.hero { padding: 4.5rem 0 2.5rem; }
.hero.zwei { display: grid; gap: 2.5rem; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 800px) { .hero.zwei { grid-template-columns: 1fr; } }
.kicker { font-family: var(--mono); font-size: .85rem; color: var(--akzent); }
.kicker::before { content: "// "; color: var(--text-leise); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; margin: .5rem 0 1.25rem; }
.hero p.lead { font-size: 1.2rem; color: var(--text); max-width: 38rem; }
blockquote.alt { margin: 1.75rem 0 0; padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--akzent); max-width: 38rem; color: var(--text-leise); }
blockquote.alt small { display: block; font-family: var(--mono); font-size: .78rem; margin-top: .5rem; color: var(--akzent-dunkel); }

/* Terminal-Karte */
.terminal { background: var(--bg-tief); border-radius: 8px; box-shadow: var(--glow); overflow: hidden; font-family: var(--mono); font-size: .85rem; }
.terminal .leiste { background: var(--akzent); height: 14px; display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.terminal .leiste i { width: 6px; height: 6px; border-radius: 50%; background: var(--bg-tief); display: block; }
.terminal pre { margin: 0; padding: 1rem 1.1rem; line-height: 1.7; overflow-x: auto; }
.terminal .k { color: var(--text-leise); }
.terminal .a { color: var(--akzent); }
.terminal .ok { color: #7ee787; }

section { padding: 2.75rem 0; border-top: 1px solid var(--linie); }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem; }
h2::before { content: "## "; font-family: var(--mono); color: var(--akzent-dunkel); font-weight: 400; }
h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.thesen { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: these; margin-top: 1.5rem; }
.these { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; padding: 1.25rem; counter-increment: these; transition: box-shadow .2s, border-color .2s; }
.these:hover { box-shadow: var(--glow); border-color: transparent; }
.these::before { content: "0" counter(these); font-family: var(--mono); color: var(--akzent); font-size: .9rem; }
.these p { color: var(--text-leise); margin: .4rem 0 0; }

.vergleich { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1rem; }
.vergleich th, .vergleich td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.vergleich thead th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--akzent); border-bottom-color: var(--akzent-dunkel); }
.vergleich tbody th { font-family: var(--mono); font-size: .8rem; color: var(--text-leise); font-weight: 400; }
.vergleich tbody tr:last-child td { color: var(--akzent); }
.scroll-x { overflow-x: auto; }

.kacheln { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kachel { display: block; padding: 1.25rem; border: 1px solid var(--linie); border-radius: 6px; text-decoration: none; color: var(--text); background: var(--flaeche); transition: box-shadow .2s, border-color .2s, transform .2s; }
.kachel:hover { box-shadow: var(--glow); border-color: transparent; transform: translateY(-2px); text-shadow: none; }
.kachel span { font-family: var(--mono); font-size: .78rem; color: var(--akzent); }
.kachel p { color: var(--text-leise); margin: .25rem 0 0; }

.zeitleiste { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--akzent-dunkel); }
.zeitleiste li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.zeitleiste li::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; background: var(--akzent); border-radius: 50%; box-shadow: 0 0 10px var(--akzent); }
.zeitleiste time { font-family: var(--mono); font-size: .82rem; color: var(--akzent); }
.zeitleiste .ort { font-size: .95rem; color: var(--text-leise); }
.badge { font-family: var(--mono); font-size: .68rem; padding: .05rem .45rem; border: 1px solid #ffb86b; color: #ffb86b; text-transform: uppercase; margin-left: .6rem; border-radius: 3px; }

.regal { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.werkstueck { margin: 0; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.werkstueck:hover { box-shadow: var(--glow); border-color: transparent; }
.werkstueck img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.werkstueck figcaption { padding: .9rem 1rem 1.1rem; font-size: .98rem; }
.werkstueck time { display: block; font-family: var(--mono); font-size: .75rem; color: var(--akzent); margin-bottom: .2rem; }

/* Carousel */
.carousel { border-radius: 8px; background: var(--bg-tief); max-width: 640px; box-shadow: var(--glow); overflow: hidden; }
.carousel .slide { display: none; min-height: 360px; padding: 2.25rem; flex-direction: column; justify-content: center; }
.carousel .slide.aktiv { display: flex; }
.carousel .slide .nr { font-family: var(--mono); font-size: .8rem; color: var(--akzent); }
.carousel .slide p { font-size: 1.3rem; line-height: 1.45; margin: .5rem 0; }
.carousel .slide.titel p { font-size: 2.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.carousel .steuerung { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--linie); padding: .6rem 1rem; font-family: var(--mono); font-size: .85rem; color: var(--text-leise); }
.carousel button { font: inherit; background: var(--akzent); color: #04262a; border: 0; border-radius: 4px; padding: .45rem 1rem; cursor: pointer; font-weight: 600; }
.carousel button:hover:not(:disabled) { box-shadow: 0 0 14px rgba(0, 240, 255, .55); }
.carousel button:disabled { background: var(--linie); color: var(--text-leise); cursor: default; }

footer.site { border-top: 1px solid var(--linie); padding: 2rem 0 3rem; font-size: .9rem; color: var(--text-leise); background: var(--bg-tief); }
footer.site a { color: var(--text-leise); }
footer.site a:hover { color: var(--akzent); }
.hinweis { background: var(--flaeche); border: 1px dashed var(--akzent-dunkel); border-radius: 4px; padding: .75rem 1rem; font-size: .92rem; color: var(--text-leise); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Kontaktformular */
.formular { display: grid; gap: 1rem; max-width: 560px; margin-top: 1.5rem; }
.formular label { display: grid; gap: .35rem; font-size: .95rem; color: var(--text-leise); }
.formular input[type=text], .formular input[type=email], .formular textarea { font: inherit; color: var(--text); background: var(--bg-tief); border: 1px solid var(--linie); border-radius: 4px; padding: .6rem .75rem; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--akzent); box-shadow: var(--glow); }
.formular .check { display: block; }
.formular .falle { position: absolute; left: -9999px; }
.formular button { justify-self: start; font: inherit; font-weight: 600; background: var(--akzent); color: #04262a; border: 0; border-radius: 4px; padding: .6rem 1.4rem; cursor: pointer; }
.formular button:hover { box-shadow: 0 0 14px rgba(0, 240, 255, .55); }
