/* Rahmenprogramm by Sowa — rahmenprogramm.io */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f2efea;
  --surface: #ffffff;
  --ink: #16150f;
  --ink-soft: #55524a;
  --line: #e2ddd4;
  --accent: #8a6a3a;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(22, 21, 15, .05), 0 8px 24px rgba(22, 21, 15, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211;
    --bg-alt: #1b1a18;
    --surface: #1f1d1b;
    --ink: #f4f1ec;
    --ink-soft: #b0aaa0;
    --line: #322f2b;
    --accent: #d2a86a;
    --accent-ink: #1a1815;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #131211;
  --bg-alt: #1b1a18;
  --surface: #1f1d1b;
  --ink: #f4f1ec;
  --ink-soft: #b0aaa0;
  --line: #322f2b;
  --accent: #d2a86a;
  --accent-ink: #1a1815;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  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;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .hero-logo { filter: invert(1); }
}

:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .hero-logo { filter: invert(1); }

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 680px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 72px 0 64px;
}

.hero-logo {
  width: min(320px, 72vw);
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--accent);
  transition: transform .12s ease, opacity .12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* ---------- Abschnitte ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -.015em;
  margin: 0 0 10px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}

/* ---------- Leistungen ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.card-mark {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--accent);
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

/* ---------- Über ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .about { grid-template-columns: 1fr 1.25fr; gap: 48px; }
}

.about-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontakt ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}

.contact-list a {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}

.contact-label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Fußzeile ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 15px;
  color: var(--ink-soft);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}

footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* ---------- Rechtstexte ---------- */

.legal { padding: 56px 0 72px; max-width: 72ch; }
.legal h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--ink); }
.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
}
.legal .todo {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 15px;
}

/* ---------- Showcase-Bild ---------- */

.showcase { padding: 0 0 64px; }

.showcase-figure {
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

.showcase-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.showcase-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Ablauf ---------- */

.steps {
  list-style: none;
  counter-reset: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.steps li { margin: 0; }

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Referenz ---------- */

.reference {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 760px) {
  .reference { grid-template-columns: auto 1fr; gap: 48px; }
}

.stat {
  text-align: center;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-no {
  display: block;
  font-size: clamp(42px, 9vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 16ch;
  margin-inline: auto;
}

.reference p { margin: 0 0 14px; }
.reference p:last-child { margin-bottom: 0; }

/* Portrait ist jetzt ein <figure> mit Bild */
figure.about-portrait { margin: 0; padding: 0; display: block; }
figure.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
