/* ============================================================
   nordicappstudio.dk, Startseite, Rechtstexte der Seite und 404 (seit 25.10.2026).
   Farben und Schriften unverändert aus css/nas.css. Die App-Unterseiten nutzen
   weiter nas.css und home.css; diese Datei berührt sie nicht.
   ============================================================ */

/* ---- Tokens, hell ------------------------------------------- */
:root {
  --bg:        #FAFAF8;
  --bg-2:      #F1F1EC;
  --surface:   #FFFFFF;
  --surface-2: #F6F6F2;

  --ink:   #15171C;
  --ink-2: #40444C;
  --ink-3: #686D76;
  --ink-4: #9CA1A9;

  --line:   rgba(21, 23, 28, 0.10);
  --line-2: rgba(21, 23, 28, 0.16);

  --accent:        #1C6E68;
  --accent-strong: #165853;
  --accent-soft:   rgba(28, 110, 104, 0.10);
  --accent-ink:    #FFFFFF;
  --focus:         #1C6E68;

  --app:        var(--accent);
  --app-strong: var(--accent-strong);
  --app-soft:   var(--accent-soft);
  --app-ink:    var(--accent-ink);

  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --fs-small: 0.8125rem;
  --fs-body:  clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --fs-lead:  clamp(1.125rem, 1.03rem + 0.45vw, 1.3125rem);
  --fs-h2:    clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
  --fs-h1:    clamp(2.5rem, 1.5rem + 3.9vw, 4.5rem);

  --wrap:   1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --head:   64px;

  --r-icon:  22.5%;
  --r-md:    14px;
  --r-lg:    18px;
  --r-xl:    22px;
  --r-pill:  999px;

  --shadow-icon: 0 1px 2px rgba(21, 23, 28, 0.10), 0 0 0 0.5px rgba(21, 23, 28, 0.08);
  --shadow-shot: 0 1px 2px rgba(21, 23, 28, 0.08), 0 8px 18px -10px rgba(21, 23, 28, 0.35);
  --shadow-sheet: 0 2px 6px rgba(21, 23, 28, 0.06), 0 30px 70px -24px rgba(21, 23, 28, 0.38);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-head: 20;
  --z-sheet: 40;

  color-scheme: light dark;
}

/* ---- Tokens, dunkel ----------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0E1014;
    --bg-2:      #14171D;
    --surface:   #171A21;
    --surface-2: #1D212A;

    --ink:   #ECEEF1;
    --ink-2: #B6BBC3;
    --ink-3: #898F99;
    --ink-4: #585E68;

    --line:   rgba(236, 238, 241, 0.12);
    --line-2: rgba(236, 238, 241, 0.20);

    --accent:        #5FBDB3;
    --accent-strong: #74C8BF;
    --accent-soft:   rgba(95, 189, 179, 0.14);
    --accent-ink:    #07110F;
    --focus:         #74C8BF;

    --shadow-icon: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.10);
    --shadow-shot: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
    --shadow-sheet: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  }
}

/* ---- Farben der Apps (aus der alten Startseite und nas.css) - */
[data-app="ccb"]            { --app: #3F6B52; --app-strong: #35594A; --app-soft: rgba(63, 107, 82, 0.12);   --app-ink: #FFFFFF; }
[data-app="carol"]          { --app: #35558F; --app-strong: #2C4879; --app-soft: rgba(95, 135, 176, 0.15);  --app-ink: #FFFFFF; }
[data-app="editme"]         { --app: #4E648C; --app-strong: #445877; --app-soft: rgba(122, 139, 174, 0.16); --app-ink: #FFFFFF; }
[data-app="fyr"]            { --app: #94590F; --app-strong: #7D4A0C; --app-soft: rgba(196, 128, 40, 0.12);  --app-ink: #FFFFFF; }
[data-app="holdbreak"]      { --app: #9C3224; --app-strong: #842A1E; --app-soft: rgba(156, 50, 36, 0.08);   --app-ink: #FFFFFF; }
[data-app="ferrytale"]      { --app: #B5432F; --app-strong: #96361F; --app-soft: rgba(181, 67, 47, 0.08);   --app-ink: #FFFFFF; }
[data-app="bannerfall"]     { --app: #3D6FB6; --app-strong: #2A4F8A; --app-soft: rgba(61, 111, 182, 0.08);  --app-ink: #FFFFFF; }
[data-app="dummyrockets"]   { --app: #C24E38; --app-strong: #9C3B29; --app-soft: rgba(212, 87, 63, 0.09);   --app-ink: #FFFAF0; }
[data-app="tiltrivals"]     { --app: #C9452A; --app-strong: #A3311A; --app-soft: rgba(229, 72, 42, 0.09);   --app-ink: #FFFAF0; }
[data-app="breeze-borough"] { --app: #2D57C4; --app-strong: #2548A4; --app-soft: rgba(45, 87, 196, 0.08);   --app-ink: #FFFFFF; }
[data-app="ordbro"]         { --app: #A94A33; --app-strong: #8E3C28; --app-soft: rgba(232, 149, 127, 0.16); --app-ink: #FFFFFF; }
[data-app="tosom"]          { --app: #6B5BA3; --app-strong: #5B4A91; --app-soft: rgba(107, 91, 163, 0.08);  --app-ink: #FFFFFF; }
[data-app="roofrelay"]      { --app: #B4500E; --app-strong: #FF7417; --app-soft: rgba(255, 116, 23, 0.10);  --app-ink: #1F2A3A; }

@media (prefers-color-scheme: dark) {
  [data-app="ccb"]            { --app: #A9CDB8; --app-strong: #C9E0D4; --app-soft: rgba(169, 205, 184, 0.14); --app-ink: #0B120E; }
  [data-app="carol"]          { --app: #93AEDC; --app-strong: #A8BFE4; --app-soft: rgba(147, 174, 220, 0.16); --app-ink: #0A0F1A; }
  [data-app="editme"]         { --app: #9DB0D6; --app-strong: #B2C2E0; --app-soft: rgba(157, 176, 214, 0.18); --app-ink: #0A0F1A; }
  [data-app="fyr"]            { --app: #F0B45A; --app-strong: #F5C77E; --app-soft: rgba(240, 180, 90, 0.14);  --app-ink: #1A1004; }
  [data-app="holdbreak"]      { --app: #E2917F; --app-strong: #EBA897; --app-soft: rgba(226, 145, 127, 0.12); --app-ink: #1A0806; }
  [data-app="ferrytale"]      { --app: #E8B13F; --app-strong: #F2C76A; --app-soft: rgba(232, 177, 63, 0.12);  --app-ink: #1C1204; }
  [data-app="bannerfall"]     { --app: #8FB4E8; --app-strong: #B5CEF1; --app-soft: rgba(143, 180, 232, 0.12); --app-ink: #0E1A2C; }
  [data-app="dummyrockets"]   { --app: #F2C230; --app-strong: #F6D66E; --app-soft: rgba(242, 194, 48, 0.13);  --app-ink: #1E1606; }
  [data-app="tiltrivals"]     { --app: #FF8A66; --app-strong: #FFA486; --app-soft: rgba(255, 106, 66, 0.13);  --app-ink: #1A0A05; }
  [data-app="breeze-borough"] { --app: #8FAEF5; --app-strong: #B8CCFA; --app-soft: rgba(143, 174, 245, 0.12); --app-ink: #0D1424; }
  [data-app="ordbro"]         { --app: #F0A892; --app-strong: #F5BBA8; --app-soft: rgba(240, 168, 146, 0.14); --app-ink: #1F0C06; }
  [data-app="tosom"]          { --app: #B5A8E0; --app-strong: #C7BDEA; --app-soft: rgba(181, 168, 224, 0.12); --app-ink: #1B1530; }
  [data-app="roofrelay"]      { --app: #FF9A55; --app-strong: #FF7417; --app-soft: rgba(255, 116, 23, 0.14);  --app-ink: #1F2A3A; }
}

/* ---- Grundlage ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: -0.005em;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: calc(var(--z-sheet) + 1);
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg);
  font-size: var(--fs-small); font-weight: 500;
}
.skip:focus { top: 12px; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ---- Kopfleiste --------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: var(--z-head);
  height: var(--head);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
html:not(.js) .top,
.top.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; font-size: 0.97rem; letter-spacing: -0.01em; white-space: nowrap;
}
.top__brand:hover { text-decoration: none; }
.top__mark { width: 24px; height: 24px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .top__mark { filter: invert(1); } }
.top__nav { display: flex; align-items: center; gap: clamp(2px, 1vw, 8px); }
.top__nav a {
  color: var(--ink-2); font-size: 0.9rem; padding: 8px 10px; border-radius: var(--r-pill);
  transition: color .2s ease, background-color .2s ease;
}
.top__nav a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.top__nav a[aria-current="true"] { color: var(--ink); }
@media (max-width: 460px) {
  .top__nav a[href$="#about"] { display: none; }
  .top__nav a { padding: 8px 9px; }
}
@media (max-width: 350px) {
  .top__brand { font-size: 0.9rem; gap: 8px; }
  .top__nav a { padding: 8px 6px; font-size: 0.86rem; }
}

/* ---- Knöpfe ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.98rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-strong) 88%, var(--ink)); }
.btn--quiet { color: var(--ink); background: var(--bg-2); }
.btn--quiet:hover { background: color-mix(in srgb, var(--bg-2) 80%, var(--ink) 8%); }
.btn--app { background: var(--app-strong); color: var(--app-ink); }
.btn--app:hover { background: color-mix(in srgb, var(--app-strong) 88%, var(--ink)); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: var(--bg-2); }
.btn__arrow { transition: transform .25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Hero --------------------------------------------------- */
.hero { padding-block: clamp(36px, 7vw, 104px) clamp(72px, 9vw, 136px); }
.hero__grid {
  display: grid; gap: clamp(44px, 6vw, 88px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero__text { container-type: inline-size; }
.hero__title {
  font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.032em;
  /* Größe aus der Spaltenbreite, damit „made in Copenhagen.“ auf jeder Breite eine Zeile bleibt. */
  font-size: clamp(2rem, 12cqi, 4.5rem);
}
.hero__title .line { display: block; }
.hero__title .serif { display: block; margin-top: 0.04em; font-size: 1.04em; color: var(--accent); white-space: nowrap; }
.hero__lead {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 34rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px); }

.shelf {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px) clamp(8px, 1.6vw, 20px);
  padding: clamp(22px, 3.2vw, 40px) clamp(14px, 2.6vw, 34px);
  background: var(--bg-2); border-radius: var(--r-xl);
}
@media (min-width: 600px) and (max-width: 979px) {
  .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shelf__icon { width: clamp(60px, 8.4vw, 80px); }
}
.shelf__link {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--ink-2); text-align: center;
}
.shelf__link:hover { text-decoration: none; color: var(--ink); }
.shelf__icon {
  width: clamp(54px, 6.4vw, 84px); aspect-ratio: 1; height: auto;
  border-radius: var(--r-icon); box-shadow: var(--shadow-icon);
  transition: transform .35s var(--ease-out);
}
.shelf__link:hover .shelf__icon { transform: translateY(-3px); }
.shelf__link:active .shelf__icon { transform: scale(0.96); }
.shelf__name {
  font-size: clamp(0.6875rem, 0.64rem + 0.18vw, 0.78rem); line-height: 1.25; letter-spacing: -0.003em;
  max-width: 11ch; text-wrap: balance;
}

/* ---- Abschnitte --------------------------------------------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section--tint { background: var(--bg-2); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.026em; }
.section__note { color: var(--ink-2); max-width: 40rem; }

/* ---- Katalog ------------------------------------------------ */
.apps__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 36px);
}
.apps__head .section__head { margin-bottom: 0; }

.filter {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill);
  background: var(--bg-2);
}
.filter[hidden] { display: none; }
.filter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 6px 16px; border-radius: var(--r-pill);
  font-size: 0.9rem; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.filter__btn:hover { color: var(--ink); }
.filter__btn[aria-pressed="true"] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(21, 23, 28, 0.10), 0 0 0 0.5px var(--line);
}
.filter__count { font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.catalog {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  column-gap: clamp(20px, 3vw, 44px);
}
.catalog__item { border-top: 1px solid var(--line); }
.catalog__item[hidden] { display: none; }

.app { scroll-margin-top: calc(var(--head) + 24px); }
.app__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 10px; margin-inline: -10px; border-radius: var(--r-md);
  color: inherit; transition: background-color .2s ease;
}
.app__row:hover { background: var(--surface-2); text-decoration: none; }
.app__row:hover .app__chev { transform: translateX(2px); color: var(--ink-2); }
.app__icon {
  width: 64px; height: 64px; border-radius: var(--r-icon); box-shadow: var(--shadow-icon);
}
.app__text { display: grid; gap: 2px; min-width: 0; }
.app__name { font-size: 1.06rem; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; }
.app__meta { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.45; }
.app__line {
  margin-top: 2px; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.12rem; line-height: 1.25; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app__chev { color: var(--ink-4); transition: transform .25s var(--ease-out), color .2s ease; }

.status { white-space: nowrap; }
.status::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; vertical-align: 0.12em; background: var(--ink-4);
}
.status--live { color: var(--accent); }
.status--live::before { background: var(--accent); }
.status--beta::before, .status--review::before, .status--dev::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* Details: ohne JavaScript unter der Zeile, mit JavaScript im Blatt. */
.app__detail { padding: 4px 0 28px; }
.js .catalog .app__detail { display: none; }
.catalog .detail__head, .catalog .detail__stage, .catalog .detail__tagline { display: none; }

.detail__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.detail__icon { width: 52px; height: 52px; border-radius: var(--r-icon); box-shadow: var(--shadow-icon); }
.detail__name { font-size: 1.25rem; letter-spacing: -0.016em; line-height: 1.2; }
.detail__meta { font-size: var(--fs-small); color: var(--ink-3); }

.detail__stage {
  display: flex; gap: clamp(12px, 1.6vw, 18px); justify-content: safe center;
  padding: clamp(20px, 3vw, 32px); background: var(--app-soft);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.detail__stage::-webkit-scrollbar { display: none; }
.detail__shot {
  flex: none; height: clamp(380px, 54vh, 540px); width: auto; scroll-snap-align: center;
  border-radius: clamp(14px, 1.6vw, 20px); box-shadow: var(--shadow-shot); background: var(--surface-2);
}
@media (max-width: 640px) {
  .detail__shot { height: min(66vh, 480px); }
}

.detail__body {
  display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .sheet .detail__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.detail__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink);
}
.detail__text { margin-top: 12px; color: var(--ink-2); max-width: 38rem; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.legal { display: grid; align-content: start; border-top: 1px solid var(--line); }
.legal__row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.legal__label { font-size: 0.875rem; color: var(--ink-3); }
.legal__links { display: flex; flex-wrap: wrap; gap: 6px; }
.legal__links a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px;
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.01em;
  transition: background-color .2s ease, color .2s ease;
}
.legal__links a:hover { background: var(--app-soft); color: var(--ink); text-decoration: none; }
.catalog .legal__links a:not(.legal__mail) { background: var(--surface); } /* ohne JavaScript auf getönter Fläche */
.legal__links a.legal__mail { background: none; padding-inline: 0; color: var(--accent); font-weight: 400; letter-spacing: 0; }
.legal__links a.legal__mail:hover { background: none; text-decoration: underline; }
@media (max-width: 420px) {
  .legal__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Blatt -------------------------------------------------- */
.sheet {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(14, 16, 20, 0.45); opacity: 0; transition: opacity .3s ease; }
.sheet.is-open::backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 50%; top: 50%;
  width: min(1060px, calc(100vw - 48px)); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sheet);
  overflow: hidden;
  transform: translate(-50%, calc(-50% + 18px)); opacity: 0;
  transition: transform .42s var(--ease-out), opacity .3s ease;
}
.sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
@media (prefers-color-scheme: dark) {
  .sheet::backdrop { background: rgba(0, 0, 0, 0.6); }
  .sheet__panel { box-shadow: 0 0 0 1px var(--line), var(--shadow-sheet); }
}
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 2.6vw, 28px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sheet__close {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink-2); transition: background-color .2s ease, color .2s ease;
}
.sheet__close:hover { color: var(--ink); background: color-mix(in srgb, var(--bg-2) 80%, var(--ink) 10%); }
.sheet .detail__body { padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(28px, 3vw, 36px); }
.sheet__nav {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 2.6vw, 28px); border-top: 1px solid var(--line);
}
.sheet__step {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill); color: var(--ink-2); font-size: 0.92rem; max-width: 48%;
  transition: background-color .2s ease, color .2s ease;
}
.sheet__step:hover { background: var(--bg-2); color: var(--ink); }
.sheet__step[data-step="1"] { flex-direction: row-reverse; padding: 6px 6px 6px 12px; margin-left: auto; }
.sheet__step img { width: 32px; height: 32px; border-radius: var(--r-icon); box-shadow: var(--shadow-icon); flex: none; }
.sheet__step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Pfeil steht außen: beim nächsten ist die Reihenfolge umgedreht, ::before landet also rechts. */
.sheet__step::before { color: var(--ink-3); font-size: 1.15rem; line-height: 1; }
.sheet__step[data-step="-1"]::before { content: "‹"; margin-left: 6px; }
.sheet__step[data-step="1"]::before { content: "›"; margin-right: 6px; }
.sheet__step[data-step="-1"] { padding-left: 4px; }
.sheet__step[data-step="1"] { padding-right: 4px; }
.detail__name:focus, .detail__name:focus-visible { outline: none; } /* nur Ziel für den Fokus beim Öffnen, nicht bedienbar */
.sheet__step[hidden] { display: none; }

@media (max-width: 700px) {
  .sheet__panel {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%); opacity: 1;
    transition: transform .45s var(--ease-out);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet.is-open .sheet__panel { transform: translateY(0); }
  .sheet__top::before {
    content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 5px;
    margin-left: -18px; border-radius: 3px; background: var(--line-2);
  }
}

/* ---- About -------------------------------------------------- */
.about__grid {
  display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
}
.about__body { display: grid; gap: 18px; margin-top: clamp(20px, 2.6vw, 30px); max-width: 38rem; color: var(--ink-2); font-size: 1.06rem; }
.facts { border-top: 1px solid var(--line-2); }
.facts__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--ink-3); font-size: 0.9rem; }
.facts dd { color: var(--ink); }
.facts dd span { display: block; color: var(--ink-2); font-size: 0.95rem; }
.facts dd .facts__total { color: var(--ink); font-size: inherit; margin-bottom: 2px; }
@media (max-width: 420px) { .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---- Kontakt ------------------------------------------------ */
.contact__inner { display: grid; gap: 18px; justify-items: start; }
.contact__text { color: var(--ink-2); max-width: 36rem; font-size: 1.06rem; }
.contact__mail {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 500; letter-spacing: -0.024em;
  line-height: 1.15; color: var(--ink); overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 4px;
}
.contact__mail:hover { text-decoration: none; color: var(--accent); }
.contact__addr { font-size: 0.95rem; color: var(--ink-3); }

/* ---- Fuß ---------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--ink-3); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---- Rechtstexte der Seite ---------------------------------- */
.doc { padding-block: clamp(32px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.doc__inner { max-width: 46rem; }
.doc__lang { display: flex; gap: 6px; margin-bottom: 28px; }
.doc__lang a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-small); font-weight: 500;
}
.doc__lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.doc__lang a:hover { text-decoration: none; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; }
.doc__updated { margin-top: 12px; color: var(--ink-3); font-size: 0.95rem; }
.doc h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); letter-spacing: -0.016em; line-height: 1.2; margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin-top: 28px; }
.doc p, .doc ul, .doc address { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li { margin-top: 6px; }
.doc address { font-style: normal; color: var(--ink); line-height: 1.7; }
.doc strong { font-weight: 500; color: var(--ink); }

.apptable { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 0.95rem; }
.apptable th, .apptable td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.apptable thead th { font-size: var(--fs-small); font-weight: 400; color: var(--ink-3); padding-top: 0; }
.apptable tbody th { font-weight: 500; white-space: nowrap; }
.apptable tbody th a { color: var(--ink); }
.apptable__label { display: none; }
.apptable__none { color: var(--ink-3); font-size: var(--fs-small); }
@media (max-width: 640px) {
  .apptable thead { display: none; }
  .apptable, .apptable tbody, .apptable tr, .apptable th, .apptable td { display: block; width: 100%; }
  .apptable tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .apptable th, .apptable td { border: 0; padding: 4px 0; }
  .apptable td { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .apptable__label { display: block; color: var(--ink-3); font-size: var(--fs-small); }
}

/* ---- 404 ---------------------------------------------------- */
.lost { min-height: calc(100vh - var(--head) - 90px); display: grid; align-content: center; padding-block: 64px; }
.lost .lost__code { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(4rem, 3rem + 6vw, 7.5rem); line-height: 1; color: var(--accent); }
.lost h1 { margin-top: 18px; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.028em; line-height: 1.08; max-width: 18ch; }
.lost p { margin-top: 14px; color: var(--ink-2); max-width: 32rem; }
.lost .hero__actions { margin-top: 28px; }

/* ---- Bewegung beim Laden ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .anim .rise { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1s); }
  .anim .shelf__item { animation: pop .7s var(--ease-out) both; animation-delay: calc(0.22s + var(--i, 0) * 0.035s); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop  { from { opacity: 0; transform: translateY(10px) scale(0.94); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .sheet__panel { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .sheet__panel { transform: none; }
}

@media print {
  .top, .sheet, .filter, .hero__actions, .foot__top { display: none !important; }
  .js .catalog .app__detail { display: block; }
}
