/* Selbst gehostet (nicht von Google geladen) - vermeidet die IP-Übertragung an
   fonts.gstatic.com, die 2022 vom LG München als DSGVO-Verstoß gewertet wurde. */
@font-face {
  font-family: "Domine";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/domine-400.woff2") format("woff2");
}
@font-face {
  font-family: "Domine";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/domine-600.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/worksans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/worksans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/worksans-600.woff2") format("woff2");
}

:root {
  /* Wattenmeer: kühles Blaugrau als Grundton. Kluntje: warmes Zuckerweiß als Fläche.
     Tee: einziger warmer Akzent, reserviert für Aktionen. */
  --color-primary: #8a5a2b;
  --color-primary-deep: #6e4620;
  --color-text: #23292b;
  --color-muted: #5b6669;
  --color-bg: #f7f3ec;
  --color-surface: #ffffff;
  --color-bg-alt: #e4e8e6;
  --color-deep: #33474a;
  --color-border: #d8d2c5;
  --font-display: "Domine", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header img.logo { height: 56px; width: auto; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--color-text); font-weight: 500; }
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .site-header .wrap { position: relative; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 4px; }
}

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 70px 0 50px;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 51, 53, 0.68);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .logo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-bg);
  padding: 14px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.hero h1 { font-size: 2.1rem; font-weight: 600; margin: 0 0 20px; }
.hero p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; }
.hero .phones { margin-top: 16px; font-size: 1.05rem; }
.hero .phones a { color: #fff; font-weight: 600; text-decoration: underline; }

/* Sections */
section { padding: 40px 0; }
section.section-lg { padding: 88px 0; }
section.section-compact { padding: 28px 0; }
section.alt { background: var(--color-bg-alt); }
h2 { font-weight: 600; font-size: 1.8rem; text-align: center; margin-top: 0; }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 36px; color: var(--color-muted); }

/* Ablauf steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step { text-align: center; }
.step .icon {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--color-deep);
  color: var(--color-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step .icon svg { width: 26px; height: 26px; }
.step h3 { font-weight: 400; margin: 0 0 8px; }
.step p { color: var(--color-muted); font-size: 0.95rem; }

/* Slider images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

@media (max-width: 700px) {
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    -webkit-overflow-scrolling: touch;
  }
  .gallery img { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Price calculator */
.price-category {
  margin-bottom: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-category summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-bg-alt);
  font-weight: 500;
}
.price-category summary::-webkit-details-marker { display: none; }
.price-category summary .chevron {
  width: 10px; height: 10px;
  flex: none;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.price-category[open] summary .chevron { transform: rotate(45deg); }
.price-category summary .cat-subtotal {
  margin-left: auto;
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.9rem;
  white-space: nowrap;
}
.subcat-heading {
  margin: 18px 18px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-deep);
}
.subcat-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.price-category-body > .price-table:first-of-type { margin-top: 4px; }
.price-table { width: 100%; border-collapse: collapse; margin: 4px 18px 14px; width: calc(100% - 36px); }
.price-table tr { border-bottom: 1px solid var(--color-border); }
.price-table td { padding: 8px 4px; vertical-align: middle; }
.price-table td.name { width: 55%; }
.price-table td.name .prop { display: block; font-size: 0.82em; color: var(--color-muted); font-weight: 400; }
.price-table td.price { width: 20%; color: var(--color-muted); white-space: nowrap; }
.price-table td.qty { width: 25%; text-align: right; }
.price-table input[type="number"] {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: right;
  font-size: 1rem;
}

.total-box {
  position: sticky;
  bottom: 0;
  margin-top: 30px;
  padding: 18px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.total-box .label { font-size: 1rem; }
.total-box .amount { font-size: 1.6rem; font-weight: 600; }

/* Contact form */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 1rem;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-actions { text-align: center; }
button, .btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--color-primary-deep); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, .nav-toggle:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.form-note { text-align: center; color: var(--color-muted); font-size: 0.9rem; margin-top: 10px; }

/* Simple pages (Impressum/Datenschutz/AGB) */
.legal { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.legal h1 { font-size: 2rem; font-weight: 600; margin: 0 0 8px; text-align: left; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin: 34px 0 10px; text-align: left; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer nav { margin-bottom: 10px; }
.site-footer nav a { margin: 0 10px; color: var(--color-muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .price-table td.name { width: 100%; display: block; }
  .price-table tr { display: flex; flex-wrap: wrap; padding: 6px 0; }
  .price-table td.price, .price-table td.qty { width: 50%; }
}
