/* amazdev – Tokens aus dem amazdev Design System */
:root {
  --surface: #ffffff;
  --surface-raised: #f4f5f7;
  --line: #e4e6ea;
  --control-border: #7d828c;
  --ink: #0b0d10;
  --ink-muted: #5b6068;
  --signal: #1656e8;
  --on-signal: #ffffff;

  /* Dunkle Werte für den Kontaktbereich */
  --dark-surface: #0a0b0d;
  --dark-line: #232630;
  --dark-ink: #f2f3f5;
  --dark-ink-muted: #9aa0aa;
  --dark-signal: #5b8fff;
  --dark-on-signal: #06122b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, ui-monospace, Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 4px;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--signal);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 23px;
}

img { display: block; max-width: 100%; }
a { color: var(--signal); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--ink); color: var(--surface); padding: var(--space-3) var(--space-4);
}
.skip-link:focus { top: var(--space-4); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section--raised { background: var(--surface-raised); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.split { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.split__main { flex: 999 1 420px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }

/* Typo */
.display { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.01em; }
.heading { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.005em; }
.subheading { font-size: 17px; line-height: 24px; font-weight: 600; }
.lead { font-size: 17px; line-height: 26px; color: var(--ink-muted); max-width: 560px; }
.caption { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.strong { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-6);
  font-weight: 600; text-decoration: none;
}
.btn--primary { background: var(--signal); color: var(--on-signal); }
.btn--primary:hover { color: var(--on-signal); filter: brightness(0.92); }
.btn--secondary { border: 1px solid var(--control-border); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-3);
}
.site-header__logo img { height: 64px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* Hero */
.facts {
  padding-top: var(--space-6); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4);
}
.facts li { display: flex; flex-direction: column; }
.facts .value { font-size: 22px; line-height: 28px; font-weight: 600; }
.portrait { position: relative; }
.portrait img { width: 100%; height: 520px; object-fit: cover; object-position: center top; }
.portrait figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--surface);
  padding: var(--space-3) var(--space-4); display: flex; flex-direction: column;
}

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.card {
  background: var(--surface); border: 1px solid var(--control-border);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2);
}

/* Vorgehen */
.photo { width: 100%; object-fit: cover; }
.photo--process { height: 480px; }
.photo--about { height: 420px; object-position: center top; }
.steps li {
  display: flex; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .mono { line-height: 23px; }

/* Über mich */
.split--reverse { flex-wrap: wrap-reverse; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li {
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; line-height: 18px; font-weight: 500;
}

/* Kontakt (dunkel) */
.contact { background: var(--dark-surface); color: var(--dark-ink); }
.contact .lead { color: var(--dark-ink-muted); max-width: 520px; }
.contact .btn--primary { background: var(--dark-signal); color: var(--dark-on-signal); }
.contact a:not(.btn):not(.form-consent a) { color: var(--dark-ink); }
.contact a:focus-visible { box-shadow: 0 0 0 2px var(--dark-surface), 0 0 0 4px var(--dark-signal); }

/* Kontaktformular */
.contact-form-wrap { max-width: 560px; margin: 0 auto; }
.contact-form-header { text-align: center; align-items: center; }
.contact-form {
  background: var(--surface); color: var(--ink);
  padding: var(--space-8); border-radius: var(--radius-sm);
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: 14px; font-weight: 600; line-height: 20px; }
.form-optional { font-weight: 400; color: var(--ink-muted); }
.form-input {
  padding: 10px var(--space-3);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  font-size: 15px; line-height: 23px;
  font-family: var(--font-sans);
  background: var(--surface-raised);
  color: var(--ink);
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 2px rgba(22,86,232,0.15); }
.form-input[aria-invalid="true"] { border-color: #c0392b; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 13px; line-height: 18px; color: #c0392b; min-height: 18px; }
.form-consent { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 20px; }
.form-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--signal); width: 16px; height: 16px; }
.form-consent a { color: var(--signal); }
.contact-submit { width: 100%; justify-content: center; }
.contact-submit:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.form-banner { padding: var(--space-4); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; }
.form-banner--success { background: #e8f5e9; border: 1px solid #b7e1c2; color: #1b5e20; }
.form-banner--error { background: #fff3e0; border: 1px solid #ffd1a8; color: #7c3a00; }

/* Footer */
.site-footer { background: var(--dark-surface); border-top: 1px solid var(--dark-line); }
.site-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-6); font-size: 13px; line-height: 18px; color: var(--dark-ink-muted);
}
.site-footer nav { display: flex; gap: var(--space-6); }
.site-footer a { color: var(--dark-ink-muted); }
.site-footer a:hover { color: var(--dark-ink); }
.site-footer a:focus-visible { box-shadow: 0 0 0 2px var(--dark-surface), 0 0 0 4px var(--dark-signal); }

/* Rechtstexte */
.legal { max-width: 720px; }
.legal h2 { margin-top: var(--space-8); }

@media (max-width: 600px) {
  .display { font-size: 32px; line-height: 38px; }
  .portrait img, .photo--process { height: 400px; }
  .contact__logo { height: 120px; }
}
