/* ABC Systematik — öffentliche Seite. Bewusst einfarbig hell. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --text: #14181f;
  --text-2: #5b6470;
  --line: #dfe3e8;
  --blue: #0f3d6e;
  --blue-hover: #14508f;
  --blue-soft: #e9eff6;
  --ok: #1f6f43;
  --ok-soft: #e6f2ea;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --warn: #8a5300;
  --warn-soft: #fff4e2;
  --warn-line: #efcb8d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 18px; }
p, ul { margin: 0; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 72px; }
.section.alt { background: var(--bg-2); }
/* 800 px: die Einleitungssätze brauchen 725–790 px und passen damit auf eine
   Zeile, statt kurz vor Schluss umzubrechen. Darunter bricht es wie bisher. */
.section-head { max-width: 800px; margin-bottom: 36px; }
.section-head p { color: var(--text-2); margin-top: 10px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 6px; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Nav */
/* Kopfzeile und Hinweisleiste haften gemeinsam oben. */
.kopf-fest { position: sticky; top: 0; z-index: 20; }
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--text-2); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a { color: var(--text); }
.nav-links a.btn { padding: 8px 16px; font-size: 14px; color: #fff; }
.nav-links a.lang { color: var(--text-2); font-weight: 400; font-size: 13px; }
@media (max-width: 900px) { .nav-links a:not(.btn):not(.lang) { display: none; } }

/* Hero */
.hero { padding-block: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 40px; } }
.hero h1 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.18; }
.hero .lead { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.facts { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 14px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 500; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }
.service { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; }
.service p { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.service ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--blue); }

/* Vorgehen */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--blue); padding-top: 14px; }
.step .num { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.step h3 { margin-top: 6px; font-size: 17px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* Shinsa */
.shinsa { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .shinsa { grid-template-columns: 1fr; } }
.sh-marke { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 24px; color: var(--text); text-align: center; }
.sh-marke img { width: 170px; height: auto; display: block; margin: 0 auto 10px; }
.sh-marke img.invert { filter: invert(1); }
a.sh-marke { display: block; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
a.sh-marke:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 2px 10px rgba(15,61,110,.08); }
.sh-more { font-weight: 500; }
.sh-marke strong { display: block; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.sh-sub { display: block; text-align: left; font-size: 8px; color: var(--text-2); margin-top: 8px; }
.sh-lead { color: var(--text-2); margin-top: 12px; max-width: 640px; }
.sh-wege { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 600px) { .sh-wege { grid-template-columns: 1fr; } }
.sh-weg { border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 20px; background: #fff; }
.sh-weg .num { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.sh-weg h3 { margin-top: 4px; }
.sh-weg p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 4px; }
.price b { font-weight: 600; color: var(--text); }
.sh-next { margin-top: 24px; display: grid; gap: 12px; }
.sh-next h3 { font-size: 17px; }
.sh-next p { color: var(--text-2); font-size: 15px; }

/* Projekte */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }
.project { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.project h3 { font-size: 18px; }
.project h3 a { color: inherit; }
.project .role { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
.project .desc { grid-column: 1 / -1; color: var(--text-2); font-size: 15px; margin-top: 4px; }
.project .desc p + p { margin-top: 10px; }
.project .desc strong { color: var(--text); font-weight: 600; }
.project .meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.status { padding: 3px 10px; border-radius: 999px; font-weight: 500; white-space: nowrap; font-size: 12px; align-self: start; }
.status.live { background: var(--ok-soft); color: var(--ok); }
.status.dev { background: var(--blue-soft); color: var(--blue); }
.status.proto { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }
.status.beta { background: #fdf1dc; color: #8a5300; }
.project.featured { grid-column: 1 / -1; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .project.featured { grid-template-columns: 1fr; } }
.project-logo { width: 200px; max-width: 100%; height: auto; display: block; }
.featured-body { display: grid; gap: 6px; }
.featured-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.featured-body h3 { font-size: 22px; }
.project-link { font-size: 14px; margin-top: 10px; display: inline-block; }

/* Über */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.photo { aspect-ratio: 4 / 5; max-width: 320px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about .text { margin-top: 14px; }
.about .text + .text { margin-top: 14px; }
.about .facts { margin-top: 24px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact .lead { color: var(--text-2); margin: 10px 0 24px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,61,110,.15); }
textarea { min-height: 130px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); font-weight: 400; }
.consent > span { flex: 1 1 auto; min-width: 0; }
.consent input { width: auto; margin-top: 3px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--danger-soft); color: var(--danger); }
.contact-info { font-size: 15px; }
.contact-info h3 { margin-bottom: 10px; }
.contact-info h3 + p + h3, .contact-info p + h3 { margin-top: 24px; }
.contact-info p { color: var(--text-2); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 13px; color: var(--text-2); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; }
.footer nav { display: grid; gap: 6px; }
.footer a { color: var(--text-2); }
.footer a.ext { color: var(--blue); display: inline-block; margin-top: 4px; }
.footer .bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 32px; }
.legal .subtitle { color: var(--text-2); margin-top: 6px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal h3 { font-size: 16px; margin-top: 20px; }
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 20px; }
.legal li { margin-top: 4px; }

/* ---------- Personenseite (/alexander-barwig) ---------- */
.person-hero h1 .sub { display: block; color: var(--text-2); font-weight: 500; font-size: .62em; margin-top: 6px; letter-spacing: 0; }
.hero-side { display: grid; gap: 16px; }
.portrait { aspect-ratio: 4 / 4.6; max-width: 100%; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-person { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .about-person { grid-template-columns: 1fr; gap: 28px; } }
.about-person .text { margin-top: 14px; }
.values { display: grid; gap: 14px; }
.value { border-left: 2px solid var(--blue); padding-left: 14px; }
.value h3 { font-size: 16px; }
.value p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.about .more { font-weight: 500; }
.project.personal { display: flex; flex-direction: column; gap: 8px; }
.project.personal .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.project.personal .desc, .project.personal .meta, .project.personal .role { grid-column: auto; }
.project-shot { width: calc(100% + 48px); margin: -24px -24px 8px; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px 8px 0 0; display: block; }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }
.skill-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.skill-group ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.company { border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: #fff; }
@media (max-width: 820px) { .company { grid-template-columns: 1fr; } }
.company h2 { font-size: 24px; }
.company p { color: var(--text-2); margin-top: 10px; }
.company-side { text-align: center; padding: 32px 24px; background: var(--bg-2); border-radius: 8px; }

/* ---------- Wasserzeichen: Logo bleibt beim Scrollen stehen, dunkel auf Weiß, hell auf Grau ---------- */
.hero, .section {
  background-image: url("wm-dark.png");
  background-repeat: no-repeat;
  background-position: center 88px;
  background-size: 420px auto;
  background-attachment: fixed;
}
.section.alt {
  background-color: var(--bg-2);
  background-image: url("wm-light.png");
  background-repeat: no-repeat;
  background-position: center 88px;
  background-size: 420px auto;
  background-attachment: fixed;
}
/* Mobile/iOS: background-attachment fixed wird dort ignoriert → Wasserzeichen aus */
@media (max-width: 820px) { .hero, .section { background-image: none; } }

/* ---------- Formular im Fenster ---------- */
.contact-aktion { margin-top: 24px; }
.formular-fenster {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 26px 30px 30px; border: 0; border-radius: 12px; background: #fff; color: var(--text);
  box-shadow: 0 24px 60px rgba(10,14,20,.28); font: inherit;
}
.formular-fenster::backdrop { background: rgba(10,14,20,.55); }
.ff-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ff-kopf h2 { font-size: 22px; }
.ff-kopf .lead { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.ff-schliessen {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--text-2);
  font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.ff-schliessen:hover { background: var(--bg-2); color: var(--text); }
.formular-fenster .form { margin-top: 22px; }
@media (max-width: 520px) { .formular-fenster { padding: 20px 18px 24px; } .ff-kopf h2 { font-size: 19px; } }

/* Preisplatzhalter, solange der Hinweis an ist */
.price .offen, .sh-offen { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.sh-offen { font-size: 15px; }

/* ---------- Korrekturschleifen ----------
   Gleiche Bauform wie die Faktentafel und die Preiskarten: heller Kasten
   mit dünner Linie, auf grauen Abschnitten umgekehrt weiß. */
.schleifen {
  margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-2);
}
.section.alt .schleifen { background: var(--bg); }
.schleifen h3 { font-size: 17px; }
.schleifen p { color: var(--text-2); font-size: 15px; margin-top: 8px; max-width: 76ch; }
.schleifen-preis { color: var(--text); font-weight: 500; }

/* ---------- Verdeckte Bereiche (Milchglas) ----------
   Hinter den Balken steht kein echter Text: sie werden erzeugt, der
   Originaltext wird gar nicht erst ausgegeben. */
.zensur { position: relative; }
.zensur-text {
  display: grid; gap: 10px; padding: 4px 0;
  filter: blur(4px); user-select: none; pointer-events: none;
}
.zensur-text span {
  display: block; height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, #c3c8cf, #dde1e6);
}
.zensur-schild { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; }
.zensur-schild span {
  max-width: 34ch; text-align: center; font-size: 13px; line-height: 1.45; font-weight: 500;
  color: var(--text); background: rgba(255,255,255,.9); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; box-shadow: 0 2px 10px rgba(10,14,20,.06);
}
.service-verdeckt { min-height: 230px; display: flex; }
.service-verdeckt .zensur { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.project-logo.verdeckt { filter: blur(7px); }
.projekt-satz { grid-column: 1 / -1; margin-top: 12px; font-weight: 500; }

/* ---------- Kontakt ohne Formular ---------- */
.kontakt-mail { margin-top: 26px; }
.kontakt-hinweis {
  margin-top: 16px; max-width: 58ch; font-size: 14px; line-height: 1.6; color: var(--text-2);
  padding-left: 14px; border-left: 2px solid var(--line);
}

/* Linkzeile auf privaten Projektkarten */
.projekt-link { margin-top: 12px; font-size: 14px; font-weight: 500; }
.project.personal .head h3 a { color: inherit; }
.project.personal .head h3 a:hover { color: var(--blue); }
