:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; background: #0b0c12; color: #fff;
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#root { --r: 24px; --ts: 1; --tx: 0; --ty: 0; --hr: 1.12; }

/* Hintergrund: das Header-Bild, stark weichgezeichnet. In dieses Bild läuft der Header unten aus. */
.bg {
  position: fixed; inset: -90px; z-index: -1; background-size: cover; background-position: 50% 25%;
  filter: blur(52px) saturate(1.5) brightness(.58); transform: translateZ(0);
}
.bg.noimg {
  inset: 0; filter: none;
  background:
    radial-gradient(70% 45% at 15% 8%, #3d4f8a 0%, transparent 70%),
    radial-gradient(60% 45% at 95% 32%, #86406a 0%, transparent 70%),
    radial-gradient(80% 55% at 45% 100%, #1f6170 0%, transparent 72%),
    #0b0c12;
}

.page { position: relative; max-width: 520px; margin: 0 auto; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* Bildausschnitt: der Rahmen schneidet ab, das Bild darin wird verschoben und vergrößert */
.crop { display: block; position: relative; overflow: hidden; }
.crop img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

/* 1. Bild oben */
/* Höhe = Breite der Seite mal --hr (im Editor einstellbar), höchstens fast der ganze Bildschirm */
.hero {
  position: relative; overflow: hidden;
  height: min(calc(min(100vw, 520px) * var(--hr, 1.12)), 88vh); height: min(calc(min(100vw, 520px) * var(--hr, 1.12)), 88svh);
}
.hero .photo {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(#000 0%, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
}
/* Weichgezeichnete Kopie des Fotos: blendet nach unten ein und ganz unten wieder aus, dort übernimmt der Hintergrund.
   Bewusst ohne backdrop-filter: der zeigte am Desktop harte, rechteckige Kanten. */
.hero .photoblur {
  position: absolute; inset: 0; pointer-events: none; filter: blur(18px);
  -webkit-mask-image: linear-gradient(transparent 42%, rgba(0,0,0,.35) 54%, rgba(0,0,0,.8) 64%, #000 72%, #000 82%, rgba(0,0,0,.5) 92%, transparent 100%);
  mask-image: linear-gradient(transparent 42%, rgba(0,0,0,.35) 54%, rgba(0,0,0,.8) 64%, #000 72%, #000 82%, rgba(0,0,0,.5) 92%, transparent 100%);
}
.hero.noimg { height: calc(84px + env(safe-area-inset-top)); }

/* 2. Name, 3. Untertitel, 4. Symbolzeile */
.who { position: relative; z-index: 1; margin-top: -58px; padding: 0 24px; text-align: center; }
.hero.noimg + .who { margin-top: 0; }
.who h1 {
  margin: 0; font-size: clamp(38px, 11.5vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .35); overflow-wrap: anywhere;
}
.who h1.haslogo { line-height: 0; }
.who h1 .logo {
  display: inline-block; max-width: 440px; height: auto; -webkit-user-drag: none; user-select: none;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .4));
}
.who .sub { margin: 9px 0 0; font-size: 16px; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 12px; min-height: 42px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; -webkit-tap-highlight-color: transparent; }
.socials a:active { background: rgba(255, 255, 255, .18); }
.socials a img { width: 25px; height: 25px; object-fit: contain; display: block; }

/* Liquid Glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, .14) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .6),
    inset 0 -1px 1px rgba(255, 255, 255, .14),
    inset 0 0 24px rgba(255, 255, 255, .07),
    0 14px 34px rgba(0, 0, 0, .26);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(90% 70% at 12% -10%, rgba(255, 255, 255, .42), transparent 60%),
    radial-gradient(70% 60% at 100% 115%, rgba(255, 255, 255, .16), transparent 60%);
}

/* 5. Links */
.cards { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 0; }
.card {
  display: flex; align-items: center; justify-content: center; border-radius: var(--r); color: #fff; text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent; transition: transform .16s ease;
}
a.card:active { transform: scale(.972); }
.card { container-type: inline-size; }
/* Überschrift lässt sich im Editor vergrößern und verschieben (cqw = Prozent der Kartenbreite) */
.card .txt, .polaroid .ptxt { translate: calc(var(--tx, 0) * 1cqw) calc(var(--ty, 0) * 1cqw); }
.card .txt { display: block; }
.card .tt { display: block; font-size: calc(16px * var(--ts, 1)); font-weight: 650; letter-spacing: .015em; overflow-wrap: anywhere; }
.card .st { display: block; margin-top: 2px; font-size: 13.5px; color: rgba(255, 255, 255, .76); }

.card.low { min-height: 66px; padding: 10px 64px; }
.card.low .thumb { position: absolute; left: 8px; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: max(0px, calc(var(--r) - 8px)); }

.card.high { flex-direction: column; align-items: stretch; padding: 7px 7px 0; border-radius: calc(var(--r) + 4px); }
.card.high .cover { width: 100%; aspect-ratio: 16 / 9; border-radius: max(0px, calc(var(--r) - 3px)); }
.card.high .txt { padding: 13px 14px 16px; }
.card.high.noimg { min-height: 132px; justify-content: center; padding: 20px; }
.card.high.noimg .tt { font-size: calc(23px * var(--ts, 1)); font-weight: 750; letter-spacing: -.01em; }
.card.high.noimg .txt { padding: 0; }
.card.high.noimg .st { font-size: 15px; margin-top: 5px; }

/* Hervorhebung "Blitz": weiße Ebene nur über dem Foto, blitzt per Animation kurz auf */
.flash { position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; }

/* Alternative: Polaroids an der Pinnwand. Niedrige Karten liegen zu zweit nebeneinander, hohe sind breit. */
/* Eigene Handschrift-Schrift: als public/assets/biro-script.woff2 ablegen.
   Ohne Datei nimmt die Seite eine Handschrift des Geräts. */
@font-face { font-family: "Biro Script"; src: url(/assets/biro-script.woff2) format("woff2"); font-display: swap; }
.cards.pin { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px 14px; padding: 28px 18px 0; }
.cards.pin .slot.wide { grid-column: 1 / -1; }
.card.polaroid {
  display: block; position: relative; aspect-ratio: 1503 / 1197; container-type: inline-size; border-radius: 2px;
  rotate: var(--tilt, 0deg); color: #1c2a66; text-align: center;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .42));
}
.polaroid .pwin { position: absolute; left: 3.6%; top: 8.4%; width: 92.5%; height: 73.8%; overflow: hidden; background: linear-gradient(135deg, #343946, #12141b); }
.polaroid .pwin .crop { width: 100%; height: 100%; }
.polaroid .pframe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-select: none; user-select: none; }
.polaroid .ptxt {
  position: absolute; left: 5%; right: 5%; top: 81.5%; bottom: 1.5%; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
}
.card.polaroid .tt, .card.polaroid .st {
  font-family: "Biro Script", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-weight: 400; letter-spacing: 0; color: #1c2a66;
}
.card.polaroid .tt { font-size: calc(9cqw * var(--ts, 1)); }
.card.polaroid .st { margin-top: .3cqw; font-size: 3.8cqw; color: rgba(28, 42, 102, .82); }

/* Zwischenüberschrift: trennt Abschnitte (z. B. „Black Friday“, „EBBE vorbestellen“) */
.cards .sechead { margin-top: 18px; }
.cards .sechead:first-child { margin-top: 4px; }
.cards.pin .sechead { margin-top: 10px; }
.card.sec {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 0;
  background: none; border: 0; box-shadow: none; text-shadow: 0 1px 16px rgba(0, 0, 0, .45);
}
.card.sec .tt {
  display: flex; align-items: center; gap: 12px; width: 100%; font-size: 12.5px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.card.sec .tt::before, .card.sec .tt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45)); }
.card.sec .tt::after { background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .45)); }
.card.sec .st { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* Ausklappen: Liste von Händlern / Diensten unter einer Karte */
details.card.drop { display: block; padding: 0; }
details.card.drop > summary {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 66px; padding: 10px 64px;
  list-style: none; cursor: pointer; border-radius: inherit; -webkit-tap-highlight-color: transparent;
}
details.card.drop > summary::-webkit-details-marker { display: none; }
details.card.drop.high > summary { flex-direction: column; align-items: stretch; padding: 7px 7px 0; }
details.card.drop.high > summary .txt { padding: 13px 44px 16px; }
details.card.drop > summary:active { transform: scale(.985); }
.drop .chev {
  position: absolute; right: 22px; top: 33px; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid rgba(255, 255, 255, .85); border-bottom: 2px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.drop.high .chev { top: auto; bottom: 28px; }
.drop[open] .chev { transform: rotate(-135deg); margin-top: -2px; }
.droplist { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 10px; }
.droplist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 16px;
  border-radius: max(10px, calc(var(--r) - 8px)); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .15s ease;
}
.droplist a::after { content: "↗"; font-size: 15px; opacity: .7; }
.droplist a:hover { background: rgba(255, 255, 255, .18); }
.droplist a:active { transform: scale(.98); }
.drop[open] .droplist { animation: dropin .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes dropin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Hintergrund-Video: füllt jedes Format (Handy hochkant bis Desktop breit), weichgezeichnet und abgedunkelt.
   Das unscharfe Header-Foto (.bg) liegt darunter und bleibt sichtbar, solange das Video lädt oder nicht abspielen darf. */
#bgv { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgvid { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.bgvid.on { opacity: 1; }
.bgvid iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  /* 16:9 so groß, dass es die Fläche immer ganz bedeckt; zusätzlich vergrößert, damit YouTube-Einblendungen und
     die weichen Ränder der Unschärfe außerhalb des Bildschirms liegen */
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  width: max(100vw, 177.78lvh); height: max(100lvh, 56.25vw);
  transform: translate(-50%, -50%) scale(var(--vs, 1.27));
  filter: blur(var(--vb, 12px)) saturate(1.35);
}
.bgvid::after { content: ""; position: absolute; inset: 0; background: rgba(6, 7, 12, var(--vd, .3)); }
#bgv ~ #root .page { z-index: 1; }

.foot { display: flex; justify-content: center; gap: 18px; padding: 28px 16px 0; font-size: 12.5px; }
.foot a { color: rgba(255, 255, 255, .62); text-decoration: none; }

a:focus-visible, button:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 3px; }

/* Breite Bildschirme: das Foto läuft auch seitlich und oben weich aus, statt als Rechteck in der Mitte zu stehen */
@media (min-width: 560px) {
  .page { max-width: 600px; }
  .hero {
    height: min(calc(600px * var(--hr, 1.12)), 64vh);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 5%, rgba(0,0,0,.36) 11%, rgba(0,0,0,.7) 17%, rgba(0,0,0,.92) 22%, #000 27%, #000 73%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.7) 83%, rgba(0,0,0,.36) 89%, rgba(0,0,0,.1) 95%, transparent 100%), linear-gradient(transparent 0%, rgba(0,0,0,.3) 5%, rgba(0,0,0,.75) 11%, #000 17%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 5%, rgba(0,0,0,.36) 11%, rgba(0,0,0,.7) 17%, rgba(0,0,0,.92) 22%, #000 27%, #000 73%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.7) 83%, rgba(0,0,0,.36) 89%, rgba(0,0,0,.1) 95%, transparent 100%), linear-gradient(transparent 0%, rgba(0,0,0,.3) 5%, rgba(0,0,0,.75) 11%, #000 17%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .bg { filter: blur(80px) saturate(1.5) brightness(.62); }
  .cards, .cards.pin { padding-left: 60px; padding-right: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .flash { animation: none !important; }
  .card { transition: none; }
}
