/* dzellak.de – Stylesheet
   Palette laut Schlachtplan: Marine #111827, Off-White #F8FAFC, Grau #E5E7EB, Akzent #2563EB */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111827;          /* Überschriften, Text */
  --ink-soft: #374151;     /* Fließtext */
  --muted: #4b5563;        /* Nebentext (7.5:1 auf --bg) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e5e7eb;
  --accent: #2563eb;       /* 5.2:1 auf Weiß */
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;

  --radius: 10px;
  --shadow: 0 1px 2px rgb(17 24 39 / .05), 0 4px 16px rgb(17 24 39 / .06);
  --max: 1160px;
  --text: 68ch;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font: 400 1.0625rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 .8rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: var(--text); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cbd5e1; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 250 252 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: #eef2f7; }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.nav .btn:hover { background: var(--accent-hover); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 12px 0 0; border-radius: var(--radius); border-bottom: 0; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 28px; }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--accent); flex: none; }

.shots { position: relative; padding-bottom: 18%; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f1f5f9; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.frame-bar span { margin-left: 8px; font: 500 .75rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.shots .frame:nth-child(2) { position: absolute; width: 72%; right: -4%; bottom: 0; }
.shots figcaption { position: absolute; left: 0; bottom: 0; font-size: .82rem; color: var(--muted); max-width: 30%; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shots { max-width: 560px; }
  .shots .frame:nth-child(2) { right: 0; }
}

/* Probleme → Lösungen */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.problem { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.problem p { margin: 0; }
.problem .before { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.problem .after { color: var(--ink); font-weight: 550; }
.problem .after::before { content: "→ "; color: var(--accent); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.service dl { margin: 4px 0 20px; font-size: .95rem; }
.service dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.service dd { margin: 2px 0 0; color: var(--muted); }
.service .tech { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 .8rem/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }

/* Projekte */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.case + .case { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-media { order: 2; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #f1f5f9; color: var(--ink-soft); border: 1px solid var(--line); }
.tag--live { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.tag--dev { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.case dl { margin: 20px 0 24px; }
.case dt { font-weight: 650; color: var(--ink); }
.case dd { margin: 4px 0 16px; }
.figures { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.figures li { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .85rem; color: var(--muted); line-height: 1.35; }
.figures strong { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 2px; }
.case-media figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case-media { order: 0; }
}
@media (max-width: 480px) { .figures { gap: 8px; } .figures li { padding: 10px; font-size: .78rem; } .figures strong { font-size: 1.15rem; } }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.more article { padding: 24px; border: 1px dashed #cbd5e1; border-radius: var(--radius); }
.more p { margin: 0; font-size: .96rem; }

/* Über mich */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about p { max-width: var(--text); }
.creds { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.creds h3 { font-size: 1rem; margin-bottom: 16px; }
.creds ul { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.creds li:first-child { border-top: 0; padding-top: 0; }
.creds strong { display: block; color: var(--ink); font-weight: 600; }
.creds span { color: var(--muted); font-size: .88rem; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.stack li { font: 500 .8rem/1 ui-monospace, Menlo, Consolas, monospace; padding: 7px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font: 600 .85rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--accent); margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.note { margin-top: 36px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: .96rem; max-width: var(--text); }
.note p:last-child { margin: 0; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { background: var(--ink); color: #cbd5e1; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #93c5fd; }
.contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { padding: 28px; border-radius: var(--radius); background: #1f2937; border: 1px solid #374151; }
.contact-card a:not(.btn) { color: #fff; font-weight: 600; text-decoration-color: #93c5fd; }
.contact-card dl { margin: 0 0 24px; }
.contact-card dt { font-size: .85rem; color: #9ca3af; }
.contact-card dd { margin: 2px 0 16px; font-size: 1.1rem; color: #fff; }
.contact .btn--primary { background: #3b82f6; color: #0b1220; }
.contact .btn--primary:hover { background: #60a5fa; color: #0b1220; }
.contact ol { padding-left: 1.2em; margin: 0; }
.contact ol li { margin-bottom: 10px; }
.contact :focus-visible { outline-color: #93c5fd; }

@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 32px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { color: var(--ink-soft); padding: 4px 0; }

/* Rechtstexte */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.todo { background: #fef3c7; color: #78350f; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.contact-sub { color: #fff; font-size: 1.05rem; margin-top: 28px; }
figure { margin: 0; }
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }
.problems { grid-template-columns: repeat(4, 1fr); }
.services { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .problems, .services { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .shots figcaption { display: none; } .shots { padding-bottom: 22%; } }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumbs img { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }

/* Kennzahlen-Band */
.band { background: var(--accent); color: #dbeafe; padding: clamp(28px, 4vw, 44px) 0; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band li { font-size: .95rem; line-height: 1.35; }
.band strong { display: block; color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 760px) { .band ul { grid-template-columns: 1fr 1fr; } }

/* Leistungen kompakt */
.service p { margin: 0 0 12px; }
.service .for { color: var(--accent); font-weight: 600; font-size: .95rem; }
.service .tech { margin-top: auto; }

/* Heller Button auf dunklem Grund */
.btn--light { background: transparent; color: #fff; border-color: #4b5563; }
.btn--light:hover { border-color: #fff; color: #fff; }
.contact-card .btn-row { gap: 10px; }
.hero h1 { max-width: 18ch; }
.hero h1 { hyphens: manual; max-width: 20ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
.shots figcaption { position: static; max-width: 30%; margin-top: 12px; }

/* Rückruf-Planer */
.callback { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink-soft); box-shadow: 0 24px 64px -12px rgb(17 24 39 / .35); }
.callback::backdrop { background: rgb(17 24 39 / .55); backdrop-filter: blur(2px); }
.callback form { padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cb-head h2 { font-size: 1.5rem; margin: 0; }
.cb-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.cb-intro { margin: -8px 0 0; color: var(--muted); }
.callback fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.callback legend { font-weight: 650; color: var(--ink); margin-bottom: 8px; padding: 0; }
.callback label { display: grid; gap: 6px; font-size: .92rem; font-weight: 550; color: var(--ink); }
.callback .opt { font-weight: 400; color: var(--muted); }
.callback input, .callback textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.callback textarea { resize: vertical; min-height: 84px; }
.callback input:focus-visible, .callback textarea:focus-visible { outline: 3px solid rgb(37 99 235 / .35); outline-offset: 0; border-color: var(--accent); }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb-row[hidden] { display: none; }
.cb-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cb-chips label { display: block; }
.cb-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb-chips span {
  display: grid; place-items: center; text-align: center; gap: 2px; padding: 10px 6px; min-height: 56px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 600; color: var(--ink);
}
.cb-chips small { font-weight: 400; font-size: .78rem; color: var(--muted); }
.cb-chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cb-chips input:focus-visible + span { outline: 3px solid rgb(37 99 235 / .35); outline-offset: 2px; }
.cb-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: .92rem; }
.cb-note { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) {
  .cb-row { grid-template-columns: 1fr; }
  .cb-chips { grid-template-columns: 1fr 1fr; }
}
.callback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-done { padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; justify-items: start; }
.cb-done[hidden] { display: none; }
.cb-done .cb-head { width: 100%; }
.cb-done-text { margin: 0; font-size: 1.05rem; }
.btn:disabled { opacity: .7; cursor: progress; }
.callback form[hidden] { display: none; }

/* Porträt */
.about { grid-template-areas: "text photo" "text creds"; row-gap: 24px; }
.about-text { grid-area: text; }
.portrait { grid-area: photo; }
.creds { grid-area: creds; }
.portrait img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg, var(--shadow)); }
@media (max-width: 860px) {
  .about { grid-template-areas: "photo" "text" "creds"; }
  .portrait { max-width: 280px; }
}
.contact-person { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #374151; }
.contact-person img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #3b82f6; flex: none; }
.contact-person p { margin: 0; font-size: .92rem; color: #cbd5e1; line-height: 1.4; }
.contact-person strong { display: block; color: #fff; font-size: 1rem; }
