/* ============ 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, 32px);
  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;
}
