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

body {
  font-family: system-ui, Arial, sans-serif;
  background: var(--hintergrund);
  color: var(--schrift);
  line-height: 1.5;
}

/* Ueberschriften folgen den CI-Farben aus dem Design-Admin */
h1 { color: var(--h1); }
h2 { color: var(--h2); }
h3 { color: var(--h3); }

a { color: var(--link); }


/* ============ PRODUKT-FARBEN (zentral, gelten fuer alle Vorlagen) ============ */
/* Hier aendern, um die Optik aller Produktschau- und Bestellauswahl-  */
/* Vorlagen gleichzeitig anzupassen.                                   */
:root {
  --produkt-hintergrund:       var(--hintergrund);  /* Kartenhintergrund               */
  --produkt-hintergrund-alt:   var(--hintergrund1);  /* Abschnitts-/Wechselhintergrund  */
  --produkt-rahmen:            #e0ddd7;  /* Rahmenlinie, Trenner            */
  --produkt-rahmen-aktiv:      var(--link);     /* Rahmen bei Auswahl/Hover        */
  --produkt-schatten:          rgba(0, 0, 0, 0.08); /* Kartenschatten      */
  --produkt-titel:             var(--h3);  /* Produktname                     */
  --produkt-text:              var(--schrift1);  /* Beschreibung, Fliesstext        */
  --produkt-preis:             var(--bemerkung);  /* Preisangabe                     */
  --produkt-akzent:            var(--link);     /* Buttons, Auswahl-Haken          */
  --produkt-akzent-hover:      #248a52;  /* Buttons/Auswahl bei Hover       */
  --produkt-akzent-text:       var(--hintergrund);  /* Schrift auf Akzentflaeche       */
  --produkt-trennlinie:        #eae7e1;  /* Linien zwischen Detail-Zeilen   */
}


/* ============ 1)-4) HERO / KOPFBEREICH ============ */
.hero {
  /* 1) Hintergrundfoto exakt in Bildschirmgröße */
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontal mittig */
}

/* 2) Logo mittig, 10vh Abstand nach oben */
.hero__logo {
  margin-top: 10vh;
  max-width: 300px;
  height: auto;
}

/* 3) Textblock */
.hero__textblock {
  margin-top: 20vh;      /* Abstand oben */
  margin-bottom: 10vh;   /* Abstand unten */
  margin-left: 10px;     /* Abstand links */
  margin-right: 10px;    /* Abstand rechts */
  width: 100%;
  max-width: 1000px;     /* nie breiter als 1000px */
  text-align: center;
}

/* 4) Schrift passt sich an, höchstens 20px */
.hero__text {
  font-size: min(4vw, 20px);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}


/* ============ ALLGEMEINE ABSCHNITTE ============ */
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

section {
  padding: 60px 20px;
}


/* ============ 5) UNSER SERVICE ============ */
.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.service__item {
  text-align: center;
}

.service__icon {
  color: var(--link);
  margin-bottom: 16px;
}

.service__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.service__desc {
  font-size: 15px;
  color: var(--schrift1);
}


/* ============ 6) + 9) SLOGAN-BANNER ============ */
.banner {
  text-align: center;
  background: var(--hintergrund1);
}

.banner__slogan {
  font-size: 26px;
  margin-bottom: 12px;
}

.banner__text {
  max-width: 700px;
  margin: 0 auto;
  color: var(--schrift1);
}


/* ============ 7) PRODUKTE – siehe Abschnitt "PRODUKT-VORLAGEN" weiter unten ============ */


/* ============ 8) BESTELLUNG – DEZENTER BUTTON (Startseite) ============ */
.order-cta {
  text-align: center;
}

.order-cta__button {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  color: var(--link);
  text-decoration: none;
  border: 1px solid var(--link);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.order-cta__button:hover {
  background: var(--link);
  color: var(--hintergrund);
}


/* ============ BESTELLFORMULAR (Unterseite bestellung.php) ============ */
.order__form {
  max-width: 700px;
  margin: 0 auto;
}

.order__fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.order__fieldset legend {
  font-weight: bold;
  padding: 0 8px;
}

.order__fieldset label {
  display: block;
  margin: 10px 0;
}

.order__fieldset input[type="text"],
.order__fieldset input[type="email"],
.order__fieldset select,
.order__fieldset textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.order__fieldset input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

/* Wiederholte Einheiten im dynamischen Container */
.einheit {
  border: 1px solid #cce;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fafaff;
}

.einheit__titel {
  font-weight: bold;
  margin-bottom: 10px;
}

.order__submit {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  color: var(--hintergrund);
  background: var(--link);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.order__submit:hover {
  filter: brightness(0.9);
}


/* ============ 10) VIER FOTO-BLÖCKE ============ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 0;          /* kein Abstand links/rechts */
}

.gallery__item {
  width: 25vw;         /* große Bildschirme: 4 in einer Zeile */
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery__item figcaption {
  padding: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--schrift1);
}


/* ============ 11) FOOTER ============ */
.footer {
  background: var(--hintergrund3);
  padding: 40px 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer__nav a {
  color: var(--hintergrund);
  opacity: 0.85;
  text-decoration: none;
  font-size: 15px;
}

.footer__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Eine Spalte je Hauptseite; Unterseiten kleiner darunter */
.footer__spalte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer__spalte .footer__unter {
  font-size: 13px;
  opacity: 0.65;
}


/* ============ RESPONSIV (HANDY) ============ */
@media (max-width: 700px) {
  .service__grid {
    grid-template-columns: 1fr;
  }

  /* 10) Auf dem Handy jeweils in einer Zeile */
  .gallery__item {
    width: 100vw;
  }
}


/* ============ MELDUNGEN / HINWEISE (bestellung.php) ============ */
.order__meldung {
  max-width: 700px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 6px;
  text-align: center;
}

.order__meldung--ok {
  border: 1px solid var(--hinweis);
  color: var(--hinweis);
}

.order__meldung--fehler {
  border: 1px solid var(--alarm);
  color: var(--alarm);
}

.order__hinweis {
  font-size: 14px;
  color: var(--schrift1);
  margin-bottom: 12px;
}

.order__zurueck {
  text-align: center;
  margin-top: 24px;
}

.order__zurueck a,
.seite__zurueck a,
.admin a {
  color: var(--link);
}


/* ============ ADMIN (hintertuer.php) ============ */
.admin {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin__logout {
  font-size: 14px;
}

.admin__login {
  max-width: 360px;
  margin: 0 auto;
}

.admin__login label {
  display: block;
  margin: 12px 0;
}

.admin__login input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.admin__tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin__tabelle th,
.admin__tabelle td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}

.admin__tabelle th {
  background: var(--hintergrund1);
}

.admin__form {
  margin-bottom: 24px;
}

.admin__version {
  border-top: 1px solid #eee;
  padding: 8px 0;
  font-size: 14px;
}

.admin__version ul {
  margin: 6px 0 0 20px;
  color: var(--schrift1);
}


/* ============================================================
   PRODUKT-VORLAGEN
   ------------------------------------------------------------
   Es ist jeweils nur eine Vorlage pro Bereich gleichzeitig aktiv
   (vom Admin unter "Darstellung der Produkte" gewaehlt). Alle
   Vorlagen nutzen die zentralen Farbvariablen weiter oben.
   ============================================================ */

.produkte__leer {
  text-align: center;
  color: var(--produkt-text);
}


/* ---- Produktschau 1: Kartenraster ---- */
.pschau1__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.pschau1__karte {
  background: var(--produkt-hintergrund);
  border: 1px solid var(--produkt-rahmen);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px var(--produkt-schatten);
}

.pschau1__bild {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.pschau1__titel {
  font-size: 18px;
  color: var(--produkt-titel);
  margin-bottom: 8px;
}

.pschau1__beschreibung {
  font-size: 14px;
  color: var(--produkt-text);
  margin-bottom: 12px;
}

.pschau1__preis {
  font-size: 22px;
  font-weight: bold;
  color: var(--produkt-preis);
  margin-bottom: 12px;
}

.pschau1__details {
  list-style: none;
  text-align: left;
  font-size: 14px;
  color: var(--produkt-text);
}

.pschau1__details li {
  padding: 4px 0;
  border-top: 1px solid var(--produkt-trennlinie);
}


/* ---- Produktschau 2: Bild-Text-Wechsel ---- */
.pschau2__zeile {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
}

.pschau2__zeile--verkehrt {
  flex-direction: row-reverse;
}

.pschau2__bildspalte {
  flex: 1 1 320px;
}

.pschau2__bild {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.pschau2__textspalte {
  flex: 1 1 320px;
}

.pschau2__titel {
  font-size: 26px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--produkt-titel);
  margin-bottom: 10px;
}

.pschau2__beschreibung {
  color: var(--produkt-text);
  margin-bottom: 12px;
}

.pschau2__preis {
  font-size: 20px;
  font-weight: bold;
  color: var(--produkt-preis);
  margin-bottom: 12px;
}

.pschau2__details {
  list-style: none;
  color: var(--produkt-text);
  font-size: 14px;
}

.pschau2__details li {
  padding: 4px 0;
  border-top: 1px solid var(--produkt-trennlinie);
}


/* ---- Produktschau 3: Hero-Kacheln ---- */
.pschau3__kachel {
  position: relative;
  min-height: 60vh;
  background-color: var(--produkt-hintergrund-alt);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.pschau3__schleier {
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  color: #fff;
}

.pschau3__titel {
  font-size: 28px;
  margin-bottom: 8px;
}

.pschau3__beschreibung {
  margin-bottom: 8px;
  max-width: 600px;
}

.pschau3__preis {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.pschau3__details {
  list-style: none;
  font-size: 14px;
}

.pschau3__details li {
  padding: 2px 0;
}


/* ---- Produktschau 4: Portfolio-Karten ---- */
.pschau4__spalten {
  column-count: 3;
  column-gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pschau4__karte {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--produkt-hintergrund);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--produkt-schatten);
}

.pschau4__bild {
  width: 100%;
  height: auto;
  display: block;
}

.pschau4__unterschrift {
  padding: 16px;
}

.pschau4__titel {
  font-size: 17px;
  color: var(--produkt-titel);
  margin-bottom: 6px;
}

.pschau4__beschreibung {
  font-size: 14px;
  color: var(--produkt-text);
  margin-bottom: 8px;
}

.pschau4__preis {
  font-weight: bold;
  color: var(--produkt-preis);
  margin-bottom: 8px;
}

.pschau4__details {
  list-style: none;
  font-size: 13px;
  color: var(--produkt-text);
}

.pschau4__details li {
  padding: 2px 0;
}


/* ---- Produktschau 5: Katalogliste ---- */
.pschau5__liste {
  max-width: 900px;
  margin: 0 auto;
}

.pschau5__zeile {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--produkt-rahmen);
}

.pschau5__zeile:last-child {
  border-bottom: 1px solid var(--produkt-rahmen);
}

.pschau5__bild {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pschau5__inhalt {
  flex: 1;
}

.pschau5__kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.pschau5__titel {
  font-size: 19px;
  color: var(--produkt-titel);
}

.pschau5__preis {
  font-size: 18px;
  font-weight: bold;
  color: var(--produkt-preis);
  white-space: nowrap;
}

.pschau5__beschreibung {
  color: var(--produkt-text);
  margin: 8px 0;
}

.pschau5__details {
  list-style: none;
  font-size: 14px;
  color: var(--produkt-text);
}

.pschau5__details li {
  padding: 2px 0;
}


/* ---- Produktschau 6: Minimal ---- */
.pschau6__liste {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.pschau6__zeile {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--produkt-trennlinie);
  font-size: 16px;
}

.pschau6__titel {
  color: var(--produkt-titel);
  letter-spacing: 0.02em;
}

.pschau6__preis {
  color: var(--produkt-preis);
}


/* ============================================================
   BESTELLAUSWAHL-VORLAGEN (Produktauswahl im Bestellformular)
   ============================================================ */

/* ---- Bestellauswahl 1: Radioliste ---- */
.bauswahl1__zeile {
  display: block;
}

.bauswahl1__zeile input {
  margin-right: 8px;
}


/* ---- Bestellauswahl 2: Auswahlkarten ---- */
.bauswahl2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.bauswahl2__karte {
  position: relative;
  cursor: pointer;
}

.bauswahl2__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bauswahl2__inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border: 2px solid var(--produkt-rahmen);
  border-radius: 10px;
  background: var(--produkt-hintergrund);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bauswahl2__bild {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.bauswahl2__name {
  font-weight: bold;
  color: var(--produkt-titel);
  margin-bottom: 4px;
}

.bauswahl2__preis {
  color: var(--produkt-preis);
  font-size: 14px;
}

.bauswahl2__radio:checked ~ .bauswahl2__inhalt {
  border-color: var(--produkt-rahmen-aktiv);
  box-shadow: 0 0 0 3px var(--produkt-schatten);
}


/* ---- Bestellauswahl 3: Dropdown ---- */
.bauswahl3__label {
  display: block;
  max-width: 400px;
  margin: 0 auto;
}

.bauswahl3__auswahl {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--produkt-rahmen);
  border-radius: 6px;
  font-size: 15px;
}


/* ---- Bestellauswahl 4: Kachel-Buttons ---- */
.bauswahl4 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.bauswahl4__kachel {
  position: relative;
  cursor: pointer;
}

.bauswahl4__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bauswahl4__inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  border: 2px solid var(--produkt-rahmen);
  border-radius: 10px;
  background: var(--produkt-hintergrund-alt);
  min-width: 140px;
  text-align: center;
}

.bauswahl4__name {
  font-weight: bold;
  color: var(--produkt-titel);
  margin-bottom: 6px;
}

.bauswahl4__preis {
  color: var(--produkt-preis);
  font-size: 14px;
}

.bauswahl4__radio:checked ~ .bauswahl4__inhalt {
  border-color: var(--produkt-rahmen-aktiv);
  background: var(--produkt-hintergrund);
}


/* ---- Bestellauswahl 5: Katalogzeile ---- */
.bauswahl5__zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--produkt-trennlinie);
  cursor: pointer;
}

.bauswahl5__zeile:last-child {
  border-bottom: 1px solid var(--produkt-trennlinie);
}

.bauswahl5__bild {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.bauswahl5__name {
  flex: 1;
  color: var(--produkt-titel);
}

.bauswahl5__preis {
  color: var(--produkt-preis);
  font-size: 14px;
}

.bauswahl5__radio {
  width: auto;
  margin-left: 10px;
}


/* ---- Bestellauswahl 6: Minimal ---- */
.bauswahl6__zeile {
  display: block;
  padding: 8px 0;
  font-size: 15px;
}

.bauswahl6__zeile input {
  margin-right: 8px;
}


/* ============ PRODUKT-VORLAGEN: RESPONSIV (HANDY) ============ */
@media (max-width: 700px) {
  .pschau4__spalten {
    column-count: 1;
  }

  .pschau5__zeile {
    flex-direction: column;
  }

  .pschau5__bild {
    width: 100%;
    height: 200px;
  }

  .pschau3__kachel {
    min-height: 40vh;
  }
}


/* ============ TEXTSEITEN (Ordner "seiten") ============ */
.seite {
  max-width: 800px;
  margin: 0 auto;
}

.seite h3 {
  margin: 28px 0 8px;
}

.seite__liste {
  margin: 8px 0 8px 22px;
}

.seite__hinweis {
  color: var(--bemerkung);
  font-size: 14px;
}

.seite__stand {
  margin-top: 24px;
  color: var(--schrift1);
  font-size: 14px;
}

.seite__zurueck {
  margin-top: 32px;
}


/* ============ ADMIN: REITER-NAVIGATION ============ */
.admin__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--hintergrund1);
  margin-bottom: 24px;
}

.admin__nav a {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--schrift1);
  border-radius: 8px 8px 0 0;
}

.admin__nav a:hover {
  background: var(--hintergrund1);
}

.admin__nav a.admin__nav--aktiv {
  background: var(--hintergrund1);
  color: var(--schrift);
  font-weight: bold;
}

.admin fieldset {
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin fieldset legend {
  font-weight: bold;
  padding: 0 8px;
}

.admin__knopf {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--link);
  color: var(--hintergrund);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.admin__knopf:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.admin__knopf:hover {
  filter: brightness(0.9);
}

.admin__knopf--zart {
  background: var(--hintergrund1);
  color: var(--schrift);
}


/* ============ ADMIN: DESIGN-AUSWAHL MIT SINNBILDERN ============ */
.designwahl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.designwahl__karte {
  cursor: pointer;
}

.designwahl__karte input {
  position: absolute;
  opacity: 0;
}

.designwahl__innen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--hintergrund1);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--schrift1);
}

.designwahl__innen svg {
  width: 72px;
  height: 48px;
  color: var(--schrift1);
}

.designwahl__karte input:checked + .designwahl__innen {
  border-color: var(--link);
  color: var(--schrift);
}

.designwahl__karte input:checked + .designwahl__innen svg {
  color: var(--link);
}


/* ============ ADMIN: VERKLEINERTE LIVE-VORSCHAU ============ */
.vorschau {
  border: 1px solid var(--hintergrund1);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 50vh;
  position: relative;
}

/* Klebe-Bereich: die Vorschau haftet oben, bis sein Ende
   (Beginn der CI-Farben) erreicht ist */
.klebe__kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--hintergrund);
  padding: 6px 0 10px;
}

/* Schwebender Speichern-Knopf (Position setzt design.php per Skript) */
.admin__knopf--schwebend {
  position: fixed;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vorschau iframe {
  width: 1280px;
  height: 1600px;
  border: none;
  transform-origin: 0 0;
  /* Massstab wird per JS an die Kastenbreite angepasst */
}


/* ============ ADMIN: CI-FARBEN ============ */
.farbraster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.farbraster label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  padding: 8px 10px;
}

.farbraster input[type="color"] {
  width: 42px;
  height: 30px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* Kleine Vorschau der Farben in Kombination */
.musterkarte {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hintergrund1);
  margin-top: 16px;
}

.musterkarte__flaeche {
  padding: 18px 20px;
}

.musterkarte__zeile {
  margin: 4px 0;
  font-size: 15px;
}

.musterkarte__fuss {
  padding: 12px 20px;
  font-size: 14px;
}


/* ============ ADMIN: WIKI-KOPIERZEILEN ============ */
.kopierzeile {
  display: flex;
  gap: 8px;
  margin: 6px 0 14px;
}

.kopierzeile input {
  flex: 1;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid var(--hintergrund1);
  border-radius: 6px;
  background: var(--hintergrund1);
  color: var(--schrift);
}

/* Zuklappbare Bereiche: Schatten plus hauchduenner Rahmen in der
   Hinweis-Farbe (90 % durchsichtig; Ersatzfarbe fuer alte Browser) */
.wiki__bereich {
  border: 1px solid var(--hintergrund1);
  border: 1px solid color-mix(in srgb, var(--hinweis) 10%, transparent);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  background: var(--hintergrund);
  padding: 0 20px;
  margin-bottom: 18px;
}

.wiki__bereich summary {
  cursor: pointer;
  font-weight: bold;
  padding: 14px 0;
  color: var(--h3);
}

.wiki__bereich summary:hover {
  color: var(--link);
}

.wiki__bereich[open] summary {
  border-bottom: 1px solid var(--hintergrund1);
  border-bottom: 1px solid color-mix(in srgb, var(--hinweis) 10%, transparent);
}

.wiki__inhalt {
  padding: 12px 0 16px;
}

.wiki h3 {
  margin: 30px 0 8px;
}

.wiki p,
.wiki li {
  font-size: 15px;
}

.wiki ul {
  margin: 8px 0 8px 22px;
}

.wiki code {
  background: var(--hintergrund1);
  padding: 1px 5px;
  border-radius: 4px;
}


/* ============ ADMIN: SCHALTRAUM ============ */
.schalter label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.schalter input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.admin label input[type="text"],
.admin label input[type="password"],
.admin label input[type="url"],
.admin label select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.admin__block label {
  display: block;
  margin: 12px 0;
}

.updateliste {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--hintergrund1);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  margin: 12px 0;
}


/* ============ ADMIN: PRODUKTPFLEGE ============ */

/* ---- Kopfzeile einer Produktkarte (immer sichtbar) ---- */
.pkarte__kopf {
  align-items: center;
  cursor: pointer;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
}

.pkarte__kopf:hover {
  filter: brightness(0.97);
}

.pkarte__nummer {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--hintergrund);
  border: 1px solid #dcdcdc;
  text-align: center;
  font-size: 13px;
  color: var(--schrift1);
}

.pkarte__miniatur {
  flex: 0 0 auto;
  width: 46px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
}

.pkarte__titel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pkarte__name {
  font-weight: bold;
  overflow-wrap: anywhere;
}

.pkarte__id {
  font-family: monospace;
  font-size: 12px;
  color: var(--schrift1);
}

.pkarte__preis {
  flex: 0 0 auto;
  font-weight: bold;
  color: var(--bemerkung);
}

/* ---- Zweispaltige Listen (Merkmale, Fragen, Hoster) ---- */
.paarliste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.paarzeile {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.paarzeile--kopf {
  font-size: 12px;
  color: var(--schrift1);
}

.admin .paarzeile input[type="text"] {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #c6c6c6;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* ---- Bildauswahl mit kleiner Vorschau ---- */
.bildwahl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.bildwahl__karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: var(--hintergrund);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.bildwahl__karte:hover {
  border-color: var(--link);
}

.bildwahl__karte img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
}

@media (max-width: 700px) {
  .pkarte__miniatur,
  .pkarte__preis {
    display: none;
  }

  .paarzeile {
    grid-template-columns: 1fr;
  }
}


/* ============ PRODUKT-VORLAGE 7: DATENBLATT ============ */
.pschau7__karte {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--hintergrund1);
  border-radius: 10px;
  background: var(--hintergrund);
}

.pschau7__karte--betont {
  border-color: var(--link);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pschau7__bild {
  width: 100%;
  border-radius: 8px;
}

.pschau7__galerie {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pschau7__galerie img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}

.pschau7__abzeichen {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--link);
  color: var(--hintergrund);
  font-size: 13px;
  margin-bottom: 8px;
}

.pschau7__titel {
  color: var(--h3);
  margin: 0 0 4px 0;
}

.pschau7__untertitel {
  color: var(--schrift1);
  margin: 0 0 4px 0;
}

.pschau7__einordnung {
  color: var(--schrift1);
  font-size: 14px;
  margin: 0 0 14px 0;
}

.pschau7__preisblock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.pschau7__preis {
  font-size: 26px;
  font-weight: bold;
  color: var(--bemerkung);
}

.pschau7__preisalt {
  text-decoration: line-through;
  color: var(--schrift1);
}

.pschau7__rhythmus {
  color: var(--schrift1);
}

.pschau7__preishinweis {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--schrift1);
}

.pschau7__lieferung {
  font-size: 14px;
  color: var(--schrift1);
  margin: 0 0 14px 0;
}

.pschau7__zustand {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--hintergrund1);
  margin-right: 8px;
}

.pschau7__zustand--verfuegbar {
  color: var(--hinweis);
}

.pschau7__zustand--ausverkauft,
.pschau7__zustand--eingestellt {
  color: var(--alarm);
}

.pschau7__listen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.pschau7__liste h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.pschau7__liste ul {
  margin: 0;
  padding-left: 18px;
}

.pschau7__merkmale {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.pschau7__merkmale caption {
  text-align: left;
  font-weight: bold;
  padding-bottom: 6px;
}

.pschau7__merkmale th,
.pschau7__merkmale td {
  border-bottom: 1px solid var(--hintergrund1);
  padding: 7px 10px;
  text-align: left;
}

.pschau7__merkmale th {
  width: 40%;
  color: var(--schrift1);
  font-weight: normal;
}

.pschau7__fragen h4 {
  margin: 18px 0 6px 0;
  font-size: 15px;
}

.pschau7__fragen summary {
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--hintergrund1);
}

.pschau7__fragen p {
  margin: 8px 0 12px 0;
  color: var(--schrift1);
}

.pschau7__kennzeichen,
.pschau7__hinweis {
  font-size: 13px;
  color: var(--schrift1);
  margin: 12px 0 0 0;
}


/* ============ BESTELLAUSWAHL 7: MIT HINWEISEN ============ */
.bauswahl7__zeile {
  display: grid;
  grid-template-columns: auto 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.bauswahl7__zeile--gesperrt {
  opacity: 0.55;
  cursor: not-allowed;
}

.bauswahl7__bild {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.bauswahl7__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bauswahl7__name {
  font-weight: bold;
}

.bauswahl7__abzeichen {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--link);
  color: var(--hintergrund);
  font-size: 12px;
  font-weight: normal;
}

.bauswahl7__beschreibung,
.bauswahl7__hinweis {
  font-size: 13px;
  color: var(--schrift1);
}

.bauswahl7__preisspalte {
  text-align: right;
}

.bauswahl7__preis {
  display: block;
  font-weight: bold;
  color: var(--bemerkung);
}

.bauswahl7__preishinweis {
  font-size: 12px;
  color: var(--schrift1);
}


/* ============ VORLAGE 7: RESPONSIV (HANDY) ============ */
@media (max-width: 700px) {
  .pschau7__karte {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bauswahl7__zeile {
    grid-template-columns: auto 1fr;
  }

  .bauswahl7__bild {
    display: none;
  }

  .bauswahl7__preisspalte {
    grid-column: 2;
    text-align: left;
  }
}


/* ============================================================
   ADMIN-OBERFLAECHE: KARTEN, RASTER, FELDER
   ------------------------------------------------------------
   Gemeinsame Bausteine fuer alle Verwaltungsseiten
   (Bestellungen, Design, Schaltraum, Produkte, Wiki).
   Aufbau: Seite -> Karte -> Raster -> Feld -> Aktionen
   ============================================================ */

/* ---- Seitenrahmen ---- */
.verwaltung {
  background: var(--hintergrund1);
}

.admin {
  max-width: 1180px;
}

/* Aeltere Bereiche (Design, Wiki) heben sich weiterhin ab */
.admin fieldset {
  background: var(--hintergrund);
  border-color: #dcdcdc;
  border-radius: 10px;
}

.admin__buehne {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin__einleitung {
  color: var(--schrift1);
  margin: 0;
}

/* ---- Karte: ein abgeschlossener Bereich ---- */
.karte {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: var(--hintergrund);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.karte__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--hintergrund1);
  border-bottom: 1px solid #dcdcdc;
}

.karte__titel {
  margin: 0;
  font-size: 17px;
  color: var(--h3);
}

.karte__hinweis {
  margin: 0;
  font-size: 13px;
  color: var(--schrift1);
}

.karte__leib {
  padding: 20px;
}

.karte__leib--randlos {
  padding: 0;
}

/* Untergliederung innerhalb einer Karte */
.abschnitt + .abschnitt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hintergrund1);
}

.abschnitt__titel {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: bold;
  color: var(--schrift1);
}

/* ---- Raster: mehrere Felder in einer Zeile ---- */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
  align-items: start;
}

.raster--zwei  { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.raster--drei  { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---- Feld: Beschriftung oben, Hinweis unten ---- */
.feld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.feld--breit {
  grid-column: 1 / -1;
}

.feld__name {
  font-size: 13px;
  font-weight: bold;
  color: var(--schrift);
}

.feld__hinweis {
  font-size: 12px;
  color: var(--schrift1);
}

.admin .feld input[type="text"],
.admin .feld input[type="url"],
.admin .feld input[type="email"],
.admin .feld input[type="password"],
.admin .feld input[type="file"],
.admin .feld select,
.admin .feld textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c6c6c6;
  border-radius: 6px;
  background: var(--hintergrund);
  color: var(--schrift);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.admin .feld input:focus,
.admin .feld select:focus,
.admin .feld textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

/* ---- Schalterzeile (Ankreuzfeld mit Erklaerung) ---- */
.schalterzeile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.schalterzeile:hover {
  background: var(--hintergrund1);
}

.admin .schalterzeile input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.schalterzeile__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schalterzeile__name {
  font-weight: bold;
  font-size: 14px;
}

.schalterzeile__hinweis {
  font-size: 12px;
  color: var(--schrift1);
}

/* ---- Aktionsleiste am Fuss einer Karte ---- */
.aktionen {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 20px;
  background: var(--hintergrund1);
  border-top: 1px solid #dcdcdc;
}

.aktionen--links {
  justify-content: flex-start;
}

.aktionen__text {
  margin-right: auto;
  font-size: 13px;
  color: var(--schrift1);
}

/* ---- Plakette: kurzer Zustand in Farbe ---- */
.plakette {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  background: var(--hintergrund1);
  color: var(--schrift1);
  white-space: nowrap;
}

.plakette--ok      { background: #e3f3e9; color: var(--hinweis); }
.plakette--offen   { background: #fdeee2; color: var(--bemerkung); }
.plakette--alarm   { background: #fbe6e6; color: var(--alarm); }

/* ---- Tabelle im Kartenstil ---- */
.datentabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.datentabelle th,
.datentabelle td {
  padding: 11px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hintergrund1);
}

.datentabelle thead th {
  background: var(--hintergrund1);
  font-size: 13px;
  color: var(--schrift1);
}

.datentabelle tbody tr:hover {
  background: var(--hintergrund1);
}

.datentabelle td:last-child,
.datentabelle th:last-child {
  text-align: right;
}

.datentabelle__kennung {
  font-family: monospace;
  font-size: 13px;
}

/* ---- Kennzahlen-Zeile (Uebersicht oben) ---- */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
}

.kennzahl {
  padding: 14px 20px;
  border-right: 1px solid var(--hintergrund1);
}

.kennzahl:last-child {
  border-right: none;
}

.kennzahl__name {
  display: block;
  font-size: 12px;
  color: var(--schrift1);
}

.kennzahl__wert {
  display: block;
  font-size: 17px;
  font-weight: bold;
  margin-top: 3px;
}

/* ---- Kleine Helfer ---- */
.zurueckzeile {
  margin: 0 0 4px 0;
}

.admin__knopf--warnung {
  background: var(--alarm);
  color: var(--hintergrund);
}

@media (max-width: 700px) {
  .karte__leib,
  .aktionen {
    padding: 14px;
  }

  .kennzahl {
    border-right: none;
    border-bottom: 1px solid var(--hintergrund1);
  }

  .aktionen {
    justify-content: stretch;
  }
}


/* ============ ADMIN: EINZELNE SEITEN ============ */

/* ---- Anmeldung ---- */
.admin--schmal {
  max-width: 460px;
  margin: 8vh auto;
}

/* ---- Knopf, der eigentlich ein Link ist ---- */
.admin a.admin__knopf {
  display: inline-block;
  text-decoration: none;
  color: var(--schrift);
}

.admin a.admin__knopf:hover {
  color: var(--schrift);
}

/* ---- Schaltraum: Bildvorschau und Zeitkapsel ---- */
.schaltraum__vorschau {
  display: block;
  max-width: 320px;
  border-radius: 8px;
  margin-top: 6px;
}

.standzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  margin-bottom: 8px;
}

.standzeile__name {
  font-family: monospace;
  font-size: 13px;
}

/* ---- Bestellungen: Versionsverlauf ---- */
.versionszeile {
  border: 1px solid var(--hintergrund1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.versionszeile__kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.versionszeile__liste {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--schrift1);
}

/* ---- Bestellungen: Kundenzusatz in der Tabelle ---- */
.datentabelle .feld__hinweis {
  display: block;
}


/* ---- Meldung oben auf der Verwaltungsseite ---- */
.meldung {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 0 0 20px 0;
  font-size: 15px;
}

.meldung__zeichen {
  font-weight: bold;
}

.meldung--ok {
  background: #e3f3e9;
  border-color: #bfe0cd;
  color: var(--hinweis);
}

.meldung--fehler {
  background: #fbe6e6;
  border-color: #eec4c4;
  color: var(--alarm);
}


/* ---- Kopf und Reiter der Verwaltung ---- */
.admin__kopf {
  margin-bottom: 16px;
}

.admin__logout {
  padding: 7px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: var(--hintergrund);
  text-decoration: none;
}

.admin__nav {
  gap: 4px;
  padding: 6px;
  border: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  border-radius: 10px;
  background: var(--hintergrund);
  margin-bottom: 24px;
}

.admin__nav a {
  border-radius: 8px;
  padding: 9px 16px;
}

.admin__nav a.admin__nav--aktiv {
  background: var(--link);
  color: var(--hintergrund);
}


/* ============ ADMIN: PRODUKTLISTE UND KLAPPBEREICHE ============ */

.produktliste__bild {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.produktliste__name {
  font-weight: bold;
  text-decoration: none;
}

.produktliste__pfeile,
.produktliste__aktionen {
  white-space: nowrap;
}

.produktliste__pfeile .admin__knopf {
  padding: 5px 10px;
}

.datentabelle select {
  padding: 7px 9px;
  border: 1px solid #c6c6c6;
  border-radius: 6px;
  font-size: 14px;
}

.klappenhinweis {
  margin: 4px 0 14px 0;
  font-size: 13px;
  color: var(--schrift1);
}

/* ---- Aufklappbarer Bereich mit eigener Farbe ---- */
.klappe {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.klappe__kopf {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: bold;
}

.klappe__hinweis {
  font-weight: normal;
  font-size: 13px;
  color: var(--schrift1);
}

.klappe__leib {
  padding: 20px;
  background: var(--hintergrund);
  border-top: 1px solid #dcdcdc;
}

/* Jeder Bereich bekommt eine eigene Kopffarbe, damit die
   Abschnitte klar voneinander getrennt bleiben. */
.klappe--1 .klappe__kopf { background: #eaf1fb; }
.klappe--2 .klappe__kopf { background: #e8f5ec; }
.klappe--3 .klappe__kopf { background: #fdf3e3; }
.klappe--4 .klappe__kopf { background: #f3ecfa; }
.klappe--5 .klappe__kopf { background: #e6f4f6; }
.klappe--6 .klappe__kopf { background: #f2f2f2; }

.klappe--1 { border-color: #c9daf3; }
.klappe--2 { border-color: #c8e4d3; }
.klappe--3 { border-color: #f0dcbc; }
.klappe--4 { border-color: #ddcdee; }
.klappe--5 { border-color: #c4e2e6; }
.klappe--6 { border-color: #dcdcdc; }

/* ---- Vierspaltige Liste (Felder der Bestellseite) ---- */
.viererliste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.viererzeile {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 1.4fr;
  gap: 8px;
}

.viererzeile--kopf {
  font-size: 12px;
  color: var(--schrift1);
}

.admin .viererzeile input[type="text"],
.admin .viererzeile select {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #c6c6c6;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .viererzeile {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   BESTELLSEITE: DREI AUFKLAPPBARE BLOECKE
   ============================================================ */

.bblock {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--hintergrund);
}

.bblock__kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: bold;
}

.bblock__nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hintergrund);
  border: 1px solid currentColor;
  font-size: 14px;
}

.bblock__titel {
  font-size: 17px;
}

.bblock__hinweis {
  font-weight: normal;
  font-size: 13px;
  color: var(--schrift1);
}

.bblock__leib {
  padding: 20px;
  border-top: 1px solid #dcdcdc;
}

.bblock__fuss {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #dcdcdc;
}

.bblock__leer {
  color: var(--schrift1);
  margin: 0;
}

/* Jeder Block hat eine eigene Kopffarbe */
.bblock--produkt   .bblock__kopf { background: #eaf1fb; }
.bblock--anpassung .bblock__kopf { background: #e8f5ec; }
.bblock--daten     .bblock__kopf { background: #fdf3e3; }

.bblock--produkt   { border-color: #c9daf3; }
.bblock--anpassung { border-color: #c8e4d3; }
.bblock--daten     { border-color: #f0dcbc; }

/* ---- Beschreibung des gewaehlten Produkts ---- */
.produktinfo {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--hintergrund1);
  border-radius: 10px;
  background: var(--hintergrund1);
}

.produktinfo__kopf {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.produktinfo__bild {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.produktinfo__kopftext {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.produktinfo__name {
  font-size: 18px;
  font-weight: bold;
}

.produktinfo__preis {
  font-weight: bold;
  color: var(--bemerkung);
}

.produktinfo__hinweis {
  font-size: 13px;
  color: var(--schrift1);
}

.produktinfo__text {
  margin: 0 0 10px 0;
}

.produktinfo__warnung {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: var(--alarm);
}

.produktinfo__liste h4 {
  margin: 12px 0 4px 0;
  font-size: 14px;
}

.produktinfo__liste ul {
  margin: 0;
  padding-left: 20px;
}

.produktinfo__merkmale {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.produktinfo__merkmale th,
.produktinfo__merkmale td {
  border-bottom: 1px solid var(--hintergrund);
  padding: 6px 8px;
  text-align: left;
}

.produktinfo__merkmale th {
  width: 40%;
  font-weight: normal;
  color: var(--schrift1);
}

/* ---- Einzelne Eingabefelder der Bestellseite ---- */
.einheit__feld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.einheit__name {
  font-size: 13px;
  font-weight: bold;
}

.kundenraster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 20px;
}

/* ---- Verweis von der Startseite zur Bestellung ---- */
.produkt__bestellen {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--link);
  color: var(--hintergrund);
  text-decoration: none;
  font-weight: bold;
}

.produkt__bestellen:hover {
  filter: brightness(1.1);
  color: var(--hintergrund);
}

.pschau6__link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 700px) {
  .produktinfo__kopf {
    flex-direction: column;
  }
}


/* ============================================================
   ADMIN-FLAECHEN: RUHIGE, ABGESTUFTE HINTERGRUENDE
   ------------------------------------------------------------
   Seite = mittleres Grau, Karten = weiss, Kartenkopf und
   Knopfleiste = helles Grau, Kartenrumpf = ganz helles Grau.
   Dadurch hebt sich jeder Bereich sichtbar vom Seitengrund ab.
   ============================================================ */

.verwaltung {
  background: #eceef2;
}

.karte {
  background: #ffffff;
  border-color: #dfe3e8;
}

.karte__kopf {
  background: #f2f4f8;
  border-bottom-color: #dfe3e8;
}

.karte__leib {
  background: #fbfcfd;
}

.aktionen {
  background: #f2f4f8;
  border-top-color: #dfe3e8;
}

/* Abschnitt innerhalb einer Karte bekommt eine eigene Flaeche */
.karte__leib .abschnitt {
  padding: 16px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #ffffff;
}

.karte__leib .abschnitt + .abschnitt {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #e6e9ee;
}

/* ---- Knoepfe dezenter ---- */
.admin__knopf {
  font-weight: normal;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 7px;
}

.admin a.admin__knopf {
  font-size: 14px;
  font-weight: normal;
}

.admin__nav a {
  font-weight: normal;
}

/* ---- Tabellen: abwechselnde Zeilenfarbe ---- */
.datentabelle thead th {
  background: #f2f4f8;
  font-weight: normal;
}

.datentabelle tbody tr:nth-child(odd) {
  background: #ffffff;
}

.datentabelle tbody tr:nth-child(even) {
  background: #f6f7f9;
}

.datentabelle tbody tr:hover {
  background: #eef2f7;
}

.datentabelle td,
.datentabelle th {
  border-bottom-color: #e6e9ee;
}

/* ---- Produktliste ruhiger ---- */
.produktliste td {
  padding: 9px 16px;
}

.produktliste__name {
  font-weight: 600;
  text-decoration: none;
}

.produktliste__pfeile .admin__knopf,
.produktliste__aktionen .admin__knopf {
  padding: 5px 10px;
  font-size: 13px;
}

.produktliste__aktionen .admin__knopf--warnung {
  background: none;
  color: var(--alarm);
  border: 1px solid #e6c4c4;
}

.produktliste__aktionen .admin__knopf--warnung:hover {
  background: #fbe6e6;
}

.produktliste select {
  font-size: 13px;
  padding: 5px 8px;
}

/* ---- Klappbereiche: Kopf und Rumpf in derselben Farbfamilie ---- */
.klappe--1 .klappe__kopf { background: #e6eefb; }
.klappe--2 .klappe__kopf { background: #e2f2e8; }
.klappe--3 .klappe__kopf { background: #fbeeda; }
.klappe--4 .klappe__kopf { background: #eee5fa; }
.klappe--5 .klappe__kopf { background: #ddeff2; }
.klappe--6 .klappe__kopf { background: #ededf0; }

.klappe--1 .klappe__leib { background: #f5f8fe; border-top-color: #d5e2f6; }
.klappe--2 .klappe__leib { background: #f4faf6; border-top-color: #d3e8db; }
.klappe--3 .klappe__leib { background: #fdf9f2; border-top-color: #f0ddc0; }
.klappe--4 .klappe__leib { background: #f9f5fd; border-top-color: #e2d4f2; }
.klappe--5 .klappe__leib { background: #f2fafb; border-top-color: #cbe6ea; }
.klappe--6 .klappe__leib { background: #f8f8f9; border-top-color: #e2e2e6; }

/* Ein Klappbereich innerhalb eines Klappbereichs (z. B. "Bild hochladen") */
.unterklappe {
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #ffffff;
  margin-top: 14px;
  overflow: hidden;
}

.unterklappe__kopf {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #f2f4f8;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
}

.unterklappe__hinweis {
  font-weight: normal;
  font-size: 12px;
  color: var(--schrift1);
}

.unterklappe__leib {
  padding: 16px;
  border-top: 1px solid #dfe3e8;
}


/* ---- Kostenübersicht im Block "Produktanpassung" ---- */
.summen {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #c8e4d3;
  border-radius: 10px;
  background: #ffffff;
}

.summen__titel {
  margin: 0 0 10px 0;
  font-size: 15px;
}

.summen__zeile {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--produkt-trennlinie);
}

.summen__zeile--gesamt {
  border-bottom: none;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px solid #c8e4d3;
  font-weight: bold;
  font-size: 17px;
}

.summen__hinweis {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: var(--schrift1);
}

.einheit__hinweis {
  font-size: 12px;
  color: var(--schrift1);
}


/* ============================================================
   REITER (mehrere Bereiche teilen sich eine Flaeche)
   ------------------------------------------------------------
   Vier gleich breite Schaltflaechen ueber der gemeinsamen
   Flaeche. Auf schmalen Schirmen stehen sie untereinander.
   ============================================================ */

.reiter__leiste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.reiter__knopf {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #f7f9fb;
  color: var(--schrift1);
  font-family: inherit;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}

.reiter__knopf:hover {
  background: #eef2f7;
  color: var(--schrift);
}

.reiter__knopf--aktiv {
  background: #ffffff;
  border-color: var(--link);
  color: var(--schrift);
  box-shadow: inset 0 -3px 0 var(--link);
}

.reiter__flaeche {
  padding: 4px 2px;
}

.reiter__feld + .reiter__feld {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e6e9ee;
}


/* ============================================================
   PRODUKTTABELLE
   ------------------------------------------------------------
   Schmale Spalten, nichts fett, Inhalte duerfen umbrechen.
   Unter 900 px wird aus jeder Zeile eine eigene Karte, damit
   die Tabelle auch auf dem Handy bedienbar bleibt.
   ============================================================ */

.produktliste {
  width: 100%;
  table-layout: auto;
  font-size: 14px;
}

.produktliste th,
.produktliste td {
  padding: 6px 8px;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: normal;
}

.produktliste thead th {
  font-size: 12px;
  color: var(--schrift1);
}

/* ---- Spaltenbreiten: jede Spalte so breit wie ihr Inhalt ----
   Kurze Spalten duerfen nicht umbrechen, damit sie ihre wahre
   Breite behalten. Nur die Produktspalte darf umbrechen und
   nimmt den uebrigen Platz auf. */
.produktliste th,
.produktliste td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.produktliste .sp-produkt {
  width: 99%;
  min-width: 140px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.produktliste .sp-bild {
  width: 48px;
}

.produktliste .sp-nr {
  text-align: right;
}

/* ---- Eingabefelder bleiben unauffaellig ---- */
.tabellenfeld {
  width: 7ch;
  min-width: 60px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--schrift);
}

.tabellenfeld:hover,
.tabellenfeld:focus {
  border-color: #d3d8e0;
  background: #ffffff;
  outline: none;
}

.produktliste select {
  max-width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  padding: 4px 4px;
}

.produktliste select:hover,
.produktliste select:focus {
  border-color: #d3d8e0;
  background: #ffffff;
}

/* ---- Pfeile fuer die Reihenfolge, untereinander ---- */
.pfeilpaar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pfeilpaar .admin__knopf {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.3;
}

/* ---- Vierer-Block: zwei Knoepfe oben, Knopf und Auswahl darunter ---- */
.aktionsblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 180px;
}

.aktionsblock .admin__knopf,
.aktionsblock select {
  width: 100%;
  padding: 5px 6px;
  font-size: 12px;
  text-align: center;
  border-radius: 6px;
}

.aktionsblock select {
  border: 1px solid #d3d8e0;
  background: #ffffff;
}

/* ---- Handy: jede Zeile wird eine Karte ---- */
@media (max-width: 900px) {
  .produktliste,
  .produktliste tbody,
  .produktliste tr,
  .produktliste td {
    display: block;
    width: auto;
  }

  .produktliste thead {
    display: none;
  }

  .produktliste tr {
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #ffffff;
    margin: 12px;
    padding: 6px 10px;
  }

  .produktliste tbody tr:nth-child(even) {
    background: #ffffff;
  }

  .produktliste td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
  }

  .produktliste td:last-child {
    border-bottom: none;
  }

  /* Beschriftung der Spalte vor den Wert setzen */
  .produktliste td::before {
    content: attr(data-titel);
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--schrift1);
  }

  .produktliste .sp-nr,
  .produktliste .sp-bild {
    border-bottom: none;
  }

  .tabellenfeld {
    width: 55%;
    border-color: #d3d8e0;
    background: #ffffff;
  }

  .produktliste select {
    border-color: #d3d8e0;
    background: #ffffff;
  }

  .pfeilpaar {
    flex-direction: row;
  }

  .aktionsblock {
    flex: 1 1 auto;
    min-width: 0;
  }
}


/* ============ WIKI: ZWEITE EBENE ============ */
.wiki__bereich {
  background: #ffffff;
  border-color: #dfe3e8;
}

.wiki__bereich summary {
  font-size: 17px;
}

.wiki__unterbereich {
  border: 1px solid #e2e6ec;
  border-radius: 9px;
  background: #f7f9fb;
  margin: 8px 0;
  overflow: hidden;
}

.wiki__unterbereich > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: normal;
  color: var(--schrift);
  background: #eef2f6;
}

.wiki__unterbereich > summary:hover {
  color: var(--link);
}

.wiki__unterbereich[open] > summary {
  border-bottom: 1px solid #e2e6ec;
}

.wiki__unterinhalt {
  padding: 12px 14px;
}

.wiki__unterinhalt ul {
  margin: 6px 0 6px 20px;
}

.wiki__unterinhalt p {
  margin: 8px 0;
}

.wiki__inhalt > p:first-child {
  margin-bottom: 10px;
}


/* ---- Versionsanzeige im Verwaltungskopf ---- */
.admin__kopf {
  gap: 12px;
}

.admin__version {
  margin-left: auto;
  margin-right: 12px;
  font-size: 12px;
  color: var(--schrift1);
}

/* ---- Letzte Spalte der Produktliste bleibt linksbündig ---- */
.produktliste td:last-child,
.produktliste th:last-child {
  text-align: left;
}


/* ---- Knoepfe mit Sinnbild statt Beschriftung ---- */
.symbolknopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  line-height: 1;
}

.symbol {
  display: block;
}

.aktionsblock .symbolknopf {
  padding: 6px 0;
}

/* Dreispaltige Zeile (eigene Statusfelder) */
.viererzeile--drei {
  grid-template-columns: 1.4fr 1fr 1.6fr;
}

@media (max-width: 800px) {
  .viererzeile--drei {
    grid-template-columns: 1fr;
  }
}


/* ---- Sinnbild-Knöpfe: Symbol immer mittig ----
   Höhere Gewichtung als ".admin a.admin__knopf", damit auch
   der Verweis "Bearbeiten" als Flex-Kasten ausgerichtet wird. */
.admin a.symbolknopf,
.admin button.symbolknopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
  line-height: 0;
  text-align: center;
}

.symbolknopf .symbol {
  display: block;
  margin: 0 auto;
}

/* ---- Breites Eingabefeld in der Produktspalte ---- */
.tabellenfeld--breit {
  width: 100%;
  min-width: 120px;
}

.produktliste .sp-produkt .feld__hinweis {
  display: block;
  margin-top: 2px;
}

/* Preisfeld etwas breiter als die kurzen Zahlenfelder */
.produktliste .sp-preis .tabellenfeld {
  width: 9ch;
  min-width: 80px;
}


/* ---- Zeitraum und Folgekosten in der Kostenübersicht ---- */
.summen__zeitraum {
  text-align: right;
  margin-top: 3px;
  font-size: 13px;
  font-weight: normal;
  color: var(--schrift1);
}

.summen__danach {
  margin: 18px 0 0 0;
  text-align: right;
  font-size: 14px;
  font-weight: normal;
  color: var(--schrift1);
  opacity: 0.8;
}
