/* Codekäfer – Webseite. Farben aus dem Logo, nur Systemschriften (keine externen Quellen). */
:root {
  --tinte: #1c1b29;
  --tinte-2: #2b2a3d;
  --creme: #f7f2e8;
  --creme-2: #efe7d8;
  --led: #ff9a1a;
  --led-dunkel: #c96a00;
  --grau: #5d5b6b;
  --linie: #ddd3c2;
  --weiss: #fffdf9;
  --gruen: #1f8a5b;
  --blau: #3b6fe0;
  --radius: 14px;
  --max: 1160px;
  --schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 17px/1.6 var(--schrift); color: var(--tinte); background-color: var(--creme); background-image: radial-gradient(rgba(217,207,187,.75) 2.1px, transparent 2.4px); background-size: 19px 19px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--led-dunkel); }
a:hover { color: var(--tinte); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.18rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mark { background: linear-gradient(transparent 62%, rgba(255,154,26,.45) 62%); padding: 0 .1em; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--led-dunkel); margin-bottom: .8em; }

/* Kopf */
header.kopf { position: sticky; top: 0; z-index: 10; background: rgba(247,242,232,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.kopf .logo img { height: 38px; width: auto; }
.kopf nav { display: flex; gap: 22px; align-items: center; }
.kopf nav a { color: var(--tinte); text-decoration: none; font-weight: 600; font-size: .95rem; }
.kopf nav a:hover { color: var(--led-dunkel); }
.kopf nav a.knopf { color: var(--tinte); }
@media (max-width: 860px) { .kopf nav a:not(.knopf) { display: none; } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--tinte); transition: transform .15s, box-shadow .15s; }
.knopf.voll { background: var(--led); border-color: var(--led); color: var(--tinte); box-shadow: 0 3px 0 var(--led-dunkel); }
.knopf.voll:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--led-dunkel); color: var(--tinte); }
.knopf.rand { background: transparent; color: var(--tinte); }
.knopf.rand:hover { background: var(--tinte); color: var(--creme); }
.knopf.klein { padding: .45em 1em; font-size: .9rem; border-width: 2px; }

/* Start */
.held { padding: 64px 0 40px; overflow: hidden; }
.held .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.held .unter { font-size: 1.22rem; color: var(--grau); margin-bottom: 1.4em; max-width: 34em; }
.held .knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.held .klein-info { margin-top: 1.4em; font-size: .92rem; color: var(--grau); display: flex; gap: 18px; flex-wrap: wrap; }
.held .klein-info span::before { content: "✓ "; color: var(--gruen); font-weight: 800; }
/* Programmfenster im Windows-Stil */
.bildschirm { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(28,27,41,.45), 0 0 0 1px rgba(28,27,41,.14); }
.titel { display: flex; align-items: center; height: 32px; background: #f3f3f3; border-bottom: 1px solid #e3e3e3; font: 12px/1 "Segoe UI", system-ui, sans-serif; color: #1f1f1f; }
.titel img { width: 16px; height: 16px; margin: 0 8px 0 12px; }
.titel span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titel i { width: 46px; height: 32px; display: grid; place-items: center; font-style: normal; }
.titel i svg { width: 10px; height: 10px; stroke: #1f1f1f; stroke-width: 1; fill: none; }
@media (max-width: 900px) { .held .wrap { grid-template-columns: 1fr; } .held { padding-top: 36px; } }

/* Platinen-Leiste */
.boards { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--weiss); }
.boards .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 18px 24px; justify-content: center; font-weight: 650; color: var(--grau); }
.boards b { color: var(--tinte); font-weight: 650; }
.boards .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--led); }

/* Abschnitte */
section.abschnitt { padding: 84px 0; }
section.dunkel { background: var(--tinte); color: var(--creme); }
section.dunkel .kicker { color: var(--led); }
section.dunkel p, section.dunkel li { color: #d9d4ca; }
section.hell { background: transparent; }
section.hell, section.dunkel { position: relative; }
.kopfzeile { max-width: 46em; margin-bottom: 44px; }
.kopfzeile p { font-size: 1.12rem; color: var(--grau); }
section.dunkel .kopfzeile p { color: #c9c3b8; }

/* Vier Schritte */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.schritt { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; position: relative; }
.schritt::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--led); color: var(--tinte); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.schritt h3 { margin-top: 6px; }
.schritt p { font-size: .96rem; color: var(--grau); margin: 0; }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .schritte { grid-template-columns: 1fr; } }

/* Bild + Text */
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zeile + .zeile { margin-top: 84px; }
.zeile.umgekehrt > :first-child { order: 2; }
.zeile ul { padding: 0; margin: 0 0 1em; list-style: none; }
.zeile li { padding-left: 1.6em; position: relative; margin-bottom: .55em; }
.zeile li::before { content: ""; position: absolute; left: 0; top: .55em; width: .62em; height: .62em; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 4px rgba(255,154,26,.22); }
.rahmen { border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(28,27,41,.4), 0 0 0 1px rgba(28,27,41,.08); background: #fff; }
.unterschrift { font-size: .88rem; color: var(--grau); margin-top: .6em; }
section.dunkel .unterschrift { color: #a9a39a; }
@media (max-width: 900px) { .zeile { grid-template-columns: 1fr; gap: 28px; } .zeile.umgekehrt > :first-child { order: 0; } }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kachel { background: var(--tinte-2); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,.07); }
.kachel .sym { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,154,26,.16); display: grid; place-items: center; margin-bottom: 12px; }
.kachel .sym svg { width: 24px; height: 24px; stroke: var(--led); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kachel h3 { color: var(--creme); }
.kachel p { font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; } }

/* Material */
.material { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mat { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.mat .art { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); }
.mat h3 { margin: .3em 0 .4em; }
.mat p { font-size: .95rem; color: var(--grau); flex: 1; }
.mat .knopf { align-self: flex-start; }
.hinweis { margin-top: 26px; padding: 18px 22px; border-radius: var(--radius); background: var(--creme-2); border-left: 5px solid var(--led); }
@media (max-width: 900px) { .material { grid-template-columns: 1fr; } }

/* Anfrage */
.anfrage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.karte { background: var(--weiss); color: var(--tinte); border-radius: var(--radius); padding: 28px; }
.karte h3 { margin-bottom: .7em; }
.karte dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .96rem; }
.karte dt { font-weight: 700; }
.karte dd { margin: 0; color: var(--grau); }
@media (max-width: 900px) { .anfrage { grid-template-columns: 1fr; } }

/* Fragen */
.fragen details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
.fragen summary { cursor: pointer; font-weight: 680; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--led-dunkel); }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { color: var(--grau); }

/* Fuß */
footer.fuss { background: var(--tinte); color: #bdb7ad; padding: 40px 0; font-size: .93rem; }
footer.fuss .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer.fuss a { color: var(--creme); text-decoration: none; margin-left: 20px; }
footer.fuss a:hover { color: var(--led); }
footer.fuss img { height: 34px; width: auto; }

/* Unterseiten */
.text { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.text h1 { font-size: 2.2rem; }
.text h2 { font-size: 1.3rem; margin-top: 1.8em; }
.luecke { background: #ffe2b8; border-radius: 4px; padding: 0 .3em; font-weight: 600; }

/* Download */
.dl-liste { display: flex; flex-direction: column; gap: 16px; }
.dl { background: var(--tinte-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.dl h3 { color: var(--creme); margin: .2em 0 .3em; font-size: 1.35rem; }
.dl p { margin: 0; font-size: .96rem; }
.dl .art, .mat .art { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dl .art { color: var(--led); }
.dl .knopf { flex: none; white-space: nowrap; }
.knopf small { font-weight: 500; opacity: .75; font-size: .82em; }
.knopf.rand.hell { color: var(--creme); border-color: var(--creme); }
.knopf.rand.hell:hover { background: var(--creme); color: var(--tinte); }
.schritte-liste { margin: 8px 0 0; padding-left: 1.3em; color: #d9d4ca; }
.schritte-liste li { margin-bottom: .35em; }
.schritte-liste b { color: var(--creme); }
section.dunkel p.klein { font-size: .9rem; color: #a9a39a; margin: 0; }
.karte a { color: var(--led-dunkel); }
@media (max-width: 700px) { .dl { flex-direction: column; align-items: flex-start; } }
.karte p { color: var(--grau) !important; }

/* Startbild: drei Karten wie im Flyer */
.collage { position: relative; height: 560px; }
.karte-b { position: absolute; margin: 0; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 14px 34px -10px rgba(40,30,0,.28); }
.karte-b img { width: 100%; height: auto; display: block; border-radius: 8px; }
.karte-b figcaption { position: absolute; top: -14px; left: 14px; background: var(--tinte); color: #fff; font-size: .85rem; font-weight: 650; padding: 4px 12px 4px 4px; border-radius: 99px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.karte-b figcaption b { width: 22px; height: 22px; border-radius: 50%; background: var(--led); color: var(--tinte); display: grid; place-items: center; font-size: .8rem; }
.k1 { left: 0; top: 40px; width: 160px; transform: rotate(-3deg); z-index: 1; }
.k2 { left: 120px; top: 250px; width: 320px; transform: rotate(-1.5deg); z-index: 3; }
.k3 { right: 0; top: 10px; width: 300px; transform: rotate(2.5deg); z-index: 2; }
@media (max-width: 1100px) { .k2 { left: 90px; width: 290px; } .k3 { width: 270px; } }
@media (max-width: 900px) { .collage { height: auto; display: grid; grid-template-columns: .55fr 1fr 1fr; gap: 14px; align-items: start; padding-top: 16px; }
  .karte-b { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; } }
@media (max-width: 560px) { .collage { gap: 8px; } .karte-b { padding: 5px; } .karte-b figcaption { font-size: .72rem; padding: 2px 8px 2px 2px; gap: 5px; } .karte-b figcaption b { width: 18px; height: 18px; } }

/* Schritte mit Bild */
.schritt img { width: calc(100% + 44px); margin: -22px -22px 14px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--linie); aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.schritt::before { z-index: 1; }
.rahmen video { width: 100%; height: auto; display: block; }
/* Download-Gruppen */
.gruppe { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 46px 0 18px; }
.gruppe:first-of-type { margin-top: 0; }
.gruppe span { width: 34px; height: 34px; border-radius: 50%; background: var(--tinte); color: var(--creme); display: grid; place-items: center; font-size: 1rem; }
.material.zwei { grid-template-columns: 1fr 1fr; }
.mat .knopf.voll, .mat .knopf.rand:not(.klein) { margin-top: 4px; }
.verweis { margin: 14px 0 0; font-weight: 600; }
.verweis a { text-decoration: none; }
#installation .schritte-liste { font-size: 1.05rem; padding-left: 1.4em; }
#installation .schritte-liste li { margin-bottom: .8em; }
@media (max-width: 900px) { .material.zwei { grid-template-columns: 1fr; } }
