/* Haus Moorgrund – schlichtes Stylesheet ohne externe Schriften oder Skripte */

:root {
  --klinker: #8E3A26;
  --klinker-dunkel: #6F2C1C;
  --moor: #2E4A3F;
  --whatsapp: #0B6E4F;
  --sand: #F7F2EA;
  --karte: #FFFFFF;
  --text: #1E2528;
  --text-2: #4A5559;
  --linie: #E4DCD0;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(30, 37, 40, .06), 0 6px 20px rgba(30, 37, 40, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--klinker); text-underline-offset: 3px; }
a:hover { color: var(--klinker-dunkel); }

:focus-visible { outline: 3px solid var(--moor); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--moor); }
p { margin: 0 0 1em; }

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

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.marke { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.marke svg { flex: 0 0 auto; }
.marke strong { font-family: var(--serif); font-size: 1.25rem; display: block; line-height: 1.1; }
.marke span { font-size: .85rem; color: var(--text-2); }
.kopf nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.kopf nav a:hover { color: var(--klinker); text-decoration: underline; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.knopf svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.knopf-whatsapp { background: var(--whatsapp); color: #fff; }
.knopf-whatsapp:hover { background: #08583F; color: #fff; }
.knopf-haupt { background: var(--klinker); color: #fff; }
.knopf-haupt:hover { background: var(--klinker-dunkel); color: #fff; }
.knopf-rand { background: var(--karte); color: var(--text); border-color: var(--linie); }
.knopf-rand:hover { border-color: var(--klinker); color: var(--klinker); }
.knopf-klein { padding: .55em 1em; font-size: .95rem; white-space: nowrap; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Einstieg ---------- */
.einstieg { padding-block: clamp(2rem, 5vw, 4rem); }
.einstieg .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.oberzeile { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--moor); margin-bottom: .75rem; }
.einleitung { font-size: 1.15rem; color: var(--text-2); max-width: 36em; }
.preisband {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35em .9em;
  background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--klinker);
  border-radius: 10px; padding: .7em 1.1em; margin: .5rem 0 1.5rem;
}
.preisband strong { font-family: var(--serif); font-size: 1.6rem; color: var(--klinker); }
.preisband span { color: var(--text-2); }
.merkmale { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.merkmale li { background: #EFE8DC; border-radius: 999px; padding: .3em .85em; font-size: .92rem; }
/* Hausfoto vollständig zeigen (Hochformat), Breite begrenzt statt Zuschnitt */
.einstieg-bild img { width: 100%; max-width: 420px; height: auto; margin-left: auto; border-radius: var(--radius); box-shadow: var(--schatten); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.abschnitt-hell { background: var(--karte); border-block: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 44em; margin-bottom: 2rem; }
.abschnitt-kopf p { color: var(--text-2); }

/* Auf einen Blick */
/* Trennlinien als Rahmen je Zelle; die äußeren Kanten schneidet overflow ab, leere Restzellen bleiben weiß */
.fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fakten div { padding: 1rem 1.1rem; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 0 -1px -1px 0; }
.fakten dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; }
.fakten dd { margin: .2rem 0 0; font-weight: 500; }

/* Fotos: immer das ganze Foto, nie zugeschnitten (height: auto statt object-fit) */
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1rem; align-items: start; list-style: none; padding: 0; margin: 0; }
.galerie .g-kueche { grid-column: span 3; }
.galerie figure { margin: 0; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s; }
.galerie a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30, 37, 40, .16); }
.galerie img { width: 100%; height: auto; }
.galerie figcaption { margin-top: .5rem; font-size: .95rem; color: var(--text-2); }
.g-anfrage {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  background: var(--klinker); color: #fff; border-radius: 10px; padding: 1.5rem;
}
.g-anfrage p { margin: 0; }
.g-anfrage .g-titel { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.g-anfrage .g-link { color: #fff; }
.knopf-weiss { background: #fff; color: var(--klinker); }
.knopf-weiss:hover { background: #F6E7DF; color: var(--klinker-dunkel); }
.hinweis { font-size: .9rem; color: var(--text-2); margin-top: 1rem; }

/* Preise */
.preise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--schatten); }
.ganze-breite { grid-column: 1 / -1; }
.preis-gross { font-family: var(--serif); font-size: 3rem; color: var(--klinker); line-height: 1; margin-bottom: .25rem; }
.preis-gross small { font-family: var(--sans); font-size: 1rem; color: var(--text-2); }
.haken { list-style: none; padding: 0; margin: 1rem 0 0; }
.haken li { padding-left: 1.7em; position: relative; margin-bottom: .45em; }
.haken li::before { content: ""; position: absolute; left: .2em; top: .45em; width: .9em; height: .5em; border-left: 3px solid var(--moor); border-bottom: 3px solid var(--moor); transform: rotate(-45deg); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .6em .4em; border-bottom: 1px solid var(--linie); vertical-align: top; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
tr.summe td { font-weight: 700; border-bottom: 0; }
caption { text-align: left; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }

/* Monteure + Lage */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* Fragen */
.fragen { max-width: 52em; }
.fragen details { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; margin-bottom: .6rem; }
.fragen summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; position: relative; padding-right: 3rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--klinker); }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { padding: 0 1.2rem 1rem; margin: 0; color: var(--text-2); }

/* Kontakt */
.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.schritte li { counter-increment: schritt; position: relative; padding-left: 2.8rem; margin-bottom: 1rem; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--moor); color: #fff; display: grid; place-items: center; font-weight: 700; }
.kontaktliste { list-style: none; padding: 0; margin: 0; }
.kontaktliste li { margin-bottom: .75rem; }
.kontaktliste .knopf { width: 100%; justify-content: flex-start; }
.klein { font-size: .9rem; color: var(--text-2); }

/* Rechtstexte */
.rechtstext { max-width: 46em; padding-block: clamp(2rem, 5vw, 3.5rem); }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2rem; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.5rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--text); color: #D9DEE0; padding-block: 2.5rem 2rem; font-size: .95rem; }
.fuss a { color: #fff; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.fuss strong { color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Kontaktleiste unten (nur Handy) */
.kontaktleiste { display: none; }

@media (max-width: 860px) {
  .einstieg .wrap, .preise, .zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .einstieg-bild img { max-width: 300px; margin-inline: auto; }
  .kopf nav { display: none; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie .g-kueche, .g-anfrage { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4.5rem; }
  .kontaktleiste {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--karte); border-top: 1px solid var(--linie); padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom));
  }
  .kontaktleiste .knopf { padding: .65em .5em; font-size: .92rem; }
  .galerie { gap: 1.1rem .6rem; }
  .galerie figcaption { font-size: .88rem; }
  .knopfreihe .knopf { flex: 1 1 100%; }
  .marke span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galerie a { transition: none; }
  .galerie a:hover { transform: none; }
}
