/* dirkmueller.net - static, system fonts, no third-party assets */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1f2e;
  --muted: #5a6172;
  --charcoal: #1a1f2e;
  --accent: #2b5ea8;
  --accent-hover: #1e4580;
  --accent-soft: #e8eef7;
  --border: #e2e5eb;
  --radius: 12px;
  --max: 960px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  color: var(--charcoal);
  cursor: pointer;
}

main { min-height: 60vh; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--charcoal);
}

.lead { color: var(--muted); max-width: 42rem; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-photo {
  width: 240px;
  height: 280px;
  border-radius: 28% / 22%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 3px solid var(--surface);
  box-shadow:
    0 8px 28px rgba(26, 31, 46, 0.14);
  background: var(--accent-soft);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--charcoal);
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }


/* Synchronkartei stats strip */
.stats-strip {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(43, 94, 168, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.stats-source {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.stats-source a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stats-source a:hover {
  color: var(--accent);
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.highlight {
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  text-align: center;
}

.highlight-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.25;
}

.highlight-role {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Cards / lists */
.credit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .card { background: var(--bg); }

.card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.card li:last-child { border-bottom: none; padding-bottom: 0; }
.card li span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Leistungen: 2 featured + 1 secondary */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.service-featured {
  background: linear-gradient(165deg, var(--surface) 0%, var(--accent-soft) 100%) !important;
  border-color: #b8c9e0 !important;
  padding: 1.6rem 1.4rem !important;
}

.service-featured strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.service-secondary {
  grid-column: 1 / -1;
  max-width: 28rem;
  justify-self: start;
  opacity: 0.95;
  padding: 1.15rem 1.2rem !important;
}

.service-secondary strong {
  font-size: 1rem;
}

.service-list strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.service-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-box {
  background: var(--charcoal);
  color: #e8eaef;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.contact-box h2 { color: #fff; margin: 0 0 0.4rem; }
.contact-box p { margin: 0; color: #b8becc; max-width: 28rem; }
.contact-box .horproben-note {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c5d4eb;
  letter-spacing: 0.02em;
}
.contact-box .btn-primary {
  background: #fff;
  color: var(--charcoal);
}
.contact-box .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.sync-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.legal-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}
.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}
.legal-page p, .legal-page address {
  color: var(--muted);
  font-style: normal;
}
.legal-page address { line-height: 1.7; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 1.25rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }


.highlight-title a {
  color: inherit;
  text-decoration: none;
}
.highlight-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.credit-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-sub {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.credit-scroll {
  max-height: 28rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.card li a {
  font-weight: 600;
  text-decoration: none;
}
.card li a:hover {
  text-decoration: underline;
}

.card em {
  font-style: italic;
  font-weight: 600;
}


@media (max-width: 1100px) {
  .credit-grid-3 { grid-template-columns: 1fr; }
  .credit-scroll { max-height: 22rem; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-photo {
    margin: 0 auto;
    width: 200px;
    height: 240px;
    border-radius: 28% / 22%;
    object-position: 50% 18%;
  }
  .btn-row { justify-content: center; }
  .highlights,
  .stats-grid,
  .credit-grid,
  .credit-grid-3,
  .service-list { grid-template-columns: 1fr; }
  .service-secondary {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .nav.is-open { display: flex; }
  .contact-box { text-align: center; justify-content: center; }
}

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

.soon-link { color: inherit; font-weight: 700; }
.soon-badge {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.9;
}
.contact-box .soon-badge { color: #c5d4eb; }
