/* Öffentliche Profilseite */

@property --page-top-radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Wie hoo.be: Scrollleiste ausblenden (Scrollen geht weiter), damit die Seite am Computer genau mittig sitzt */
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Hintergrund ---------- */

.bg { position: fixed; inset: 0; z-index: -10; overflow: hidden; }
.bg-desk { background: var(--desk); }
.bg-desk i {
  position: absolute;
  inset: calc(var(--desk-blur) * -2);
  background: var(--desk-img) center / cover no-repeat;
  filter: blur(var(--desk-blur));
}
.bg-page { background: var(--page-bg); display: none; }

/* ---------- Rahmen ---------- */

.wrap {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame { position: relative; z-index: 10; width: 100%; }

.frame-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--page-bg);
  border-radius: var(--page-top-radius) var(--page-top-radius) var(--page-bottom-r, 32px) var(--page-bottom-r, 32px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .15);
  pointer-events: none;
}

.frame-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}

@media (min-width: 572px) {
  .frame { width: 480px; zoom: 1.125; }
}

@supports (animation-timeline: scroll()) {
  @media (min-width: 572px) {
    body.mode-public .frame-surface {
      animation: page-frame-flatten linear both;
      animation-timeline: scroll(root);
      animation-range: 0 32px;
    }
  }
}
@keyframes page-frame-flatten { to { --page-top-radius: 0px; } }

@media (max-width: 571px) {
  .wrap { padding: 0; }
  .bg-page { display: block; }
  .frame-surface { border-radius: 0; box-shadow: none; background: transparent; }
}

/* ---------- Header ---------- */

.profile {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 32px 24px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 132px;
  height: 132px;
  margin-bottom: 16px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 70px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-in {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 64px;
  background: var(--b-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-in img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { font-size: 48px; font-weight: 600; color: var(--b-text); }
.profile.has-border .avatar { border-color: var(--text); }

/* Header-Maße wie bei hoo.be (Seitenbreite 480px). Bild immer mit 2px Rand + 4px Innenabstand,
   außer beim Hero. --hd-h = Bildhöhe aus der Höhen-Einstellung (Klein/Mittel/Groß). */
.hd-square .avatar { border-radius: 22px; }
.hd-square .avatar-in { border-radius: 16px; }

.hd-portrait .avatar { height: calc(var(--hd-h, 180px) + 12px); border-radius: 26px; }
.hd-portrait .avatar-in { border-radius: 20px; }

.hd-large { padding-top: 24px; }
.hd-large .avatar { width: 100%; height: calc(var(--hd-h, 350px) + 12px); border-radius: 30px; }
.hd-large .avatar-in { border-radius: 24px; }

/* Hero: volle Breite, feste Höhe, läuft unten aus (Maske wie hoo.be); Name ragt 32px ins Bild */
.hd-hero { padding-top: 0; }
.hd-hero .avatar {
  position: relative;
  width: calc(100% + 48px);
  height: var(--hd-h, 350px);
  margin: 0 -24px -32px;
  padding: 0;
  border: 0;
  border-radius: var(--page-top-radius) var(--page-top-radius) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, .87) 58%, rgba(0, 0, 0, .56) 72%, rgba(0, 0, 0, .24) 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, .87) 58%, rgba(0, 0, 0, .56) 72%, rgba(0, 0, 0, .24) 85%, transparent 100%);
}
.hd-hero .avatar-in { border-radius: 0; }
.hd-hero .profile-text { position: relative; z-index: 2; }
.hd-hero.no-text .avatar { margin-bottom: 16px; }
.hd-hero.no-media { padding-top: 32px; }
.hd-hero.no-media .avatar { display: none; }
@media (max-width: 571px) { .hd-hero .avatar { border-radius: 0; } }

.profile-text { width: 100%; }

.name {
  margin: 0;
  padding: 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.name-img { display: flex; justify-content: center; padding: 0 8px; margin-bottom: 8px; }
.name-img img { height: var(--name-img-h, 108px); max-width: 100%; width: auto; object-fit: contain; }

.bio {
  padding: 0 8px;
  font-size: 14px;
  color: var(--bio);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Social Icons ---------- */

.socials { position: relative; z-index: 11; margin: 0 16px; padding: 12px; display: flex; justify-content: center; }
.socials-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 376px; }
.soc {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soc-bg);
  transition: transform .15s ease, opacity .15s ease;
}
.soc i {
  width: 24px;
  height: 24px;
  display: block;
  background: var(--soc-fg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
a.soc:hover { transform: translateY(-1px); opacity: .9; }
.shape-square .soc { border-radius: 10px; }
.shape-slanted .soc { border-radius: 0; width: 44px; clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); }
.shape-platform .soc { background: var(--brand); border-radius: 10px; }
.shape-platform .soc i { background: var(--brand-fg); width: 22px; height: 22px; }
/* Symbolgrößen wie die Plattform-Kacheln von hoo.be (gemessen an 40px-Kacheln) */
.shape-platform .p-instagram i { width: 29px; height: 29px; }
.shape-platform .p-amazon i { width: 24px; height: 24px; }
.shape-platform .p-tiktok i { width: 25px; height: 25px; position: relative; z-index: 1; }
/* TikTok: türkiser und roter Versatz hinter dem weißen Symbol */
.shape-platform .p-tiktok::before,
.shape-platform .p-tiktok::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  margin: -12.5px 0 0 -12.5px;
  -webkit-mask: url("../icons/social/tiktok.svg") center / contain no-repeat;
  mask: url("../icons/social/tiktok.svg") center / contain no-repeat;
}
.shape-platform .p-tiktok::before { background: #25f4ee; transform: translate(-1.2px, -1.2px); }
.shape-platform .p-tiktok::after { background: #fe2c55; transform: translate(1.2px, 1.2px); }

/* ---------- Block-Raster ---------- */

.blocks { padding: 8px 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  container-type: inline-size;
}

.cell {
  --col: calc((100cqw - 16px) / 2);
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.cell.w2 { grid-column: 1 / -1; }

/* Höhen der Link-Layouts wie bei hoo.be: eine Zeile = Spaltenbreite / 1,8 (auf ganze Pixel gerundet),
   große Layouts belegen zwei Zeilen plus Abstand. Text ist fest 60px hoch.
   Die zweite Angabe mit round() überschreibt die erste nur in Browsern, die round() kennen. */
.cell.L-text { height: 60px; }
.cell.L-wide, .cell.L-small, .cell.L-split-wide {
  height: calc(var(--col) / 1.8);
  height: round(calc(var(--col) / 1.8), 1px);
}
.cell.L-portrait, .cell.L-feature, .cell.L-split-portrait, .cell.L-split-feature {
  height: calc(2 * var(--col) / 1.8 + 16px);
  height: calc(2 * round(calc(var(--col) / 1.8), 1px) + 16px);
}
/* Schmale große Blöcke belegen zwei Rasterzeilen, damit ein kleiner Block in die Lücke daneben rutscht */
.cell.L-portrait, .cell.L-split-portrait { grid-row: span 2; }
/* Bild-Layouts */
.cell.I-wide { height: calc(var(--col) / 1.8); }
.cell.I-feature { height: var(--col); }
.cell.I-square { height: var(--col); }
.cell.I-portrait { height: calc(var(--col) * 1.3); }

/* Grundform eines Blocks */
.blk {
  /* wie hoo.be: mit Innenabstand sind die inneren Ecken 4px kleiner als die äußeren */
  --inner-r: max(0px, min(calc(var(--b-pad) * 100), calc(var(--b-radius) - 4px)));
  /* Button-Ecken wie hoo.be: halbe Kartenecke, mindestens 4px, höchstens 16px (eckig = 0) */
  --btn-r: min(16px, max(min(4px, calc(var(--b-radius) * 100)), calc(var(--b-radius) / 2)));
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--b-radius);
  background: var(--b-bg);
  color: var(--b-text);
  text-decoration: none;
  isolation: isolate;
  padding: var(--b-pad);
  transition: transform .2s ease, border-radius .3s ease-in-out;
}
/* Rahmen und Akzent liegen über dem Inhalt. Akzent = Streifen am unteren Rand (wie hoo.be),
   der Rahmen deckt dessen äußersten Pixel ab. */
.blk::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  border: var(--b-border-w) solid var(--b-border);
  box-shadow: inset 0 calc(-1 * max(0px, calc(var(--b-accent, 0px) - var(--b-border-w)))) 0 var(--b-border);
  pointer-events: none;
}
a.blk:hover { transform: scale(1.015); }
a.blk:active { transform: scale(.99); }

/* ---------- Link ---------- */

.lnk-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lnk-text { display: flex; flex-direction: column; min-width: 0; }
.lnk-media { position: relative; overflow: hidden; display: block; }
.lnk-media img { width: 100%; height: 100%; object-fit: cover; }
.lnk-media { border-radius: var(--inner-r); }
.is-nsfw { filter: blur(16px); transform: scale(1.1); }

/* Button (Shop, Tickets …) wie hoo.be: 14px halbfett, 8px/16px Innenabstand, ~33px hoch */
.lnk-btn {
  display: block;
  flex-shrink: 0;
  max-width: 150px;
  padding: 8px 16px;
  border-radius: var(--btn-r);
  background: var(--b-btn);
  color: var(--b-btn-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Plattform-Badge wie hoo.be: 32px Kreis, 25 % Schwarz, weißes Symbol 18px, oben rechts */
.lnk-badge {
  position: absolute;
  top: calc(8px + var(--b-pad));
  right: calc(8px + var(--b-pad));
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lnk-badge i { width: 18px; height: 18px; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.lnk-split-h .lnk-badge { top: 8px; right: 8px; }
.lnk-split-h.bg-white .lnk-badge { background: transparent; }
.lnk-split-h.bg-white .lnk-badge i { background: #000; }

/* Text-Link wie hoo.be: 8px/16px Innenabstand (Innenabstand-Einstellung wirkt hier nicht),
   ohne Button zentriert, mit Button links bündig und Button rechts daneben */
.lnk-plain { --b-pad: 0px; align-items: center; justify-content: center; padding: 8px 16px; text-align: center; }
.lnk-plain .lnk-title { -webkit-line-clamp: 2; }
.lnk-plain.has-btn { justify-content: flex-start; text-align: left; }
.lnk-plain.has-btn .lnk-text { flex: 1; }
.lnk-plain .lnk-btn { margin-left: 8px; align-self: center; }
.lnk-plain .lnk-badge { left: 12px; right: auto; top: 50%; margin-top: -16px; }
.lnk-plain.has-badge { padding-left: 52px; }
.lnk-plain.has-badge:not(.has-btn) { padding-right: 52px; }

/* Split breit: Bild ein Drittel links, Text rechts (hoo.be: Text 20px links, 16px rechts, mittig) */
.lnk-split-h { flex-direction: row; padding: 0; }
.lnk-split-h .lnk-media { width: calc(33.333% - var(--b-pad)); margin: var(--b-pad) 0 var(--b-pad) var(--b-pad); flex-shrink: 0; }
.lnk-split-h .lnk-text { flex: 1; justify-content: center; padding: 8px 16px 8px 20px; }
.lnk-split-h .lnk-btn { width: 100%; max-width: none; margin-top: 9px; padding: 8px 12px; }
/* So viele Titelzeilen, wie in die 91px-Zeile passen (hoo.be rechnet das genauso aus) */
.lnk-split-h .lnk-title { -webkit-line-clamp: 3; }
.lnk-split-h.has-btn .lnk-title { -webkit-line-clamp: 1; }

/* Split hoch / Split Feature: Textbereich unten fest ~108px wie bei hoo.be, Bild darüber */
.lnk-split-v { flex-direction: column; padding: 0; }
.lnk-split-v .lnk-media {
  flex: 0 0 auto;
  height: calc(max(50px, calc(100% - 107.52px)) - var(--b-pad));
  margin: var(--b-pad) var(--b-pad) 0;
}
.lnk-split-v .lnk-text { flex: 1; min-height: 0; padding: 8px 12px; justify-content: flex-start; }
.lnk-split-v .lnk-title { min-height: 42px; }
.lnk-split-v.has-btn .lnk-text { padding-bottom: 12px; }
.lnk-split-v.has-btn .lnk-title { -webkit-line-clamp: 2; margin-bottom: 4px; }
.lnk-split-v .lnk-btn { width: 100%; max-width: none; margin-top: auto; padding: 8px 12px; }

/* Overlay: Bild füllt den Block, Text darüber */
.lnk-overlay .lnk-media { position: absolute; inset: var(--b-pad); z-index: 0; }
.lnk-overlay::before {
  content: "";
  position: absolute;
  inset: var(--b-pad);
  z-index: 1;
  border-radius: var(--inner-r);
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 60%);
}
.lnk-overlay .lnk-cap {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  padding: 24px 16px 14px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.lnk-overlay .lnk-title { -webkit-line-clamp: 2; flex: 1; min-width: 0; }
.lnk-overlay .lnk-btn { max-width: none; }

/* ---------- Überschrift, Text, Bild ---------- */

/* Überschrift wie hoo.be: 18px halbfett, Zeilenhöhe 1,25, 4px seitlich, kein Abstand oben */
.ttl {
  margin: 0;
  padding: 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ttl.size-l { font-size: 24px; }
.ttl.align-center { text-align: center; }
.ttl.align-right { text-align: right; }

.txt { flex-direction: column; justify-content: center; padding: 16px 20px; }
.txt p { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.txt.align-center { text-align: center; }
.txt.is-plain { background: transparent; box-shadow: none; color: var(--text); padding: 4px 8px; }
.txt.is-plain::after { display: none; }

.pic-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--inner-r); isolation: isolate; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.cell.I-original .pic, .cell.I-original .pic-in { height: auto; }
.cell.I-original .pic img { height: auto; }

/* ---------- Bildausschnitt „Ganzes Bild“: Bild einpassen, Rest unscharf füllen ---------- */

.avatar-in { position: relative; }
img.fit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(.75);
  transform: scale(1.15);
  pointer-events: none;
}
.avatar-in img.fit-contain, .blk img.fit-contain { position: relative; object-fit: contain; }

/* ---------- Karussell (wie hoo.be) ----------
   Größen bezogen auf 448px Rasterbreite: Karten 380px breit (Split hoch 182px),
   hoch 210 (Bild mit Titel), 120 (Split breit), 240 (Split hoch), Text fest 60px; 16px Abstand.
   Die zweite Angabe mit round() gilt nur in Browsern, die round() kennen. */

.car-title { margin: 0 0 8px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--text); }
.car-body { position: relative; }
.car-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; }
.car-scroll::-webkit-scrollbar { display: none; }
.car-track { display: flex; gap: 16px; width: max-content; }
.car-item {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc(380 * 100cqw / 448);
  width: round(calc(380 * 100cqw / 448), 1px);
  height: calc(210 * 100cqw / 448);
  height: round(calc(210 * 100cqw / 448), 1px);
}
.car-left .car-item { height: calc(120 * 100cqw / 448); height: round(calc(120 * 100cqw / 448), 1px); }
.car-top .car-item {
  width: calc(182 * 100cqw / 448);
  width: round(calc(182 * 100cqw / 448), 1px);
  height: calc(240 * 100cqw / 448);
  height: round(calc(240 * 100cqw / 448), 1px);
}
.car-text .car-item { height: 60px; }
/* Split hoch im Karussell: Textbereich 42 % von 240px (hoo.be) */
.car-top .lnk-split-v .lnk-media { height: calc(max(50px, calc(100% - 100.8px)) - var(--b-pad)); }
.car-ph { display: block; width: 100%; height: 100%; background: rgba(127, 127, 127, .25); }

/* Pfeile: 40px Streifen mit dunklem Verlauf, nur sichtbar, wenn es in die Richtung weitergeht */
.car-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: 40px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .8);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .2s ease, color .2s ease;
}
.car-arrow.prev { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .3), transparent); }
.car-arrow.next { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .3), transparent); }
.car-arrow.is-on { opacity: 1; pointer-events: auto; }
.car-arrow:hover { color: #fff; }
.car-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Video / Musik (Laden erst nach Klick) ---------- */

.emb { position: relative; }
.emb-video { aspect-ratio: 16 / 9; height: auto; }
.emb-music-compact { height: 152px; }
.emb-music-large { height: 352px; }
/* Höhen je Anbieter wie bei hoo.be: Spotify 152/352, SoundCloud 166, Apple Music 175/450 */
.emb-p-soundcloud { height: 166px; }
.emb-p-applemusic.emb-music-compact { height: 175px; }
.emb-p-applemusic.emb-music-large { height: 450px; }
.emb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.emb-load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.emb-play { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--b-text); transition: transform .15s ease; }
.emb-play svg { width: 24px; height: 24px; fill: var(--b-bg); margin-left: 3px; }
.emb-load:hover .emb-play { transform: scale(1.06); }
.emb-label { font-size: 14px; font-weight: 600; }
.emb-note { font-size: 11px; opacity: .6; max-width: 280px; }
.emb-music-compact .emb-load { flex-direction: row; gap: 14px; }
.emb-music-compact .emb-note { display: none; }

/* ---------- Abstand ---------- */

.dvd { height: 8px; display: flex; align-items: center; }
.dvd.size-m { height: 32px; }
.dvd.has-line::before { content: ""; flex: 1; height: 1px; background: var(--bio); opacity: .4; }

/* ---------- 18+-Abfrage ---------- */

.nsfw-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}
.nsfw-box { width: 100%; max-width: 340px; padding: 24px; border-radius: 20px; background: #fff; color: #111; text-align: center; font-family: var(--font); }
.nsfw-box b { display: block; font-size: 18px; margin-bottom: 6px; }
.nsfw-box p { margin: 0 0 18px; font-size: 14px; color: #555; }
.nsfw-box div { display: flex; gap: 8px; }
.nsfw-box button { flex: 1; height: 44px; border-radius: 12px; border: 1px solid #e5e5e5; background: #fff; font-weight: 600; cursor: pointer; }
.nsfw-box button.ok { background: #111; color: #fff; border-color: #111; }

/* ---------- Fußzeile ---------- */

.foot { width: 100%; max-width: 540px; display: flex; flex-direction: column; align-items: center; color: var(--foot-d); }
.foot-cta { padding: 64px 0; display: flex; justify-content: center; }
.foot-gap { height: 48px; }
.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s ease;
}
a.foot-btn:hover { opacity: .85; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0 16px 32px; font-size: 12px; color: var(--foot-d); }
.foot-links a { text-decoration: none; color: inherit; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 571px) {
  .foot, .foot-links { color: var(--foot-m); }
  .foot-cta { padding: 48px 0; }
}

/* ---------- Impressum / Datenschutz / 404 ---------- */

.legal { padding: 32px 28px 24px; color: var(--text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.legal h1 { font-size: 22px; line-height: 1.3; margin: 12px 0 16px; }
.legal h2 { font-size: 16px; margin: 24px 0 6px; }
.legal h3 { font-size: 14px; margin: 18px 0 4px; }
.legal p { margin: 0 0 12px; color: var(--bio); }
.legal a { color: var(--text); }
.legal-back { font-size: 13px; text-decoration: none; opacity: .75; }
.legal-back:hover { opacity: 1; }
.notfound { text-align: center; padding: 64px 28px; }

/* ---------- Vorschau & Bearbeitungsfläche im Admin ---------- */

html:has(> body.mode-preview), html:has(> body.mode-editor) { scrollbar-width: none; }
html:has(> body.mode-preview)::-webkit-scrollbar, html:has(> body.mode-editor)::-webkit-scrollbar { display: none; }

body.mode-editor .wrap { padding-top: 24px; padding-bottom: 140px; }
body.mode-editor a.blk:hover { transform: none; }
body.mode-editor [data-id], body.mode-editor [data-sec] { cursor: pointer; }
body.mode-editor .cell, body.mode-editor .profile, body.mode-editor .socials {
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: outline-color .12s ease;
}
body.mode-editor .cell { border-radius: calc(var(--b-radius) + 3px); }
body.mode-editor .profile { border-radius: var(--page-top-radius) var(--page-top-radius) 12px 12px; outline-offset: -3px; }
body.mode-editor .socials { border-radius: 12px; outline-offset: -3px; }
body.mode-editor .cell:hover, body.mode-editor .profile:hover, body.mode-editor .socials:hover { outline-color: rgba(20, 184, 166, .45); }
body.mode-editor .is-selected, body.mode-editor .is-selected:hover { outline-color: #14b8a6; }
body.mode-editor .cell.is-hidden > :not(.hidden-chip):not(.ed-ctrl) { opacity: .4; }
body.mode-editor .cell.is-dragging { opacity: .9; z-index: 60; transition: none; }
body.mode-editor .cell.is-drop-target { outline-color: rgba(20, 184, 166, .8); outline-style: dashed; }
.hidden-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 40;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.ed-ctrl {
  position: absolute;
  top: -14px;
  z-index: 50;
  width: 34px;
  height: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  background: #fff;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  font-family: system-ui, sans-serif;
}
.ed-ctrl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-ctrl:hover { background: #f5f5f5; }
.ed-del { left: -6px; }
.ed-move { left: 50%; transform: translateX(-50%); cursor: grab; touch-action: none; }
.ed-edit { right: -6px; }
.is-empty {
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-size: 13px;
  opacity: .75;
  border: 2px dashed currentColor;
  background: transparent;
  color: var(--text);
}
.is-empty::after { display: none; }
.is-empty-soc { justify-content: center; font-size: 13px; color: var(--bio); padding: 14px; border: 2px dashed currentColor; border-radius: 12px; margin: 4px 24px 8px; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
