/* Stylesheet von docosmetics.ch (css/style.css v1.2.5), ohne Shop- und
   Datepicker-Teil. Ergänzungen für das neue System stehen ganz unten. */

/* ==========================================================================
   1. VARIABLEN & RESET
   ========================================================================== */

:root {
  /* Core Colors */
  --white: #FFFFFF;
  --black: #000000;
  --foreground: #3f3f41;
  --hover: #727274;
  --darkgrey: #3f3f41;
  --lightgrey: #f4f4f6;

  /* Button Colors
     Blau abgeleitet vom Licht der Serumbehälter am Hydrafacial-Gerät auf
     img/hydra1.jpg - Farbton 221 Grad. Die dort gemessenen Töne selbst sind
     mit 1.4:1 zu hell für weisse Schrift; dieser Wert erreicht 5.7:1 und
     erfüllt damit die Lesbarkeitsanforderung.
     Grün gilt nur noch für Madero, siehe madero.php. */
  --button: #245edb;
  --buttonhover: #1e4fb8;

  /* Grün der Madero-Linie, wird in madero.php gesetzt */
  --madero: #769679;
  --maderohover: #5d7a60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--lightgrey);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  /* ÄNDERUNG: Füge hier das Padding hinzu, um den 'Rahmen' sichtbar zu machen */
  padding: 20px;
}

/* Optional: Damit der Schatten auf dem dunklen Grund besser wirkt */
html {
  background-color: var(--lightgrey);
  margin: 0 auto;
  max-width: 1200px;
  background-color: var(--darkgrey);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding-left: 0;
}

/* ==========================================================================
     2. LAYOUT - HEADER & NAVIGATION
     ========================================================================== */

header {
  background-color: var(--darkgrey);
  padding: 20px;
  text-align: center;
  color: var(--white);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
  min-height: 60px;
}

.logo {
  margin: 0 auto;
}

.logo img {
  height: 146px !important;
  /* width MUSS hier stehen: das <img> traegt seit der WebP-Umstellung
     width/height-Attribute (fuer das Seitenverhaeltnis gegen Layout-Spruenge).
     Ohne diese Zeile gewinnt das Attribut width="300" und das Logo wird auf
     300px Breite gezogen, waehrend height oben auf 62px (mobil) festgenagelt
     ist - das Logo war dadurch platt gequetscht. Mit auto rechnet der Browser
     die Breite wieder aus dem Verhaeltnis. */
  width: auto;
}

/* Navigation */
nav .hamburger {
  display: none;
  font-size: 24px;
  color: var(--white);
  padding: 10px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
}

nav ul li a {
  display: block;
  padding: 15px;
  color: var(--white);
  font-weight: 400;
  font-size: 1.2em;
  transition: color 0.3s ease;
  /* Übergang nur für die Farbe */
}

nav ul li a:hover {
  background-color: transparent;
  color: var(--button);
  border-radius: 0;
}

/* Dropdown */
nav ul li.has-dropdown {
  position: relative;
}

nav ul li.has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--darkgrey);
  flex-direction: column;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

nav ul li.has-dropdown:hover .dropdown-menu,
nav ul li.has-dropdown.open .dropdown-menu {
  display: flex;
}

nav ul li.has-dropdown .dropdown-menu li a {
  font-size: 1em;
  padding: 10px 15px;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1em;
  padding: 0 5px;
  vertical-align: middle;
}

/* Content-section list styles */
.content-section ul {
  text-align: center;
  list-style: none;
  padding: 0;
}

.content-section ul li {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* ==========================================================================
     3. MAIN CONTENT & COMPONENTS
     ========================================================================== */

main {
  background-color: var(--white);
  padding: 20px;
}

.main-content {
  min-height: 400px;
  padding: 20px;
  text-align: center;
}

.kontaktimg {
  max-width: 400px !important;
  height: auto;
  margin: 10px 0;
}

.main-content img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}



.address {
  margin-bottom: 30px;
  font-size: 1.2em;
}

.grid-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;

  /* NEU: Flexbox für vertikale Ausrichtung */
  display: flex;
  flex-direction: column;
}

.grid-item:hover {
  transform: translateY(-5px);
}

/* Bilder vereinheitlichen */
.item-image img {
  width: 100%;
  height: 200px;
  /* Feste Höhe für alle Bilder */
  object-fit: cover;
  /* Bild wird beschnitten, statt verzerrt */
  border-radius: 4px;
}

/* Der Bereich mit der Liste (Reinigung, etc.) */
.item-description {
  flex-grow: 1;
  /* Dieser Teil nimmt den restlichen Platz ein */
  margin-bottom: 20px;
}

/* Dieser Container wird nach ganz unten geschoben */
.item-footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  /* Optional: Trennlinie */
  padding-top: 15px;
}


/* ==========================================================================
     4. FORMULAR STYLES
     ========================================================================== */

.main-content form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="phone"],
select,
textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

#message {
  height: 200px;
}

.main-content button {
  width: 90%;
  padding: 10px;
  background-color: var(--button);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s;
}

.main-content button:hover {
  background-color: var(--buttonhover);
}

/* ==========================================================================
     6. DATEPICKER & FOOTER
     ========================================================================== */

footer,
#custom-footer {
  background-color: var(--darkgrey) !important;
  color: var(--white) !important;
  padding: 20px;
  text-align: center;
}

#custom-footer {
  padding: 40px 20px;
}

/* ==========================================================================
     7. RESPONSIVE DESIGN
     ========================================================================== */

@media (max-width: 1024px) {
  input[type="text"],
  input[type="email"],
  input[type="phone"],
  select,
  button {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  nav .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    padding: 10px;
  }

  .dropdown-toggle {
    display: none;
  }

  nav ul li.has-dropdown .dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    background-color: transparent;
    width: 100%;
  }

  nav ul li.has-dropdown .dropdown-menu li a {
    padding: 8px 25px;
    font-size: 0.95em;
    border-top: none;
    color: rgba(255, 255, 255, 0.8);
  }

  .main-content {
    min-height: 100px;
    font-size: 20px;
  }
}
/* ==========================================================================
   Buchungs-Call-to-Action
   Ergänzt 15.08.2026: die Navigation hatte keinen Einstieg zur Buchung, und
   die Startseite endete ohne Handlungsaufforderung. Google bewertete die
   Nutzererfahrung der Landingpage bei den lokalen Keywords als unterdurchschnittlich.
   ========================================================================== */

.cta-wrap {
  text-align: center;
  margin: 28px 0 10px;
}

.cta-button {
  display: inline-block;
  background-color: var(--button);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--buttonhover);
  color: var(--white);
  transform: translateY(-2px);
}

.cta-note {
  text-align: center;
  font-size: 0.95em;
  color: var(--hover);
  margin-top: 4px;
}

.cta-note a {
  color: var(--hover);
}

/* Preis neben der Behandlungsüberschrift */
.preis {
  color: var(--button);
  font-weight: 600;
  white-space: nowrap;
}

.mehr-link {
  color: var(--button);
  font-weight: 600;
}

.mehr-link:hover {
  color: var(--buttonhover);
}

/* Buchungseintrag in der Hauptnavigation hervorheben */
nav ul li a.nav-cta {
  background-color: var(--button);
  border-radius: 4px;
  font-weight: 700;
}

nav ul li a.nav-cta:hover {
  background-color: var(--buttonhover);
}


/* ==========================================================================
   WhatsApp-Kontakt
   Verschoben aus kontakt.php nach footer.php (21.08.2026): der schwebende
   Button stand auf genau einer Seite. Anfragen sollen aber von ueberall
   moeglich sein - Startseite und Behandlungsseiten bekommen 90% des
   bezahlten Verkehrs, hatten den Knopf aber nie.
   ========================================================================== */

.whatsapp-sticky {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

.whatsapp-sticky svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

/* Auf schmalen Geraeten etwas kleiner, damit er den Buchungsknopf nicht verdeckt */
@media (max-width: 600px) {
  .whatsapp-sticky {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-sticky svg {
    width: 28px;
    height: 28px;
  }
}


/* ==========================================================================
   Kompakte Vorstellung auf /behandlungen
   Ziel: Vertrauen in drei Zeilen, ohne die Behandlungsliste nach unten zu
   druecken. Diese Seite wird ab 21.08.2026 Zielseite der Kampagne Allgemein.
   ========================================================================== */

.intro-kompakt {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: left;
}

.intro-kompakt img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  flex-shrink: 0;
}

.intro-kompakt p {
  margin: 0 0 8px;
}

.intro-fakten {
  font-size: 0.9em;
  color: var(--hover);
  line-height: 1.6;
}

.intro-fakten a {
  color: var(--button);
  font-weight: 600;
}

@media (max-width: 600px) {
  .intro-kompakt {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .intro-kompakt img {
    width: 92px;
    height: 92px;
  }
}


/* ==========================================================================
   Buchungsknopf im Header - nur auf schmalen Bildschirmen
   Die Navigation klappt ab 768px hinter das Hamburger-Symbol, "Termin buchen"
   war dort nicht mehr sichtbar. Bei 89% Mobilanteil ist das der wichtigste
   Knopf der Seite.
   ========================================================================== */

.header-buchen {
  display: none;
}

@media (max-width: 768px) {
  .header-buchen {
    display: inline-block;
    /* Kein position:absolute mehr - das ueberlappte das zentrierte Logo.
       Alle drei Elemente sind jetzt Flex-Geschwister im Kopfbereich. */
    flex-shrink: 0;
    background-color: var(--button);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 5;
  }

  .header-buchen:hover,
  .header-buchen:focus {
    background-color: var(--buttonhover);
    color: var(--white);
  }
}

@media (max-width: 380px) {
  .header-buchen {
    padding: 7px 10px;
    font-size: 0.78em;
  }
}


/* ==========================================================================
   Mobil: Kopfbereich verkleinern
   Das Logo stand mit height:146px !important ohne Mobil-Regel. Bei 300x139
   Seitenverhaeltnis ergibt das rund 315px Breite - auf einem 390px-Handy fast
   die volle Breite, dazu 146px Hoehe, die vom ersten Bildschirm abgehen.
   Kleiner heisst: der Buchungsknopf hat Platz, und die Behandlungsliste
   ruecht deutlich weiter nach oben.
   ========================================================================== */

@media (max-width: 768px) {
  .logo img {
    height: 62px !important;
  }

  /* Logo oben, Buchungsknopf darunter - beide mittig. */
  .header-top {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 0;
    position: relative;
  }

  .header-top .logo {
    margin: 0;
    min-width: 0;
  }

}

@media (max-width: 380px) {
  .logo img {
    height: 52px !important;
  }
}

/* Poertraet im Vorstellungsblock (/behandlungen). Mehrfach vergroessert:
   76px -> 148px -> 200px. Besucher wollen sehen, wer sie behandelt, das ist
   an den Klickzahlen auf /about ablesbar. Auf 200px vergroessert und am
   22.08. auf Wunsch wieder zurueck auf 148px - hier ist der Block nur die
   kurze Einordnung, das grosse Bild steht auf der Startseite. */
.intro-kompakt img {
  width: 148px;
  height: 148px;
}

@media (max-width: 600px) {
  .intro-kompakt img {
    width: 118px;
    height: 118px;
  }
}

/* ==========================================================================
   Startseite - Ueberblick statt Buchungsdruck
   Zielseite der Ads-Gruppe "Kosmetikstudio lokal". Wer nach "kosmetikstudio
   jona" sucht, kennt uns noch nicht. Darum: einordnen, Vertrauen, Ueberblick,
   niedrige Huerde (WhatsApp) - Buchung erst zuletzt.
   Hinweis: .portrait war nur in about.php definiert, auf der Startseite also
   voellig ungestylt und dadurch riesig. Deshalb hier eine eigene Klasse.

   Bild: portrait.jpg, nicht front.jpg. front.jpg ist eine Ganzkoerper-
   aufnahme auf einem Stuhl - im runden Ausschnitt wird das Gesicht winzig
   und man erkennt nicht, wer da ist. portrait.jpg zeigt sie frontal und
   lachend, das Gesicht sitzt bei 'center top' im oberen Drittel.
   ========================================================================== */

.start-hero {
  max-width: 760px;
  margin: 0 auto 44px;
}

/* Bewusst gross: /about ist der zweithaeufigste Weiterklick von der Start-
   seite (53 Sitzungen seit 15.07., 3.2%). Die Besucher wollen wissen, wer
   dahintersteht - also zeigen wir es gleich hier. */
.start-portrait {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin: 0 auto 18px !important;
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.start-hero h1 {
  margin-bottom: 12px;
}

.start-claim {
  font-size: 1.25em;
  line-height: 1.55;
  color: var(--foreground);
  max-width: 620px;
  margin: 0 auto 16px;
}

.start-fakten {
  font-size: 0.95em;
  color: var(--hover);
  line-height: 1.7;
}

.start-fakten a {
  color: var(--hover);
}

.start-block {
  max-width: 1000px;
  margin: 0 auto 52px;
}

.start-text,
.start-lead {
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.65;
}

.start-lead {
  color: var(--hover);
}

.start-mehr {
  margin-top: 20px;
}

/* Angebotsuebersicht: eine Karte je Behandlungslinie. Bewusst ohne
   Buchen-Knopf - die Karte fuehrt auf die Detailseite, gebucht wird spaeter. */
.angebot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 26px;
  text-align: left;
}

.angebot-karte {
  background-color: var(--white);
  border: 1px solid #e6e6ea;
  border-radius: 10px;
  padding: 0 0 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.angebot-karte:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.angebot-karte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}

.angebot-karte h3 {
  margin: 16px 20px 4px;
}

.angebot-preis {
  margin: 0 20px 10px;
  color: var(--button);
  font-weight: 600;
}

.angebot-karte p {
  margin: 0 20px 10px;
  line-height: 1.55;
}

.angebot-fuer {
  font-size: 0.9em;
  color: var(--hover);
  font-style: italic;
}

.angebot-karte .mehr-link {
  margin: auto 20px 0;
}

.warum-liste {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.warum-liste li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid #ececf0;
  line-height: 1.6;
  position: relative;
}

.warum-liste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--button);
  font-weight: 700;
}

.warum-liste li:last-child {
  border-bottom: none;
}

.start-verband {
  margin-top: 18px;
  font-size: 0.92em;
  color: var(--hover);
}

/* WhatsApp-Block: gruen bleibt hier richtig, das ist die Farbe des Dienstes
   und kein Markenelement der Seite. */
.frage-block {
  background-color: var(--lightgrey);
  border-radius: 12px;
  padding: 34px 24px;
}

.frage-block h2 {
  margin-top: 0;
}

.frage-block p {
  max-width: 620px;
  margin: 0 auto 14px;
  line-height: 1.65;
}

.frage-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 22px !important;
}

.wa-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wa-button svg {
  fill: currentColor;
  flex-shrink: 0;
}

.wa-button:hover {
  background-color: #128c7e;
  color: var(--white);
  transform: translateY(-2px);
}

.ruf-button {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid var(--button);
  border-radius: 6px;
  color: var(--button);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ruf-button:hover {
  background-color: var(--button);
  color: var(--white);
}

.shop-logo {
  max-width: 240px;
}

.start-buchen {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .start-portrait {
    width: 240px;
    height: 240px;
  }

  .start-claim {
    font-size: 1.1em;
  }

  .angebot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .angebot-karte img {
    height: 200px;
  }

  /* Untereinander und je volle Breite - nebeneinander wird es auf dem
     Handy zu eng und die Beschriftung bricht unschoen um. */
  .frage-knoepfe {
    flex-direction: column;
    align-items: stretch;
  }

  .wa-button,
  .ruf-button {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Telefonnummern brechen nie um
   "076 256 33 00" enthaelt drei Leerzeichen - auf schmalen Bildschirmen
   landete die Nummer dadurch auf zwei Zeilen. Gilt fuer jeden tel:-Link auf
   der ganzen Seite, auch fuer kuenftige, sowie fuer .tel-nr bei Nummern,
   die kein Link sind (kontakt.php).
   ========================================================================== */

a[href^="tel:"],
.tel-nr {
  white-space: nowrap;
}

/* Ausnahme: dieser Knopf enthaelt neben der Nummer noch Text. Er darf
   zwischen Beschriftung und Nummer umbrechen - nur innerhalb der Nummer
   nicht, dafuer sorgt das .tel-nr um die Ziffern.
   Mit a. davor, sonst gewinnt a[href^="tel:"] ueber die hoehere Spezifitaet
   und der Knopf koennte auf schmalen Bildschirmen ueberlaufen. */
a.ruf-button {
  white-space: normal;
}

/* ---------------------------------------------------------------------------
   Anzeigen-Zielseite /kosmetikstudio (Kampagne Allgemein, Gruppe
   "Kosmetikstudio lokal"). Angelegt 06.09.2026.

   Unterschied zur Startseite: kein Portraet, dafuer beide Handlungswege
   (buchen / fragen) direkt unter der Ueberschrift. Die Startseite fuehrt
   erst durch die Vorstellung - fuer bezahlte Klicks auf "kosmetikstudio
   rapperswil" ist das eine Huerde zu viel (9% erreichten die Buchungsseite
   gegenueber 20% bei /hydrafacial).
   --------------------------------------------------------------------------- */
.lp-hero {
  max-width: 760px;
  margin: 0 auto 44px;
}

.lp-hero h1 {
  margin-bottom: 12px;
}

/* Beide Knoepfe nebeneinander, auf dem Handy untereinander und volle Breite -
   89% der Ads-Klicks kommen mobil. */
.lp-cta-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 24px 0 22px;
}

@media (max-width: 560px) {
  .lp-cta-reihe {
    flex-direction: column;
    gap: 12px;
  }

  .lp-cta-reihe .cta-button,
  .lp-cta-reihe .wa-button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }
}

/* Wie .mehr-link, aber als Knopf: auf dieser Seite ist der Weiterklick zur
   Behandlung das eigentliche Ziel, nicht nur ein Hinweis. */
.karte-cta {
  display: block;
  margin: auto 20px 20px;
  padding: 11px 14px;
  background-color: var(--button);
  color: var(--white);
  border-radius: 5px;
  text-align: center;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.karte-cta:hover {
  background-color: var(--buttonhover);
  color: var(--white);
}

/* ==========================================================================
   NEUES SYSTEM
   Alles ab hier ergänzt das Stylesheet von docosmetics.ch um die Teile des
   neuen Buchungssystems - in denselben Farben und Schriften.
   ========================================================================== */

/* Behandlungskarten (bisher als <style> in treatments.php) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.grid-item {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.item-name {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 5px;
  min-height: 3.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.item-name2 {
  font-size: 1em;
  font-weight: bold;
  color: var(--button);
  margin-bottom: 15px;
  min-height: 1.2em;
}

.item-description {
  flex-grow: 1;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--foreground);
}

.item-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.item-details {
  font-size: 0.9em;
  color: var(--foreground);
  margin-bottom: 5px;
}

.item-price {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 12px;
}

.book-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s;
  text-decoration: none;
  width: 100%;
}

.book-btn:hover {
  background-color: var(--buttonhover);
}

/* Fussbereich (bisher Inline-Styles in footer.php) */
.footer-wa {
  color: #25D366;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
}

.footer-wa svg {
  fill: currentColor;
  margin-right: 5px;
}

.footer-sgmk {
  color: var(--white);
}

.footer-sgmk img {
  width: 100px;
  height: auto;
  background-color: var(--white);
  padding: 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
}

/* Hinweis "Vorschau" ganz oben (nur mit DEMO = true) */
.vorschau-band {
  background-color: var(--button);
  color: var(--white);
  font-size: 0.85em;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.8;
}

.vorschau-band a {
  color: var(--white);
  text-decoration: underline;
}

.vorschau-band a.vorschau-knopf {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 12px;
  border-radius: 4px;
  background-color: var(--white);
  color: var(--button);
  font-weight: 600;
  text-decoration: none;
}

/* Meldungen in Formularen */
.meldung {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 400;
}

.meldung-fehler {
  background-color: #fbeae8;
  color: #b23b2e;
}

.meldung-ok {
  background-color: #e8f5ec;
  color: #2f7a55;
}

/* --------------------------------------------------------------------------
   Buchung - gleiche Karte und gleiches Formular wie docosmetics.ch
   buchung.php, darin Kalender und Zeitknöpfe des neuen Systems.
   -------------------------------------------------------------------------- */

.treatment {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.treatment img {
  max-height: 320px;
  object-fit: cover;
}

.treatment_details p {
  margin: 10px 0 20px;
}

#treatment_desc {
  padding: 20px;
  background-color: #efefef;
  border-radius: 8px;
  border: 1px solid #ddd;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  text-align: left;
  white-space: pre-line;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.main-content form.buchung {
  max-width: 760px;
  margin-top: 20px;
}

.buchung .schritt {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
  min-width: 0;
  transition: opacity 0.2s;
}

.buchung .schritt[disabled] {
  opacity: 0.4;
}

.buchung legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-weight: 400;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.buchung legend span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--button);
  color: var(--white);
  font-size: 0.75em;
  font-weight: 700;
  display: grid;
  place-items: center;
}

#options-container {
  margin: 15px auto 0;
  width: 90%;
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.buchung .wahl-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  margin-bottom: 8px;
  cursor: pointer;
}

.buchung .wahl-option input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--button);
}

.buchung .wahl-option .wahl-info {
  margin-left: auto;
  white-space: nowrap;
  color: var(--hover);
  font-size: 0.9em;
}

#total-display {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--button);
  margin: 15px 0 0;
}

/* Kalender und Zeiten */
.kalender-und-zeiten {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  text-align: left;
}

.kal-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kal-kopf strong {
  font-weight: 400;
}

.kal-wochentage,
.kal-tage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.kal-wochentage span {
  font-size: 0.75em;
  color: var(--hover);
}

.kal-tage {
  transition: opacity 0.15s;
}

.kal-tage.laedt {
  opacity: 0.4;
}

.unterzeile {
  font-weight: 400;
  margin: 0 0 10px;
}

/* Die Regel ".main-content button" (90% breit, Grossbuchstaben) gilt für
   den Senden-Knopf. Kalender- und Zeitknöpfe brauchen ihre eigene Form. */
.main-content .buchung .kal-kopf button,
.main-content .buchung .kal-tage button,
.main-content .buchung .zeiten-liste button {
  width: auto;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 1em;
  transition: none;
}

.main-content .buchung .kal-kopf button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: var(--white);
  color: var(--foreground);
  font-size: 1.2em;
  line-height: 1;
}

.main-content .buchung .kal-kopf button:hover:not(:disabled) {
  background-color: var(--lightgrey);
}

.main-content .buchung .kal-kopf button:disabled {
  opacity: 0.3;
  cursor: default;
}

.main-content .buchung .kal-tage button {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background-color: #e8eefc;
  color: var(--buttonhover);
  font-weight: 600;
}

.main-content .buchung .kal-tage button:hover {
  background-color: #e8eefc;
  border-color: var(--button);
}

.main-content .buchung .kal-tage button:disabled,
.main-content .buchung .kal-tage button:disabled:hover {
  border-color: transparent;
  background-color: transparent;
  color: #c4c4c8;
  font-weight: 300;
  cursor: default;
}

.main-content .buchung .kal-tage button.heute {
  text-decoration: underline;
}

.main-content .buchung .kal-tage button.aktiv,
.main-content .buchung .kal-tage button.aktiv:hover {
  background-color: var(--button);
  color: var(--white);
}

.zeiten-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.main-content .buchung .zeiten-liste button {
  padding: 9px 0;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  background-color: var(--white);
  color: var(--foreground);
}

.main-content .buchung .zeiten-liste button:hover {
  background-color: var(--white);
  border-color: var(--button);
}

.main-content .buchung .zeiten-liste button.aktiv,
.main-content .buchung .zeiten-liste button.aktiv:hover {
  background-color: var(--button);
  border-color: var(--button);
  color: var(--white);
}

/* Angaben. type="tel" fehlt in der Formularregel von docosmetics.ch (dort
   stand das ungültige type="phone"). */
.buchung input[type="tel"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.demo-tipp {
  background-color: #fff6e8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.main-content .link-knopf {
  width: auto;
  background: none;
  border: 0;
  padding: 0;
  color: var(--button);
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
}

.main-content .link-knopf:hover {
  background: none;
  color: var(--buttonhover);
}

.zusammenfassung dl,
.details {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 14px;
  max-width: 600px;
  margin: 10px auto 25px;
  text-align: left;
}

.zusammenfassung dt,
.details dt {
  color: var(--hover);
}

.zusammenfassung dd,
.details dd {
  margin: 0;
  white-space: pre-line;
}

.details {
  background-color: var(--lightgrey);
  border-radius: 8px;
  padding: 20px;
}

/* Bestätigung */
.erfolg-haken {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--button);
  color: var(--white);
  font-size: 2em;
  display: grid;
  place-items: center;
}

.demo-erklaerung {
  max-width: 700px;
  margin: 30px auto 0;
  background-color: var(--lightgrey);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}

.demo-erklaerung h2 {
  text-align: center;
  margin-bottom: 12px;
}

.demo-erklaerung ul {
  list-style: disc;
  padding-left: 1.2em;
}

.demo-erklaerung li {
  margin-bottom: 6px;
}

.mail-vorschau {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 16px 0 10px;
  overflow: hidden;
}

.mail-kopf {
  background-color: #f8f8fa;
  padding: 10px 14px;
  font-size: 0.88em;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.mail-kopf span {
  color: var(--hover);
  display: inline-block;
  width: 60px;
}

.mail-vorschau pre {
  margin: 0;
  padding: 14px;
  font-family: inherit;
  font-size: 0.9em;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .kalender-und-zeiten {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .vorschau-band a.vorschau-knopf {
    margin-left: 0;
  }

  .details,
  .zusammenfassung dl {
    grid-template-columns: 90px 1fr;
    font-size: 0.85em;
  }
}
