/* Kaufseiten (originalkaufen.html und bestell.html).
   Der Unterwasser-Hintergrund bleibt stehen, der Inhalt liegt
   als lesbare Tafel darueber. */
.kauf { padding-block: clamp(2rem, 5vw, 4rem); }

.kauf__tafel {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border-radius: 20px;
  background: rgba(5, 22, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 30px 80px rgba(0, 8, 20, 0.6);
}

.kauf__bild {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.kauf__titel {
  margin: 1.75rem 0 0.3rem;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.kauf__herkunft {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.kauf__text { max-width: 60ch; color: rgba(234, 246, 255, 0.86); }
.kauf__text p { margin: 0 0 1rem; line-height: 1.75; }

.kauf__eckdaten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  margin: 1.75rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.kauf__eckdaten dt { color: rgba(255, 255, 255, 0.62); }
.kauf__eckdaten dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }

.kauf__preis {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 2rem 0 0.4rem;
}

.kauf__preis strong {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.kauf__preis span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.kauf__hinweise h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.kauf__hinweise h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.kauf__hinweise p,
.kauf__hinweise li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.8);
}

.kauf__hinweise p { margin: 0 0 0.8rem; }
.kauf__hinweise ul { margin: 0 0 0.8rem; padding-left: 1.25rem; }
.kauf__hinweise a { color: #7fe3ff; }

.kauf__gewaehrleistung {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(4, 26, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kauf__gewaehrleistung p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.85);
}

.kauf__aktion {
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.kauf__aktion .btn { font-size: 1rem; padding: 0.95rem 2rem; }

.kauf__klein {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}

.luecke {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 5px;
  border: 1px dashed rgba(255, 176, 60, 0.7);
  background: rgba(120, 66, 0, 0.28);
  color: #ffd08a;
  font-size: 0.92em;
}

.entwurf {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 60, 0.55);
  background: rgba(120, 66, 0, 0.3);
  color: #ffe6bd;
  font-size: 0.88rem;
  line-height: 1.6;
}

.kauf__fehler { text-align: center; padding-block: 3rem; }

/* ---------------------------------------------------------
   Nur bestell.html: Auswahl von Material, Groesse und Firnis
   --------------------------------------------------------- */

.wahl { margin: 2rem 0 0; }

.wahl__titel {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

.wahl__unter {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.wahl__liste {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
  padding: 0;
  border: 0;
}

.wahl__feld { position: absolute; opacity: 0; pointer-events: none; }

.wahl__karte {
  display: block;
  height: 100%;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.wahl__karte:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.wahl__feld:checked + .wahl__karte {
  border-color: rgba(127, 227, 255, 0.85);
  background: rgba(127, 227, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(127, 227, 255, 0.5) inset;
}

.wahl__feld:focus-visible + .wahl__karte { outline: 2px solid #7fe3ff; outline-offset: 3px; }

.wahl__feld:disabled + .wahl__karte {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  background: rgba(255, 255, 255, 0.03);
}

.wahl__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.wahl__info {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(234, 246, 255, 0.72);
}

/* Massstabsgetreue Vorschau der Bildproportion neben der Groesse */
.wahl__riss {
  display: block;
  width: 3rem;
  height: 2.2rem;
  margin-bottom: 0.5rem;
}

.wahl__riss rect {
  fill: rgba(127, 227, 255, 0.2);
  stroke: rgba(234, 246, 255, 0.75);
  stroke-width: 1.5;
}

/* Preis mit Aufschluesselung */
.preis__teile {
  width: 100%;
  margin: 0.8rem 0 0;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.preis__teile th,
.preis__teile td {
  padding: 0.45rem 0;
  text-align: left;
  font-weight: 400;
  color: rgba(234, 246, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preis__teile td { text-align: right; white-space: nowrap; color: #fff; }
.preis__teile tr:last-child th,
.preis__teile tr:last-child td { border-bottom: 0; font-weight: 700; }
.preis__teile .preis__quelle { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }

/* ---------------------------------------------------------
   Einklappbare Hinweise (bestell.html)
   --------------------------------------------------------- */

.hinweis {
  margin: 0.5rem 0 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hinweis[open] { background: rgba(255, 255, 255, 0.07); }

.hinweis__kopf {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  list-style: none;
  transition: background 0.18s ease;
}

.hinweis__kopf:hover { background: rgba(255, 255, 255, 0.06); }
.hinweis__kopf:focus-visible { outline: 2px solid #7fe3ff; outline-offset: -2px; }

/* Das eigene Dreieck abschalten – Safari braucht die zweite Zeile */
.hinweis__kopf::-webkit-details-marker { display: none; }

/* Eigener Pfeil, der sich beim Aufklappen dreht */
.hinweis__kopf::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #7fe3ff;
  border-bottom: 2px solid #7fe3ff;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.hinweis[open] > .hinweis__kopf::before { transform: rotate(45deg); }

.hinweis__inhalt { padding: 0 1.1rem 0.4rem 2.3rem; }

.hinweis__inhalt p {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.82);
}

.hinweis__inhalt a { color: #7fe3ff; }

@media (max-width: 720px) {
  .hinweis__inhalt { padding-left: 1.1rem; }
}

/* ---------------------------------------------------------
   Weitere Ansichten (originalkaufen.html)
   Nur belegt, wenn ein Werk mehrere Aufnahmen hat.
   --------------------------------------------------------- */

.kauf__ansichten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.kauf__ansicht {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, opacity 0.18s ease;
  opacity: 0.65;
}

.kauf__ansicht img {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
}

.kauf__ansicht:hover { opacity: 1; }
.kauf__ansicht.is-aktiv { border-color: #7fe3ff; opacity: 1; }
.kauf__ansicht:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 2px; }

/* Amtliches EU-Gewährleistungslabel (VO (EU) 2025/1960, Anhang I).
   Das Bild nicht verfälschen: nur skalieren, nie beschneiden oder einfärben. */
.kauf__labellink {
  display: block;
  width: min(100%, 420px);
  margin: 0.9rem 0 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

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

/* =========================================================
   Warenkorb-Seite (warenkorb.html)
   ========================================================= */

.korb__ueberschrift {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: #fff;
  letter-spacing: 0.01em;
}

.korb__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bild | Text | Menge und Preis. Auf schmalen Geraeten klappt
   die Spalte mit Menge und Preis unter den Text. */
.korb__posten {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.korb__posten:first-child { padding-top: 0; }
.korb__posten:last-child { border-bottom: 0; }

.korb__bildlink {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: rgba(255, 255, 255, 0.06);
}

.korb__bild {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.korb__bildlink:hover .korb__bild { transform: scale(1.05); }

.korb__text { min-width: 0; }

.korb__titel {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.korb__titel a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 227, 255, 0.45);
}

.korb__titel a:hover { border-bottom-color: #7fe3ff; }

.korb__merkmale {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.8rem;
  margin: 0;
  font-size: 0.9rem;
}

.korb__merkmale dt { color: rgba(255, 255, 255, 0.6); }
.korb__merkmale dd { margin: 0; color: rgba(234, 246, 255, 0.92); }

.korb__steuer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  text-align: right;
}

.korb__menge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

/* 44 px, damit die Knoepfe auf dem Handy sicher zu treffen sind. */
.korb__mengeknopf {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.korb__mengeknopf:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.korb__mengeknopf:focus-visible { outline: 2px solid #7fe3ff; outline-offset: -2px; }
.korb__mengeknopf:disabled { opacity: 0.35; cursor: default; }

.korb__mengezahl {
  width: 3ch;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  text-align: center;
  font: inherit;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.korb__mengezahl::-webkit-outer-spin-button,
.korb__mengezahl::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.korb__mengezahl:focus-visible { outline: 2px solid #7fe3ff; outline-offset: -2px; }

.korb__preis {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.korb__jestueck {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.korb__weg,
.korb__leeren {
  border: 0;
  background: none;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.korb__weg:hover,
.korb__leeren:hover { color: #ffb4a8; }
.korb__weg:focus-visible,
.korb__leeren:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 2px; border-radius: 4px; }

.korb__fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.korb__weiter {
  color: #7fe3ff;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.korb__weiter:hover { border-bottom-color: #7fe3ff; }

.korb__abschluss { margin-top: 1.5rem; }

.korb__summe {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.korb__summe strong {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.korb__meldung {
  margin: 0.8rem 0 0;
  color: #ffb4a8;
  font-size: 0.9rem;
}

.korb__leer { text-align: center; }
.korb__leertext {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: #fff;
}

@media (max-width: 640px) {
  .korb__posten {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
  }
  .korb__bild { width: 72px; height: 72px; }
  /* Menge und Preis rutschen unter Bild und Text, damit beides
     nicht auf 40 Pixel zusammengequetscht wird. */
  .korb__steuer {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }
  .korb__jestueck { display: inline; }
}

/* Zweitrangiger Knopf neben "Zahlungspflichtig bestellen".
   Bewusst ruhiger gehalten: Der Kauf bleibt die Hauptaktion. */
.btn--korb {
  background: rgba(255, 255, 255, 0.1);
  color: #eaf6ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--korb:hover { background: rgba(255, 255, 255, 0.18); }
.btn--korb:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Die beiden Knoepfe stehen nebeneinander und brechen auf dem
   Handy untereinander um. */
.kauf__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* Lieferland-Auswahl (Bestellseite und Warenkorb), 11.10.2026 */
.versand__land {
  margin: 1rem 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.versand__land select {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
}

.versand__land select option { color: #000; }
.versand__land select:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 2px; }

.kauf__preis--klein { margin: 0.3rem 0 0; }
.kauf__preis--klein strong { font-size: 1.3rem; font-weight: 700; }
.kauf__preis--summe { margin: 0.6rem 0 0.4rem; padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.kauf__preis--summe strong { font-size: clamp(1.6rem, 5vw, 2.2rem); }
