/* Blumenhaus Bertram – Gestaltung
   Farben hier oben ändern, der Rest passt sich an. */
:root {
  --creme: #faf6f0;
  --hell: #f2ebe1;
  --gruen: #2f3d33;
  --gruen-weich: #5b6b5f;
  --akzent: #c8643b;      /* warmes Orange, angelehnt an das Logo */
  --akzent-dunkel: #a84f2b;
  --linie: #e4d9ca;
  --rund: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--gruen);
  background: var(--creme);
}
img { max-width: 100%; display: block; }
a { color: var(--akzent-dunkel); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Formatierungen aus der Verwaltungs-App */
.ausr-links { text-align: left; }
.ausr-mitte { text-align: center; }
.ausr-rechts { text-align: right; }
.text-klein { font-size: .85em; }
.text-gross { font-size: 1.3em; }
.text-sehr-gross { font-size: 1.7em; line-height: 1.25; font-family: var(--serif); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.breite { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.schmal { width: min(720px, 100% - 2.5rem); }
.mitte { text-align: center; justify-content: center; }
.klein { font-size: .92rem; color: var(--gruen-weich); }

/* ----- Kopfzeile ----- */
.kopfzeile {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopfzeile-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marke { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; color: var(--gruen); text-decoration: none; white-space: nowrap; }
/* Aufbereitetes Logo (bilder/logo, erzeugt mit werkzeuge/logo-aufbereiten.ps1) */
.marke-logo { height: 104px; width: auto; padding: 8px 0; }
.titel-zusatz { display: block; font-size: .32em; font-style: italic; letter-spacing: .02em; opacity: .9; margin-top: .35em; }
nav { display: flex; gap: 1.4rem; overflow-x: auto; }
nav a { color: var(--gruen); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: .3rem 0; }
nav a:hover { color: var(--akzent); }

/* ----- Titelbild ----- */
.titel {
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(to top, rgba(28, 36, 30, .78), rgba(28, 36, 30, .15) 65%),
    var(--bild) center / cover no-repeat;
  color: #fff;
  padding: 6rem 0 3.5rem;
}
.titel h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .25em; }
.vorzeile { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; opacity: .9; margin-bottom: .6rem; }
.einleitung { font-size: 1.15rem; max-width: 34em; opacity: .95; }

/* ----- Knöpfe ----- */
.knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px;
  background: #fff; color: var(--gruen); text-decoration: none; font-weight: 600;
  border: 1px solid var(--linie);
  transition: transform .15s, background .15s;
}
.knopf:hover { transform: translateY(-1px); }
.knopf svg { width: 1.2em; height: 1.2em; flex: none; }
.knopf-haupt { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.knopf-haupt:hover { background: var(--akzent-dunkel); }

/* ----- Hinweis ----- */
.hinweis { background: var(--gruen); color: var(--creme); padding: 3rem 0; text-align: center; }
.hinweis h2 { font-size: 1.7rem; }
.hinweis p:last-child { font-family: var(--serif); font-style: italic; margin-bottom: 0; }

/* ----- Abschnitte ----- */
.abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.abschnitt-hell { background: var(--hell); }
.abschnitt-titel { text-align: center; margin-bottom: 2rem; }

/* Häufige Fragen */
.frage { border-bottom: 1px solid var(--linie); }
.frage summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font-size: 1.4rem; color: var(--akzent); }
.frage[open] summary::after { content: "–"; }
.frage p { margin: 0 0 1.2rem; }

/* ----- Aktuelles ----- */
.neuigkeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; }
.neuigkeit { display: grid; grid-template-columns: 160px 1fr; gap: 1.3rem; align-items: start; background: #fff; border-radius: var(--rund); padding: 1.2rem; box-shadow: 0 1px 3px rgba(47, 61, 51, .08); }
.neuigkeit-bild { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.neuigkeit-bild img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.neuigkeit h3 { margin-bottom: .4rem; }
.neuigkeit p:last-child { margin-bottom: 0; }
.datum { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent-dunkel); margin-bottom: .3rem; }
@media (max-width: 480px) { .neuigkeit { grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem; } }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.karte { background: #fff; border-radius: var(--rund); overflow: hidden; box-shadow: 0 1px 3px rgba(47, 61, 51, .08); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte-bild { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.karte-bild img { transition: transform .4s; }
.karte-bild:hover img { transform: scale(1.04); }
.foto-anzahl {
  position: absolute; right: .7rem; bottom: .7rem;
  background: rgba(28, 36, 30, .75); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.karte-text { padding: 1.2rem 1.3rem 1.4rem; }
.karte-text p { margin: 0; color: var(--gruen-weich); }
.karte-text p + p, .karte-text p + ul, .karte-text ul + p { margin-top: .5em; }
.karte-text ul:last-child, .einleitung p:last-child, .klein p:last-child { margin-bottom: 0; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zwei-spalten.oben { align-items: start; }
.zwei-spalten > img, .spalten-bild img { border-radius: var(--rund); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spalten-bild { border-radius: var(--rund); }

/* ----- Öffnungszeiten ----- */
.zeiten { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.zeiten th, .zeiten td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zeiten th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.sonder {
  background: #fff3ea; border: 1px solid #f0c9b0; border-radius: var(--rund);
  padding: 1rem 1.2rem .2rem; margin-bottom: 1.5rem;
}
.sonder strong { color: var(--akzent-dunkel); }
.sonder .zeiten th, .sonder .zeiten td { border-color: #f0d8c8; }

.bestellen { background: #fff; border-radius: var(--rund); padding: 2rem; }
button.knopf { font: inherit; font-weight: 600; cursor: pointer; }

/* ----- Chat-Fenster am Rand ----- */
.chat { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.chat-knopf {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  display: grid; place-items: center; transition: transform .15s;
}
.chat-knopf:hover { transform: scale(1.06); }
.chat-knopf svg { width: 32px; height: 32px; }
.chat-fenster {
  width: min(340px, calc(100vw - 2.4rem)); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18); font-size: .95rem;
}
.chat-fenster[hidden] { display: none; }
.chat-kopf { position: relative; background: var(--gruen); color: var(--creme); padding: .9rem 2.8rem .9rem 1rem; }
.chat-kopf strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.chat-kopf span { font-size: .8rem; opacity: .8; }
.chat-zu { position: absolute; top: .5rem; right: .6rem; background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.chat-wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .6rem; background: #fff; border-bottom: 1px solid var(--linie); }
.chat-wege button {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  font: inherit; font-size: .85rem; cursor: pointer; color: var(--gruen);
  background: var(--creme); border: 1px solid var(--linie); border-radius: 10px; padding: .45rem .3rem;
}
.chat-wege svg { width: 1.05em; height: 1.05em; flex: none; }
.chat-wege button[aria-checked="true"] { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.chat-eingabe button[data-weg="sms"], .chat-eingabe button[data-weg="email"] { background: var(--akzent); }
.chat-verlauf { background: var(--hell); padding: 1rem; }
.blase { background: #fff; padding: .7rem .9rem; border-radius: 4px 14px 14px 14px; margin: 0 0 .8rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button {
  font: inherit; font-size: .85rem; cursor: pointer; color: var(--akzent-dunkel);
  background: #fff; border: 1px solid #f0c9b0; border-radius: 999px; padding: .3rem .75rem;
}
.chips button:hover { background: #fff3ea; }
.chat-eingabe { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--linie); }
.chat-eingabe textarea {
  flex: 1; font: inherit; resize: none; border: 1px solid var(--linie); border-radius: 12px;
  padding: .55rem .7rem; color: var(--gruen);
}
.chat-eingabe textarea:focus { outline: 2px solid #25d366; outline-offset: 0; }
.chat-eingabe button { flex: none; width: 44px; border: 0; border-radius: 50%; background: #25d366; color: #fff; cursor: pointer; display: grid; place-items: center; align-self: end; height: 44px; }
.chat-eingabe svg { width: 22px; height: 22px; }
.chat-info { margin: 0; padding: 0 .9rem .7rem; font-size: .75rem; color: var(--gruen-weich); }
.chat-urlaub { background: var(--hell); padding: 1rem; }
.chat-urlaub .blase p { margin: 0 0 .6rem; }
.chat-urlaub .blase p:last-child { margin-bottom: 0; }
.chat-urlaub .chat-info { padding: 0; }
.chat-fenster [hidden] { display: none !important; }
html.urlaub .chat-knopf { background: var(--akzent); }
/* Im Urlaub keine WhatsApp-/SMS-Knöpfe auf der Seite (Telefon & E-Mail bleiben) */
html.urlaub a[href^="https://wa.me"], html.urlaub a[href^="sms:"] { display: none !important; }
html.urlaub .wege li:has(a[href^="https://wa.me"]), html.urlaub .wege li:has(a[href^="sms:"]) { display: none; }

/* ----- Urlaubs-Hinweis oben auf der Seite ----- */
.urlaub-banner { background: #fff3ea; border-bottom: 1px solid #f0c9b0; padding: .9rem 0; color: var(--akzent-dunkel); }
.urlaub-banner[hidden], .urlaub-banner [hidden] { display: none; }
.urlaub-banner p { margin: 0 0 .3rem; }
.urlaub-banner p:last-child { margin-bottom: 0; }
.urlaub-banner.im-urlaub { background: var(--akzent); color: #fff; border-color: var(--akzent); }

/* iPhone zoomt bei Eingabefeldern unter 16px automatisch hinein – deshalb mindestens 16px */
.chat-eingabe textarea { font-size: 16px; }

/* Handy: Chat als ruhiges Vollbild, das genau über der Tastatur sitzt.
   --vv-hoehe / --vv-oben setzt das Skript aus dem sichtbaren Bereich (ohne Tastatur). */
@media (max-width: 760px) {
  html.chat-offen, html.chat-offen body { overflow: hidden; }
  .chat-fenster {
    position: fixed; left: 0; right: 0;
    top: var(--vv-oben, 0px);
    height: var(--vv-hoehe, 100dvh);
    width: 100%; border-radius: 0;
    display: flex; flex-direction: column;
  }
  .chat-fenster[hidden] { display: none; }
  .chat-verlauf { flex: 1; overflow-y: auto; }
  .chat-eingabe { padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
  .chat-zu { font-size: 2rem; top: .4rem; }
  html.chat-offen .chat-knopf { display: none; }
}
.wege { list-style: none; padding: 0; margin: 0; }
.wege a { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; color: var(--gruen); text-decoration: none; border-bottom: 1px solid var(--linie); }
.wege a:hover { color: var(--akzent); }
.wege svg { width: 1.3em; height: 1.3em; color: var(--akzent); flex: none; }

/* ----- Instagram ----- */
.insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 2rem; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: opacity .15s; }
.insta a:hover img { opacity: .85; }

/* ----- Fotogalerie ----- */
html.galerie-offen, html.galerie-offen body { overflow: hidden; }
.galerie {
  position: fixed; inset: 0; z-index: 50;
  background: #141815; color: #fff;
  display: flex; flex-direction: column;
}
.galerie[hidden] { display: none; }
.galerie-kopf { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; }
#galerie-titel { font-family: var(--serif); font-size: 1.2rem; flex: 1; }
#galerie-zaehler { font-size: .9rem; opacity: .75; }
.galerie-zu { background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.galerie-buehne { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 3.5rem; }
#galerie-bild { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.galerie-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1;
}
.galerie-pfeil:hover { background: rgba(255, 255, 255, .28); }
.galerie-pfeil.zurueck { left: .7rem; }
.galerie-pfeil.weiter { right: .7rem; }
.galerie-leiste { display: flex; gap: .4rem; padding: .8rem 1rem 1rem; overflow-x: auto; justify-content: safe center; }
.galerie-leiste button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .55; }
.galerie-leiste button.aktiv { border-color: #fff; opacity: 1; }
.galerie-leiste img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .galerie-buehne { padding: 0; }
  .galerie-pfeil { display: none; } /* auf dem Handy wird gewischt */
  .galerie-leiste button { width: 52px; height: 52px; }
}

/* ----- Über uns ----- */
.team { list-style: none; padding: 0; margin: 0; }
.team li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.team span { color: var(--gruen-weich); }

/* ----- Kontakt ----- */
.adresse { font-size: 1.2rem; font-family: var(--serif); }

/* ----- Fußzeile ----- */
.fusszeile { background: var(--gruen); color: var(--creme); padding: 1.8rem 0; font-size: .9rem; }
.fusszeile-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fusszeile p { margin: 0; }
.fusszeile a { color: var(--creme); }

/* ----- Textseiten (Impressum, Datenschutz) ----- */
.text-seite h2 { font-size: 1.3rem; margin-top: 2rem; }

/* ----- Handy ----- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .kopfzeile-innen { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .marke { justify-content: center; }
  .marke-logo { height: 84px; }
  nav { gap: 1.1rem; justify-content: flex-start; padding-bottom: .2rem; }
  .zwei-spalten { grid-template-columns: 1fr; }
  #ueber-uns .zwei-spalten > img { order: -1; }
  .zwei-spalten > img { aspect-ratio: 4 / 3; }
  .insta { grid-template-columns: repeat(2, 1fr); }
  .bestellen { padding: 1.4rem; }
  .knoepfe .knopf { flex: 1 1 auto; justify-content: center; }
}
