/* ============================================================
   CTLS SHOP DETAIL LAYOUT + SIDEBAR
   ============================================================ */
.shop-formular-details {
    padding: 10px 0px 10px 0px;
}

/* === GRID-LAYOUT === */
.shop-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--global-gutter);
}

.shop-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3em;
  align-items: start;
}

.shop-main {
  background: transparent;
}

/* === SIDEBAR (Standard für Produktseiten) === */
.shop-sidebar {
  flex: 0 0 360px;
  max-width: 360px;
}

/* Responsive: untereinander auf Mobil */
@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
    margin-top: 2em;
  }
}
/* Bilder in der Produktbeschreibung fixen */
.kursbeschreibung-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
}

/* Bilder nicht riesig werden lassen (Diagramme etc.) */
.kursbeschreibung-content img {
    max-width: 650px;
}
.kursbeschreibung-content hr {
    border: 0;
    padding-bottom: 10px;
}
/* ============================================================
   SHOP-FORMULAR (rechte Sidebar auf Produktseite)
   ============================================================ */
.shop-formular {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  background: #fcfcfc;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.shop-formular.ready {
  opacity: 1;
}

/* === Texte & Überschriften === */
.shop-formular h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.shop-formular label {
  padding-top: 0;

  font-size: 1em;
  line-height: 1.4;
  color: #333;
}

/* === Inputs & Selects === */
.shop-formular input[type="text"],
.shop-formular input[type="email"],
.shop-formular select,
.shop-formular textarea {
  padding: 0.5em 1em;
  font-size: 1em;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, background-color 0.3s ease;
}

.shop-formular input:focus,
.shop-formular select:focus,
.shop-formular textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* === Select Dropdown Icon === */
.shop-formular select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 2em;
  padding-right: 3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PREISBEREICH
   ============================================================ */
.shop-formular-preis {
  font-size: 2em !important;
  line-height: 0.8 !important;
  font-weight: 500 !important;
  padding-top: 0.8em;
}

.shop-formular-preis-hinweis {
  font-size: 0.45em;
  line-height: 1.3;
  padding-top: 0.8em;
  font-weight: 500;
  display: inline-block;
}

.preis-alt {
  position: relative;
  display: inline-block;
  color: rgb(59, 59, 59);
  font-size: 0.6em;
  font-weight: 500;
  margin-bottom: 0.7em;
}

.preis-alt::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: red;
  transform: rotate(-10deg);
  transform-origin: center;
}

/* ============================================================
   TEILNAHMEFORM (Präsenz / Online Buttons)
   ============================================================ */
.teilnahmeform-auswahl {
  display: flex;
  gap: 10px;
  margin: 0em 1em 1em 0em;
  justify-content: flex-start;
}

.teilnahme-option {
  flex: 1;
  text-align: center;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: #f9f9f9;
  max-width: 180px;
  font-size: 0.85em;
}

.teilnahme-option .icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5em;
}

.teilnahme-option:hover {
  background-color: #f0f0f0;
}

/* Aktiv */
.teilnahme-option.selected {
  border-color: #f99b1d !important;
  background-color: #fff0e0 !important;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(249,155,29,0.3);
}

/* Deaktiviert */
.teilnahme-option.inaktiv {
  background-color: #eee !important;
  opacity: 0.6;
  filter: grayscale(80%);
  cursor: default;
}

/* Buchungsformular links – flach, volle Breite */
.buchungsformular-ohne-schatten {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.buchungsformular-ohne-schatten form {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
  .teilnahmeform-auswahl {
    flex-direction: column;
    align-items: stretch;
  }
  .teilnahme-option {
    max-width: 100%;
  }
}

/* ============================================================
   TOOLTIP / HINWEISE
   ============================================================ */
.shop-hinweise {
  margin-top: 1em;
  font-size: 0.9em;
  line-height: 1.5;
  color: #333;
}

.dauer-hinweis {
  display: none;
  background-color: #fff9e5;
  border-left: 4px solid #f0c000;
  padding: 0.8em 1em;
  margin-bottom: 0em;
  border-radius: 6px;
  font-size: 15px;
}

.tooltip-box {
  display: none;
  position: absolute;
  background: #fff;
  color: #000;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.3;
  z-index: 1000;
}

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.shop-formular .button-cta {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 1rem 0;
}

.shop-termin-hinweis {
  margin-top: 1em;
  font-size: 1em;
  line-height: 1.4em;
  text-align: left;
}

.shop-termin-hinweis a {
  text-decoration: underline;
  color: #0077cc;
}

.shop-termin-hinweis a:hover {
  color: #005fa3;
}

/* ============================================================
   RESPONSIVE OPTIMIERUNG
   ============================================================ */
@media (max-width: 900px) {
  .shop-formular {
    padding: 1.5em;
  }
}

/* ============================================================
   BUCHUNGSSUMMARY (rechte Sidebar auf Kauf-Seite)
   ============================================================ */

.buchung-summary {
  background: #fcfcfc;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.buchung-summary-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2em;
}

.buchung-zurueck {
  font-size: 0.9em;
  color: #b00;
  text-decoration: none;
}
.buchung-zurueck:hover {
  text-decoration: underline;
}

.buchung-titel {
  font-size: 1.5em;
  margin: 0;
}

.buchung-summary-content {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.buchung-row {
  margin-bottom: 0.8em;
}

.buchung-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.8em 0;
}

.buchung-netto,
.buchung-mwst {
  font-size: 0.95em;
}

.buchung-gesamt {
  font-weight: 700;
  font-size: 1.05em;
  color: #000;
  margin-top: 1em;
}
/* ============================================================
   BUCHUNG – Betragsblock (Netto / MwSt / Gesamtbetrag)
   ============================================================ */

.buchung-summary-betraege {
  text-align: right;
  margin-top: 1em;
}

.buchung-summary-betraege .buchung-row {
  margin: 0.3em 0;
}

.buchung-summary-betraege .buchung-netto,
.buchung-summary-betraege .buchung-mwst {
  font-size: 0.95em;
  color: #444;
}

.buchung-summary-betraege .buchung-gesamt {
  font-weight: 700;
  font-size: 1.1em;
  color: #000;
  margin-top: 0.6em;
}

/* Mobil kompakter */
@media (max-width: 768px) {
  .buchung-summary {
    padding: 1.5em;
  }
  .buchung-titel {
    font-size: 1.3em;
  }
}

/* ============================================================
   CTLS – Teilnahmeform Auswahl (Neutral, Container-basiert)
   ============================================================ */

.teilnahmeform-auswahl {
  display: flex;
  gap: 10px;
  margin: 1.5em 0;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.radio-option {
  flex: 1; /* verteilt beide gleichmäßig */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f8f9fa;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  height: 46px;
  transition: background-color 0.15s ease;
  text-align: center;
}

/* Radio unsichtbar */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Labeltext */
.radio-option span {
  pointer-events: none;
  color: #333;
  font-family: var(--font-body);
}

/* Aktiv (leicht abgesetzt, aber neutral) */
.radio-option:has(input[type="radio"]:checked),
.radio-option input[type="radio"]:checked ~ span {
  background-color: #e7eaed;
  border-color: #bbb;
  color: #000;
}

/* Deaktiviert */
.radio-option:has(input[type="radio"]:disabled),
.radio-option input[type="radio"]:disabled ~ span {
  background-color: #f2f2f2;
  color: #aaa;
  border-color: #ddd;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile: untereinander */
@media (max-width: 600px) {
  .teilnahmeform-auswahl {
    flex-direction: column;
  }

  .radio-option {
    width: 100%;
  }
}
.shop-hinweis-cta {
    margin-top: 0.8em;
    padding: 10px 14px;
    background: #ffffff;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}

.shop-hinweis-cta a {

    color: #0073aa;
    text-decoration: none;
}

.shop-hinweis-cta a:hover {
    text-decoration: none;
}

/* ============================================================
   SHOP-SEGMENTINHALTE (Produktseiten via ctls_render_segment)
   Feature-Grid + Preis-Tabs – genutzt z. B. von 3dmodel-inspector
   ============================================================ */

/* --- Funktionsumfang: Feature-Karten --- */
.shop-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin-top: 1.2em;
}
.shop-feature-card {
  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 6px;
  padding: 1.3em 1.4em;
  overflow: hidden;            /* Kopfbild sauber an den runden Ecken clippen */
}
/* Kopfbild: randlos über die volle Kastenbreite, oben bündig.
   Negative Margins gleichen das Card-Padding (1.3em/1.4em) aus. */
.shop-feature-img {
  display: block;
  width: calc(100% + 2.8em);
  margin: -1.3em -1.4em 1.1em;
  height: 170px;
  object-fit: cover;
}
.shop-feature-label {
  margin: 0 0 .6em;
  font-weight: 600;
  color: var(--color-primary, #004f9e);
}
.shop-feature-card ul {
  margin: 0;
  padding-left: 1.1em;
}
@media (max-width: 700px) {
  .shop-feature-grid { grid-template-columns: 1fr; }
}

/* --- Preisübersicht: Tabs --- */
.shop-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin: 1em 0 1.5em;
}
.shop-tab-btn {
  padding: .6em 1.2em;
  border: 1px solid var(--color-primary, #004f9e);
  border-radius: 4px;
  background: #fff;
  color: var(--color-primary, #004f9e);
  font-size: .95rem;
  cursor: pointer;
}
.shop-tab-btn.is-active {
  background: var(--color-primary, #004f9e);
  color: #fff;
}
.shop-tab-desc { margin: 0 0 1.2em; }

/* --- Preisübersicht: Gruppen + Tabelle --- */
.shop-price-group { margin-bottom: 1.8em; }
.shop-price-group-title {
  margin: 0 0 .2em;
  font-size: 1.1rem;
  font-weight: 600;
}
.shop-price-group-note {
  margin: 0 0 .6em;
  font-size: .9rem;
  color: #666;
}
.shop-price-table {
  width: 100%;
  border-collapse: collapse;
}
.shop-price-table tr { border-bottom: 1px solid #e3e8ec; }
.shop-price-table tr.is-last { border-bottom: 0; }
.spt-label { padding: .7em 0; }
.spt-label .spt-desc {
  display: block;
  font-size: .88rem;
  font-weight: 400;
  color: #555;
}
.spt-label .spt-staffel {
  display: block;
  font-size: .85rem;
  color: var(--color-primary, #004f9e);
}
.spt-price {
  padding: .7em 0;
  text-align: right;
  white-space: nowrap;
}
.spt-price .spt-unit {
  display: block;
  font-size: .82rem;
  font-weight: 400;
  color: #666;
}
.shop-price-footnote {
  margin-top: 1.2em;
  font-size: .85rem;
  color: #666;
}

/* --- Kauf/Anfrage-Formular: Umschalter + Varianten ---
   Wichtig: Im Modal setzt ".modal-box form input:not([type=checkbox])"
   alle Inputs auf width:100% + Box-Styling. Radios und die kleinen
   Mengenfelder müssen das mit höherer Spezifität zurücksetzen. */
.modal-box form .shop-anfrage-toggle input[type="radio"],
.modal-box form .shop-variant-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--color-primary, #004f9e);
}
.modal-box form input[type="number"].shop-variant-qty {
  width: 68px;
  margin: 0;
  padding: .45em;
  text-align: center;
  flex: 0 0 auto;
}

/* Umschalter Kauf / Anfrage */
.shop-anfrage-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin-top: .3em;
}
.shop-anfrage-toggle-opt {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: .5em;
  margin: 0;
  padding: .7em 1em;
  border: 1px solid #d3dae0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}
.shop-anfrage-toggle-opt:has(input:checked) {
  border-color: var(--color-primary, #004f9e);
  background: #eef5ff;
  color: var(--color-primary, #004f9e);
}

/* Varianten-Liste (Mehrfachauswahl) */
.shop-variant-hint {
  font-weight: 400;
  font-size: .85rem;
  color: #777;
}
.shop-variant-list {
  display: flex;
  flex-direction: column;
  gap: .6em;
  margin-top: .3em;
}
.shop-variant-row {
  display: flex;
  align-items: center;
  gap: .8em;
  margin: 0;
  padding: .7em 1em;
  border: 1px solid #d3dae0;
  border-radius: 6px;
  cursor: pointer;
}
.shop-variant-row.is-active {
  border-color: var(--color-primary, #004f9e);
  background: #eef5ff;
}
.shop-variant-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.shop-variant-info strong { color: #0b0c0d; }
.shop-variant-detail {
  font-size: .85rem;
  color: #666;
}
.shop-variant-qty:disabled {
  opacity: .45;
}
