/* ==========================================================================
   André Lammers – Website
   Ein Stylesheet für alle Seiten. Hell/Dunkel über data-theme auf <html>.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist.woff2") format("woff2-variations"), url("../fonts/geist.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono.woff2") format("woff2-variations"), url("../fonts/geist-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben ---------- */
:root {
  color-scheme: dark;
  --bg: #141416;
  --surface: #1c1c1f;
  --surface-2: #26262a;
  --border: #2e2e34;
  --text: #ececee;
  --muted: #a3a3ab;
  --invert-bg: #ececee;
  --invert-text: #141416;
  --ok: #4ade80;
  --shot-filter: grayscale(1) brightness(0.85);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
  --gutter: 24px;
}

/* Standard ist Dunkel. Hell nur, wenn jemand selbst umschaltet. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f6;
  --surface: #ffffff;
  --surface-2: #ececee;
  --border: #dcdce0;
  --text: #18181b;
  --muted: #52525b;
  --invert-bg: #18181b;
  --invert-text: #fafafa;
  --ok: #15803d;
  --shot-filter: grayscale(1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s, color 0.25s;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--muted); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--invert-text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}
.btn:hover { color: var(--text); background: var(--surface); }
.btn-primary { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-text); }
.btn-primary:hover { background: var(--invert-bg); color: var(--invert-text); opacity: 0.88; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

/* Ohne JavaScript gibt es keinen Umschalter (das System entscheidet) */
html:not(.js) [data-theme-toggle] { display: none; }

/* Sonne im Dunkel-Modus zeigen, Mond im Hell-Modus */
.icon-sun { display: block; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.lang-hint { background: var(--invert-bg); color: var(--invert-text); font-size: 14px; }
.lang-hint[hidden] { display: none; }
.lang-hint .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 4px;
}
.lang-hint a { color: var(--invert-text); font-weight: 600; }
.lang-hint a:hover { color: var(--invert-text); opacity: 0.8; }
.lang-hint-actions { display: flex; align-items: center; gap: 8px; }
.lang-hint-close {
  width: 40px; height: 40px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-right { display: flex; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav-link { text-decoration: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
}
.lang-switch > * {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch > a:hover { color: var(--text); }
.lang-switch > [aria-current] { background: var(--invert-bg); color: var(--invert-text); font-weight: 500; }

/* ---------- Abschnitte ---------- */
.section { border-top: 1px solid var(--border); }
.section > .wrap { padding-block: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }

/* ---------- Start ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
  padding-block: 104px 88px;
}
.hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); font-weight: 600; }

.welcome {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.welcome-head { display: flex; align-items: center; gap: 12px; }
.welcome-head svg { flex: none; color: var(--invert-text); }
.welcome-head svg .tile { fill: var(--invert-bg); }
.welcome-kicker { font-size: 14px; line-height: 1.3; color: var(--muted); }
.welcome-kicker strong { display: block; color: var(--text); font-size: 16px; }
.welcome p { color: var(--muted); font-size: 15px; }
.welcome-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }

/* ---------- Projekt ---------- */
.project-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }

.shots {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}
.shots-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shots-caption { font-size: 14px; color: var(--muted); }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--invert-bg); color: var(--invert-text); font-weight: 600; }

.browser { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--border); }
.browser-bar span { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.shot-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.shot-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  filter: var(--shot-filter);
  transition: filter 0.3s;
}
.shot-open img[hidden] { display: none; }
.zoom-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.project-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.story { flex: 1.2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.story h3 { font-size: 22px; letter-spacing: -0.02em; }
.story p { color: var(--muted); }
.story .btn-row { margin-top: 8px; }

.features-col { flex: 1 1 320px; min-width: 0; }
.features { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.feature { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.feature-no { padding-top: 3px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.feature-title { font-weight: 600; }
.feature-text { color: var(--muted); font-size: 15px; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); list-style: none; margin: 0; }
.stack li:not(:first-child) { padding: 2px 10px; border-radius: 6px; background: var(--surface-2); color: var(--text); }

/* ---------- Themen ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.topic-hero {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 32px;
  border-radius: 22px;
  background: var(--invert-bg);
  color: var(--invert-text);
}
.topic-hero-text { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.topic-hero-text .eyebrow { font-size: 13px; color: inherit; opacity: 0.7; }
.topic-hero h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.outline-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.outline-chips li { padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; font-size: 15px; font-weight: 500; }

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.topic-card h3 { font-size: 19px; }
.topic-card p { color: var(--muted); font-size: 15px; }
.topic-more { justify-content: center; background: transparent; border-style: dashed; }
.topic-more .eyebrow { font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; }

/* ---------- Nebenbei ---------- */
.aside-strip > .wrap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 56px;
}
.aside-text { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.aside-text .eyebrow { font-size: 13px; }
.aside-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.aside-text p:last-child { margin-top: 4px; color: var(--muted); font-size: 15px; }
.aside-strip .btn { white-space: nowrap; }

/* ---------- Kontakt ---------- */
.contact > .wrap { flex-direction: row; flex-wrap: wrap; gap: 48px 64px; }
.contact-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.form-card {
  flex: 1.4 1 420px;
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--text); border-width: 2px; }
::placeholder { color: var(--muted); opacity: 1; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--text); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-status.is-error { color: var(--text); font-weight: 600; }
.contact-form .btn-primary { align-self: flex-start; }

.form-done { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.form-done[hidden] { display: none; }
.form-done-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); color: var(--ok); }
.form-done h3 { font-size: 22px; }
.form-done p { max-width: 340px; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 36px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }

/* ---------- Großansicht der Screenshots ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 24px 32px;
  border: 0;
  background: #0a0a0c;
  color: #ececee;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.lightbox::backdrop { background: rgba(10, 10, 12, 0.6); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ececee;
  color: #141416;
  cursor: pointer;
}
.lightbox .tabs { border: 0; background: rgba(255, 255, 255, 0.08); }
.lightbox .tab { color: #d4d4d8; }
.lightbox .tab:hover { color: #fff; }
.lightbox .tab[aria-selected="true"] { background: #ececee; color: #141416; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 0; }
.lightbox-stage img {
  min-width: 0;
  max-width: min(1400px, calc(100% - 136px));
  max-height: calc(100vh - 230px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-stage img[hidden] { display: none; }
.lightbox-arrow {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #ececee;
  cursor: pointer;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.08); }
.lightbox-caption { color: #d4d4d8; font-size: 14px; text-align: center; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- Rechtsseiten ---------- */
.legal { width: 100%; max-width: 760px; margin: 0 auto; padding: 88px var(--gutter) 104px; display: flex; flex-direction: column; gap: 44px; }
.legal-head { display: flex; flex-direction: column; gap: 10px; }
.legal-title { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.035em; overflow-wrap: break-word; hyphens: auto; }
.legal { overflow-wrap: break-word; }
.legal-head p { color: var(--muted); }
.legal-head .note { font-size: 15px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.legal p, .legal ul { color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; }
.legal-stand { padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

.page-404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 96px; }

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { gap: 12px; padding-block: 10px; }
  .nav-right { gap: 8px; }
  .nav-link { display: none; }
  .lang-switch > * { min-height: 32px; padding: 0 10px; }
  .icon-btn { width: 40px; height: 40px; }

  .hero { padding-block: 64px 56px; }
  .section > .wrap { padding-block: 64px; }
  .welcome { padding: 22px; }

  .shots { padding: 14px; border-radius: 20px; }
  .shots-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs { display: flex; }
  .tab { flex: 1 1 auto; min-width: 0; padding: 0 8px; font-size: 13px; }
  .zoom-pill { right: 10px; bottom: 10px; padding: 6px 12px; font-size: 12px; }

  .topic-hero { padding: 24px; }
  .form-card { padding: 22px; border-radius: 20px; }

  .lightbox { padding: 64px 12px 24px; }
  .lightbox .tab { padding: 0 10px; font-size: 13px; }
  .lightbox-arrow { display: none; }
  .lightbox-stage img { max-width: 100%; }

  .legal { padding-block: 56px 72px; }
  .legal-title { font-size: 2rem; }
}
