/* feif.space — Stil der Shop-Seiten (z. B. /apps-software/).
   Dunkler Seitengrund wie der Rest der Website; nur die Produktkarten sind
   hell, wie Schachteln im Regal. Zwei getrennte Farbsätze: --t-* für die
   Seite, --k-* für die Karten. Beide erreichen mindestens WCAG AA
   (Fließtext 4,5 : 1); die helleren Markenfarben bleiben Zierde. */

:root {
  /* Seite (dunkel) */
  --ground:  #14120f;
  --panel:   #1b1815;
  --t-ink:   #f4efe8;
  --t-ink-2: #c6bfb4;
  --t-muted: #968d81;
  --rule:    rgba(244, 239, 232, 0.10);
  --rule-2:  rgba(244, 239, 232, 0.19);
  --warm:    #ff9563;
  --mint:    #63d7be;

  /* Karten (hell) */
  --k-card:   #ffffff;
  --k-paper:  #f6f2ea;
  --k-paper-2:#ece5d8;
  --k-ink:    #1b1814;
  --k-ink-2:  #4a443b;
  --k-muted:  #675f53;
  --k-line:   #ddd5c7;
  --k-cool:   #0b6b5b;
  --k-warm:   #b8431a;
  --blue:     #2a63d6;
  --blue-d:   #153a8c;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ground); color-scheme: dark; }

body {
  margin: 0;
  background:
    radial-gradient(80% 40% at 90% -10%, rgba(99, 215, 190, 0.06), transparent 60%),
    radial-gradient(70% 40% at -5% 8%, rgba(255, 149, 99, 0.07), transparent 62%),
    var(--ground);
  color: var(--t-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  padding: 10px 14px; background: var(--ground); color: var(--t-ink);
  border: 1px solid var(--mint); font-family: var(--f-mono); font-size: 0.9rem;
}
.sprung:focus { left: 12px; top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 28px; }

/* Kopfleiste */
.shop-top {
  border-bottom: 1px solid var(--rule); background: rgba(20, 18, 15, 0.8);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.shop-top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 58px; max-width: 1120px; margin: 0 auto; padding-inline: 28px;
}
.brand {
  font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--t-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(255,149,99,0.16); }
.shop-nav { display: flex; gap: 22px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.shop-nav a { text-decoration: none; color: var(--t-muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.shop-nav a:hover { color: var(--t-ink); }
.shop-nav a[aria-current="page"] { color: var(--t-ink); border-bottom-color: var(--warm); }

/* Kopf der Kategorie */
.krumen { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); margin: 30px 0 0; }
.krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.krumen li + li::before { content: "›"; margin-right: 6px; color: var(--rule-2); }
.krumen a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(99, 215, 190, 0.35); }
.krumen a:hover { border-bottom-color: var(--mint); }

.kopf { padding: 18px 0 30px; }
.kopf h1 {
  font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 800;
  letter-spacing: -0.025em; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 12px;
}
.kopf p { color: var(--t-ink-2); max-width: 60ch; margin: 0; font-size: 1.05rem; }

.leiste {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 28px;
  border-block: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted);
}
.leiste strong { color: var(--t-ink); font-weight: 500; }

/* Produktraster */
.produkte {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 336px)); gap: 28px;
}

/* Die helle Karte: ein eigener, in sich geschlossener Farbraum */
.produkt {
  background: var(--k-card); color: var(--k-ink); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 26px 50px -26px rgba(0,0,0,0.85);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.produkt:hover, .produkt:focus-within {
  box-shadow: 0 1px 0 rgba(255,255,255,0.1), 0 34px 60px -26px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,149,99,0.45);
  transform: translateY(-3px);
}
.produkt :focus-visible { outline-color: var(--blue); }

/* Bühne mit Karton */
.buehne {
  position: relative; display: block; height: 300px; text-decoration: none;
  background:
    radial-gradient(70% 60% at 50% 38%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f1ece1 0%, var(--k-paper-2) 100%);
  perspective: 1000px; overflow: hidden;
}
.boden {
  position: absolute; left: 50%; bottom: 34px; width: 210px; height: 26px; margin-left: -105px;
  background: radial-gradient(closest-side, rgba(27,24,20,0.34), rgba(27,24,20,0) 72%);
  filter: blur(2px);
}

.karton {
  --b: 176px; --h: 226px; --t: 34px;
  position: absolute; left: 50%; top: 34px; width: var(--b); height: var(--h);
  margin-left: calc(var(--b) / -2);
  transform-style: preserve-3d; transform: rotateY(28deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.buehne:hover .karton { transform: rotateY(18deg) rotateX(2deg); }

.flaeche { position: absolute; backface-visibility: hidden; }

.vorn {
  inset: 0; transform: translateZ(calc(var(--t) / 2));
  border-radius: 3px; overflow: hidden; color: #fff; text-align: center;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #3b78e6 0%, var(--blue) 45%, #1d4fb8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 16px 14px 14px;
}
.vorn::after { /* Glanz */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0) 60%);
}
.vorn img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 18px rgba(8,22,64,0.45); margin-top: 8px; }
.vorn .titel { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }
.vorn .unter { font-size: 0.7rem; line-height: 1.35; opacity: 0.95; }
.vorn .os { font-family: var(--f-mono); font-size: 0.52rem; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; opacity: 0.92; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 8px; width: 100%; }
.vorn .neu {
  position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--warm); color: #1b1814;
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px;
}

.rueck { left: calc(var(--t) / -2); top: 0; width: var(--t); height: 100%; transform: rotateY(-90deg); background: linear-gradient(90deg, #0f2d73, var(--blue-d)); display: grid; place-items: center; overflow: hidden; }
.rueck span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-family: var(--f-display); font-weight: 800; letter-spacing: 0.18em; font-size: 0.8rem; }
.oben { left: 0; top: calc(var(--t) / -2); width: 100%; height: var(--t); transform: rotateX(90deg); background: linear-gradient(180deg, #7aa4f0, #4f86e8); }

/* Karton-Varianten: eigene Farbe je Produkt, Form bleibt gleich */
.vorn .glyph { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 18px rgba(0,0,0,0.35); margin-top: 8px; }

.karton-rw .vorn {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #2a6aa6 0%, #174a7c 45%, #0f3560 100%);
}
.karton-rw .vorn .titel { font-size: 1.08rem; letter-spacing: -0.01em; }
.karton-rw .rueck { background: linear-gradient(90deg, #0a2a4c, #0f3560); }
.karton-rw .oben { background: linear-gradient(180deg, #5f93c4, #3d77ad); }

.karton-vv .vorn {
  color: #f1e6c4;
  background:
    linear-gradient(160deg, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 40%),
    linear-gradient(180deg, #1c1c1c 0%, #0f0f0f 55%, #050505 100%);
}
.karton-vv .vorn .titel { font-size: 1.5rem; letter-spacing: 0.12em; color: #d4af37; }
.karton-vv .vorn .os { border-top-color: rgba(212,175,55,0.45); }
.karton-vv .rueck { background: linear-gradient(90deg, #050505, #1a1a1a); }
.karton-vv .rueck span { color: #d4af37; }
.karton-vv .oben { background: linear-gradient(180deg, #4a4a4a, #2b2b2b); }

/* Text der Kachel */
.inhalt { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.art { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--k-muted); margin: 0; }
.produkt h2 { font-family: var(--f-display); font-variation-settings: "wdth" 104; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
.produkt h2 a { text-decoration: none; color: var(--k-ink); }
.produkt h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.beschr { color: var(--k-ink-2); margin: 0; font-size: 0.96rem; }

.plattformen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plattformen li { font-size: 0.78rem; color: var(--k-ink-2); background: var(--k-paper); border: 1px solid var(--k-line); border-radius: 999px; padding: 3px 11px; }

.preis { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--k-line); display: flex; flex-direction: column; gap: 2px; }
.preis .gratis { font-weight: 600; color: var(--k-cool); }
.preis .voll { color: var(--k-ink-2); font-size: 0.92rem; }
.preis .voll strong { color: var(--k-ink); font-size: 1.05rem; }
.preis small { color: var(--k-muted); font-size: 0.78rem; }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.knopf {
  display: inline-block; text-decoration: none; background: var(--k-ink); color: #fff;
  font-weight: 600; font-size: 0.92rem; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--k-ink);
  transition: background 0.2s ease;
}
.knopf:hover { background: #3a342b; }
.status { font-size: 0.78rem; color: var(--k-warm); font-weight: 500; }

/* Vorteile (auf dunklem Grund) */
.vorteile { list-style: none; margin: 56px 0 0; padding: 26px 0; border-block: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.vorteile strong { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 104; font-size: 1.02rem; margin-bottom: 2px; color: var(--t-ink); }
.vorteile span { color: var(--t-ink-2); font-size: 0.92rem; }

/* Band: Datenrettung (dunkel, kein heller Kasten) */
.band {
  margin: 34px 0 0; padding: 24px 26px; background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--warm);
  border-radius: 3px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.band h2 { font-family: var(--f-display); font-variation-settings: "wdth" 104; font-size: 1.15rem; margin: 0 0 4px; color: var(--t-ink); }
.band p { margin: 0; color: var(--t-ink-2); max-width: 62ch; }
.band .knopf { background: transparent; color: var(--t-ink); border-color: var(--rule-2); }
.band .knopf:hover { background: rgba(244, 239, 232, 0.07); border-color: var(--t-ink-2); }

.stand { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); }

main { padding-bottom: 70px; }

/* Fuß */
.shop-foot { border-top: 1px solid var(--rule); padding-block: 22px 40px; }
.shop-foot-in {
  max-width: 1120px; margin: 0 auto; padding-inline: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted);
}
.shop-foot a { text-decoration: none; }
.shop-foot a:hover { color: var(--t-ink); }

/* Kundenprojekte: Browserfenster statt Karton */
.fenster { display: block; background: var(--k-paper-2); text-decoration: none; border-bottom: 1px solid var(--k-line); }
.fenster-leiste { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e4ddcf; border-bottom: 1px solid var(--k-line); }
.fenster-leiste i { width: 9px; height: 9px; border-radius: 50%; background: #c9bfae; }
.fenster-leiste span { margin-left: 8px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--k-ink-2); background: #f6f2ea; border-radius: 999px; padding: 2px 12px; }
.fenster img { display: block; width: 100%; height: auto; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.produkt:hover .fenster img { transform: scale(1.025); }

@media (max-width: 640px) {
  .wrap, .shop-top-in, .shop-foot-in { padding-inline: 18px; }
  .produkte { grid-template-columns: 1fr; }
  .shop-top-in { height: auto; flex-wrap: wrap; padding-block: 10px; row-gap: 2px; }
  .shop-nav { flex-wrap: wrap; gap: 2px 14px; font-size: 0.66rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .produkt, .karton, .knopf { transition: none; }
  .produkt:hover, .produkt:focus-within { transform: none; }
}
