/* =========================================================
   Alexander — Portfolio
   Colors and fonts are set here at the top. Change the
   --accent value to try a different highlight color.
   ========================================================= */

:root {
  --bg: #0F1115;
  --surface: #181A20;
  --surface-2: #22252D;
  --border: #2C2E36;
  --border-strong: #4A4C55;
  --text: #EDE8DF;
  --text-soft: #B9B4AB;
  --text-muted: #8F8B84;
  --accent: #D4AF5A;        /* buttons and highlights */
  --accent-text: #D4AF5A;   /* gold used as text */
  --on-accent: #0F1115;
  --text-strong: #FFFFFF;
  --header-bg: rgba(15, 17, 21, 0.85);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  --ok: #4ADE80;
  --error: #F87171;
  color-scheme: dark;

  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius: 16px;
  --max: 1200px;
}

/* ---------- Light mode ---------- */
:root[data-theme="light"] {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #ECE8E0;
  --border: #E2DDD3;
  --border-strong: #C4BDB0;
  --text: #16171B;
  --text-soft: #45464D;
  --text-muted: #6A665E;
  --accent: #C9A24A;
  --accent-text: #8A6614;
  --on-accent: #16171B;
  --text-strong: #000000;
  --header-bg: rgba(247, 245, 240, 0.88);
  --shadow: 0 30px 80px rgba(60, 50, 30, 0.14);
  --ok: #15803D;
  --error: #B91C1C;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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 .25s ease, color .25s ease;
}

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

a { color: var(--text); }
a:hover { color: var(--text-strong); }

h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 24px 0; display: flex; flex-direction: column; gap: 40px; }
.section h2 { font-size: clamp(32px, 4vw, 44px); }
.accent { color: var(--accent-text); }
.muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { color: var(--text-strong); border-color: var(--text-soft); }
.btn-small { min-height: 44px; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
}
.logo { font-weight: 700; font-size: 20px; text-decoration: none; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  font-size: 15px;
}
.nav-list a:not(.btn) { text-decoration: none; color: var(--text-soft); }
.nav-list a:not(.btn):hover { color: var(--text-strong); }

/* Theme switch button */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--border); cursor: pointer;
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 80px);
  letter-spacing: -0.025em; line-height: 1.04;
  max-width: 960px;
}
.lead { font-size: 19px; color: var(--text-soft); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px; color: var(--text-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- Featured screenshot ---------- */
.featured { padding-top: 64px; }
.browser {
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); padding: 14px;
  box-shadow: var(--shadow);
}
.browser-bar { display: flex; gap: 8px; padding: 6px 8px 14px; }
.browser-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }

/* Screenshot boxes: show the image if it exists, otherwise a placeholder label */
.shot {
  position: relative; display: block;
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--surface-2);
}
.shot-wide { aspect-ratio: 16 / 8; }
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; z-index: 1;
}
.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px;
}

/* ---------- Clients ---------- */
.clients {
  padding-top: 56px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px;
  font-size: 17px;
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.card {
  text-decoration: none;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); padding: 12px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-text { padding: 0 8px 8px; display: flex; justify-content: space-between; gap: 12px; }
.card-text h3 { font-size: 20px; margin-bottom: 4px; }
.card-text p { font-size: 15px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.service {
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.service h3 { font-size: 22px; }
.service p { color: var(--text-soft); }
.service .price { color: var(--text); font-weight: 700; margin-top: auto; padding-top: 8px; }
.service-highlight { border-color: var(--accent); }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px; counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--border-strong); padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { font-size: 20px; }
.steps h3::before { content: counter(step) ". "; }
.steps p { color: var(--text-soft); }

/* ---------- Quote ---------- */
.quote {
  margin: 0; padding: 48px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
}
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.quote figcaption { color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { margin-top: 112px; border-top: 1px solid var(--border); background: var(--surface); }
.contact-inner {
  padding-top: 96px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 56px;
}
.contact-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-intro h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.contact-options { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.contact-option {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 20px; border-radius: 12px;
  border: 1px solid var(--border); text-decoration: none;
}
.contact-option:hover { border-color: var(--border-strong); }
.contact-option .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.contact-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 14px 16px; min-height: 52px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { align-self: flex-start; }
.privacy-note { font-size: 14px; color: var(--text-muted); }
.form-status { font-size: 15px; min-height: 1.6em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  padding-top: 28px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-muted); font-size: 14px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Simple text pages (Impressum, Datenschutz) ---------- */
.page { padding-top: 72px; padding-bottom: 112px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 32px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }
.page p { color: var(--text-soft); margin-bottom: 12px; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 80px; }
  .hero { padding-top: 48px; }
  .browser { padding: 8px; border-radius: 14px; }
  .quote { padding: 28px; }
  .contact-inner { padding-top: 72px; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
