:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #52606d;
  --line: #dde6ee;
  --accent: #1f6fae;
  --accent-soft: #e3f2fc;
  --sky: #7cc6f2;
  --on-sky: #0b2436;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b;
    --surface: #17202a;
    --text: #eef4f9;
    --muted: #9aa8b5;
    --line: #26323e;
    --accent: #8fd0fa;
    --accent-soft: #16293a;
    --sky: #8fd0fa;
    --on-sky: #0b2436;
  }
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Kopfzeile */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 28px;
}

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top nav a:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .top nav a:not(:last-child) {
    display: none;
  }
}

/* Einstieg */
.hero {
  padding-top: 88px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 58ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--on-sky);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  filter: brightness(1.08);
}

/* Abschnitte */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 60ch;
  margin: 0 0 36px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Projekte */
.project {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.project img {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.project .tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.project p + p {
  margin-top: 12px;
}

.project.soon {
  border-style: dashed;
  background: transparent;
}

.soon .placeholder {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  font-size: 2rem;
}

@media (max-width: 520px) {
  .project {
    flex-direction: column;
  }
}

/* Über mich */
.facts {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 36px;
}

.facts strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

.about p {
  max-width: 64ch;
}

/* Kontakt */
.contact {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.contact h2 {
  margin-top: 0;
}

.contact p {
  margin: 0 0 24px;
  max-width: 56ch;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-lines a {
  font-weight: 600;
}

/* Rechtstexte */
.legal {
  padding-top: 48px;
  padding-bottom: 64px;
  max-width: 760px;
}

.legal h1 {
  letter-spacing: -0.02em;
}

.legal h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

/* Fußzeile */
footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--muted);
}
