/* Komponenten — Galabau Daniel Wolff */

/* ---------- Header ---------- */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background var(--zeit), box-shadow var(--zeit), transform 0.4s var(--kurve);
}
.kopf.ist-fest {
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-linie);
}
.kopf .spanne { max-width: none; } /* Kopf nutzt die volle Breite — ab 1536 passt so auch die Telefonnummer */
.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.kopf--hell:not(.ist-fest) { color: var(--c-hell); }
.kopf--hell:not(.ist-fest) .marke__oben { color: var(--c-hell); }
.kopf--hell:not(.ist-fest) .marke__name { color: var(--c-hell); }
.kopf--hell:not(.ist-fest) .nav a { color: var(--c-hell); }

/* Wortmarke */
/* Wortmarke: IMMER genau zwei Zeilen (Feedback Michael: nie vierzeilig) */
.marke { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.marke__oben {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.62rem, 2.6vw, 0.82rem);
  letter-spacing: 0.02em;
  color: var(--c-tanne);
  white-space: nowrap;
  transition: color var(--zeit);
}
.marke__name {
  font-family: var(--f-schrift);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  color: var(--c-erde);
  white-space: nowrap;
  transition: color var(--zeit);
}

/* Navigation — IMMER einzeilig (Design-Review §1.1) */
.nav { display: none; flex-wrap: nowrap; }
.nav a {
  color: var(--c-tanne);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background var(--zeit), color var(--zeit);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(127, 176, 105, 0.16); color: var(--c-tanne); }
.kopf--hell:not(.ist-fest) .nav a:hover { background: rgba(248, 246, 239, 0.14); }

.kopf__aktionen { display: flex; align-items: center; gap: 0.7rem; }
@media (max-width: 767px) {
  .kopf__aktionen .knopf { display: none; } /* mobil übernimmt die Anrufleiste */
}
.kopf__tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.kopf__tel svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 10px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--zeit), opacity var(--zeit);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilmenü */
.menue {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--c-tanne-tief);
  color: var(--c-hell);
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--kurve), visibility 0.35s;
}
.menue.offen { opacity: 1; visibility: visible; }
.menue a {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--c-hell);
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 12px;
  display: inline-block;
  transition: color var(--zeit), transform var(--zeit);
}
.menue a:hover { color: var(--c-moos); transform: translateX(6px); }
.menue__tel { margin-top: 1.6rem; }


/* Bildmarke (Interim aus dem Favicon-Motiv — wird durch Daniels echtes
   Logo ersetzt, sobald die Dateien da sind; Konzept: 00-konzept/11-LOGO-EINBAU.md).
   Verhalten: voll = Bildmarke + 2 Textzeilen; gescrollt (.ist-fest) bleibt
   nur Bildmarke + Name — der hohe Logo-Aufbau passt so in den Sticky-Header. */
.marke { flex-direction: row; align-items: center; gap: 0.6rem; }
.marke__text { display: flex; flex-direction: column; line-height: 1.05; }
.marke__bild { width: 2.15rem; height: 2.15rem; flex: none; color: var(--c-moos-tief, #4d7a3a); }
.kopf--hell:not(.ist-fest) .marke__bild { color: var(--c-hell, #f8f6ef); }
.kopf.ist-fest .marke__oben { display: none; }
.kopf.ist-fest .marke__bild { width: 1.8rem; height: 1.8rem; }
.fuss__bild { width: 2.6rem; height: 2.6rem; color: var(--c-moos, #7fb069); margin-bottom: 0.7rem; }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--zeit) var(--kurve), background var(--zeit), color var(--zeit), box-shadow var(--zeit);
  will-change: transform;
}
.knopf svg { width: 1.1rem; height: 1.1rem; flex: none; transition: transform var(--zeit) var(--kurve); }
.knopf:hover svg { transform: translateX(4px); }
.knopf--voll {
  background: var(--c-moos);
  color: var(--c-tanne-tief);
  box-shadow: 0 6px 24px rgba(127, 176, 105, 0.35);
}
.knopf--voll:hover { background: var(--c-sonne); transform: translateY(-2px); }
.knopf--rahmen {
  border: 2px solid currentColor;
  background: transparent;
  color: var(--c-tanne);
}
.knopf--rahmen:hover { transform: translateY(-2px); }
.dunkel .knopf--rahmen, .kopf--hell:not(.ist-fest) .knopf--rahmen { color: var(--c-hell); }
/* Auf Foto-Heros IMMER lesbar (Feedback Michael): Weiß + Glas-Grund,
   unabhängig davon, wie hell oder dunkel das Bild darunter ist */
.hero .knopf--rahmen, .unterhero .knopf--rahmen {
  color: #fff;
  background: rgba(18, 38, 25, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hero .knopf--rahmen:hover, .unterhero .knopf--rahmen:hover {
  background: rgba(18, 38, 25, 0.55);
}


/* Kopfzeilen-Verdichtung: CTA und Nav kompakt, damit die Zeile auf
   1024–1536 nie überläuft (gemessen, nicht geraten) */
.kopf .knopf { padding: 0.6rem 1.2rem; min-height: 44px; font-size: 0.95rem; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav a { font-size: 0.85rem; padding-inline: 0.4rem; }
  .kopf .knopf { padding-inline: 0.9rem; }
}

/* ---------- Chips / Badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-linie);
  background: var(--c-creme-hell);
  font-size: var(--fs-klein);
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
}
.chip svg { width: 1rem; height: 1rem; color: var(--c-moos-tief); flex: none; }
.dunkel .chip { background: rgba(248, 246, 239, 0.07); border-color: rgba(248, 246, 239, 0.18); color: var(--c-hell); }
.dunkel .chip svg { color: var(--c-moos); }

/* ---------- Karten ---------- */
.karte {
  background: var(--c-creme-hell);
  border: 1px solid var(--c-linie);
  border-radius: var(--radius-gross);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--kurve), box-shadow 0.35s var(--kurve);
}
.karte:hover { transform: translateY(-6px); box-shadow: var(--schatten); }
.karte__bild { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.karte__bild img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--kurve);
}
.karte:hover .karte__bild img { transform: scale(1.05); }
.karte__inhalt { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.karte__inhalt ul { display: grid; gap: 0.35rem; font-size: var(--fs-klein); color: var(--c-text-soft); }
.karte__inhalt ul li { display: flex; gap: 0.5rem; align-items: baseline; }
.karte__inhalt ul li::before { content: "—"; color: var(--c-moos-tief); flex: none; }
.karte__mehr {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-moos-tief);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.karte__mehr::after { content: "→"; transition: transform var(--zeit) var(--kurve); }
.karte:hover .karte__mehr::after { transform: translateX(5px); }

/* ---------- Formular ---------- */
.feld { display: flex; flex-direction: column; gap: 0.4rem; }
.feld label { font-weight: 600; font-size: var(--fs-klein); color: var(--c-tanne); }
.feld input, .feld select, .feld textarea {
  border: 1.5px solid var(--c-linie);
  border-radius: 12px;
  background: var(--c-creme-hell);
  padding: 0.85rem 1rem;
  min-height: 48px;
  transition: border-color var(--zeit), box-shadow var(--zeit);
}
.feld textarea { min-height: 130px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--c-moos-tief);
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.25);
}
.feld--zeile { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.feld--zeile input { min-height: 0; width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: none; accent-color: var(--c-moos-tief); }
.feld--zeile label { font-weight: 400; color: var(--c-text-soft); font-size: var(--fs-klein); }

/* Upload-Feld */
.upload {
  border: 2px dashed var(--c-linie);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  color: var(--c-text-soft);
  font-size: var(--fs-klein);
  transition: border-color var(--zeit), background var(--zeit);
  cursor: pointer;
}
.upload:hover, .upload.zieht { border-color: var(--c-moos-tief); background: rgba(127, 176, 105, 0.07); }
.upload input { display: none; }
.upload strong { color: var(--c-moos-tief); }

/* ---------- Akkordeon (FAQ) ---------- */
.klapp { border-bottom: 1px solid var(--c-linie); }
.klapp summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--c-tanne);
  list-style: none;
}
.klapp summary::-webkit-details-marker { display: none; }
.klapp summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-moos-tief);
  transition: transform var(--zeit) var(--kurve);
  flex: none;
}
.klapp[open] summary::after { transform: rotate(45deg); }
.klapp p { padding: 0 0.2rem 1.2rem; color: var(--c-text-soft); }
.dunkel .klapp { border-color: rgba(248, 246, 239, 0.2); }
.dunkel .klapp summary { color: var(--c-hell); }
.dunkel .klapp summary::after { color: var(--c-moos); }
.dunkel .klapp p { color: var(--c-hell-soft); }

/* ---------- Footer ---------- */
.fuss {
  background: var(--c-tanne-tief);
  color: var(--c-hell-soft);
  padding-block: 3.5rem 2rem;
  font-size: var(--fs-klein);
}
.fuss a { color: var(--c-hell); text-decoration: none; }
.fuss a:hover { color: var(--c-moos); }
.fuss .klein { color: var(--c-hell-soft); }
.fuss__raster { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }
.fuss__unten {
  border-top: 1px solid rgba(248, 246, 239, 0.14);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- Mobile Anruf-Leiste ---------- */
.anrufleiste {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 180;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-linie);
  border-top: 1px solid var(--c-linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.anrufleiste a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.anrufleiste a svg { width: 1.1rem; height: 1.1rem; }
.anrufleiste__tel { background: var(--c-tanne); color: var(--c-hell); }
.anrufleiste__cta { background: var(--c-moos); color: var(--c-tanne-tief); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .fuss__raster { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 0.15rem; }
  .burger, .menue, .anrufleiste { display: none; }
}
@media (min-width: 1280px) {
  .nav { gap: 0.3rem; }
}
@media (min-width: 1536px) {
  .kopf__tel { display: inline-flex; }
}
