/* Shopseiten (Konto, Login, Registrierung, Warenkorb, Plugins) — baut auf den Variablen aus style.css auf. */
/* Rahmen (Kopf/Fuss) kommt aus style.css + system/inc/site_rahmen.php — hier nur der Inhalt. */
.shop-seite { background: var(--aic-bg, #f5f5f5); }
.shop-inhalt { padding: calc(var(--header-height, 52px) + 36px) 20px 64px; min-height: 70vh; box-sizing: border-box; }
@media (max-width: 560px) { .shop-inhalt { padding: calc(var(--header-height, 52px) + 20px) 16px 44px; } }

.shop-karte { background: var(--aic-surface, #fff); border: 1px solid var(--aic-border, #e9ecef); border-radius: 12px; padding: 28px;
  max-width: 460px; margin: 0 auto; box-shadow: var(--aic-shadow-sm, 0 1px 4px rgba(0,0,0,.08)); box-sizing: border-box; }
.shop-karte.breit { max-width: 960px; }
.shop-karte h1 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 28px); color: var(--aic-accent, #3a6ea5); }
.shop-karte h2 { font-size: 1.15rem; margin: 26px 0 10px; }
@media (max-width: 560px) { .shop-karte { padding: 20px 16px; } }
.shop-formular label { display: block; margin: 12px 0 4px; font-weight: 500; }
.shop-formular input[type=text], .shop-formular input[type=email], .shop-formular input[type=password], .shop-formular select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--aic-border, #e9ecef); border-radius: 8px; font: inherit; }
.shop-formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .shop-formular .reihe { grid-template-columns: 1fr; } }
.shop-knopf { display: inline-block; margin-top: 18px; padding: 11px 22px; border: none; border-radius: 8px; background: var(--aic-accent, #3a6ea5);
  color: var(--aic-text-inverse, #fff); font: inherit; cursor: pointer; text-decoration: none; }
.shop-knopf:hover { background: var(--aic-accent-hover, #325e8f); }
.shop-knopf.leise { background: transparent; color: var(--aic-accent, #3a6ea5); border: 1px solid var(--aic-accent, #3a6ea5); }
.shop-klein { font-size: 14px; color: var(--aic-text-muted, #555); }
.shop-meldung { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.shop-meldung-info { background: var(--aic-accent-soft, #d5e8f5); }
.shop-meldung-ok { background: #e3f4e6; }
.shop-meldung-fehler { background: #fde8e8; }
.shop-honig { position: absolute; left: -9999px; }

.shop-tabelle { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.shop-tabelle th, .shop-tabelle td { padding: 10px 8px; border-bottom: 1px solid var(--aic-border, #e9ecef); text-align: left; vertical-align: middle; }
.shop-tabelle .zahl { text-align: right; white-space: nowrap; }
.shop-tabelle .shop-knopf { margin-top: 0; padding: 6px 12px; }
.shop-tabelle tfoot td { border-bottom: none; padding: 6px 8px; }
.shop-tabelle tr.summe td { font-weight: 700; border-top: 2px solid var(--aic-border, #e9ecef); }
.shop-formular fieldset { border: 1px solid var(--aic-border, #e9ecef); border-radius: 8px; padding: 8px 14px 14px; margin: 12px 0; }
.shop-formular fieldset label { font-weight: 400; }
.shop-summe { font-size: 1.1rem; margin: 16px 0 0; }
@media (max-width: 700px) {
  .shop-tabelle thead { display: none; }
  .shop-tabelle tbody tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--aic-border, #e9ecef); }
  .shop-tabelle tbody td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 4px 0; }
  .shop-tabelle tbody td[data-label]::before { content: attr(data-label); color: var(--aic-text-muted, #555); }
}

/* ── Konto (konto.php) ── */
.konto { max-width: 1100px; margin: 0 auto; }
.konto-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.konto-kopf h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 2px 0 4px; }
.konto-lizenz { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 12px; background: #1f2a44; color: #fff; max-width: 420px; }
.konto-lizenz strong { font-size: 16px; word-break: break-all; }
.konto-lizenz .shop-klein { color: rgba(255,255,255,.7); }
.konto-lizenz-titel { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #8fb8e6; }
.konto-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.konto-raster .shop-karte { max-width: none; margin: 0; }
.konto-raster h2 { margin-top: 0; }
/* Erste Zeile so hoch wie die Bestellungen, den Rest bekommt die zweite — sonst teilt die rechte Spalte (2 Zeilen hoch)
   ihre Höhe gleichmässig auf beide Zeilen auf, und unter den Bestellungen klafft eine Lücke. */
.konto-raster { grid-template-rows: auto 1fr; }
.konto-bestellungen, .konto-geraete { grid-column: 1; align-self: start; }
.konto-adresse { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 900px) {
  .konto-raster { grid-template-columns: 1fr; }
  .konto-bestellungen, .konto-geraete, .konto-adresse { grid-column: 1; grid-row: auto; }
  .konto-adresse { order: 3; }
}
.konto-trenner { border: none; border-top: 1px solid var(--aic-border, #e9ecef); margin: 22px 0 10px; }
.bestellung { border: 1px solid var(--aic-border, #e9ecef); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--aic-surface-alt, #f8f9fa); }
.bestellung-kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.bestellung-betrag { margin-left: auto; font-weight: 700; color: var(--aic-accent-dark, #2c5a8a); }
.bestellung-posten { margin: 8px 0 0; color: var(--aic-text-muted, #555); font-size: 14px; }
.bestellung-links, .bestellung-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.bestellung-aktionen .shop-knopf { margin-top: 0; }
.status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #445; }
.status-bezahlt { background: #e3f4e6; color: #1e6b33; }
.status-offen { background: #fff3cd; color: #7a5b00; }
.status-storniert, .status-erstattet { background: #fde8e8; color: #8a1f1f; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--aic-border, #e9ecef);
  font-size: 13px; color: var(--aic-accent-dark, #2c5a8a); text-decoration: none; }
.chip:hover { border-color: var(--aic-accent, #3a6ea5); }
.chip-download { background: var(--aic-accent, #3a6ea5); color: #fff; border-color: var(--aic-accent, #3a6ea5); }
.chip-download:hover { color: #fff; background: var(--aic-accent-hover, #325e8f); }
.chip-leise { color: var(--aic-text-dim, #888); }
.shop-formular select { background: #fff; }

/* ── Optionale Produkte: Übersicht plugins.php (pr-) und Detailseite plugin.php (pd-) ──
   Keine Shop-Kacheln: redaktionelle Zeilen in der Übersicht, ausführliche Detailseite mit rechter Leiste. */
.pr-kopf { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.pr-kopf h1 { font-size: clamp(28px, 4.2vw, 42px); color: var(--aic-accent, #3a6ea5); margin: 4px 0 12px; }
.pr-kopf p { color: var(--aic-text-muted, #555); font-size: 17px; }
.pr-sprung { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pr-sprung a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--aic-border, #e9ecef); color: var(--aic-text, #222); font-weight: 500; }
.pr-sprung a span { color: var(--aic-text-dim, #888); font-weight: 400; }
.pr-gruppe { margin: 0 auto 56px; max-width: 1100px; }
.pr-gruppe > h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--aic-accent-soft, #d5e8f5); }
.pr-zeile { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--aic-border, #e9ecef); }
.pr-zeile:last-child { border-bottom: none; }
.pr-zeile-umgekehrt .pr-zeile-bild { order: 2; }
.pr-zeile-bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #e8edf3; box-shadow: var(--aic-shadow-sm, 0 1px 4px rgba(0,0,0,.08)); }
.pr-zeile-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pr-zeile-bild:hover img { transform: scale(1.03); }
.pr-zeile-text h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 6px 0 10px; }
.pr-zeile-text h3 a { color: var(--aic-text, #222); }
.pr-zeile-text h3 a:hover { color: var(--aic-accent, #3a6ea5); }
.pr-zeile-text p { color: var(--aic-text-muted, #555); font-size: 16px; line-height: 1.65; }
.pr-zeile-text .shop-knopf { margin-top: 14px; }
@media (max-width: 860px) { .pr-zeile { grid-template-columns: 1fr; gap: 16px; } .pr-zeile-umgekehrt .pr-zeile-bild { order: 0; } }
.pr-platzhalter { color: #6a7f99; font-size: 14px; padding: 12px; text-align: center; }
.pr-preis { font-weight: 700; color: var(--aic-accent-dark, #2c5a8a); }
.pr-alt { font-weight: 400; color: var(--aic-text-dim, #888); font-size: .85em; margin-right: 4px; }
.pr-wip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff3cd; color: #7a5b00; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.pr-zurueck { margin: 0 auto 18px; max-width: 1200px; font-size: 14px; }

.pd-kat { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--aic-accent, #3a6ea5); }
.pd-kopf { max-width: 1200px; margin: 0 auto 36px; }
.pd-kopf-text { max-width: 820px; margin-bottom: 22px; }
.pd-kopf h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 6px 0 14px; line-height: 1.15; }
.pd-kurz { font-size: clamp(16px, 1.6vw, 19px); color: var(--aic-text-muted, #555); line-height: 1.6; }
.pd-version { font-size: 14px; color: var(--aic-text-dim, #888); margin-top: 8px; }
.pd-buehne { aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #1f2a44, #2c3e63); display: flex; align-items: center; justify-content: center; box-shadow: var(--aic-shadow-md, 0 4px 12px rgba(0,0,0,.08)); }
.pd-buehne img { width: 100%; height: 100%; object-fit: cover; }
.pd-buehne .pr-platzhalter { color: rgba(255,255,255,.6); font-size: 15px; letter-spacing: .5px; }
@media (max-width: 700px) { .pd-buehne { aspect-ratio: 16 / 10; } }

.pd-layout { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.pd-haupt { min-width: 0; }
.pd-baustein { margin: 0 0 40px; }
.pd-baustein h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; }
.pd-text p, .pd-text ul { margin-bottom: 14px; color: var(--aic-text-muted, #444); font-size: 16.5px; line-height: 1.75; }
.pd-text ul { padding-left: 22px; }
.pd-text li { margin-bottom: 6px; }
.pd-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pd-galerie a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.pd-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pd-galerie a:hover img { transform: scale(1.04); }
.pd-video { width: 100%; border-radius: 12px; background: #000; }
.pd-abschluss { padding: 28px; border-radius: 14px; background: #1f2a44; color: #fff; }
.pd-abschluss h2 { color: #fff; margin: 0 0 12px; }
.pd-abschluss .pd-kauf { background: transparent; border: none; padding: 0; box-shadow: none; }
.pd-abschluss .pr-preis, .pd-abschluss .pd-kauf-info, .pd-abschluss .pd-bald { color: #fff; }

.pd-leiste { position: sticky; top: calc(var(--header-height, 52px) + 20px); display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--header-height, 52px) - 40px); }
.pd-kauf { background: #fff; border: 1px solid var(--aic-border, #e9ecef); border-radius: 12px; padding: 18px 20px; box-shadow: var(--aic-shadow-sm, 0 1px 4px rgba(0,0,0,.08)); }
.pd-kauf .shop-knopf { margin-top: 10px; width: 100%; text-align: center; box-sizing: border-box; }
.pd-preis { font-size: 1.6rem; margin: 0; }
.pd-preis small { font-size: 13px; font-weight: 400; color: var(--aic-text-dim, #888); }
.pd-kauf-info { font-size: 13px; color: var(--aic-text-muted, #555); margin: 6px 0 0; }
.pd-bald { color: var(--aic-text-muted, #555); margin: 6px 0 0; }
.pd-andere { background: #fff; border: 1px solid var(--aic-border, #e9ecef); border-radius: 12px; padding: 14px; overflow-y: auto; min-height: 0; }
.pd-andere h3 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--aic-text-dim, #888); margin: 2px 4px 10px; }
.pd-andere-eintrag { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--aic-text, #222); }
.pd-andere-eintrag:hover { background: var(--aic-surface-alt, #f5f7fa); color: var(--aic-text, #222); }
.pd-andere-bild { flex: 0 0 104px; height: 66px; border-radius: 8px; overflow: hidden; background: #e8edf3; display: flex; align-items: center; justify-content: center; }
.pd-andere-bild img { width: 100%; height: 100%; object-fit: cover; }
.pd-andere-bild .pr-platzhalter { font-size: 10px; padding: 4px; line-height: 1.2; }
.pd-andere-text { display: flex; flex-direction: column; min-width: 0; }
.pd-andere-text strong { font-size: 14px; line-height: 1.3; }
.pd-andere-text small { font-size: 12px; color: var(--aic-text-dim, #888); margin-top: 2px; }
@media (max-width: 960px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-leiste { position: static; max-height: none; }
  .pd-leiste > .pd-kauf { display: none; }   /* auf schmalen Bildschirmen steht der Kauf am Ende der Erklärung */
  .pd-andere { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
  .pd-andere h3 { grid-column: 1 / -1; }
}

.pd-lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 5000; cursor: zoom-out; }
.pd-lb[hidden] { display: none; }
.pd-lb img { max-width: 94vw; max-height: 90vh; border-radius: 6px; }
.pd-lb button { position: absolute; top: 14px; right: 20px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }
