:root {
  --bg: #f4f1ea;
  --surface: #fbf9f5;
  --text: #1c1b19;
  --muted: #6b665d;
  --line: #dcd6ca;
  --accent: #e8572a;
  --max: 1120px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #1e1d1a;
    --text: #efebe3;
    --muted: #9c968b;
    --line: #34312c;
    --accent: #f06a3f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem;
  letter-spacing: -0.02em; text-decoration: none;
}
.logo span { color: var(--accent); font-style: normal; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav ul a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .15s; }
.nav ul a:hover { color: var(--text); }
.nav ul a.nav-cta {
  color: var(--text); border: 1px solid var(--text); padding: 7px 16px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav ul a.nav-cta:hover { background: var(--text); color: var(--bg); }

/* Hero */
.hero { padding: 112px 32px 120px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-foot p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--text); color: var(--bg); text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; padding: 15px 26px; border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--accent); color: #fff; }

/* Sections */
section { padding: 104px 0; }
.label {
  font-family: var(--mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 40px;
}

.services { list-style: none; border-top: 1px solid var(--text); }
.services li {
  display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 32px; align-items: baseline;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.services .num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.services h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.1;
}
.services p { color: var(--muted); font-size: 1.05rem; max-width: 50ch; }


/* Contact */
#kontakt { background: var(--surface); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-info h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.contact-info p { color: var(--muted); margin-top: 20px; max-width: 36ch; }
.contact-info a { color: var(--text); font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: 4px; }

form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 1.05rem; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; width: 100%;
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
textarea::placeholder { color: var(--line); }
form .btn { margin-top: 8px; justify-self: start; }
.hint { font-size: 0.82rem; color: var(--muted); opacity: .85; }

/* Footer */
footer { padding: 36px 0; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 80px 32px 104px; max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 2.8rem; letter-spacing: -0.03em; margin-bottom: 32px; }
.legal h2 { font-size: 1.05rem; margin: 32px 0 6px; }
.legal p { color: var(--muted); }

@media (max-width: 860px) {
  .services li { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .services p { grid-column: 2; }
  .contact, .row { grid-template-columns: 1fr; }
  .contact { gap: 48px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero { padding-top: 72px; padding-bottom: 88px; }
  section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .wrap, .hero, .legal { padding-left: 20px; padding-right: 20px; }
  .nav ul li:first-child { display: none; }
  .services li { grid-template-columns: 1fr; }
  .services p { grid-column: 1; }
}
