:root {
  --ink: #22272e;
  --ink-soft: #55606c;
  --paper: #fafaf8;
  --card: #ffffff;
  --line: #e4e2dc;
  --accent: #b45c22;
  --accent-dark: #8c4517;
  --anthracite: #2b3138;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.marke {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.marke span { color: var(--accent); }

.nav-schalter { display: none; }

.nav-knopf {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

nav a:hover { background: #f0ede7; color: var(--ink); }

nav a[aria-current="page"] { background: var(--anthracite); color: #fff; }

.tel-kopf {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
}

.tel-kopf:hover { background: var(--accent-dark); }

/* Held */
.held {
  background: linear-gradient(180deg, #f2efe9 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.held-innen { padding: 72px 0 64px; max-width: 720px; }

.held-raster {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.held-raster .held-innen { max-width: none; }

.held-bild svg { width: 100%; height: auto; }

.held-bild {
  position: relative;
  padding-top: 75%;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.held-bild img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vorzeile {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.held p { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 28px; }

.knopfzeile { display: flex; flex-wrap: wrap; gap: 12px; }

.knopf {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.knopf-voll { background: var(--accent); color: #fff; }
.knopf-voll:hover { background: var(--accent-dark); }

.knopf-rand { border: 1.5px solid var(--anthracite); color: var(--anthracite); }
.knopf-rand:hover { background: var(--anthracite); color: #fff; }

/* Abschnitte */
main section { padding: 56px 0; }

h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 10px; }

.einleitung { color: var(--ink-soft); max-width: 640px; margin: 0 0 32px; }

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

.karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.karte:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(34, 39, 46, 0.09);
}

.karte h3 { margin: 14px 0 8px; font-size: 1.08rem; }

.karte p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.karten-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f4e9df;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Leistungsliste (Unterseite) */
.leistung {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.leistung-bild {
  flex: 0 0 220px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
}

.leistung-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leistung h2 { font-size: 1.2rem; margin: 0 0 6px; }
.leistung p { margin: 0; color: var(--ink-soft); }

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

.galerie figure { margin: 0; }

.bild {
  position: relative;
  padding-top: 75%;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f4f0e9;
}

.bild svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.45s ease; }

.bild img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.galerie figure:hover .bild svg,
.galerie figure:hover .bild img { transform: scale(1.04); }

.galerie figcaption { padding: 10px 4px 0; font-weight: 500; }

.hinweis {
  background: #f4efe8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* Kontakt */
.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.kontakt-karte dt { font-weight: 600; margin-top: 12px; }
.kontakt-karte dt:first-child { margin-top: 0; }
.kontakt-karte dd { margin: 2px 0 0; color: var(--ink-soft); }

.tel-gross {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

/* Schlussleiste */
.schluss {
  background: var(--anthracite);
  color: #fff;
}

.schluss-innen { padding: 52px 0; text-align: center; }

.schluss h2 { color: #fff; }

.schluss p { color: #c6ccd3; max-width: 560px; margin: 8px auto 24px; }

/* Fuss */
footer {
  background: #22272e;
  color: #aab2bb;
  font-size: 0.92rem;
}

.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding: 26px 0;
}

footer a { color: #dfe4e9; }

/* Lichtkasten (Galerie-Vergroesserung) */
.galerie .bild a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: zoom-in; }

.lichtkasten {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 24, 29, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  box-sizing: border-box;
}

.lichtkasten img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lichtkasten figcaption { color: #fff; margin-top: 14px; font-size: 1.05rem; }

.lichtkasten-zu {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

/* Animation: sanftes Einblenden */
.enthuellen {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.enthuellen.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .enthuellen { opacity: 1; transform: none; transition: none; }
  .karte, .bild svg { transition: none; }
  .karte:hover { transform: none; }
  .galerie figure:hover .bild svg { transform: none; }
}

/* Mobil */
@media (max-width: 780px) {
  .held-raster { grid-template-columns: 1fr; gap: 8px; }
  .held-bild { order: -1; max-width: 420px; }

  .leistung { flex-direction: column; align-items: stretch; }
  .leistung-bild { flex: none; height: 180px; }

  .nav-knopf { display: block; }

  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 10px 20px 18px;
  }

  .nav-schalter:checked ~ nav { display: block; }

  nav ul { flex-direction: column; }

  .tel-kopf { display: none; }

  .held-innen { padding: 48px 0 44px; }
}
