@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Cosmic Studio – Source of Truth: DESIGN.md
   Schriften: Cinzel (Brand), Libre Caslon Display (Display), Instrument Sans (UI/Body), JetBrains Mono (Code)
   Fonts werden per <link> in den HTML-Seiten geladen (kein @import – bessere Performance).
   Libre Caslon Display hat nur Regular (400) – Display-Headlines nie fett synthetisieren. */

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Instrument Sans, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/*
   * Token-Werte spiegeln DESIGN.md (Nacht & Papier).
   * Variablen-Namen bleiben aus Kompatibilitätsgründen erhalten.
   * Bei Änderungen DESIGN.md UND tailwind.config.js synchron halten.
   *
   * Grundsatz: neutrale Flächen, EINE Aktionsfarbe (Aurum).
   * Farbe darüber hinaus tragen nur Inhalte: Logo, Radix, Elemente, Status.
   */

:root {
  /* === Surface stack (Nacht) ===================================== */
  --background: 240 6% 4%;
  /* Ink         #0A0A0B */
  --surface: 240 5% 8%;
  /* Card        #131315 */
  --surface-raised: 240 5% 12%;
  /* Hover/Pop   #1D1D20 */
  --surface-sunken: 240 8% 2%;
  /* Inputs      #050506 */
  /* === Text ====================================================== */
  --foreground: 40 20% 96%;
  /* Papier      #F7F5F2 */
  --muted-foreground: 240 4% 66%;
  /* #A5A5AC */
  --subtle-foreground: 240 3% 46%;
  /* #727278 */
  /* === Aktion: Aurum (einzige Interaktionsfarbe) ================= */
  --primary: 40 78% 64%;
  /* Aurum  #EBBA5B */
  --primary-hover: 40 86% 71%;
  /* #F3CB77 */
  --primary-foreground: 240 6% 6%;
  /* Ink auf Aurum */
  --primary-container: 40 40% 12%;
  /* #2B2312 */
  --on-primary-container: 40 80% 80%;
  /* Tertiary ist bewusst neutral: keine zweite Akzentfarbe. */
  --tertiary: 240 5% 72%;
  --tertiary-foreground: 240 6% 6%;
  --tertiary-container: 240 5% 14%;
  --on-tertiary-container: 240 5% 86%;
  --accent: var(--primary);
  --accent-foreground: var(--primary-foreground);
  --accent-container: var(--primary-container);
  --on-accent-container: var(--on-primary-container);
  /* === Semantic component tokens ================================= */
  --card: var(--surface);
  --card-foreground: var(--foreground);
  --popover: var(--surface-raised);
  --popover-foreground: var(--foreground);
  --secondary: var(--surface-raised);
  --secondary-foreground: var(--foreground);
  --muted: 240 5% 10%;
  --border: 240 4% 17%;
  /* Haarlinie   #2A2A2D */
  --border-strong: 240 4% 28%;
  /* #444449 */
  --input: var(--surface-sunken);
  --ring: var(--primary);
  /* === Bildmarke (Me · We · How) – nur für .brand-mark ============ */
  --mark-aurum: 40 78% 64%;
  --mark-lilac: 262 55% 74%;
  --mark-star: 42 100% 92%;
  --mark-fill: 0.2;
  --mark-glow: 0.3;
  --horizon-glow: 0.4;
  --brand-tint: 1;
  --rt-shade: 0%;
  --horizon-line: 0.9;
  /* === State ==================================================== */
  --destructive: 4 62% 52%;
  /* #D04A3F */
  --destructive-foreground: 0 0% 100%;
  --destructive-hover: 4 62% 44%;
  --destructive-container: 4 45% 13%;
  --on-destructive-container: 4 80% 84%;
  --success: 150 45% 58%;
  /* #62C594 */
  --success-container: 150 40% 11%;
  --warning: 28 85% 62%;
  /* Bernstein, klar von Aurum getrennt */
  --warning-container: 28 55% 12%;
  --info: 205 60% 66%;
  /* #7BB6DD */
  --info-container: 205 45% 12%;
  /* === Elemente (Daten, nie UI-Chrome) ========================== */
  --element-fire: 12 78% 62%;
  --element-earth: 95 32% 55%;
  --element-air: 48 80% 68%;
  --element-water: 205 65% 62%;
  /* === Form & Tiefe ============================================= */
  --radius-sm: 8px;
  /* kompakte Bedienelemente */
  --radius-md: 12px;
  /* Inputs, innere Kacheln */
  --radius-lg: 18px;
  /* Karten */
  --radius-pill: 9999px;
  /* Aktionen */
  --shadow-float: 0 24px 60px -28px rgb(0 0 0 / 0.85);
  /* nur Popover/Modal */
  --bar-blur: saturate(180%) blur(20px);
  color-scheme: dark;
  /* === Legacy aliases (in altem CSS verwendet) ================== */
  --paper: var(--surface);
  --space: var(--background);
  --text-primary-light: var(--foreground);
  --text-secondary-light: var(--muted-foreground);
  --text-primary-dark: var(--foreground);
  --text-secondary-dark: var(--muted-foreground);
  --primary-violet: var(--tertiary);
  --accent-gold: var(--primary);
  --accent-glow: var(--primary);
  --glass-bg: 240 5% 8% / 0.8;
  --cosmic-deep: var(--background);
  --cosmic-night: var(--surface);
  --cosmic-iris: var(--primary);
  --cosmic-lilac: var(--tertiary);
  --cosmic-amber: var(--primary);
  --cosmic-teal: var(--info);
  /* === Typography ================================================ */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Libre Caslon Display', Georgia, serif;
  --font-brand: 'Cinzel', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

/* Dunkel ist das Standard-Theme. Umschalter: assets/scripts/theme.js */

/*
   * Nacht-Insel: dunkle Bühne innerhalb einer Papier-Fläche
   * (z. B. Report-Vorschau oder Globus auf der Startseite).
   */

/*
   * Papier: helle Fläche für Lesetexte und abwechselnde Landing-Kacheln.
   * Setzt nur Tokens um – Komponenten darin passen sich von selbst an.
   */

/* Dieselben Tokens tragen das helle Theme (html[data-theme="light"]). */

:root[data-theme="light"],
  .surface-paper {
  --background: 40 24% 95%;
  /* Papier      #F5F3EE */
  --surface: 40 30% 98%;
  /* #FBFAF8 */
  --surface-raised: 0 0% 100%;
  --surface-sunken: 40 18% 91%;
  --foreground: 240 6% 11%;
  /* Ink         #1B1B1E */
  --muted-foreground: 240 3% 36%;
  --subtle-foreground: 240 3% 50%;
  --primary: 36 88% 27%;
  /* Bronze – Aurum auf Papier  #82530A */
  --primary-hover: 36 88% 22%;
  --primary-foreground: 40 30% 98%;
  --primary-container: 40 60% 88%;
  --on-primary-container: 36 88% 20%;
  --tertiary: 240 3% 36%;
  --tertiary-container: 40 18% 91%;
  --on-tertiary-container: 240 6% 11%;
  --muted: 40 18% 91%;
  --border: 40 10% 84%;
  --border-strong: 40 8% 70%;
  --destructive: 4 65% 42%;
  --success: 150 55% 28%;
  --warning: 28 90% 34%;
  --info: 205 65% 34%;
  --mark-aurum: 36 80% 40%;
  --mark-lilac: 262 36% 50%;
  --mark-star: 36 88% 27%;
  --mark-fill: 0.16;
  --mark-glow: 0;
  --horizon-glow: 0;
  --brand-tint: 0.55;
  --rt-shade: 42%;
  --horizon-line: 0.55;
}

.surface-paper {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  color-scheme: light;
}

:root[data-theme="light"] {
  color-scheme: light;
  --shadow-float: 0 20px 48px -24px rgb(40 30 10 / 0.28);
}

/* Im hellen Theme ist die Seite selbst Papier – Blätter heben sich weiß ab. */

:root[data-theme="light"] .surface-paper {
  --background: 0 0% 100%;
  --surface: 40 30% 98%;
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}

:root[data-theme="light"] .landing-page .surface-paper {
  --background: 40 24% 95%;
  box-shadow: none;
}

/* Die öffentliche Startseite bleibt immer in ihrer Nacht-/Papier-Abfolge. */

:root[data-theme="light"] body:has(#landing-page-container:not(.hidden)) {
  color-scheme: dark;
  --background: 240 6% 4%;
  --surface: 240 5% 8%;
  --surface-raised: 240 5% 12%;
  --surface-sunken: 240 8% 2%;
  --foreground: 40 20% 96%;
  --muted-foreground: 240 4% 66%;
  --subtle-foreground: 240 3% 46%;
  --primary: 40 78% 64%;
  --primary-hover: 40 86% 71%;
  --primary-foreground: 240 6% 6%;
  --primary-container: 40 40% 12%;
  --on-primary-container: 40 80% 80%;
  --tertiary: 240 5% 72%;
  --tertiary-container: 240 5% 14%;
  --on-tertiary-container: 240 5% 86%;
  --muted: 240 5% 10%;
  --border: 240 4% 17%;
  --border-strong: 240 4% 28%;
  --destructive: 4 62% 52%;
  --success: 150 45% 58%;
  --warning: 28 85% 62%;
  --info: 205 60% 66%;
  --mark-aurum: 40 78% 64%;
  --mark-lilac: 262 55% 74%;
  --mark-star: 42 100% 92%;
  --mark-fill: 0.2;
  --mark-glow: 0.3;
  --horizon-glow: 0.4;
  --brand-tint: 1;
  --rt-shade: 0%;
  --horizon-line: 0.9;
  --shadow-float: 0 24px 60px -28px rgb(0 0 0 / 0.85);
}

/*
   * Aliasse wie --input: var(--surface-sunken) werden beim Berechnen auf
   * dem definierenden Element substituiert und dann als fertiger Wert
   * vererbt. Ein Nachfahre, der nur --surface-sunken umsetzt (Landing bei
   * html[data-theme=light], .surface-paper, .surface-night), würde sonst
   * z. B. hellen Input-Hintergrund mit Nacht-Vordergrund mischen.
   * Deshalb hier auf jedem Theme-Scope neu binden.
   */

:root,
  :root[data-theme="light"],
  .surface-paper,
  .surface-night,
  .landing-night,
  :root[data-theme="light"] body:has(#landing-page-container:not(.hidden)) {
  --input: var(--surface-sunken);
  --card: var(--surface);
  --card-foreground: var(--foreground);
  --popover: var(--surface-raised);
  --popover-foreground: var(--foreground);
  --secondary: var(--surface-raised);
  --secondary-foreground: var(--foreground);
  --ring: var(--primary);
  --accent: var(--primary);
  --accent-foreground: var(--primary-foreground);
  --accent-container: var(--primary-container);
  --on-accent-container: var(--on-primary-container);
}

*{
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body{
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-feature-settings: 'ss01' 1;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  background-color: hsl(var(--background));
}

:root {
  --mobile-header-offset: calc(4.0625rem + env(safe-area-inset-top, 0px));
  --app-bottom-nav-height: 0px;
}

body.has-bottom-nav {
  --app-bottom-nav-height: calc(4.05rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  body.has-bottom-nav {
    --app-bottom-nav-height: 0px;
  }
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Display-Serif: Libre Caslon Display nur Regular (400). Hierarchie über Größe/Tracking. */

h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.font-display,
  .font-serif {
  font-family: var(--font-display);
  font-weight: 400 !important;
  letter-spacing: -0.015em;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

::-moz-selection {
  background-color: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}

::selection {
  background-color: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border-strong));
  border: 3px solid hsl(var(--background));
  border-radius: 9999px;
}

.\!container{
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.container{
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

@media (min-width: 1400px){
  .\!container{
    max-width: 1400px !important;
  }

  .container{
    max-width: 1400px;
  }
}

/* Icons */

.icon-sm{
  height: 1rem;
  width: 1rem;
}

.icon-md{
  height: 1.25rem;
  width: 1.25rem;
}

/*
   * Buttons – DESIGN.md → components.button-*
   * Aktionen sind Pillen. Primär = Aurum-Fläche mit Ink-Schrift,
   * sekundär = Haarlinien-Pille, tertiär = reiner Text.
   * Kein Schatten; Druckzustand ist scale(0.97). Der Aurum-Schliff der
   * Primär-Pille liegt in 98-brand-accents.css.
   */

.\!btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.\!btn:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.\!btn {
  border-radius: var(--radius-pill) !important;
  font-size: 0.9375rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn {
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.\!btn:focus-visible {
  outline: 2px solid hsl(var(--ring)) !important;
  outline-offset: 2px !important;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.\!btn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.\!btn:disabled{
  cursor: not-allowed;
}

.btn:disabled{
  cursor: not-allowed;
}

.\!btn:disabled {
  opacity: 0.38 !important;
  transform: none !important;
}

.btn:disabled {
  opacity: 0.38;
  transform: none !important;
}

.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-primary:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn-primary {
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary:disabled{
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.btn-primary {
  padding: 0.6875rem 1.375rem;
  min-height: 2.75rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary:hover:not(:disabled) {
  background-color: hsl(var(--primary-hover));
}

.btn-primary-lg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-primary-lg:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn-primary-lg {
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary-lg:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary-lg:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary-lg:disabled{
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.btn-primary-lg {
  padding: 0.6875rem 1.375rem;
  min-height: 2.75rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary-lg:hover:not(:disabled) {
  background-color: hsl(var(--primary-hover));
}

@media (max-width: 640px) {
  .self-profile-gate__empty .btn-primary-lg {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 639px) {
  
    .admin-save-bar > .btn-primary-lg,
    .admin-settings-block__row > .btn-primary-lg {
    width: 100%;
  }
}

.profile-studio-state .btn-primary-lg {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .profile-hero__actions .btn-primary-lg {
    order: -1;
    width: 100%;
  }
}

.landing-page .btn-primary-lg .loading-spinner-sm {
  margin-right: 0;
  border-color: hsl(var(--primary-foreground) / 0.25);
  border-top-color: hsl(var(--primary-foreground));
}

@media (max-width: 640px) {
  
    .settings-group__footer > .btn-primary-lg {
    width: 100%;
  }
}

.hero-signup__fields .btn-primary-lg {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.btn-primary-lg {
  background-image: linear-gradient(100deg, hsl(var(--primary-hover)), hsl(var(--primary)) 62%);
}

.btn-primary-lg:hover:not(:disabled) {
  background-image: none;
}

.dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary-lg {
  position: relative;
  overflow: hidden;
}

.dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary-lg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, hsl(0 0% 100% / 0) 35%, hsl(0 0% 100% / 0.45) 50%, hsl(0 0% 100% / 0) 65%);
  transform: translateX(-120%);
  animation: next-report-sheen 4.5s ease-in-out 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  
    .dash-next-report .dash-next-report__cta .btn-primary-lg::after {
    animation: none;
  }

  /* Ohne Bewegung: ruhige, vollständige Goldkante statt Lichtlauf */

  
    .dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary-lg::after {
    display: none;
  }

  
    .dash-next-report .dash-next-report__cta .btn-primary-lg::after {
    animation: none;
  }

  /* Ohne Bewegung: ruhige, vollständige Goldkante statt Lichtlauf */

  
    .dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary-lg::after {
    display: none;
  }
}

.btn-primary-lg {
  padding: 0.875rem 1.75rem;
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-outline:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn-outline {
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-outline:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-outline:disabled{
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.btn-outline {
  padding: 0.6875rem 1.375rem;
  min-height: 2.75rem;
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border-strong));
}

.btn-outline:hover:not(:disabled) {
  border-color: hsl(var(--foreground) / 0.55);
  background: hsl(var(--foreground) / 0.05);
}

.btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-ghost:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn-ghost {
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-ghost:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-ghost:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-ghost:disabled{
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.btn-ghost {
  padding: 0.5rem 0.875rem;
  min-height: 2.25rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover:not(:disabled) {
  color: hsl(var(--foreground));
  background-color: hsl(var(--foreground) / 0.06);
}

/* Kompakte Variante für Toolbars und Tabellenzeilen */

.btn-sm {
  padding: 0.4375rem 0.875rem;
  min-height: 2rem;
  font-size: 0.8125rem;
}

/* Textlink – die Aktionsfarbe ohne Fläche */

.text-link {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 160ms ease;
}

.text-link:hover {
  color: hsl(var(--primary-hover));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/*
   * Eyebrow – Mono-Notation wie in einer Ephemeride.
   * Ersetzt weit gesperrte Sans-Versalien.
   */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Trenner unter dem Seitenkopf: schlichte Haarlinie. */

.degree-rule {
  display: block;
  height: 0;
  border: 0;
  border-top: 1px solid hsl(var(--border));
}

.site-account-menu{
  position: relative;
}

.site-account-trigger{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.site-account-trigger:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.site-account-trigger {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
  transition: background-color 160ms ease, border-color 160ms ease;
}

.site-account-trigger__stack{
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.25;
}

.site-account-trigger__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.site-account-trigger__name{
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-account-dropdown{
  visibility: hidden;
  position: absolute;
  right: 0px;
  margin-top: 0.5rem;
  display: flex;
  width: 16rem;
  --tw-translate-y: 0.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  opacity: 0;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border-strong));
  background: hsl(var(--surface-raised));
  box-shadow: var(--shadow-float);
  pointer-events: none;
  z-index: 50;
}

.site-account-menu.is-open .site-account-dropdown{
  visibility: visible;
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  opacity: 1;
  pointer-events: auto;
}

.site-account-menu.is-open .site-account-trigger svg {
  transform: rotate(180deg);
}

.site-account-trigger svg {
  transition: transform 0.2s ease;
}

.site-account-user__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.site-account-user__email{
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.site-account-balance{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.site-account-balance__label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.site-account-balance__value{
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.site-account-actions{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-account-dropdown__link{
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border-radius: var(--radius-sm);
}

/* App Shell */

.app-shell{
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  max-width: 100vw;
  box-sizing: border-box;
}

/* CSS-Sternenhimmel (ohne WebGL) — wiederverwendet Landing-Stern-Layer */

.app-cosmos {
  display: none;
}

.app-shell--cosmos > .app-main {
  z-index: 1;
}

.app-shell--cosmos > .app-main::before {
  content: none;
}

@media (min-width: 1024px) {
  .app-shell--cosmos > .app-sidebar {
    background: hsl(var(--background));
  }
}

.app-shell--cosmos > .app-main > .app-topbar {
  background: hsl(var(--background) / 0.8);
}

@media (min-width: 1024px) {
  .app-shell {
    flex-direction: row;
    min-height: 100vh;
    min-height: 100dvh;
    /* Kein overflow: hidden - damit die gesamte Seite scrollbar ist */
  }
}

@media (max-width: 1023px) {
  .app-shell {
    overflow-x: hidden;
  }
}

.app-sidebar{
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-sidebar__content{
  display: flex;
  min-height: 0px;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
}

.app-sidebar__meta {
  flex-shrink: 0;
  padding: 0.875rem 0.75rem 0;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 1024px) {
  .app-sidebar{
    width: 18rem;
    border-bottom-width: 0px;
    border-right: 1px solid hsl(var(--border));
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    flex-shrink: 0;
    z-index: 40;
  }

  .app-sidebar__content{
    padding-right: 0px;
  }
}

/* Mobile: Sidebar standardmäßig versteckt */

@media (max-width: 1023px) {
  .app-sidebar {
    position: fixed;
    top: var(--mobile-header-offset);
    left: 0;
    bottom: var(--app-bottom-nav-height);
    width: min(320px, 85vw);
    max-width: 90vw;
    height: auto;
    min-height: 0;
    transform: translateX(-100%);
    border-right: 1px solid hsl(var(--border));
    border-radius: 0;
    padding: 0.5rem 1rem 1rem;
    z-index: 120;
    background: hsl(var(--background));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    box-sizing: border-box;
    gap: 0.45rem;
  }

  .app-sidebar.is-mobile-nav-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  body.has-bottom-nav .app-main {
    padding-bottom: var(--app-bottom-nav-height);
  }
}

/* Bottom navigation — nur Mobile / App-Chrome */

.app-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.15rem;
    min-height: 3.55rem;
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background) / 0.82);
    backdrop-filter: var(--bar-blur);
    -webkit-backdrop-filter: var(--bar-blur);
  }

  .app-bottom-nav__item {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.25rem 0.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .app-bottom-nav__item:hover,
    .app-bottom-nav__item:focus-visible {
    color: hsl(var(--foreground));
    outline: none;
  }

  .app-bottom-nav__item.is-active {
    color: hsl(var(--primary));
  }

  .app-bottom-nav__item--magic {
    position: relative;
  }

  .app-bottom-nav__item--magic .app-bottom-nav__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
  }

  .app-bottom-nav__item--magic.is-active {
    background: transparent;
  }

  .app-bottom-nav__item--magic.is-active .app-bottom-nav__icon {
    background: hsl(var(--primary-hover));
  }

  .app-bottom-nav__icon {
    font-size: 1.35rem;
    line-height: 1;
  }

  .app-bottom-nav__label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Brand wordmark — Cinzel lockup (landing, sidebar, mobile, auth) */

.brand-wordmark {
  font-family: var(--font-brand);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  display: inline-flex;
  align-items: baseline;
  margin: 0;
}

.brand-wordmark--md {
  font-size: 1.125rem;
  letter-spacing: 0.14em;
}

.brand-wordmark--sm {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-wordmark__dot {
  color: hsl(var(--accent));
  letter-spacing: 0;
  margin: 0 0.04em;
  font-weight: 400;
}

.brand-wordmark__tagline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.auth-loading__brand {
  margin-top: 0.75rem;
}

.auth-loading__brand .brand-wordmark {
  justify-content: center;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
}

.app-sidebar__brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.app-sidebar__brand:hover{
  opacity: 0.8;
}

.app-sidebar__brand {
  padding: 0 0.5rem 0.5rem;
  text-decoration: none;
  color: inherit;
}

.app-sidebar__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}

.app-sidebar__logo .brand-mark {
  --mark-size: 2.5rem;
}

.app-sidebar__title{
  color: hsl(var(--foreground));
}

.app-sidebar__subtitle {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.app-nav{
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 1024px) {
  .app-nav{
    margin-left: 0px;
    margin-right: 0px;
    flex-direction: column;
    overflow: visible;
    padding-left: 0px;
    padding-right: 0px;
    gap: 2px;
  }
}

.app-nav__link{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

.app-nav__link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.05);
}

.app-nav__link.is-active {
  color: hsl(var(--foreground));
  font-weight: 600;
  background: hsl(var(--surface-raised));
}

/* Magicspace ist der Ort der Aktion: Aurum-Symbol, keine Effekte. */

.app-nav__link--magicspace {
  color: hsl(var(--foreground));
}

.app-nav__link--magicspace .app-nav__icon {
  color: hsl(var(--primary));
}

.app-nav__icon{
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.25rem;
  color: currentColor;
  background: none;
  border: 0;
}

.app-nav__label{
  min-width: 0px;
  flex: 1 1 0%;
  white-space: nowrap;
}

.app-nav__link.is-active .app-nav__icon {
  color: hsl(var(--primary));
}

/* ===================================
     ADMIN NAVIGATION LINK - Besonderer Style
     =================================== */

.app-nav__link--admin {
  position: relative;
  margin-top: 0.75rem;
}

.app-nav__link--admin::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: hsl(var(--border));
}

.app-sidebar__panel {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

/* Credits-Feld: Mono-Beschriftung, Caslon-Ziffer, Aufladen als Textlink.
     Das Markup steht in jeder Seite – deshalb hier über Struktur-Selektoren. */

.app-sidebar__panel > p:first-child {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.app-sidebar__panel > p:last-child {
  display: none;
}

.app-sidebar__panel .app-sidebar__plan-value {
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-sidebar__panel .btn-ghost {
  min-height: 0;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: transparent;
}

.app-sidebar__panel .btn-ghost:hover {
  color: hsl(var(--primary-hover));
  background: transparent;
}

.app-sidebar__dock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.app-sidebar__invite {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.app-sidebar__invite.hidden {
  display: none;
}

@media (hover: hover) {
  .app-sidebar__invite:hover {
    border-color: hsl(var(--border-strong));
    background: hsl(var(--surface-raised));
  }
}

.app-sidebar__invite.is-active {
  border-color: hsl(var(--primary) / 0.5);
}

.app-sidebar__invite-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: hsl(var(--primary));
}

.app-sidebar__invite-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.app-sidebar__invite-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.app-sidebar__invite-body {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: hsl(var(--muted-foreground));
}

.app-sidebar__invite-chevron {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
}

.app-sidebar .btn-outline{
  width: 100%;
  justify-content: space-between;
}

.app-sidebar__account {
  flex-shrink: 0;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: transparent;
}

.app-sidebar__account .site-account-trigger{
  width: 100%;
  justify-content: space-between;
}

.app-sidebar__account .site-account-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  top: auto;
  bottom: calc(100% + 0.5rem);
  transform: translateY(0.5rem);
}

.app-sidebar__account > p:first-child {
  display: none;
}

.app-sidebar__account .site-account-menu.is-open .site-account-dropdown {
  transform: translateY(0);
}

.mobile-nav-toggle .material-symbols-outlined {
  font-size: 1.25rem;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--mobile-header-offset);
  bottom: var(--app-bottom-nav-height);
  left: min(320px, 85vw);
  width: calc(100vw - min(320px, 85vw));
  background: hsl(var(--background) / 0.6);
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
  visibility: hidden;
}

@media (max-width: 1023px) {
  body.mobile-nav-open {
    overflow: hidden;
  }
}

.app-sidebar__invite.mobile-nav-close {
  display: none;
}

.report-tabs-row.mobile-nav-close {
  display: none;
}

.report-sheets.mobile-nav-close {
  display: none;
}

.report-inline-error.mobile-nav-close {
  display: none;
}

.report-block.mobile-nav-close {
  display: none;
}

.report-hint.mobile-nav-close {
  display: none;
}

.report-error.mobile-nav-close {
  display: none;
}

.dash-next-report.mobile-nav-close {
  display: none;
}

.dashboard-invite-cta.mobile-nav-close {
  display: none;
}

.dash-mondkalender.mobile-nav-close {
  display: none;
}

.self-profile-gate.mobile-nav-close {
  display: none;
}

.self-profile-gate__empty.mobile-nav-close,
  .self-profile-gate__picker.mobile-nav-close {
  display: none;
}

.invite-share-native.mobile-nav-close {
  display: none;
}

.admin-denied.mobile-nav-close {
  display: none;
}

body.magicspace-page:has(#magicspace-checkout-bar.mobile-nav-close) .magicspace-main,
  .magicspace-main:has(#report-builder.mobile-nav-close) {
  padding-bottom: 0;
}

.magicspace-checkout-bar.mobile-nav-close {
  display: none;
}

.admin-reports-panel.mobile-nav-close {
  display: none;
}

.reports-empty.mobile-nav-close {
  display: none;
}

.report-tab-panel.mobile-nav-close {
  display: none;
}

.profile-form__option-detail.mobile-nav-close {
  display: none;
}

.profile-form__loader.mobile-nav-close {
  display: none;
}

.profile-studio-state.mobile-nav-close {
  display: none;
}

body:has(#landing-page-container.mobile-nav-close) .cosmos-host {
  visibility: hidden;
}

.landing-onboarding__sign.mobile-nav-close {
  display: none;
}

@media (max-width: 1023px) {
  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.mobile-nav-close {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.mobile-nav-close {
    display: none;
  }

  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.mobile-nav-close {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.mobile-nav-close {
    display: none;
  }
}

.audiobook-section.mobile-nav-close {
  display: none;
}

.mobile-nav-close{
  display: none;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: hsl(var(--foreground));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.auth-loading.mobile-nav-close {
  display: none;
}

.page-loading.mobile-nav-close {
  display: none;
}

.report-processing.mobile-nav-close {
  display: none;
}

.astrocart-preview.mobile-nav-close {
  display: none;
}

.mobile-nav-close {
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
}

@media (max-width: 1023px) {
  .mobile-nav-close{
    display: inline-flex;
  }
}

.mobile-nav-close .material-symbols-outlined {
  font-size: 1.25rem;
}

body.mobile-nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.app-sidebar__plan-value {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 400;
  color: hsl(var(--foreground));
}

.app-main{
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}

@media (min-width: 1024px) {
  .app-main {
    flex: 1 1 auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin-left: 18rem;
    /* 288px = w-72 für die fixed sidebar */
    overflow-x: hidden;
    /* Kein overflow-y: auto - der ganze Body scrollt */
  }
}

@media (max-width: 1023px) {
  .app-main {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

.app-main::before {
  content: none;
}

.app-main > * {
  position: relative;
  z-index: 1;
}

/* --- Footer ------------------------------------------------------
     Ein Aufbau für Startseite, App und Rechtsseiten, drei Ebenen:
       1. Social (wichtigste Ebene): beschriftete Schaltflächen
       2. Rechtliches: ruhige Textlinks
       3. Copyright: kleinste Zeile
     Mobil gestapelt und zentriert, ab 768px Social links,
     Rechtliches und Copyright rechts untereinander. */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
}

/* Opak – der Sternenhimmel darf hier nicht durchscheinen */

.site-footer--landing {
  margin-top: 0;
  background: hsl(var(--background));
}

body.has-bottom-nav .site-footer--app {
  padding-bottom: 1.25rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer__inner--landing {
  max-width: 64rem;
}

.site-footer__inner--app {
  max-width: none;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 22rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-pill);
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__social a:hover,
  .site-footer__social a:focus-visible {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* Unter 768px bewusst gestapelt: drei Labels nebeneinander quetschen sonst */

@media (max-width: 359px) {
  .site-footer__social a {
    gap: 0.375rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }
}

.site-footer__social svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  color: hsl(var(--muted-foreground));
}

.site-footer__links a,
  .site-footer__links button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
  .site-footer__links button:hover {
  color: hsl(var(--foreground));
}

/* Im Markup steht das Copyright vor den Links, sichtbar immer zuletzt */

.site-footer__copyright {
  order: 3;
  margin: 0;
  color: hsl(var(--subtle-foreground));
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 1.25rem clamp(1.25rem, 3vw, 2rem) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "social links"
        "social copyright";
    align-items: center;
    justify-items: end;
    gap: 0 2rem;
    text-align: right;
  }

  .site-footer__social {
    grid-area: social;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
  }

  .site-footer__social a {
    flex: 0 0 auto;
    min-height: 2.5rem;
  }

  .site-footer__links {
    grid-area: links;
    justify-content: flex-end;
  }

  .site-footer__links a,
    .site-footer__links button {
    min-height: 2rem;
  }

  .site-footer__copyright {
    grid-area: copyright;
  }
}

.app-topbar{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: var(--bar-blur);
  -webkit-backdrop-filter: var(--bar-blur);
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

@media (min-width: 1024px) {
  .app-topbar {
    padding: 0.75rem 2.5rem;
  }
}

@media (max-width: 640px) {
  .app-topbar {
    padding: 0.75rem 1rem;
  }

  /* Topbar-Suche auf Mobile ausblenden — mehr Platz für Content */

  .app-topbar .app-search {
    display: none;
  }

  /* Topbar komplett ausblenden, wenn nur die Suche drin ist */

  .app-topbar:has(.app-toolbar > .app-search:only-child) {
    display: none;
  }
}

.app-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .app-toolbar{
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}

.app-search{
  position: relative;
  width: 100%;
  flex: 1 1 0%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .app-search{
    width: 100%;
    flex: none;
  }
}

.app-search input{
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
  background-color: hsl(var(--surface-sunken));
  border: 1px solid hsl(var(--border-strong));
  color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.app-search input[type="date"],.app-search input[type="time"],.app-search input[type="datetime-local"],.app-search input[type="month"],.app-search input[type="week"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  overflow: hidden;
}

.app-search input[type="date"]::-webkit-datetime-edit,.app-search input[type="time"]::-webkit-datetime-edit,.app-search input[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  width: auto;
  padding: 0;
  color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
}

.app-search input[type="date"]::-webkit-date-and-time-value,.app-search input[type="time"]::-webkit-date-and-time-value,.app-search input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

.app-search input:-webkit-autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.app-search input:-webkit-autofill,.app-search input:-webkit-autofill:hover,.app-search input:-webkit-autofill:focus,.app-search input:-webkit-autofill:active,.app-search input:autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.app-search input::-moz-placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.app-search input::placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.app-search input:hover:not(:focus):not(:disabled) {
  border-color: hsl(var(--foreground) / 0.4);
}

.app-search input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
  outline: none;
}

.app-search input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-form__option-detail .app-search input {
  max-width: 16rem;
}

.landing-onboarding .app-search input {
  min-height: 3.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 1.0625rem;
}

.app-search input{
  padding-left: 2.75rem;
  border-radius: var(--radius-pill);
  background: hsl(var(--surface));
  border-color: hsl(var(--border));
}

.app-search .material-symbols-outlined {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  font-size: 1.2rem;
}

.app-sidebar__invite.app-search-results {
  display: none;
}

.report-tabs-row.app-search-results {
  display: none;
}

.report-sheets.app-search-results {
  display: none;
}

.report-inline-error.app-search-results {
  display: none;
}

.report-block.app-search-results {
  display: none;
}

.report-hint.app-search-results {
  display: none;
}

.report-error.app-search-results {
  display: none;
}

.dash-next-report.app-search-results {
  display: none;
}

.dashboard-invite-cta.app-search-results {
  display: none;
}

.dash-mondkalender.app-search-results {
  display: none;
}

.self-profile-gate.app-search-results {
  display: none;
}

.self-profile-gate__empty.app-search-results,
  .self-profile-gate__picker.app-search-results {
  display: none;
}

.invite-share-native.app-search-results {
  display: none;
}

.admin-denied.app-search-results {
  display: none;
}

body.magicspace-page:has(#magicspace-checkout-bar.app-search-results) .magicspace-main,
  .magicspace-main:has(#report-builder.app-search-results) {
  padding-bottom: 0;
}

.magicspace-checkout-bar.app-search-results {
  display: none;
}

.admin-reports-panel.app-search-results {
  display: none;
}

.reports-empty.app-search-results {
  display: none;
}

.report-tab-panel.app-search-results {
  display: none;
}

.profile-form__option-detail.app-search-results {
  display: none;
}

.profile-form__loader.app-search-results {
  display: none;
}

.profile-studio-state.app-search-results {
  display: none;
}

body:has(#landing-page-container.app-search-results) .cosmos-host {
  visibility: hidden;
}

.landing-onboarding__sign.app-search-results {
  display: none;
}

@media (max-width: 1023px) {
  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.app-search-results {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.app-search-results {
    display: none;
  }

  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.app-search-results {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.app-search-results {
    display: none;
  }
}

.audiobook-section.app-search-results {
  display: none;
}

.app-search-results{
  position: absolute;
  left: 0px;
  right: 0px;
  top: 100%;
  z-index: 30;
  margin-top: 0.5rem;
  display: none;
  overflow: hidden;
}

.auth-loading.app-search-results {
  display: none;
}

.page-loading.app-search-results {
  display: none;
}

.report-processing.app-search-results {
  display: none;
}

.astrocart-preview.app-search-results {
  display: none;
}

.app-search-results {
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border-strong));
  background: hsl(var(--surface-raised));
  box-shadow: var(--shadow-float);
}

.app-search-results.is-visible{
  display: block;
}

.app-search-section{
  border-bottom-width: 1px;
  border-color: hsl(var(--border) / 0.6);
}

.app-search-section:last-child{
  border-width: 0px;
}

.app-search-section__title{
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.app-search-result{
  display: flex;
  cursor: pointer;
  flex-direction: column;
  gap: 0.25rem;
  border-top-width: 1px;
  border-color: hsl(var(--border) / 0.3);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.app-search-result:first-child{
  border-top-width: 0px;
}

.app-search-result:hover {
  background: hsl(var(--foreground) / 0.06);
}

.app-search-result__title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.app-search-result__meta{
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.app-search-result--empty{
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.app-content{
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
}

@media (min-width: 768px){
  .app-content{
    gap: 3rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.app-content {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .app-content{
    gap: 1rem;
    padding: 1rem;
  }
}

/* Forms
     Hintergrund und Text aus lokalen Scope-Tokens (--surface-sunken /
     --foreground), nicht aus --input: das Alias wird auf :root substituiert
     und bleibt sonst z. B. auf der Landing bei data-theme=light hell, während
     der Vordergrund Nacht-Weiß ist. */

.form-input{
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
  background-color: hsl(var(--surface-sunken));
  border: 1px solid hsl(var(--border-strong));
  color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Native date/time: iOS Safari ignores width unless appearance is reset.
     Intrinsic min-width otherwise overflows narrow cards / CSS Grid. */

.form-input[type="date"],
  .form-input[type="time"],
  .form-input[type="datetime-local"],
  .form-input[type="month"],
  .form-input[type="week"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  overflow: hidden;
}

.form-input[type="date"]::-webkit-datetime-edit,
  .form-input[type="time"]::-webkit-datetime-edit,
  .form-input[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  width: auto;
  padding: 0;
  color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
}

.form-input[type="date"]::-webkit-date-and-time-value,
  .form-input[type="time"]::-webkit-date-and-time-value,
  .form-input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

.form-field-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.form-input:-webkit-autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.form-input:-webkit-autofill,
  .form-input:-webkit-autofill:hover,
  .form-input:-webkit-autofill:focus,
  .form-input:-webkit-autofill:active,
  .form-input:autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.form-input::-moz-placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.form-input::placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.form-input:hover:not(:focus):not(:disabled) {
  border-color: hsl(var(--foreground) / 0.4);
}

.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
  outline: none;
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select{
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
  background-color: hsl(var(--surface-sunken));
  border: 1px solid hsl(var(--border-strong));
  color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-select[type="date"],.form-select[type="time"],.form-select[type="datetime-local"],.form-select[type="month"],.form-select[type="week"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  overflow: hidden;
}

.form-select[type="date"]::-webkit-datetime-edit,.form-select[type="time"]::-webkit-datetime-edit,.form-select[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  width: auto;
  padding: 0;
  color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
}

.form-select[type="date"]::-webkit-date-and-time-value,.form-select[type="time"]::-webkit-date-and-time-value,.form-select[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

.form-select:-webkit-autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.form-select:-webkit-autofill,.form-select:-webkit-autofill:hover,.form-select:-webkit-autofill:focus,.form-select:-webkit-autofill:active,.form-select:autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.form-select::-moz-placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.form-select::placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.form-select:hover:not(:focus):not(:disabled) {
  border-color: hsl(var(--foreground) / 0.4);
}

.form-select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
  outline: none;
}

.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-form__option-detail .form-select {
  max-width: 16rem;
}

.landing-onboarding .form-select {
  min-height: 3.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 1.0625rem;
}

.form-select{
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23A5A5AC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  max-width: 100%;
  box-sizing: border-box;
}

.form-label{
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}

/* Cards */

/* Karten: Fläche + Haarlinie. Kein Schatten, kein Verlauf, kein Glas. */

.\!card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid hsl(var(--border)) !important;
  background: hsl(var(--surface)) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Auswählbare Karte: Aurum-Rand + zarte Aurum-Fläche */

.\!card.is-selected,
  .\!card[aria-checked="true"],
  .\!card[aria-selected="true"] {
  border-color: hsl(var(--primary)) !important;
  background: hsl(var(--primary) / 0.08) !important;
}

.card.is-selected,
  .card[aria-checked="true"],
  .card[aria-selected="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.\!card.is-selected,
  .\!card[aria-checked="true"],
  .\!card[aria-selected="true"] {
  border-color: hsl(var(--primary)) !important;
  background: hsl(var(--primary) / 0.08) !important;
}

/* Loading */

.loading-spinner{
  height: 1.25rem;
  width: 1.25rem;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}

.loading-spinner{
  animation: spin 1s linear infinite;
  border-radius: 9999px;
  border-width: 2px;
  border-color: hsl(var(--foreground) / 0.15);
  border-top-color: hsl(var(--primary));
}

.loading-spinner-sm{
  height: 1rem;
  width: 1rem;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}

.loading-spinner-sm{
  animation: spin 1s linear infinite;
  border-radius: 9999px;
  border-width: 2px;
  border-color: hsl(var(--foreground) / 0.15);
  border-top-color: hsl(var(--primary));
}

/* Toast – schwebende Ebene: erhöhte Fläche, Statusfarbe nur als Kante */

.toast{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-strong));
  border-left-width: 3px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  box-shadow: var(--shadow-float);
}

.toast-success {
  border-left-color: hsl(var(--success));
}

.toast-error {
  border-left-color: hsl(var(--destructive));
}

.toast-info {
  border-left-color: hsl(var(--primary));
}

/* ===================================
     GEMEINSAME BAUSTEINE (DESIGN.md → Layout / Komponenten)
     Seitenkopf, Abschnittskopf, Chips, Status, Segmente, Kennzahlen.
     Neue Seiten nutzen diese Klassen statt eigener Varianten.
     =================================== */

/* Seitenkopf: Eyebrow → Titel → Lead, Aktionen rechts, darunter .degree-rule */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.page-head__text {
  min-width: 0;
  max-width: 44rem;
}

.page-head__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: hsl(var(--foreground));
}

.page-head__lead {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.page-head + .degree-rule {
  margin-top: 1.5rem;
}

/* Abschnittskopf: ohne Kasten, direkt auf dem Hintergrund */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.section-head__lead {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

/* Chip / Tag – Pille mit Haarlinie */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.chip.is-selected,
  .chip[aria-pressed="true"],
  .chip[aria-selected="true"] {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* Preis / Credits – Mono, tabellarische Ziffern */

.chip--data {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Status: Punkt + Text in Statusfarbe, keine farbige Fläche */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
}

.status::before {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status--success {
  color: hsl(var(--success));
}

.status--warning {
  color: hsl(var(--warning));
}

.status--error {
  color: hsl(var(--destructive));
}

.status--active {
  color: hsl(var(--primary));
}

/* Segment-Schalter (Tabs, Filter) – Pille in Pille */

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  max-width: 100%;
  overflow-x: auto;
}

.segmented__item {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0.4375rem 1rem;
  min-height: 2.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.segmented__item:hover {
  color: hsl(var(--foreground));
}

.segmented__item.is-active,
  .segmented__item[aria-selected="true"],
  .segmented__item[aria-pressed="true"],
  .segmented__item:has(input:checked) {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-weight: 600;
}

/* Kennzahl: große Caslon-Ziffer + Mono-Beschriftung */

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

/* Listenzeile mit Haarlinie statt Einzelkarte */

.list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  color: inherit;
  text-decoration: none;
}

.list-row:last-child {
  border-bottom: 0;
}

/* Leerer Zustand */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border-strong));
  color: hsl(var(--muted-foreground));
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--mark-size, 2.5rem);
  height: var(--mark-size, 2.5rem);
  vertical-align: middle;
}

/* Kreise: Ausgangslage ist die gemeinsame Mitte (50% / 52%). */

.brand-mark > i {
  --c: var(--mark-aurum, 40 78% 64%);
  position: absolute;
  left: 22%;
  top: 24%;
  width: 56%;
  height: 56%;
  border-radius: var(--radius-pill, 9999px);
  border: max(1px, calc(var(--mark-size, 2.5rem) * 0.024)) solid hsl(var(--c) / 0.92);
  background: radial-gradient(circle, hsl(var(--c) / 0.03) 45%, hsl(var(--c) / var(--mark-fill, 0.2)) 100%);
  transform: translate(var(--dx), var(--dy));
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand-mark > i:nth-child(1) {
  --c: var(--mark-lilac, 262 55% 74%);
  --dx: 0%;
  --dy: -34.8%;
}

.brand-mark > i:nth-child(2) {
  --dx: -30.4%;
  --dy: 17.5%;
}

.brand-mark > i:nth-child(3) {
  --dx: 30.4%;
  --dy: 17.5%;
}

/* Leuchten (hinter den Kreisen) und Stern (darüber) */

.brand-mark::before,
  .brand-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}

.brand-mark::before {
  width: 92%;
  height: 92%;
  border-radius: var(--radius-pill, 9999px);
  background: radial-gradient(circle, hsl(var(--mark-aurum, 40 78% 64%) / var(--mark-glow, 0.3)) 0%, transparent 62%);
}

.brand-mark::after {
  z-index: 1;
  width: 26%;
  height: 26%;
  background: hsl(var(--mark-star, 42 100% 92%));
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
}

/* --- Zustände --------------------------------------------------- */

.brand-mark[data-state="me"] > i {
  transform: none;
}

.brand-mark[data-state="me"]::before,
  .brand-mark[data-state="we"]::before {
  opacity: 0;
}

.brand-mark[data-state="me"]::after,
  .brand-mark[data-state="we"]::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

/* --- Bewegung --------------------------------------------------- */

.brand-mark--loop > i {
  animation: brand-mark-fan 3.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.brand-mark--loop::after {
  animation: brand-mark-star 3.8s ease-in-out infinite;
}

.brand-mark--loop::before {
  animation: brand-mark-glow 3.8s ease-in-out infinite;
}

.brand-mark--intro > i {
  animation: brand-mark-unfold 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both;
}

.brand-mark--intro::after {
  animation: brand-mark-star-in 420ms ease-out 1050ms both;
}

.brand-mark--intro::before {
  animation: brand-mark-glow-in 600ms ease-out 1050ms both;
}

@keyframes brand-mark-fan {
  0%, 14% {
    transform: translate(0, 0);
  }

  40%, 88% {
    transform: translate(var(--dx), var(--dy));
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes brand-mark-star {
  0%, 50% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-45deg);
  }

  64%, 86% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  94%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
}

@keyframes brand-mark-glow {
  0%, 50% {
    opacity: 0;
  }

  68%, 86% {
    opacity: 1;
  }

  94%, 100% {
    opacity: 0;
  }
}

@keyframes brand-mark-unfold {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(var(--dx), var(--dy));
  }
}

@keyframes brand-mark-star-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-45deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes brand-mark-glow-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Kopf-Logos: alle 15 s einmal zusammenfalten und auffächern ---
     Der Zyklus beginnt im Ruhezustand (How); die Bewegung liegt am Ende. */

@media (prefers-reduced-motion: no-preference) {
  .app-sidebar__logo .brand-mark > i,
    .mobile-header__logo .brand-mark > i {
    animation: brand-mark-cycle-fan 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .app-sidebar__logo .brand-mark::after,
    .mobile-header__logo .brand-mark::after {
    animation: brand-mark-cycle-star 15s ease-in-out infinite;
  }

  .app-sidebar__logo .brand-mark::before,
    .mobile-header__logo .brand-mark::before {
    animation: brand-mark-cycle-glow 15s ease-in-out infinite;
  }

  /* Startseite: erst das Auffächern beim Laden, danach derselbe Zyklus */

  .landing-nav__logo.brand-mark--intro > i {
    animation:
        brand-mark-unfold 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both,
        brand-mark-cycle-fan 15s cubic-bezier(0.4, 0, 0.2, 1) 2s infinite;
  }

  .landing-nav__logo.brand-mark--intro::after {
    animation:
        brand-mark-star-in 420ms ease-out 1050ms both,
        brand-mark-cycle-star 15s ease-in-out 2s infinite;
  }

  .landing-nav__logo.brand-mark--intro::before {
    animation:
        brand-mark-glow-in 600ms ease-out 1050ms both,
        brand-mark-cycle-glow 15s ease-in-out 2s infinite;
  }
}

@keyframes brand-mark-cycle-fan {
  0%, 86.5% {
    transform: translate(var(--dx), var(--dy));
  }

  91%, 92.5% {
    transform: translate(0, 0);
  }

  97.5%, 100% {
    transform: translate(var(--dx), var(--dy));
  }
}

@keyframes brand-mark-cycle-star {
  0%, 85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  87.5%, 96.5% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-45deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes brand-mark-cycle-glow {
  0%, 85% {
    opacity: 1;
  }

  87.5%, 96.5% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Solange der Seiten-Lader die Seite verdeckt, wartet das Auffächern. */

body.page-is-loading .brand-mark--intro > i,
  body.page-is-loading .brand-mark--intro::before,
  body.page-is-loading .brand-mark--intro::after {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark > i,
    .brand-mark::before,
    .brand-mark::after {
    animation: none;
    transition: none;
  }
}

.horizon {
  --horizon-size: 260%;
  --horizon-x: 50%;
  --horizon-top: 80%;
  --horizon-body: var(--background);
  /* Bogenkante bei 89 % des Elementradius; außerhalb läuft das Leuchten aus. */
  --horizon-edge: 93%;
  --horizon-fade: 30%;
  /* Tiefe des Leuchtens: nach innen (auf dem Körper) und nach außen */
  --horizon-inner: 2.5rem;
  --horizon-halo: 5rem;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.horizon::before,
  .horizon::after {
  content: '';
  position: absolute;
  left: var(--horizon-x);
  top: var(--horizon-top);
  width: var(--horizon-size);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-pill, 9999px);
  /* Scheitel der Bogenkante exakt auf --horizon-top / --horizon-x legen */
  transform: translate(-50%, -3.5%);
}

/* Körper + Leuchten */

.horizon::before {
  background:
      radial-gradient(circle closest-side, hsl(var(--horizon-body)) calc(var(--horizon-edge) - var(--horizon-inner)), hsl(var(--horizon-body) / 0) var(--horizon-edge)),
      linear-gradient(90deg,
        hsl(var(--mark-lilac) / calc(var(--horizon-glow, 0.4) * 0.55)) calc(var(--horizon-fade) + 4%),
        hsl(var(--mark-aurum) / var(--horizon-glow, 0.4)) 50%,
        hsl(var(--mark-lilac) / calc(var(--horizon-glow, 0.4) * 0.55)) calc(96% - var(--horizon-fade)));
  -webkit-mask-image: radial-gradient(circle closest-side, #000 var(--horizon-edge), transparent min(100%, calc(var(--horizon-edge) + var(--horizon-halo))));
  mask-image: radial-gradient(circle closest-side, #000 var(--horizon-edge), transparent min(100%, calc(var(--horizon-edge) + var(--horizon-halo))));
}

/* Bogenlinie */

.horizon::after {
  background: linear-gradient(90deg,
      hsl(var(--mark-lilac) / 0) var(--horizon-fade),
      hsl(var(--mark-lilac)) calc(var(--horizon-fade) + 9%),
      hsl(var(--mark-aurum)) 46%,
      hsl(var(--mark-star)) 50%,
      hsl(var(--mark-aurum)) 54%,
      hsl(var(--mark-lilac)) calc(91% - var(--horizon-fade)),
      hsl(var(--mark-lilac) / 0) calc(100% - var(--horizon-fade)));
  opacity: var(--horizon-line, 0.9);
  -webkit-mask-image: radial-gradient(circle closest-side,
      transparent calc(var(--horizon-edge) - 1.5px),
      #000 calc(var(--horizon-edge) - 0.75px),
      #000 var(--horizon-edge),
      transparent calc(var(--horizon-edge) + 0.75px));
  mask-image: radial-gradient(circle closest-side,
      transparent calc(var(--horizon-edge) - 1.5px),
      #000 calc(var(--horizon-edge) - 0.75px),
      #000 var(--horizon-edge),
      transparent calc(var(--horizon-edge) + 0.75px));
}

/* ===================================
     REPORT-DETAIL – Dokumentspalte
     Kopf, Reiter und Blätter teilen sich eine Spalte; die Lesespalte darin ist 44rem.
     =================================== */

.report-doc {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  min-width: 0;
}

.report-result {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Seitenkopf: Reportart (Mono) → Name (Caslon, sehr groß) → Datum · Art (Mono) */

.report-head .page-head__title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.report-head__eyebrow {
  color: hsl(var(--primary));
}

.report-head__meta {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground));
}

.report-head__meta:empty {
  display: none;
}

.report-head__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
}

.report-tabs-row {
  display: flex;
  min-width: 0;
}

.report-tabs-row.hidden {
  display: none;
}

.report-tab-panel__stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
}

/* ===================================
     KAPITEL – Papier-Blätter auf der Nacht
     Markup: report-astro-note.js → renderReportChapters()
     Der Scope .surface-paper stellt die Tokens um; hier stehen nur Tokens.
     =================================== */

.report-sheets {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}

.report-sheets.hidden {
  display: none;
}

.report-sheet {
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.375rem 2.5rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .report-sheet {
    padding: 3.5rem 3rem 4rem;
  }
}

.report-sheet__inner {
  max-width: 44rem;
  margin-inline: auto;
}

.report-sheet__head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.report-sheet__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
  color: hsl(var(--primary));
}

.report-sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
}

.report-sheet__head + .report-prose {
  margin-top: 1.75rem;
}

/* Unterabschnitt auf demselben Blatt, durch Haarlinie abgesetzt */

.report-sheet__sub {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid hsl(var(--border));
}

.report-sheet__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: hsl(var(--foreground));
}

.report-sheet__subtitle + .report-prose {
  margin-top: 1.25rem;
}

/* „Im Horoskop": Notation in Mono, darunter die Haarlinie zum Lesetext */

.report-astro-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin: 1.25rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.report-astro-note__label {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.report-astro-note__text {
  flex: 1 1 16rem;
  min-width: 0;
}

/* Legende: leise unter dem Blattstapel, direkt auf der Nacht */

.report-astro-legend {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.report-astro-legend summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  color: hsl(var(--muted-foreground));
  transition: color 160ms ease;
}

.report-astro-legend summary:hover,
  .report-astro-legend[open] summary {
  color: hsl(var(--foreground));
}

.report-astro-legend summary::-webkit-details-marker {
  display: none;
}

/* Aufklapp-Zeichen in Mono statt Browser-Dreieck */

.report-astro-legend summary::before {
  content: '+';
  font-family: var(--font-mono);
  color: hsl(var(--primary));
}

.report-astro-legend[open] summary::before {
  content: '–';
}

.report-astro-legend ul {
  max-width: 44rem;
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.report-astro-legend li::marker {
  color: hsl(var(--border-strong));
}

.report-astro-legend li + li {
  margin-top: 0.35rem;
}

/* Lesetext: 17 px / 1.47, Lesespalte über .report-sheet__inner */

.report-prose {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.report-prose > * {
  margin: 0;
}

.report-prose > * + * {
  margin-top: 1.15em;
}

.report-prose h2,
  .report-prose h3,
  .report-prose h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.report-prose h2 {
  font-size: 1.625rem;
}

.report-prose h3 {
  font-size: 1.375rem;
}

.report-prose h4 {
  font-size: 1.1875rem;
}

.report-prose > h2:not(:first-child),
  .report-prose > h3:not(:first-child),
  .report-prose > h4:not(:first-child) {
  margin-top: 2em;
}

.report-prose strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.report-prose em {
  font-style: italic;
}

.report-prose ul,
  .report-prose ol {
  padding-left: 1.35rem;
}

.report-prose ul {
  list-style: disc;
}

.report-prose ol {
  list-style: decimal;
}

.report-prose li {
  padding-left: 0.3rem;
}

.report-prose li + li {
  margin-top: 0.5em;
}

.report-prose li::marker {
  color: hsl(var(--subtle-foreground));
  font-family: var(--font-mono);
  font-size: 0.8125em;
}

.report-prose blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid hsl(var(--primary));
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: hsl(var(--foreground));
}

.report-prose code {
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  background: hsl(var(--surface-sunken));
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.report-prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.report-prose a:hover {
  color: hsl(var(--primary-hover));
}

.report-prose hr {
  border: 0;
  border-top: 1px solid hsl(var(--border));
  margin-block: 2em;
}

.report-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.report-prose th,
  .report-prose td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
}

.report-prose th {
  font-weight: 600;
}

/* Fehlermeldung der Deutung */

.report-inline-error {
  padding-left: 0.875rem;
  border-left: 2px solid hsl(var(--destructive));
  font-size: 0.9375rem;
  color: hsl(var(--destructive));
}

.report-inline-error.hidden {
  display: none;
}

/* ===================================
     ABSCHNITTE DER REPORTSEITE (Profil, Berechnungen, Bild-Reports)
     Abschnitte ohne Kasten; nur Blatt-Elemente sind Karten.
     =================================== */

.report-block {
  min-width: 0;
}

.report-block.hidden {
  display: none;
}

.report-block > .section-head .eyebrow {
  margin-bottom: 0.5rem;
}

.report-block__status {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground));
}

.report-block__status:empty {
  display: none;
}

.report-block__error {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: hsl(var(--destructive));
}

/* Untergruppe innerhalb eines Abschnitts: Mono-Eyebrow + kleiner Caslon-Titel */

.report-subhead {
  margin-bottom: 1rem;
}

.report-subhead__title {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.report-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Blatt-Karte für einen einzelnen Wert / eine kleine Tabelle */

.report-fact {
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.report-fact__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.report-fact__value {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.report-fact__title {
  margin: 0.375rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.report-fact__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}

/* Kleinste Einheit in einer Karte (Matrix-Zelle, Phase): eingelassen statt umrandet */

.report-cell {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: hsl(var(--surface-raised));
}

/* Datentabellen der Reportseite */

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.report-table th {
  padding: 0 0 0.625rem;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: hsl(var(--muted-foreground));
}

.report-table th.text-right {
  text-align: right;
}

.report-table td {
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Hinweiszeile (z. B. Paar-Ansicht): Kante statt Kasten */

.report-hint {
  padding-left: 1rem;
  border-left: 2px solid hsl(var(--primary));
}

.report-hint.hidden {
  display: none;
}

.report-hint__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}

.report-hint__text {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* Profil-Reiter: Kopf mit Profil-Auswahl */

.report-profile-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .report-profile-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.report-profile-head__meta {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.report-profile-head__meta strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.report-profile-head__birth {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
     BILD-REPORTS – das Bild ist das Exponat
     =================================== */

.report-exhibit__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .report-exhibit__gallery--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.report-exhibit__gallery:empty {
  display: none;
}

.report-exhibit__figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}

.report-exhibit__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

/* Hochformat (9:16) nicht über die Bildschirmhöhe hinaus wachsen lassen */

.report-exhibit__gallery--single .report-exhibit__image {
  width: auto;
  max-width: 100%;
  max-height: min(88vh, 60rem);
}

.report-exhibit__caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground));
}

/* ===================================
     FEHLERZUSTAND der Reportseite (.empty-state + Zusätze)
     =================================== */

.report-error.hidden {
  display: none;
}

.report-error__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.report-error__message {
  margin: 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--destructive));
}

.report-error__message:empty {
  display: none;
}

.report-error__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}

/* ============================================
     DASHBOARD – Seitenrhythmus
     Seitenkopf → Gradskala → „Dein Tag“ → Profil + Mond → Einladen
     → Reports (Rail) → Kennzahlen. Abschnitte stehen ohne Kasten auf
     dem Hintergrund; nur Blatt-Elemente sind Karten.
     ============================================ */

.dashboard-overview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.dashboard-overview > .degree-rule {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.dashboard-block {
  min-width: 0;
}

/* Mobile Dashboard: Suche → Content → Footer (explizite Flex-Order) */

@media (max-width: 1023px) {
  #dashboard-container .app-main {
    display: flex;
    flex-direction: column;
  }

  #dashboard-container .app-topbar {
    order: 1;
    position: relative;
    top: auto;
  }

  #dashboard-container .app-content {
    order: 2;
  }

  #dashboard-container .app-main > .site-footer {
    order: 3;
    margin-top: auto;
  }

  #dashboard-container .app-main > .page-loading {
    order: 0;
  }
}

@media (max-width: 640px) {
  #dashboard-container .app-content {
    padding: 1.5rem 1rem 2.5rem;
    gap: 2.5rem;
  }

  .dashboard-overview {
    gap: 1.25rem;
  }
}

/* ============================================
     BEGRÜSSUNG – Horizont über der Haarlinie
     Der Bogen geht rechts neben der Begrüßung auf; die Haarlinie
     darunter (.degree-rule) ist sein Horizont.
     ============================================ */

#dashboard-greeting {
  position: relative;
}

#dashboard-greeting > :not(.horizon):not(.dashboard-greeting__stars) {
  position: relative;
  z-index: 1;
}

/* Sternenhimmel hinter der Begrüßung – derselbe Punkthimmel wie im Hero
     der Startseite, sehr leise; einzelne Sterne leuchten langsam auf.
     Nur auf Nacht-Flächen (im hellen Theme ausgeblendet). */

.dashboard-greeting__stars {
  position: absolute;
  inset: -1.5rem 0 -1.5rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
      radial-gradient(1px 1px at 8% 22%, hsl(var(--foreground) / 0.7) 50%, transparent 51%),
      radial-gradient(1px 1px at 19% 71%, hsl(var(--foreground) / 0.5) 50%, transparent 51%),
      radial-gradient(1px 1px at 31% 12%, hsl(var(--foreground) / 0.6) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 44% 48%, hsl(var(--foreground) / 0.8) 50%, transparent 51%),
      radial-gradient(1px 1px at 53% 84%, hsl(var(--foreground) / 0.5) 50%, transparent 51%),
      radial-gradient(1px 1px at 62% 18%, hsl(var(--mark-aurum)) 50%, transparent 51%),
      radial-gradient(1px 1px at 71% 62%, hsl(var(--foreground) / 0.7) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 79% 30%, hsl(var(--foreground) / 0.8) 50%, transparent 51%),
      radial-gradient(1px 1px at 86% 76%, hsl(var(--mark-lilac)) 50%, transparent 51%),
      radial-gradient(1px 1px at 93% 14%, hsl(var(--foreground) / 0.6) 50%, transparent 51%),
      radial-gradient(1px 1px at 97% 52%, hsl(var(--foreground) / 0.5) 50%, transparent 51%),
      radial-gradient(1px 1px at 37% 66%, hsl(var(--foreground) / 0.4) 50%, transparent 51%);
  /* links, wo der Text steht, dünner; nach unten zur Haarlinie auslaufend */
  -webkit-mask-image:
      linear-gradient(90deg, rgb(0 0 0 / 0.35), #000 55%),
      linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
      linear-gradient(90deg, rgb(0 0 0 / 0.35), #000 55%),
      linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in, xor;
          mask-composite: intersect;
}

:root[data-theme="light"] .dashboard-greeting__stars {
  display: none;
}

/* Aufleuchtende Sterne: Punkte und zwei vierzackige Sterne wie im Logo */

.dashboard-greeting__stars > i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: hsl(var(--foreground));
  opacity: 0.12;
  animation: dashboard-star-twinkle 7s ease-in-out infinite;
}

.dashboard-greeting__stars > i:nth-child(1) {
  left: 14%;
  top: 38%;
  animation-duration: 8s;
  animation-delay: -1.5s;
}

.dashboard-greeting__stars > i:nth-child(2) {
  left: 48%;
  top: 20%;
  animation-duration: 6.5s;
  animation-delay: -4s;
}

.dashboard-greeting__stars > i:nth-child(3) {
  left: 67%;
  top: 40%;
  animation-duration: 9s;
  animation-delay: -6s;
  background: hsl(var(--mark-aurum));
}

.dashboard-greeting__stars > i:nth-child(4) {
  left: 90%;
  top: 34%;
  animation-duration: 7.5s;
  animation-delay: -2.5s;
}

.dashboard-greeting__stars > i:nth-child(5) {
  left: 28%;
  top: 82%;
  animation-duration: 10s;
  animation-delay: -7s;
  background: hsl(var(--mark-lilac));
}

.dashboard-greeting__stars > i:nth-child(6),
  .dashboard-greeting__stars > i:nth-child(7) {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: hsl(var(--mark-star));
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
}

.dashboard-greeting__stars > i:nth-child(6) {
  left: 58%;
  top: 58%;
  animation-duration: 11s;
  animation-delay: -3s;
}

.dashboard-greeting__stars > i:nth-child(7) {
  left: 83%;
  top: 12%;
  width: 7px;
  height: 7px;
  animation-duration: 13s;
  animation-delay: -9s;
}

@keyframes dashboard-star-twinkle {
  0%, 62%, 100% {
    opacity: 0.12;
    transform: scale(0.8);
  }

  78% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-greeting__stars > i {
    animation: none;
    opacity: 0.45;
  }
}

.dashboard-greeting__horizon {
  --horizon-size: 90%;
  --horizon-x: 80%;
  --horizon-top: 44%;
  --horizon-fade: 14%;
  /* bis zur Haarlinie reichen: Abstand Seitenkopf → .degree-rule */
  inset: -1rem 0 -1.5rem;
  /* rechts weich auslaufen statt an der Inhaltskante abzubrechen */
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
  display: none;
}

@media (min-width: 640px) {
  .dashboard-greeting__horizon {
    display: block;
  }
}

/* ============================================
     „DEIN ERSTER REPORT“ – Einstieg für neue Accounts
     (ICH-Profil vorhanden, noch kein Report). Trägt dann die Primäraktion.
     ============================================ */

.dash-next-report {
  min-width: 0;
}

.dash-next-report.hidden {
  display: none;
}

.dash-next-report__surface {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border-strong));
  background-color: hsl(var(--surface));
}

.dash-next-report__surface > * {
  min-width: 0;
}

.dash-next-report__eyebrow {
  margin: 0;
  color: hsl(var(--primary));
}

/* Fortschritt der Einstiegsstrecke: erledigt · als Nächstes (Aurum) · offen */

.dash-next-report__steps {
  display: flex;
  gap: 0.375rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}

.dash-next-report__step {
  width: 1.75rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: hsl(var(--border-strong));
}

.dash-next-report__step[data-state="done"] {
  background: hsl(var(--muted-foreground));
}

.dash-next-report__step[data-state="current"] {
  background: hsl(var(--primary));
}

.dash-next-report__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

.dash-next-report__lead {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

.dash-next-report__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.dash-next-report__fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 0;
}

.dash-next-report__fact + .dash-next-report__fact {
  padding-left: 1.25rem;
  border-left: 1px solid hsl(var(--border));
}

.dash-next-report__fact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.dash-next-report__fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.dash-next-report__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

/* Hinweis auf die nächste Station, für die das Guthaben noch nicht reicht */

.dash-next-report__note--goal {
  align-self: stretch;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.dash-next-report__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.dash-next-report__actions .text-link {
  align-self: center;
}

.dash-next-report__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 900px) {
  .dash-next-report__surface {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
        "main facts"
        "main cta";
    align-items: end;
    gap: 1.5rem 3rem;
    padding: 2.5rem;
  }

  .dash-next-report__main {
    grid-area: main;
    align-self: center;
  }

  .dash-next-report__facts {
    grid-area: facts;
  }

  .dash-next-report__cta {
    grid-area: cta;
    align-items: flex-start;
  }

  .dash-next-report__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
  }
}

/* Ruhige Stufe (ab Station 3): kompakter, kleinere Überschrift, keine Effekte */

.dash-next-report[data-tier="calm"] .dash-next-report__surface {
  gap: 1.25rem;
  border-color: hsl(var(--border));
}

.dash-next-report[data-tier="calm"] .dash-next-report__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.dash-next-report[data-tier="calm"] .dash-next-report__lead {
  font-size: 0.9375rem;
}

.dash-next-report[data-tier="calm"] .dash-next-report__fact {
  padding-block: 0.625rem;
}

.dash-next-report[data-tier="calm"] .dash-next-report__fact dd {
  font-size: 1rem;
}

@media (min-width: 900px) {
  .dash-next-report[data-tier="calm"] .dash-next-report__surface {
    gap: 1rem 2.5rem;
    padding: 1.75rem 2rem;
  }
}

/* ============================================
     „DEIN TAG“ – Hauptinhalt des Dashboards
     Links Leitsatz + die eine Primäraktion, rechts die Signale als Liste.
     ============================================ */

.dash-today {
  min-width: 0;
}

.dash-today__surface {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.dash-today__surface:empty {
  display: none;
}

.dash-today__surface > * {
  min-width: 0;
}

.dash-today__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

.dash-today__eyebrow-mark {
  color: hsl(var(--primary));
}

.dash-today__headline {
  margin: 0.875rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

.dash-today__signals {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-today__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid hsl(var(--border));
}

.dash-today__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.dash-today__row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  font-size: 1.25rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
}

.dash-today__row-icon--glyph {
  font-family: var(--font-display);
  font-size: 1.375rem;
}

.dash-today__row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.dash-today__row-title {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.dash-today__row-detail {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.dash-today__note {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.dash-today__note-link {
  margin-left: 0.25rem;
}

.dash-today__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
}

.dash-today__cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dash-today__cta-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.dash-today__cta-credits {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

@media (min-width: 900px) {
  .dash-today__surface {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
        "main signals"
        "cta signals";
    grid-template-rows: 1fr auto;
    gap: 2.5rem 3rem;
    padding: 2.5rem;
  }

  .dash-today__main {
    grid-area: main;
  }

  .dash-today__signals {
    grid-area: signals;
    padding-left: 3rem;
    border-left: 1px solid hsl(var(--border));
  }

  .dash-today__rows {
    border-top: 0;
  }

  .dash-today__row {
    padding: 1.125rem 0;
  }

  .dash-today__row:first-child {
    padding-top: 0;
  }

  .dash-today__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .dash-today__cta {
    grid-area: cta;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem 1.25rem;
  }

  .dash-today__cta-copy {
    flex: 1 1 12rem;
  }
}

/* ============================================
     WIDGETS – „Mein Profil“ und „Mond heute“
     Kopf, Eyebrow, Datum, Footer, Link und Ladezustand nutzt auch die
     Mond-Karte (Markup aus moon-calendar.js; ihr Inhalt liegt in 50-calendar).
     ============================================ */

.dashboard-widgets {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .dashboard-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.dash-widget {
  min-width: 0;
  height: 100%;
}

.dash-widget__surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

@media (min-width: 768px) {
  .dash-widget__surface {
    padding: 1.75rem;
  }
}

.dash-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  margin-bottom: 0.75rem;
}

.dash-widget__labels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dash-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.dash-widget__date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: hsl(var(--subtle-foreground));
}

/* Rollen-Marke (ICH): Mono-Pille mit Aurum-Rand statt gefüllter Plakette */

.dash-widget__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--primary));
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.dash-widget__change {
  margin: 0 -0.75rem 0 0;
  padding: 0.4375rem 0.75rem;
  min-height: 2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

@media (max-width: 1023px) {
  .dash-widget__change {
    min-height: 2.75rem;
  }
}

.dash-widget__change:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.06);
}

.dash-widget__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: hsl(var(--foreground));
}

.dash-widget__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.dash-widget__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.dash-widget__meta-row--data {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.dash-widget__meta-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Sonne / Mond / ASC: ein Streifen mit Haarlinien, keine Mini-Karten */

.dash-widget__signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.dash-widget__sign {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1rem 0.75rem;
  border-left: 1px solid hsl(var(--border));
}

.dash-widget__sign:first-child {
  padding-left: 0;
  border-left: 0;
}

.dash-widget__sign-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.dash-widget__sign-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.125rem 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.dash-widget__sign-symbol {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.dash-widget__empty-signs {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.dash-widget__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: auto;
}

.dash-widget__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  color: hsl(var(--primary));
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.dash-widget__link .material-symbols-outlined {
  font-size: 1.125rem;
}

.dash-widget__link:hover {
  color: hsl(var(--primary-hover));
}

.dash-widget__moon-emoji {
  font-size: 2.25rem;
  line-height: 1;
}

.dash-widget__loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 10rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.dash-widget__loading p {
  margin: 0;
}

.dash-widget__retry {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  color: hsl(var(--primary));
  cursor: pointer;
}

.dash-widget__retry:hover {
  color: hsl(var(--primary-hover));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================================
     EINLADEN – schmale Zeile
     ============================================ */

.dashboard-invite-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-invite-cta.hidden {
  display: none;
}

@media (hover: hover) {
  .dashboard-invite-cta:hover {
    border-color: hsl(var(--border-strong));
    background: hsl(var(--surface-raised));
  }
}

.dashboard-invite-cta__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.875rem;
  flex: 1;
  min-width: 0;
}

.dashboard-invite-cta__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.dashboard-invite-cta__body {
  font-size: 0.875rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
}

.dashboard-invite-cta__action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  color: hsl(var(--primary));
}

.dashboard-invite-cta__action .material-symbols-outlined {
  font-size: 1.125rem;
}

/* ============================================
     BONUS – Mondkalender-Download
     ============================================ */

.dash-mondkalender {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
}

.dash-mondkalender.hidden {
  display: none;
}

.dash-mondkalender__copy {
  flex: 1;
  min-width: 12rem;
}

.dash-mondkalender__eyebrow {
  margin: 0 0 0.25rem;
}

.dash-mondkalender__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.dash-mondkalender__lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.dash-mondkalender__action {
  flex-shrink: 0;
}

.mondkalender-download-page__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ============================================
     REPORTS STARTEN – horizontale Rail
     ============================================ */

.dashboard-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.dashboard-section-link .material-symbols-outlined {
  font-size: 1.125rem;
}

.dashboard-report-shortcuts__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-report-shortcuts__actions .dashboard-section-link {
  margin-right: 0.75rem;
}

.dashboard-report-shortcuts__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}

.dashboard-report-shortcuts__track::-webkit-scrollbar {
  display: none;
}

.dashboard-report-shortcuts__track:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 4px;
}

/* Pfeile im Abschnittskopf, nur mit Zeiger (ab Desktop-Breite) */

.dashboard-report-shortcuts__nav {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.dashboard-report-shortcuts__nav:hover:not(:disabled) {
  border-color: hsl(var(--foreground) / 0.55);
  background: hsl(var(--foreground) / 0.05);
}

.dashboard-report-shortcuts__nav:active:not(:disabled) {
  transform: scale(0.97);
}

.dashboard-report-shortcuts__nav:disabled {
  opacity: 0.38;
  cursor: default;
}

.dashboard-report-shortcuts__nav .material-symbols-outlined {
  font-size: 1.375rem;
}

@media (min-width: 1024px) {
  .dashboard-report-shortcuts__nav:not(.hidden) {
    display: inline-flex;
  }
}

.dash-shortcut {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(15rem, 72vw);
  min-height: 12rem;
  padding: 1.25rem;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .dash-shortcut:hover {
    border-color: hsl(var(--border-strong));
    background: hsl(var(--surface-raised));
  }
}

.dash-shortcut:focus-visible {
  outline-offset: -2px;
}

.dash-shortcut__glyph {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: hsl(var(--primary));
}

.dash-shortcut__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-shortcut__badge {
  color: hsl(var(--foreground));
}

.dash-shortcut.is-recommended {
  border-color: hsl(var(--border-strong));
}

.dash-shortcut__title {
  margin: auto 0 0;
  padding-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.dash-shortcut__description {
  margin: 0.375rem 0 0;
  min-height: 3.6em;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  /* Rail läuft bis an den Bildschirmrand */

  .dashboard-report-shortcuts__track {
    gap: 0.75rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
    border-radius: 0;
  }
}

/* ============================================
     KENNZAHLEN – drei Ziffern mit Haarlinien
     ============================================ */

.dash-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.dash-figure {
  position: relative;
  gap: 0.625rem;
  min-width: 0;
  padding: 1.25rem 0.75rem;
  border-left: 1px solid hsl(var(--border));
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.dash-figure:first-child {
  padding-left: 0;
  border-left: 0;
}

.dash-figure .stat__value {
  margin: 0;
  transition: color 160ms ease;
}

.dash-figure__label {
  margin: 0;
  overflow-wrap: break-word;
}

.dash-figure__arrow {
  display: none;
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: hsl(var(--subtle-foreground));
  transition: color 160ms ease;
}

.dash-figure:hover .dash-figure__arrow,
  .dash-figure:hover .stat__value {
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .dash-figure {
    padding: 1.75rem 1.5rem;
  }

  .dash-figure .stat__value {
    font-size: 3.5rem;
  }

  .dash-figure__arrow {
    display: block;
  }
}

/* Kennzahl-Karten der Admin-Seiten (Modifier in 40-admin / 65-admin-pages) */

/* ============================================
     EINSTIEG – Self-Profil-Gate
     ============================================ */

.self-profile-gate.hidden {
  display: none;
}

.self-profile-gate__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

@media (min-width: 768px) {
  .self-profile-gate__card {
    padding: 2.5rem;
  }
}

.self-profile-gate__title {
  margin: 0.875rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: hsl(var(--foreground));
}

.self-profile-gate__text {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

.self-profile-gate__empty,
  .self-profile-gate__picker {
  margin-top: 1.75rem;
}

.self-profile-gate__picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 38rem;
}

.self-profile-gate__empty.hidden,
  .self-profile-gate__picker.hidden {
  display: none;
}

.self-profile-gate__select {
  flex: 1 1 14rem;
  width: auto;
}

.self-profile-gate__confirm {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .self-profile-gate__empty .btn-primary,
    .self-profile-gate__confirm,
    .self-profile-gate__select {
    width: 100%;
    flex-basis: 100%;
  }

  .self-profile-gate__empty {
    width: 100%;
  }
}

/* ============================================
     EINLADEN – Seite /invite.html
     ============================================ */

.invite-head {
  min-width: 0;
}

.invite-stat {
  align-items: flex-end;
  text-align: right;
}

.invite-stat .stat__value {
  font-size: 3.5rem;
}

.invite-layout {
  display: grid;
  gap: 3rem;
  min-width: 0;
}

.invite-layout > * {
  min-width: 0;
}

.invite-share {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
}

.invite-share__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.invite-share__lead {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* Eingelassenes Feld: Mono-Wert + Kopier-Pille */

.invite-share-field__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-strong));
  background: hsl(var(--surface-sunken));
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.invite-share-field__row:focus-within {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
}

.invite-share-field__value {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
  color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  text-overflow: ellipsis;
}

.invite-share-field__value:focus {
  outline: none;
}

.invite-share-field__value--code {
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}

.invite-share-field__copy {
  flex-shrink: 0;
  min-height: 2.75rem;
}

.invite-share-native {
  align-self: flex-start;
}

.invite-share-native.hidden {
  display: none;
}

.invite-share-native .material-symbols-outlined {
  font-size: 1.125rem;
}

.invite-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid hsl(var(--border));
}

.invite-steps__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.invite-steps__num {
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
}

.invite-steps__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.invite-steps__text {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .invite-share {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .invite-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 4rem;
  }
}

@media (max-width: 640px) {
  .invite-page.app-content {
    padding: 1.5rem 1rem 2.5rem;
    gap: 1.5rem;
  }

  .invite-stat {
    align-items: flex-start;
    text-align: left;
  }

  .invite-share-native {
    align-self: stretch;
  }
}

/* ============================================
     ADMIN – Bausteine
     Funktionale Dichte, aber im System: Haarlinien-Tabellen,
     Mono-Zahlen, Status als Punkt, keine Verläufe.
     ============================================ */

/* --- Tabellen --- */

.admin-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 44rem;
  border-top: 1px solid hsl(var(--border-strong));
  border-bottom: 1px solid hsl(var(--border));
}

.admin-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.4;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.625rem 1rem 0.625rem 0;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: hsl(var(--subtle-foreground));
}

.admin-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
  color: hsl(var(--foreground));
}

.admin-table th:last-child,
  .admin-table td:last-child {
  padding-right: 0;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr {
  transition: background-color 160ms ease;
}

.admin-table__row--clickable {
  cursor: pointer;
}

.admin-table__row--clickable:hover,
  .admin-table__row--clickable:focus-visible {
  background: hsl(var(--surface-raised));
}

.admin-table th.admin-table__num,
  .admin-table td.admin-table__num {
  text-align: right;
}

.admin-table__num,
  .admin-table__date,
  .admin-table__code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.admin-table__num.is-credit {
  color: hsl(var(--success));
}

.admin-table__date {
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
}

.admin-table td.admin-table__date {
  color: hsl(var(--muted-foreground));
}

.admin-table__code {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  color: hsl(var(--muted-foreground));
}

.admin-table__primary {
  margin: 0;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-table__secondary,
  .admin-table td.admin-table__secondary {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.admin-table__flag {
  margin-left: 0.25rem;
  color: hsl(var(--destructive));
}

.admin-table__type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-table__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.admin-table td.admin-table__empty {
  padding: 2rem 1rem;
  color: hsl(var(--muted-foreground));
}

.admin-table__empty.status--error,
  .admin-table td.admin-table__empty.status--error {
  color: hsl(var(--destructive));
}

.admin-table__empty .loading-spinner-sm,
  .admin-table__loading .loading-spinner-sm {
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 0.5rem;
}

.admin-table__loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-table-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.admin-table-meta span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

/* --- Tags --- */

.admin-badge {
  padding: 0.125rem 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  vertical-align: middle;
}

.admin-chip-row .admin-badge {
  margin-left: 0;
}

.admin-badge--db {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.admin-badge--muted {
  border-color: hsl(var(--border));
  color: hsl(var(--subtle-foreground));
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Guthaben in der User-Tabelle: Zahl in Mono, Statusfarbe nur bei knapp/leer */

.admin-credit-badge {
  color: hsl(var(--foreground));
}

.admin-credit-badge--medium {
  color: hsl(var(--warning));
}

.admin-credit-badge--low {
  color: hsl(var(--destructive));
}

.admin-user-report-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
}

.admin-chip-row .admin-user-report-badge {
  margin: 0;
  padding: 0.25rem 0.625rem;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-pill);
}

.admin-user-report-badge .astro-glyph {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

/* --- Schalter (role="switch") --- */

.admin-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 2.75rem;
  height: 1.625rem;
  padding: 0;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-pill);
  background: hsl(var(--surface-sunken));
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-switch::after {
  content: '';
  position: absolute;
  inset: -0.625rem -0.25rem;
}

.admin-switch__thumb {
  position: absolute;
  top: 50%;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground));
  pointer-events: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.admin-switch[aria-checked="true"] {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.admin-switch[aria-checked="true"] .admin-switch__thumb {
  transform: translateX(1.125rem);
  background: hsl(var(--primary-foreground));
}

/* --- Formular-Bausteine --- */

.admin-number-input {
  width: 5.5rem;
  padding-inline: 0.75rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.admin-number-input--compact {
  width: 4.5rem;
}

.admin-credit-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.admin-credit-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-credit-field__control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-credit-field__unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

.admin-settings-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-settings-block--bordered {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.admin-settings-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.admin-settings-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.admin-settings-block__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

.admin-settings-field .form-label {
  margin-bottom: 0.375rem;
}

.admin-settings-status {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.admin-settings-status.is-success {
  color: hsl(var(--success));
}

.admin-settings-status.is-error {
  color: hsl(var(--destructive));
}

.admin-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

/* Hinweistext: linke Kante statt Kasten */

.admin-note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 52rem;
  padding-left: 1rem;
  border-left: 1px solid hsl(var(--border-strong));
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.admin-note p {
  margin: 0;
}

.admin-note strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-note code,
  .admin-panel__footnote code,
  .admin-credit-section__lead code,
  .admin-briefing-editor__meta code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  color: hsl(var(--foreground));
}

.admin-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border-strong));
  border-left: 3px solid hsl(var(--warning));
  border-radius: var(--radius-md);
}

.admin-notice__text {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.admin-panel__footnote,
  .admin-inline-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--subtle-foreground));
}

.admin-inline-hint {
  margin-top: 0.375rem;
}

.admin-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.admin-section-lead {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* Ladeflächen: ruhiges Pulsieren, kein Schimmer-Verlauf */

.admin-skeleton {
  border-radius: var(--radius-md);
  background: hsl(var(--surface));
  animation: admin-skeleton-pulse 1.6s ease-in-out infinite;
}

.admin-skeleton--tile {
  min-height: 7rem;
}

.admin-skeleton--card {
  min-height: 9rem;
}

@keyframes admin-skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-skeleton {
    animation: none;
  }
}

/* Zugriff verweigert */

.admin-denied {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: hsl(var(--background));
}

.admin-denied.hidden {
  display: none;
}

.admin-denied__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 26rem;
  text-align: center;
}

.admin-denied__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.admin-denied__lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.47;
  color: hsl(var(--muted-foreground));
}

/* ============================================
     KALENDER – Mond & chinesischer Zyklus
     Almanach-Sprache: Haarlinien, Mono-Notation, keine Kästen.
     Die Mondscheibe ist das Exponat.
     ============================================ */

.calendar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: 12rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* --- Mondscheibe (SVG aus moon-calendar.js) --- */

.moon-disc {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* Der Mond bleibt in beiden Themes hell beleuchtet und dunkel beschattet. */

.moon-disc {
  --moon-lit: var(--foreground);
  --moon-shadow: var(--surface-raised);
}

:root[data-theme="light"] .moon-disc {
  --moon-lit: 0 0% 100%;
  --moon-shadow: 240 5% 22%;
}

.moon-disc__shadow {
  fill: hsl(var(--moon-shadow));
  stroke: hsl(var(--border-strong));
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.moon-disc__lit {
  fill: hsl(var(--moon-lit));
}

.moon-disc--sm {
  width: 1.75rem;
}

.moon-disc--day {
  width: 0.875rem;
  opacity: 0.45;
}

.moon-disc--lunation {
  width: 1.125rem;
  opacity: 1;
}

/* --- Mondkalender: Heute + Monat --- */

.moon-calendar-widget__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.moon-calendar-widget__today {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

@media (min-width: 1100px) {
  .moon-calendar-widget__content {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }
}

.moon-today {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.moon-today__phase {
  width: 11rem;
  flex: none;
}

.moon-today__info {
  min-width: 0;
  flex: 1 1 auto;
}

.moon-today__phase-name {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.026em;
  color: hsl(var(--foreground));
}

.moon-today__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
}

.moon-today__sign-symbol {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

.moon-today__illumination {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.moon-today__illumination-bar {
  flex: 1 1 auto;
  height: 2px;
  border-radius: var(--radius-pill);
  background: hsl(var(--border-strong));
  overflow: hidden;
}

.moon-today__illumination-fill {
  height: 100%;
  background: hsl(var(--primary));
}

.moon-today__illumination-value {
  flex: none;
  min-width: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: hsl(var(--foreground));
}

/* Kompakt: Dashboard-Karte „Mond heute“ */

.moon-today--compact {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.moon-today--compact .moon-today__phase {
  width: 4.5rem;
}

.moon-today--compact .moon-today__phase-name {
  margin-top: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.moon-today--compact .moon-today__sign {
  margin-top: 0.375rem;
}

.moon-today--compact .moon-today__illumination {
  margin-top: 0.875rem;
}

/* --- Nächste Lunationen: datierte Zeile mit Haarlinien --- */

.moon-upcoming {
  display: flex;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.moon-upcoming__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 1rem 0;
}

.moon-upcoming__item + .moon-upcoming__item {
  padding-left: 1.25rem;
  border-left: 1px solid hsl(var(--border));
}

.moon-upcoming__text {
  min-width: 0;
}

.moon-upcoming__date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

.moon-upcoming__label {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: hsl(var(--muted-foreground));
}

.moon-upcoming--compact {
  margin-top: 1.25rem;
  border-bottom: 0;
}

.moon-upcoming--compact .moon-upcoming__item {
  padding: 0.875rem 0 0;
}

.moon-upcoming--compact .moon-upcoming__item + .moon-upcoming__item {
  padding-left: 1rem;
}

/* --- Monat: Almanach-Tabelle --- */

.moon-month {
  min-width: 0;
}

.moon-month__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.moon-month__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.moon-month__nav,
  .zodiac-cycle__nav {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.moon-month__nav-btn,
  .zodiac-cycle__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.moon-month__nav-btn:hover,
  .zodiac-cycle__nav-btn:hover {
  border-color: hsl(var(--foreground) / 0.55);
  background: hsl(var(--foreground) / 0.05);
}

.moon-month__nav-btn:active,
  .zodiac-cycle__nav-btn:active {
  transform: scale(0.97);
}

.moon-month__nav-btn .material-symbols-outlined,
  .zodiac-cycle__nav-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.moon-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid hsl(var(--border-strong));
}

.moon-month__weekday {
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.moon-month__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid hsl(var(--border));
}

.moon-month__day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.5rem 0.625rem;
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.moon-month__day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.625rem;
  height: 1.625rem;
  margin: -0.1875rem 0 0 -0.375rem;
  padding: 0 0.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: hsl(var(--muted-foreground));
}

.moon-month__day .moon-disc {
  align-self: flex-end;
}

.moon-month__day--new-moon .moon-month__day-number,
  .moon-month__day--full-moon .moon-month__day-number {
  color: hsl(var(--foreground));
}

.moon-month__day--today .moon-month__day-number {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.moon-month__day--today .moon-disc {
  opacity: 1;
}

@media (max-width: 640px) {
  .moon-calendar-widget__content {
    gap: 2.5rem;
  }

  .moon-today {
    gap: 1.5rem;
  }

  .moon-today__phase {
    width: 8.5rem;
  }

  .moon-today--compact .moon-today__phase {
    width: 3.75rem;
  }

  .moon-today--compact .moon-today__phase-name {
    font-size: 1.5rem;
  }

  .moon-month__title {
    font-size: 1.5rem;
  }

  .moon-month__weekday {
    padding: 0.5rem 0.25rem;
    text-align: center;
    letter-spacing: 0.04em;
  }

  .moon-month__day {
    align-items: center;
    min-height: 3.75rem;
    padding: 0.375rem 0.125rem;
  }

  .moon-month__day-number {
    margin: 0;
  }

  .moon-month__day .moon-disc {
    align-self: center;
  }
}

/* ============================================
     CHINESISCHER TIERKREIS
     ============================================ */

.zodiac-calendar-widget__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Schriftzeichen statt Emoji – Systemschrift für CJK, Serif bevorzugt */

.zodiac-glyph {
  font-family: 'Songti TC', 'Songti SC', 'Noto Serif CJK TC', 'Source Han Serif TC', 'PMingLiU', serif;
  font-weight: 400;
  line-height: 1;
  color: hsl(var(--foreground));
}

.zodiac-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.zodiac-current__glyph {
  display: block;
  font-size: 7rem;
}

.zodiac-current__info {
  min-width: 0;
}

.zodiac-current__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.026em;
  color: hsl(var(--foreground));
}

.zodiac-current__description {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

/* Datenstreifen mit Haarlinien statt drei Mini-Karten */

.zodiac-current__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 2rem 0 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.zodiac-current__meta > div {
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.zodiac-current__meta > div:last-child {
  border-bottom: 0;
}

.zodiac-current__meta dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.zodiac-current__meta dd {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: hsl(var(--foreground));
}

.zodiac-current__hint,
  .zodiac-upcoming__note,
  .zodiac-cycle__hint {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--subtle-foreground));
}

@media (min-width: 768px) {
  .zodiac-current {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 3rem;
  }

  .zodiac-current__glyph {
    font-size: 10rem;
  }

  .zodiac-current__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zodiac-current__meta > div {
    padding: 1rem 1.25rem;
    border-bottom: 0;
    border-left: 1px solid hsl(var(--border));
  }

  .zodiac-current__meta > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.zodiac-upcoming {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .zodiac-upcoming {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.zodiac-upcoming__list {
  margin-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.zodiac-upcoming__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.zodiac-upcoming__year,
  .zodiac-cycle__year {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.zodiac-upcoming__sign {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.zodiac-upcoming__glyph {
  font-size: 1.5rem;
}

.zodiac-upcoming__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.zodiac-cycle__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.zodiac-cycle__range {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

/* Zwölf Jahre als Tabelle mit Haarlinien */

.zodiac-cycle__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--border));
  border-left: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .zodiac-cycle__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .zodiac-cycle__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.zodiac-cycle__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.zodiac-cycle__item--current {
  outline: 1px solid hsl(var(--primary));
  outline-offset: -1px;
  background: hsl(var(--primary) / 0.08);
}

.zodiac-cycle__item--current .zodiac-cycle__year {
  color: hsl(var(--primary));
}

.zodiac-cycle__glyph {
  margin: 0.75rem 0 0.5rem;
  font-size: 2rem;
}

.zodiac-cycle__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.zodiac-cycle__stem {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
     ZEICHEN-KACHEL
     (historisch in dieser Datei; von Profil- und Reportseiten genutzt)
     =================================== */

/* Zeichen-Kachel (Sonne / Mond / Aszendent) – Grundform; Profilseiten verfeinern sie */

.sign-widget {
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
}

.sign-symbol {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

/* ===================================
     MAGICSPACE – Report-Konfigurator (Point of Sale)
     Eine Entscheidung pro Schritt: Typ → Profil → Details/Format.
     Flache Karten, eine Aktion (Checkout-Leiste), Aurum nur für „ausgewählt".
     =================================== */

/* Astro-Glyphen — gemeinsam für Landing, Dashboard, Magicspace, Admin */

.astro-glyph {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
  color: hsl(var(--primary));
}

.astro-glyph--inline {
  display: inline;
  font-size: 1.125rem;
  vertical-align: middle;
}

/* --- Seite ------------------------------------------------------- */

.magicspace-main {
  min-width: 0;
  max-width: 100%;
  /* Platz für die fixierte Checkout-Leiste */
  padding-bottom: 6.5rem;
}

@media (max-width: 639px) {
  .magicspace-main {
    /* Gestapelte Leiste (Zusammenfassung + Aktion) ist höher */
    padding-bottom: 10.5rem;
  }
}

body.magicspace-page:has(#magicspace-checkout-bar.hidden) .magicspace-main,
  .magicspace-main:has(#report-builder.hidden) {
  padding-bottom: 0;
}

.magicspace-builder {
  min-width: 0;
  max-width: 100%;
}

/* --- Schrittfolge: leise nummerierte Linie ------------------------ */

.magicspace-progress {
  margin-top: 0.75rem;
}

.magicspace-progress__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: magicspace-step;
  overflow-x: auto;
  scrollbar-width: none;
}

.magicspace-progress__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  flex: none;
  counter-increment: magicspace-step;
  color: hsl(var(--subtle-foreground));
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.magicspace-progress__step:hover {
  color: hsl(var(--foreground));
}

.magicspace-progress__step:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Haarlinie als Verbinder vor jedem weiteren Schritt */

.magicspace-progress__step + .magicspace-progress__step::before {
  content: '';
  flex: none;
  width: clamp(1rem, 5vw, 3.5rem);
  height: 1px;
  margin: 0 0.75rem 0 0.5rem;
  background: hsl(var(--border-strong));
}

.magicspace-progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.magicspace-progress__num::before {
  content: counter(magicspace-step, decimal-leading-zero);
}

.magicspace-progress__label {
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.magicspace-progress__step.is-active {
  color: hsl(var(--foreground));
}

.magicspace-progress__step.is-active .magicspace-progress__num {
  color: hsl(var(--primary));
}

.magicspace-progress__step.is-active .magicspace-progress__label {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: hsl(var(--primary));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.magicspace-progress__step.is-done {
  color: hsl(var(--muted-foreground));
}

.magicspace-progress__step.is-done .magicspace-progress__num::before {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  font-feature-settings: 'liga';
}

/* --- Schritt-Panels ---------------------------------------------- */

.magicspace-step-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 2rem;
}

.magicspace-step-panel:not(.hidden) {
  animation: magicspacePanelIn 180ms ease-out;
}

@keyframes magicspacePanelIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magicspace-step-panel:not(.hidden) {
    animation: none;
  }
}

.magicspace-step-back {
  margin: -0.5rem 0 -1rem -0.875rem;
}

.magicspace-step-back .material-symbols-outlined {
  font-size: 1.125rem;
}

.magicspace-step-section {
  min-width: 0;
  max-width: 100%;
}

/* Formular-Abschnitte bleiben in einer ruhigen Spalte */

.magicspace-step-section--form {
  max-width: 44rem;
}

.magicspace-type-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* --- Schritt 1: Katalog -------------------------------------------- */

.magicspace-type-filter {
  align-self: flex-start;
}

.magicspace-catalog {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.report-type-category {
  min-width: 0;
}

.report-type-category__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .report-type-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .report-type-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Produktkarte: Glyphe · Art (Mono) · Titel · ein Satz · Preis */

.magicspace-catalog .report-type-widget {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  -moz-column-gap: 1rem;
       column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: start;
  padding: 1.125rem 1.125rem 1.125rem 1rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.magicspace-catalog .report-type-widget:hover {
  border-color: hsl(var(--border-strong));
  background-color: hsl(var(--surface-raised));
}

.magicspace-catalog .report-type-widget:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Ausgewählt: Aurum-Rand, ein Hauch Aurum in der Fläche, Haken */

.magicspace-catalog .report-type-widget.is-active,
  .magicspace-catalog .report-type-widget.is-active:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary-container));
  background-color: color-mix(in srgb, hsl(var(--primary)) 8%, hsl(var(--surface)));
}

.magicspace-catalog .report-type-widget.is-active::after,
  .magicspace-format-option:has(input:checked)::after {
  content: 'check';
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  font-feature-settings: 'liga';
}

/* Nicht wählbar (Radio deaktiviert): deutlich zurückgenommen */

.magicspace-catalog .report-type-widget.is-disabled,
  .magicspace-catalog .report-type-widget[aria-disabled="true"],
  .magicspace-catalog .report-type-widget:has(input:disabled):not(.is-active) {
  cursor: not-allowed;
  background-color: transparent;
  border-style: dashed;
  color: hsl(var(--subtle-foreground));
}

.magicspace-catalog .report-type-widget.is-disabled > *,
  .magicspace-catalog .report-type-widget[aria-disabled="true"] > *,
  .magicspace-catalog .report-type-widget:has(input:disabled):not(.is-active) > * {
  opacity: 0.45;
}

.magicspace-catalog .report-type-widget__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.magicspace-catalog .report-type-widget__icon--glyph .astro-glyph {
  font-size: 1.625rem;
}

.magicspace-catalog .report-type-widget__body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding-right: 1.75rem;
  /* Platz für den Haken */
}

.magicspace-catalog .report-type-widget__title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  overflow-wrap: break-word;
}

.magicspace-catalog .report-type-widget__description {
  display: -webkit-box;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magicspace-catalog .report-type-widget__cost {
  grid-column: 2;
  justify-self: start;
}

@media (min-width: 640px) {
  .magicspace-catalog .report-type-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 13.5rem;
    padding: 1.5rem;
  }

  .magicspace-catalog .report-type-widget__icon {
    justify-content: flex-start;
    width: auto;
    height: 2.25rem;
  }

  .magicspace-catalog .report-type-widget__icon--glyph .astro-glyph {
    font-size: 2rem;
  }

  .magicspace-catalog .report-type-widget__body {
    padding-right: 0;
  }

  .magicspace-catalog .report-type-widget__cost {
    margin-top: auto;
  }
}

/* --- Schritt 2: Auswahl-Zeile + Profile ---------------------------- */

.magicspace-selection {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.magicspace-selection__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.magicspace-selection__glyph {
  flex: none;
  width: 2rem;
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: center;
}

.magicspace-selection__text {
  flex: 1;
  min-width: 0;
}

.magicspace-selection__kind::before {
  content: '· ';
}

.magicspace-selection__title {
  margin: 0.25rem 0 0;
  font-size: 1.75rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.magicspace-selection__description {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.magicspace-selection__cost-detail {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.magicspace-selection__cost {
  flex: none;
  margin-top: 0.25rem;
}

.magicspace-selection__change {
  flex: none;
  align-self: flex-start;
}

@media (max-width: 639px) {
  .magicspace-selection {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }

  .magicspace-selection__card {
    flex-wrap: wrap;
  }

  .magicspace-selection__description {
    display: none;
  }

  .magicspace-selection__title {
    font-size: 1.5rem;
  }

  .magicspace-selection__change {
    align-self: flex-start;
    margin-left: 2.125rem;
  }
}

.magicspace-profile-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.magicspace-profile-picker__toolbar {
  min-width: 0;
  max-width: 24rem;
}

.magicspace-profile-picker__search {
  position: relative;
  display: flex;
  align-items: center;
}

.magicspace-profile-picker__search-icon {
  position: absolute;
  left: 0.875rem;
  font-size: 1.125rem;
  color: hsl(var(--subtle-foreground));
  pointer-events: none;
}

.magicspace-profile-picker__search-input{
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
  background-color: hsl(var(--surface-sunken));
  border: 1px solid hsl(var(--border-strong));
  color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.magicspace-profile-picker__search-input[type="date"],.magicspace-profile-picker__search-input[type="time"],.magicspace-profile-picker__search-input[type="datetime-local"],.magicspace-profile-picker__search-input[type="month"],.magicspace-profile-picker__search-input[type="week"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  overflow: hidden;
}

.magicspace-profile-picker__search-input[type="date"]::-webkit-datetime-edit,.magicspace-profile-picker__search-input[type="time"]::-webkit-datetime-edit,.magicspace-profile-picker__search-input[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  width: auto;
  padding: 0;
  color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
}

.magicspace-profile-picker__search-input[type="date"]::-webkit-date-and-time-value,.magicspace-profile-picker__search-input[type="time"]::-webkit-date-and-time-value,.magicspace-profile-picker__search-input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

.magicspace-profile-picker__search-input:-webkit-autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.magicspace-profile-picker__search-input:-webkit-autofill,.magicspace-profile-picker__search-input:-webkit-autofill:hover,.magicspace-profile-picker__search-input:-webkit-autofill:focus,.magicspace-profile-picker__search-input:-webkit-autofill:active,.magicspace-profile-picker__search-input:autofill {
  -webkit-text-fill-color: hsl(var(--foreground));
  caret-color: hsl(var(--foreground));
  box-shadow: 0 0 0 1000px hsl(var(--surface-sunken)) inset;
  -webkit-transition: background-color 9999s ease-out;
  transition: background-color 9999s ease-out;
}

.magicspace-profile-picker__search-input::-moz-placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.magicspace-profile-picker__search-input::placeholder {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
  opacity: 1;
}

.magicspace-profile-picker__search-input:hover:not(:focus):not(:disabled) {
  border-color: hsl(var(--foreground) / 0.4);
}

.magicspace-profile-picker__search-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.22);
  outline: none;
}

.magicspace-profile-picker__search-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-form__option-detail .magicspace-profile-picker__search-input {
  max-width: 16rem;
}

.landing-onboarding .magicspace-profile-picker__search-input {
  min-height: 3.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 1.0625rem;
}

.magicspace-profile-picker__search-input {
  padding-left: 2.625rem;
  border-radius: var(--radius-pill);
}

.magicspace-profile-picker__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.magicspace-profile-picker__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.magicspace-profile-picker__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border-strong));
  color: hsl(var(--muted-foreground));
  grid-column: 1 / -1;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
}

.magicspace-profile-picker__empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.magicspace-profile-picker__empty-text {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.magicspace-profile-picker__cta {
  margin-top: 0.75rem;
}

/* Profil als wählbare Zeile — gleiche Auswahl-Sprache wie die Produktkarten */

.magicspace-profile-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.875rem 1rem;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--surface));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.magicspace-profile-option:hover:not(:disabled) {
  border-color: hsl(var(--border-strong));
  background-color: hsl(var(--surface-raised));
}

.magicspace-profile-option:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.magicspace-profile-option.is-selected,
  .magicspace-profile-option.is-selected:hover:not(:disabled) {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary-container));
  background-color: color-mix(in srgb, hsl(var(--primary)) 8%, hsl(var(--surface)));
}

.magicspace-profile-option.is-disabled,
  .magicspace-profile-option:disabled {
  cursor: not-allowed;
  background-color: transparent;
  border-style: dashed;
}

.magicspace-profile-option.is-disabled .magicspace-profile-option__avatar,
  .magicspace-profile-option.is-disabled .magicspace-profile-option__name,
  .magicspace-profile-option.is-disabled .magicspace-profile-option__meta {
  opacity: 0.45;
}

.magicspace-profile-option__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border-strong));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.magicspace-profile-option.is-selected .magicspace-profile-option__avatar {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.magicspace-profile-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.magicspace-profile-option__name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.magicspace-profile-option__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.magicspace-profile-option__note {
  font-size: 0.8125rem;
  color: hsl(var(--warning));
}

.magicspace-profile-option__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border-strong));
  flex-shrink: 0;
}

.magicspace-profile-option.is-selected .magicspace-profile-option__check {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
}

.magicspace-profile-option.is-selected .magicspace-profile-option__check::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  font-feature-settings: 'liga';
  color: hsl(var(--primary-foreground));
}

.magicspace-profile-option.is-disabled .magicspace-profile-option__check {
  visibility: hidden;
}

.magicspace-pair-pickers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .magicspace-pair-pickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.magicspace-pair-pickers__label {
  margin: 0 0 0.75rem;
}

/* Hilfetext, Hinweise */

.magicspace-field-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.magicspace-profile-picker + .magicspace-field-hint,
  .magicspace-pair-pickers + .magicspace-field-hint {
  margin-top: 1rem;
}

.magicspace-note {
  padding-left: 1rem;
  border-left: 1px solid hsl(var(--border-strong));
}

.magicspace-note__text {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.magicspace-checkout-note {
  margin: 0;
  color: hsl(var(--subtle-foreground));
}

/* --- Schritt Details: Formularfelder ------------------------------- */

.magicspace-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.magicspace-fields__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .magicspace-fields__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .magicspace-fields__row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Segment-Schalter mit Radios (Geschlecht): Adapter auf .segmented */

.magicspace-segmented__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.magicspace-segmented__option:has(input:checked) {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-weight: 600;
}

.magicspace-segmented__option:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Zukunftskind: Foto-Felder */

.magicspace-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .magicspace-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.magicspace-upload-group {
  min-width: 0;
}

.magicspace-upload-group__title {
  margin: 0 0 0.75rem;
}

.magicspace-upload-group__slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.magicspace-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 10rem;
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed hsl(var(--border-strong));
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.magicspace-dropzone:hover {
  border-color: hsl(var(--foreground) / 0.55);
  background-color: hsl(var(--foreground) / 0.04);
}

.magicspace-dropzone:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.magicspace-dropzone.has-preview {
  border-style: solid;
  border-color: hsl(var(--primary));
  justify-content: flex-start;
}

.magicspace-dropzone__icon {
  margin-bottom: 0.375rem;
  font-size: 1.5rem;
  color: hsl(var(--subtle-foreground));
}

.magicspace-dropzone__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

.magicspace-dropzone__hint {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.magicspace-dropzone.has-preview .magicspace-dropzone__hint,
  .magicspace-dropzone.has-preview .magicspace-dropzone__icon {
  display: none;
}

.magicspace-dropzone__preview {
  width: 100%;
  margin-top: 0.5rem;
}

.magicspace-dropzone__preview img {
  display: block;
  width: 100%;
  height: 7rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius-sm);
}

/* --- Schritt Format: zwei wählbare Karten mit Formatrahmen ---------- */

.magicspace-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .magicspace-format-options {
    gap: 1.5rem;
  }
}

.magicspace-format-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.magicspace-format-option:hover {
  border-color: hsl(var(--border-strong));
  background-color: hsl(var(--surface-raised));
}

.magicspace-format-option:has(input:checked),
  .magicspace-format-option:has(input:checked):hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary-container));
  background-color: color-mix(in srgb, hsl(var(--primary)) 8%, hsl(var(--surface)));
}

.magicspace-format-option:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Piktogramm des Seitenverhältnisses (funktional, kein Dekor) */

.magicspace-format-option__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6rem;
}

.magicspace-format-option__frame::before {
  content: '';
  display: block;
  border: 1px solid hsl(var(--muted-foreground));
  border-radius: var(--radius-sm);
}

.magicspace-format-option__frame--landscape::before {
  width: 6rem;
  aspect-ratio: 16 / 9;
}

.magicspace-format-option__frame--portrait::before {
  height: 6rem;
  aspect-ratio: 9 / 16;
}

.magicspace-format-option:has(input:checked) .magicspace-format-option__frame::before {
  border-color: hsl(var(--primary));
}

.magicspace-format-option__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* --- Checkout-Leiste: mattiert, fixiert, EINE Primäraktion ---------- */

.magicspace-checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--app-bottom-nav-height);
  z-index: 50;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.8);
  backdrop-filter: var(--bar-blur);
  -webkit-backdrop-filter: var(--bar-blur);
}

@media (min-width: 1024px) {
  .magicspace-checkout-bar {
    left: 18rem;
    /* Sidebar-Breite */
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.magicspace-checkout-bar.hidden {
  display: none;
}

.magicspace-checkout-bar__inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .magicspace-checkout-bar__inner {
    padding: 0.875rem 2.5rem;
  }
}

.magicspace-checkout-bar__panel {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .magicspace-checkout-bar__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.magicspace-checkout-bar__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.125rem 1rem;
  min-width: 0;
  flex: 1;
}

.magicspace-checkout-bar__title {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  margin: 0;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: hsl(var(--foreground));
}

.magicspace-checkout-bar__type,
  .magicspace-checkout-bar__meta strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.magicspace-checkout-bar__meta {
  color: hsl(var(--muted-foreground));
}

.magicspace-checkout-bar__total {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.magicspace-checkout-bar__total:empty,
  .magicspace-checkout-bar__type:empty,
  .magicspace-checkout-bar__balance:empty {
  display: none;
}

.magicspace-checkout-bar__text {
  grid-column: 1;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Guthaben: sekundär, Mono. Zu wenig Credits: Warnfarbe als Text + Link. */

.magicspace-checkout-bar__balance {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
  white-space: nowrap;
}

.magicspace-checkout-bar__balance.is-insufficient {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: hsl(var(--warning));
}

@media (max-width: 639px) {
  /* Mobil zeigt die Kopfleiste das Guthaben bereits – nur die Warnung bleibt. */

  .magicspace-checkout-bar__balance:not(.is-insufficient) {
    display: none;
  }

  .magicspace-checkout-bar__balance.is-insufficient {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.magicspace-checkout-bar__cta {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .magicspace-checkout-bar__cta {
    width: auto;
    min-width: 13rem;
  }
}

/* --- Ergebnisbereich (nach Erstellung auf derselben Seite) ----------- */

.magicspace-result {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.magicspace-result-block {
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* --- Vollbild-Overlay „Report wird erstellt" (Dialog-Ebene) ---------- */

#report-processing-overlay {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: hsl(var(--background) / 0.92);
}

.magicspace-processing-card {
  border-color: hsl(var(--border-strong));
  background: hsl(var(--surface-raised));
  box-shadow: var(--shadow-float);
}

.magicspace-processing-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.magicspace-processing-card__track {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: hsl(var(--border));
  overflow: hidden;
}

.magicspace-processing-card__bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: hsl(var(--primary));
  transition: width 300ms ease;
}

/* ============================================
     ADMIN – Seiten
     ============================================ */

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 160ms ease;
}

.admin-back:hover {
  color: hsl(var(--foreground));
}

.admin-back .material-symbols-outlined,
  .admin-page .page-head__actions .material-symbols-outlined,
  .admin-page .btn-sm .material-symbols-outlined {
  font-size: 1.125rem;
}

/* Kennzahlen: Streifen mit Haarlinien statt Karten */

.admin-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.admin-stats .stat {
  flex-direction: column;
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-stats .stat:last-child {
  border-bottom: 0;
}

.admin-stats dd,
  .admin-stats dt {
  margin: 0;
}

@media (min-width: 640px) {
  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stats .stat {
    padding: 1.5rem 1.5rem;
    border-bottom: 0;
    border-left: 1px solid hsl(var(--border));
  }

  .admin-stats .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .admin-stats .stat__value {
    font-size: 3.5rem;
  }
}

/* Bereichs-Navigation (Segment-Schalter aus Links) */

.admin-section-nav {
  align-self: flex-start;
}

.admin-section-nav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.admin-studio-section {
  scroll-margin-top: 2rem;
}

@media (max-width: 1023px) {
  .admin-studio-section {
    scroll-margin-top: calc(var(--mobile-header-offset) + 1rem);
  }

  .admin-section-nav__link,
    .admin-reports-tabs__btn {
    min-height: 2.75rem;
  }
}

.admin-subsection {
  margin-top: 3rem;
}

/* Reports nach Typ: Raster mit Haarlinien */

.admin-report-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--border));
  border-left: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .admin-report-types-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-report-types-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.admin-report-types-grid > * {
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.admin-report-types-grid > .admin-skeleton {
  border-radius: 0;
}

.admin-report-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
}

.admin-report-type-card__glyph {
  font-size: 1.125rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
}

.admin-report-type-card__count {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.admin-report-type-card__label {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* Checkout-Pakete: wählbare Karten */

.admin-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .admin-checkout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.admin-checkout-grid > .admin-skeleton {
  border-radius: var(--radius-lg);
}

.admin-checkout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.admin-checkout-card:hover {
  border-color: hsl(var(--border-strong));
  background: hsl(var(--surface-raised));
}

.admin-checkout-card.is-selected,
  .admin-checkout-card[aria-pressed="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.admin-checkout-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.admin-checkout-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-checkout-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.admin-checkout-card__value {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.admin-checkout-card__label {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.admin-checkout-card__pending {
  margin-top: 0.75rem;
}

.admin-checkout-detail {
  margin-top: 2.5rem;
}

.admin-checkout-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-checkout-detail__title {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Unterseiten als Listenzeilen */

.admin-nav-list {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.admin-nav-card {
  gap: 1.25rem;
  padding: 1.25rem 0;
  transition: color 160ms ease;
}

.admin-nav-card__glyph {
  flex: none;
  width: 1.5rem;
  font-size: 1.25rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.admin-nav-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-nav-card__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.admin-nav-card__lead {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.admin-nav-card__action {
  flex: none;
  font-size: 1.25rem;
  color: hsl(var(--subtle-foreground));
  transition: color 160ms ease;
}

.admin-nav-card:hover .admin-nav-card__title,
  .admin-nav-card:hover .admin-nav-card__action {
  color: hsl(var(--primary));
}

/* --- Benutzerverwaltung --- */

.admin-search {
  flex: 0 1 22rem;
}

/* --- User-Details --- */

.admin-detail {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admin-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .admin-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 2.5rem;
         column-gap: 2.5rem;
  }
}

@media (min-width: 1100px) {
  .admin-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-facts--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-facts > div {
  min-width: 0;
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-facts dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.admin-facts dd {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  color: hsl(var(--foreground));
}

.admin-facts__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.admin-disclosures {
  border-top: 1px solid hsl(var(--border));
}

.admin-disclosure {
  border-bottom: 1px solid hsl(var(--border));
}

.admin-disclosure__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-disclosure__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.admin-disclosure__meta {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.admin-disclosure__chevron {
  flex: none;
  color: hsl(var(--muted-foreground));
  transition: transform 160ms ease, color 160ms ease;
}

.admin-disclosure__toggle:hover .admin-disclosure__chevron {
  color: hsl(var(--foreground));
}

.admin-disclosure__content {
  padding-bottom: 2rem;
}

.admin-disclosure__content .admin-chip-row {
  margin-bottom: 1rem;
}

/* --- Crediteinstellungen --- */

.admin-credit-costs-editor {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admin-credit-section__header {
  margin-bottom: 1.25rem;
}

.admin-credit-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.admin-credit-section__lead,
  .admin-credit-advanced__lead {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.admin-credit-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .admin-credit-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .admin-credit-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-credit-report-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.admin-credit-report-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-credit-report-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.admin-credit-report-card__total {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: hsl(var(--subtle-foreground));
}

.admin-credit-report-card__total strong {
  font-weight: 500;
  color: hsl(var(--primary));
}

.admin-credit-report-card__description {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.admin-credit-report-card__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* Einfache Kosten: Zeilen mit Haarlinie, Eingabe rechts */

.admin-credit-simple-grid {
  border-top: 1px solid hsl(var(--border));
}

.admin-credit-simple-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.125rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-credit-simple-item__label {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.admin-credit-simple-item__note {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

.admin-credit-simple-item .admin-credit-field__control {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.admin-credit-advanced__summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 160ms ease;
}

.admin-credit-advanced__summary:hover {
  color: hsl(var(--foreground));
}

.admin-credit-advanced__lead {
  margin-bottom: 1rem;
}

/* --- Report-Erstellung --- */

.admin-reports-tabs {
  align-self: flex-start;
}

.admin-reports-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.admin-reports-panel.hidden {
  display: none;
}

.admin-form-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  overflow: visible;
}

.admin-form-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-form-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-model-list {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.admin-model-card {
  justify-content: space-between;
  padding: 0.875rem 0;
}

.admin-model-card__body {
  min-width: 0;
}

.admin-model-card__body p {
  margin: 0;
}

.admin-model-card__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

/* Reportarten */

.admin-config-list__group {
  margin: 2.5rem 0 0.5rem;
}

.admin-config-list__group:first-child {
  margin-top: 0;
}

.admin-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid hsl(var(--border));
}

.admin-config-row:last-child {
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 1100px) {
  .admin-config-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.admin-config-row__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.admin-config-row__glyph {
  flex: none;
  width: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.admin-config-row__text {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-config-row__hint {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.admin-config-row__head .status {
  flex: none;
  min-width: 4.25rem;
  margin-top: 0.3125rem;
}

.admin-config-row__models {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.admin-assignment__label {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-assignment__model {
  margin: 0.375rem 0 0;
}

.admin-assignment__hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

/* Briefings */

.admin-briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .admin-briefing-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.admin-briefing-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-briefing-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 44rem;
  padding-top: 0.5rem;
  overflow-y: auto;
}

.admin-briefing-nav__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: hsl(var(--muted-foreground));
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.admin-briefing-nav__item:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.05);
}

.admin-briefing-nav__item.is-active {
  color: hsl(var(--foreground));
  background: hsl(var(--surface-raised));
}

.admin-briefing-nav__glyph {
  flex: none;
  width: 1.25rem;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  color: inherit;
}

.admin-briefing-nav__item.is-active .admin-briefing-nav__glyph {
  color: hsl(var(--primary));
}

.admin-briefing-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.admin-briefing-nav__label {
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-briefing-nav__item.is-active .admin-briefing-nav__label {
  font-weight: 600;
}

.admin-briefing-nav__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: hsl(var(--subtle-foreground));
}

.admin-briefing-nav__badge--db {
  color: hsl(var(--primary));
}

.admin-briefing-nav__badge--missing {
  color: hsl(var(--warning));
}

.admin-briefing-editor {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.admin-briefing-editor__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-briefing-editor__header .admin-section-title {
  margin-top: 0.375rem;
}

.admin-briefing-editor__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.admin-briefing-editor__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

.admin-briefing-editor__textarea {
  min-height: 30rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  resize: vertical;
}

.admin-briefing-editor__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.admin-briefing-editor__footer .admin-settings-status {
  margin-right: auto;
}

@media (max-width: 639px) {
  .admin-briefing-editor__header,
    .admin-briefing-editor__body,
    .admin-briefing-editor__footer {
    padding: 1.25rem;
  }

  .admin-briefing-editor__textarea {
    min-height: 18rem;
  }

  .admin-page .page-head__actions,
    .admin-page .page-head__actions > .btn-outline,
    .admin-save-bar > .btn-primary,
    .admin-settings-block__row > .btn-outline,
    .admin-settings-block__row > .btn-primary {
    width: 100%;
  }

  .admin-search {
    flex-basis: 100%;
  }
}

/* ===================================
     REPORTS – Übersicht
     Seitenkopf (.page-head) → Filter (.segmented) → Raster
     =================================== */

.reports-head__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.reports-head__count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.reports-studio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}

.reports-filter {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reports-filter::-webkit-scrollbar {
  display: none;
}

.reports-filter .segmented__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  flex: none;
}

.reports-filter__glyph {
  font-size: 0.9375rem;
  line-height: 1;
}

.reports-filter__count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .reports-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reports-grid:empty {
  display: none;
}

/* Ladezeile innerhalb des Rasters */

.reports-grid > .profile-studio-state {
  grid-column: 1 / -1;
}

.reports-empty {
  width: 100%;
}

.reports-empty.hidden {
  display: none;
}

.reports-empty__glyph {
  font-size: 1.75rem;
  line-height: 1;
  color: hsl(var(--subtle-foreground));
}

.reports-empty__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.reports-empty__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.reports-empty .btn-outline {
  margin-top: 0.75rem;
}

/*
   * Profile – Liste, Profilkarte, Zeichen-Leiste, Formular.
   * DESIGN.md: Abschnitte ohne Kasten, nur Blatt-Elemente sind Karten;
   * Datengruppen in einer Karte sind eine Leiste mit Haarlinien.
   */

/* Aspektfarben: eine Quelle für Radix (JS liest die Tokens), Legende und Aspekt-Grid */

:root {
  --aspect-conjunction: var(--foreground);
  --aspect-trine: var(--info);
  --aspect-sextile: var(--success);
  --aspect-square: var(--warning);
  --aspect-opposition: var(--destructive);
}

/* ---------- Seitenkopf der Profil-Liste ---------- */

.profiles-head__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.profiles-head__count {
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.profiles-head__count::before {
  content: '·';
  margin-right: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

/* ---------- Raster ---------- */

.profiles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1100px) {
  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profiles-grid > .profile-studio-state {
  grid-column: 1 / -1;
}

.profiles-grid:empty {
  display: none;
}

/* ---------- Profilkarte ---------- */

.profile-module {
  min-width: 0;
  height: 100%;
}

.profile-module__surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  transition: border-color 160ms ease, background-color 160ms ease;
}

.profile-module__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.profile-module__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-module__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  margin-top: 0.5rem;
}

.profile-module__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.profile-module__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.profile-module__title-link:hover {
  color: hsl(var(--primary));
}

/* Geburtszeile: Datum · Zeit · Ort in Mono */

.profile-module__birthline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0;
  margin: 0.625rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.profile-module__birthline > span:not(:last-child)::after {
  content: '·';
  margin: 0 0.5rem;
  color: hsl(var(--subtle-foreground));
}

.profile-module__icon-group {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin: -0.375rem -0.5rem 0 0;
}

.profile-module__icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 0;
  padding: 0;
  color: hsl(var(--subtle-foreground));
}

.profile-module__icon-btn--danger:hover:not(:disabled) {
  color: hsl(var(--destructive));
  background-color: hsl(var(--destructive) / 0.1);
}

/* ---------- Zeichen-Leiste: Sonne / Mond / Asz / MC ---------- */

.profile-module__signs-block {
  margin: 1.5rem 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.profile-module__signs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-module-sign {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
      'symbol label'
      'value value';
  align-items: center;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  row-gap: 0.375rem;
  min-width: 0;
  padding: 0.875rem 0.5rem 0.875rem 1rem;
  border-left: 1px solid hsl(var(--border));
}

.profile-module-sign:first-child {
  padding-left: 0;
  border-left: 0;
}

.profile-module-sign--empty {
  opacity: 0.45;
}

.profile-module-sign__symbol {
  grid-area: symbol;
  font-size: 1.125rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

.profile-module-sign__label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.profile-module-sign__value {
  grid-area: value;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-module-sign__element {
  display: none;
}

@media (max-width: 560px) {
  .profile-module__signs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-module-sign:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .profile-module-sign:nth-child(n + 3) {
    border-top: 1px solid hsl(var(--border));
  }
}

/* Hero-Variante auf der Detailseite: größer, mit Element-Zeile */

.profile-module__signs--hero .profile-module-sign {
  grid-template-areas:
      'symbol label'
      'symbol value'
      'symbol element';
  row-gap: 0.125rem;
  -moz-column-gap: 1rem;
       column-gap: 1rem;
  padding: 1.25rem 1rem 1.25rem 1.5rem;
}

.profile-module__signs--hero .profile-module-sign:first-child {
  padding-left: 0;
}

.profile-module__signs--hero .profile-module-sign__symbol {
  font-size: 2.25rem;
}

.profile-module__signs--hero .profile-module-sign__value {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.profile-module__signs--hero .profile-module-sign__element {
  display: block;
  grid-area: element;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 900px) {
  .profile-module__signs--hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-module__signs--hero .profile-module-sign:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .profile-module__signs--hero .profile-module-sign:nth-child(n + 3) {
    border-top: 1px solid hsl(var(--border));
  }
}

@media (max-width: 560px) {
  .profile-module__signs--hero .profile-module-sign {
    -moz-column-gap: 0.75rem;
         column-gap: 0.75rem;
    padding: 1rem 0.5rem 1rem 1rem;
  }

  .profile-module__signs--hero .profile-module-sign:nth-child(odd) {
    padding-left: 0;
  }

  .profile-module__signs--hero .profile-module-sign__symbol {
    font-size: 1.75rem;
  }

  .profile-module__signs--hero .profile-module-sign__value {
    font-size: 1.125rem;
  }
}

/* Farbe trägt hier nicht: alle vier Glyphen in Textfarbe */

.sign-accent--sun,
  .sign-accent--moon,
  .sign-accent--asc,
  .sign-accent--mc {
  color: hsl(var(--foreground));
}

/* ---------- Karte: noch nicht berechnet / Fuß ---------- */

.profile-module__pending {
  margin: 1.5rem 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.profile-module__pending-text {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.profile-module__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.profile-module__footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.profile-module__view-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  cursor: pointer;
}

.profile-module__updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
  white-space: nowrap;
}

@media (max-width: 560px) {
  .profile-module__header {
    padding: 1.25rem 1.25rem 0;
  }

  .profile-module__signs-block,
    .profile-module__pending {
    margin: 1.25rem 1.25rem 0;
  }

  .profile-module__footer {
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* ---------- Kontextkarte (Report-Seite: Profil wählen) ---------- */

.profile-module__intro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.profile-module__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
}

.profile-detail-hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.profile-module__status {
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
}

.profile-module__status--ready {
  color: hsl(var(--primary));
}

.profile-module__status--pending.status {
  color: hsl(var(--warning));
}

.profile-module__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.5rem 0 0;
}

.profile-module__fact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.profile-module__fact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
}

.profile-module__fact-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.profile-module--context[data-profile-context-id] {
  cursor: pointer;
}

.profile-module--context[data-profile-context-id]:hover .profile-module__surface {
  border-color: hsl(var(--border-strong));
  background: hsl(var(--surface-raised));
}

.profile-module--context[data-profile-context-id]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

.profile-module--active .profile-module__surface,
  .profile-module--context.profile-module--active[data-profile-context-id]:hover .profile-module__surface {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.profile-module__footer-actions--context {
  width: 100%;
  justify-content: space-between;
}

.profile-module__context-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.profile-module__context-link {
  flex: none;
}

.report-profile-studio .profiles-grid {
  margin-top: 1.5rem;
}

/* ---------- Report-Karte (Report-Liste) ---------- */

.report-module {
  min-width: 0;
  height: 100%;
}

.report-module__surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.report-module__header {
  padding: 1.5rem 1.5rem 0;
}

.report-module__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
  margin-bottom: 0.875rem;
}

.report-module__title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.report-module__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-height: 2.25rem;
  color: hsl(var(--foreground));
}

.report-module__icon .astro-glyph {
  font-size: 1.625rem;
  line-height: 1;
  color: inherit;
}

.report-module__heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.report-module__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.report-module__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.report-module__title-link:hover {
  color: hsl(var(--primary));
}

.report-module__type {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.report-module__pending {
  margin: 1rem 1.5rem 0;
  padding-left: 0.875rem;
  border-left: 2px solid hsl(var(--destructive));
}

.report-module__pending-text {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.report-module__pending-text--error {
  color: hsl(var(--destructive));
}

.report-module__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1.25rem 1.5rem 0;
  padding: 0.75rem 0 1rem;
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
}

.report-module__header + .report-module__footer {
  margin-top: 1.25rem;
}

.report-module__footer-meta {
  min-width: 0;
}

.report-module__updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.report-module__footer-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: -0.5rem;
}

.report-module__icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 0;
  padding: 0;
  color: hsl(var(--subtle-foreground));
}

.report-module__icon-btn--danger:hover:not(:disabled) {
  color: hsl(var(--destructive));
  background-color: hsl(var(--destructive) / 0.1);
}

/* In Arbeit: ruhige Aurum-Kante statt Glühen */

.report-module--pending .report-module__surface {
  border-color: hsl(var(--primary) / 0.45);
}

@media (max-width: 560px) {
  .report-module__header {
    padding: 1.25rem 1.25rem 0;
  }

  .report-module__footer {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .report-module__pending {
    margin: 1rem 1.25rem 0;
  }
}

/* ---------- Report-Seite: Tab-Panels ---------- */

.report-tab-panel.hidden,
  .report-tab-panel[hidden] {
  display: none;
}

.report-tab-panel__stack {
  min-width: 0;
}

/* ---------- Profil-Formular (anlegen / bearbeiten) ---------- */

.profile-form-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 40rem;
}

.profile-form__required-hint {
  margin: 0 0 -1.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

.profile-form__group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-form__legend {
  float: left;
  width: 100%;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.profile-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1rem;
}

@media (min-width: 640px) {
  .profile-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-form__field {
  min-width: 0;
}

.profile-form__textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.profile-form__help {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.form-required {
  color: hsl(var(--primary));
}

.profile-form__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-form__option {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.profile-form__option:hover {
  border-color: hsl(var(--border-strong));
}

.profile-form__option:has(input:checked) {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.profile-form__option:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.profile-form__option input[type='radio'] {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  accent-color: hsl(var(--primary));
}

.profile-form__option-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.profile-form__option-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(var(--foreground));
}

.profile-form__option-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.profile-form__option-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  padding: 0.25rem 0 0.5rem 1rem;
  border-left: 1px solid hsl(var(--border-strong));
}

.profile-form__option-detail.hidden {
  display: none;
}

.profile-form__option-detail .form-input {
  max-width: 16rem;
}

.profile-form__error {
  padding: 0.25rem 0 0.25rem 0.875rem;
  border-left: 2px solid hsl(var(--destructive));
  font-size: 0.9375rem;
  color: hsl(var(--destructive));
}

.profile-form__loader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.profile-form__loader.hidden {
  display: none;
}

.profile-form__loader p {
  margin: 0;
}

.profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

/*
   * Profil-Detail, Radix, Verteilung, Tabellen, Aspekt-Grid, Teilen.
   * Das Radix ist das „Produktfoto": groß, ohne Rahmen, auf der Seitenfläche.
   * Abschnitte stehen ohne Kasten direkt auf dem Hintergrund (.section-head).
   */

.profile-page__content > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.profile-page__content{
  padding-bottom: 2.5rem;
}

/* ---------- Brotkrumen ---------- */

.profile-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.profile-breadcrumb__link {
  color: hsl(var(--muted-foreground));
  transition: color 160ms ease;
}

.profile-breadcrumb__link:hover {
  color: hsl(var(--primary));
}

.profile-breadcrumb__sep {
  color: hsl(var(--subtle-foreground));
}

.profile-breadcrumb__current {
  color: hsl(var(--foreground));
}

/* ---------- Gerüst ---------- */

.profile-studio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.profile-studio--detail {
  gap: 4rem;
}

@media (max-width: 640px) {
  .profile-studio--detail {
    gap: 3rem;
  }
}

.profile-section {
  min-width: 0;
}

/* Leer-, Lade- und Fehlerzustand */

.profile-studio-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border-strong));
  color: hsl(var(--muted-foreground));
}

.profile-studio-state.hidden {
  display: none;
}

.profile-studio-state--inline {
  padding: 2.5rem 1.5rem;
}

.profile-studio-state__glyph {
  font-size: 2rem;
  line-height: 1;
  color: hsl(var(--subtle-foreground));
}

.profile-studio-state__glyph--inline {
  font-size: 1.5rem;
}

.profile-studio-state--error .profile-studio-state__glyph {
  color: hsl(var(--destructive));
}

.profile-studio-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.profile-studio-state__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.profile-studio-state .btn-primary,
  .profile-studio-state .btn-outline {
  margin-top: 0.75rem;
}

/* ---------- Hero (ohne Kasten) ---------- */

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.profile-hero__text {
  min-width: 0;
  max-width: 52rem;
}

.profile-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.profile-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.profile-hero__meta:empty {
  display: none;
}

.profile-hero__meta-item:not(:last-child)::after {
  content: '·';
  margin: 0 0.625rem;
  color: hsl(var(--subtle-foreground));
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.profile-hero__signs {
  margin-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.profile-hero-block > .degree-rule {
  margin-top: 0;
}

#share-profile-open.is-active {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

@media (max-width: 640px) {
  .profile-hero__actions {
    width: 100%;
  }

  .profile-hero__actions .btn-primary {
    order: -1;
    width: 100%;
  }

  .profile-hero__actions .btn-ghost,
    .profile-hero__actions .btn-outline {
    flex: 1 1 0;
    min-height: 2.75rem;
  }
}

/* ---------- Teilen ---------- */

.profile-share-panel {
  padding: 1.5rem;
  margin-top: -2rem;
}

.profile-share-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.profile-share-panel__copy {
  flex: 1 1 18rem;
  min-width: 0;
  max-width: 40rem;
}

.profile-share-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.profile-share-panel__hint {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

.profile-share-panel__link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.profile-share-panel__input {
  flex: 1 1 16rem;
  width: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.profile-share-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  flex: none;
}

.profile-share-switch:disabled {
  opacity: 0.5;
  cursor: wait;
}

.profile-share-switch__track {
  position: relative;
  width: 2.75rem;
  height: 1.625rem;
  border-radius: var(--radius-pill);
  background: hsl(var(--surface-raised));
  border: 1px solid hsl(var(--border-strong));
  transition: background-color 160ms ease, border-color 160ms ease;
}

.profile-share-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground));
  transition: transform 160ms ease, background-color 160ms ease;
}

.profile-share-switch.is-on .profile-share-switch__track {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.profile-share-switch.is-on .profile-share-switch__knob {
  transform: translateX(1.125rem);
  background: hsl(var(--primary-foreground));
}

/* ---------- Radix ---------- */

.radix-chart-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1100px) {
  .radix-chart-wrapper:has(.radix-meta-panel) {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
    gap: 3.5rem;
  }
}

/* Keine Bühne: das Diagramm steht frei auf der Seitenfläche */

.radix-chart-surface {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.radix-chart-canvas {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1;
}

.radix-chart-canvas svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.radix-chart-canvas text {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

.radix-chart-canvas .radix-axis-label {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.radix-chart-canvas .aspect-line {
  transition: opacity 160ms ease;
}

.radix-chart-canvas .aspect-lines-group:hover .aspect-line {
  opacity: 0.25;
}

.radix-chart-canvas .aspect-lines-group .aspect-line:hover {
  opacity: 1;
  stroke-width: 2;
}

.radix-chart-error {
  align-self: center;
  margin: auto;
  padding: 1.5rem;
  max-width: 26rem;
  text-align: center;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

/* Geburtsdaten als Definitionsliste mit Haarlinien */

.radix-meta-panel {
  min-width: 0;
}

.radix-meta-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.radix-meta-eyebrow--legend {
  margin-top: 2rem;
}

.radix-meta-grid {
  margin: 0;
  border-top: 1px solid hsl(var(--border));
}

.radix-meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.radix-meta-label {
  flex: none;
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.radix-meta-value {
  margin: 0;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.radix-aspect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0.75rem 0 0;
  list-style: none;
  border-top: 1px solid hsl(var(--border));
}

.radix-aspect-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.radix-aspect-legend__dot {
  flex: none;
  width: 0.875rem;
  height: 0;
  border-top: 2px solid currentColor;
}

.radix-aspect-legend__dot--conjunction {
  color: hsl(var(--aspect-conjunction));
}

.radix-aspect-legend__dot--trine {
  color: hsl(var(--aspect-trine));
}

.radix-aspect-legend__dot--sextile {
  color: hsl(var(--aspect-sextile));
  border-top-style: dotted;
}

.radix-aspect-legend__dot--square {
  color: hsl(var(--aspect-square));
}

.radix-aspect-legend__dot--opposition {
  color: hsl(var(--aspect-opposition));
}

/* ---------- Elemente & Modalitäten ---------- */

.profile-distribution-donuts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
  .profile-distribution-donuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-distribution-donut {
  min-width: 0;
}

.profile-distribution-empty {
  margin: 0;
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.profile-dist-widget {
  min-width: 0;
}

.profile-dist-widget__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.profile-dist-widget__title,
  .profile-dist-ring__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.profile-dist-ring__status {
  color: hsl(var(--subtle-foreground));
}

.profile-dist-widget__body {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-top: 1.25rem;
}

.profile-dist-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.profile-dist-ring__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-dist-ring__track {
  stroke: hsl(var(--border));
  stroke-width: 3;
}

.profile-dist-ring__hole {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 12%;
  text-align: center;
}

.profile-dist-ring__pct {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.profile-dist-ring__name {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dist-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.profile-dist-legend__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 2rem 3rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.profile-dist-legend__item:last-child {
  border-bottom: 0;
}

.profile-dist-legend__item.is-empty {
  opacity: 0.45;
}

.profile-dist-legend__glyph {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--tone, hsl(var(--muted-foreground)));
}

.profile-dist-legend__name {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dist-legend__count,
  .profile-dist-legend__pct {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: hsl(var(--muted-foreground));
}

.profile-dist-legend__pct {
  color: hsl(var(--foreground));
}

/* Dominant: Aurum-Schrift, kein Kasten */

.profile-dist-legend__item.is-dominant .profile-dist-legend__name,
  .profile-dist-legend__item.is-dominant .profile-dist-legend__pct {
  color: hsl(var(--primary));
}

.profile-dist-legend__item.is-dominant .profile-dist-legend__name {
  font-weight: 600;
}

@media (max-width: 480px) {
  .profile-dist-widget__body {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  .profile-dist-ring__pct {
    font-size: 1.375rem;
  }

  .profile-dist-legend__item {
    grid-template-columns: auto minmax(0, 1fr) 1.25rem 2.5rem;
    gap: 0.5rem;
  }
}

/* Kompakte Fortschrittsringe (Magicspace-Vorschau) */

.profile-progress__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .profile-progress__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-progress__grid--modalities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.profile-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.profile-progress__circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  /* Datenmarke: Anteil als Ring */
  background: conic-gradient(var(--progress-color, hsl(var(--primary))) var(--progress, 0deg), hsl(var(--border)) 0deg);
}

.profile-progress__circle::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: hsl(var(--surface));
}

.profile-progress__circle span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.profile-progress p {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- Tabellen ---------- */

.profile-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 1024px) {
  .profile-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: start;
  }
}

.profile-data-table-wrap,
  .profile-aspect-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.profile-data-table th,
  .profile-data-table td {
  padding: 0.6875rem 0.75rem;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}

.profile-data-table th:first-child,
  .profile-data-table td:first-child {
  padding-left: 0;
}

.profile-data-table th:last-child,
  .profile-data-table td:last-child {
  padding-right: 0;
}

.profile-data-table thead th {
  padding-top: 0;
  padding-bottom: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--subtle-foreground));
  border-bottom: 1px solid hsl(var(--border-strong));
}

.profile-data-table tbody tr {
  border-bottom: 1px solid hsl(var(--border));
}

.profile-data-table tbody th {
  color: hsl(var(--foreground));
}

.profile-data-table tbody td {
  color: hsl(var(--muted-foreground));
}

.profile-data-table .profile-data-table__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: hsl(var(--foreground));
}

.profile-data-table thead .profile-data-table__num {
  font-size: 0.6875rem;
  color: hsl(var(--subtle-foreground));
}

.profile-data-table tbody .profile-data-table__num--muted {
  color: hsl(var(--muted-foreground));
}

.profile-data-table .profile-data-table__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.profile-data-table__retro {
  margin-left: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--destructive));
}

.profile-data-table .profile-data-table__empty {
  padding: 1.5rem 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* ---------- Aspekt-Grid ---------- */

.aspect-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.aspect-grid-table th,
  .aspect-grid-table td {
  border-color: hsl(var(--border));
}

.aspect-grid-table--studio {
  min-width: 40rem;
  table-layout: fixed;
}

.aspect-grid-table--studio th {
  padding: 0.5rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aspect-grid-table--studio th[scope='row'] {
  width: 5.5rem;
  padding-left: 0;
  text-align: left;
}

.aspect-grid-table--studio td {
  height: 3.25rem;
  padding: 0.25rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid hsl(var(--border));
}

.aspect-grid-table--studio .aspect-grid-table__diagonal {
  background: hsl(var(--surface-raised));
}

.aspect-grid-table--studio .aspect-grid-table__void {
  border: 0;
}

.aspect-grid-table--studio .aspect-grid-table__hit {
  cursor: help;
}

.aspect-grid-table__symbol {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.aspect-grid-table__orb {
  display: block;
  margin-top: 0.125rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

/* ---------- Erstellte Reports ---------- */

.profile-reports-list {
  border-top: 1px solid hsl(var(--border));
}

.profile-reports-list__empty {
  margin: 0;
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.profile-reports-list__empty--error {
  color: hsl(var(--destructive));
}

.profile-report-link {
  padding: 1rem 0.5rem 1rem 0;
  transition: background-color 160ms ease;
}

.profile-report-link:last-child {
  border-bottom: 1px solid hsl(var(--border));
}

.profile-report-link:hover .profile-report-link__title {
  color: hsl(var(--primary));
}

.profile-report-link__icon {
  flex: none;
  width: 2rem;
  text-align: center;
  color: hsl(var(--foreground));
}

.profile-report-link__icon .astro-glyph {
  color: inherit;
}

.profile-report-link__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1 1 auto;
  min-width: 0;
}

.profile-report-link__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.profile-report-link__type {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.profile-report-link__status {
  flex: none;
}

.profile-report-link__date {
  flex: none;
  min-width: 6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: hsl(var(--muted-foreground));
}

.profile-report-link__chevron {
  flex: none;
  font-size: 1.25rem;
  color: hsl(var(--subtle-foreground));
}

@media (max-width: 640px) {
  .profile-report-link {
    flex-wrap: wrap;
    gap: 0.25rem 0.875rem;
    padding-right: 0;
  }

  .profile-report-link__body {
    flex-basis: calc(100% - 5rem);
  }

  .profile-report-link__status {
    margin-left: 2.875rem;
  }

  .profile-report-link__date {
    min-width: 0;
    margin-left: auto;
  }

  .profile-report-link__chevron {
    order: 2;
  }

  .profile-report-link__status,
    .profile-report-link__date {
    order: 3;
  }
}

.astro-glyph--card,
  .astro-glyph--preview {
  font-size: 1.375rem;
  line-height: 1;
}

/* ---------- Rohdaten ---------- */

.profile-raw {
  border-top: 1px solid hsl(var(--border));
}

.profile-raw-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  text-align: left;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 160ms ease;
}

.profile-raw-toggle:hover {
  color: hsl(var(--foreground));
}

.profile-raw-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.profile-raw-code {
  margin: 0.5rem 0 0;
  padding: 1.25rem;
  max-height: 32rem;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-sunken));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ---------- Dashboard-Vorschaukarten (main.js) ---------- */

.dashboard-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  min-width: 0;
}

.dashboard-preview-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.dashboard-preview-avatar {
  flex: none;
  width: 2rem;
  text-align: center;
  color: hsl(var(--foreground));
}

.dashboard-preview-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.dashboard-preview-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.dashboard-preview-body {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.dashboard-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-preview-badge {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.dashboard-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.dashboard-preview-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed hsl(var(--border-strong));
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* ---------- Öffentliche Profilseite /p/:token ---------- */

.share-profile-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sticky-Leiste: mattiert wie die App-Leisten */

.share-profile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.8);
  backdrop-filter: var(--bar-blur);
  -webkit-backdrop-filter: var(--bar-blur);
}

@media (min-width: 768px) {
  .share-profile-topbar {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
}

.share-profile-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
}

.share-profile-topbar__logo {
  --mark-size: 2.25rem;
}

.share-profile-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.share-profile-topbar__nav .btn-sm {
  min-height: 2.75rem;
}

@media (max-width: 420px) {
  .share-profile-topbar .brand-wordmark {
    display: none;
  }
}

.share-profile-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

.share-profile-page .profile-page__content {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  .share-profile-page .profile-page__content {
    padding-top: 5rem;
  }
}

/* Papier-Blatt mit der einen klaren Aktion */

.share-profile-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.share-profile-cta__copy {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 40rem;
}

.share-profile-cta__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
}

.share-profile-cta__text {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .share-profile-cta {
    padding: 1.75rem 1.5rem;
  }

  .share-profile-cta .btn-primary-lg {
    width: 100%;
  }
}

.share-profile-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .share-profile-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.share-profile-footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.share-profile-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color 160ms ease;
}

.share-profile-footer__links a:hover {
  color: hsl(var(--foreground));
}

/* --- Auch außerhalb der Landing genutzt (Toast-Container, Footer) */

/* Toasts auf der Landing unter der fixierten Navigation */

body:has(#landing-page-container:not(.hidden)) #toast-container.landing-toast {
  top: calc(3.25rem + 0.75rem + env(safe-area-inset-top, 0px)) !important;
}

@media (max-width: 639px) {
  .landing-toast {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}

/* --- Container --------------------------------------------------- */

#landing-page-container,
  #landing-page-container * {
  box-sizing: border-box;
}

.landing-page {
  --landing-nav-height: 3.25rem;
  --landing-gutter: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font-sans);
  color-scheme: dark;
}

/*
   * Nacht-Scope: Gegenstück zu .surface-paper. Für Exponat-Bühnen, die
   * innerhalb einer Papier-Kachel dunkel bleiben (Report-Blatt, Weltkugel).
   * Werte spiegeln :root in 01-tokens-base.css.
   */

.landing-night {
  --background: 240 6% 4%;
  --surface: 240 5% 8%;
  --surface-raised: 240 5% 12%;
  --surface-sunken: 240 8% 2%;
  --foreground: 40 20% 96%;
  --muted-foreground: 240 4% 66%;
  --subtle-foreground: 240 3% 46%;
  --primary: 40 78% 64%;
  --primary-hover: 40 86% 71%;
  --primary-foreground: 240 6% 6%;
  --primary-container: 40 40% 12%;
  --on-primary-container: 40 80% 80%;
  --tertiary: 240 5% 72%;
  --tertiary-container: 240 5% 14%;
  --on-tertiary-container: 240 5% 86%;
  --muted: 240 5% 10%;
  --border: 240 4% 17%;
  --border-strong: 240 4% 28%;
  --destructive: 4 62% 52%;
  --success: 150 45% 58%;
  --warning: 28 85% 62%;
  --info: 205 60% 66%;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  color-scheme: dark;
}

/* --- WebGL-Himmel (fixiert hinter der Landing) ------------------- */

.cosmos-host {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cosmos-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms ease;
}

body:has(#landing-page-container.hidden) .cosmos-host {
  visibility: hidden;
}

body.cosmos-live .cosmos-canvas {
  opacity: 1;
}

/* --- Navigation: schmale mattierte Leiste ------------------------ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: var(--bar-blur);
  border-bottom: 1px solid hsl(var(--border));
}

.landing-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--landing-nav-height);
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--landing-gutter);
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  flex: none;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.landing-nav__logo {
  --mark-size: 2rem;
}

.landing-nav__tagline {
  display: none;
  padding-left: 0.75rem;
  border-left: 1px solid hsl(var(--border-strong));
}

.landing-nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.landing-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color 160ms ease;
}

.landing-nav__links a:hover {
  color: hsl(var(--foreground));
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.landing-nav__login {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  transition: color 160ms ease;
}

.landing-nav__login:hover {
  color: hsl(var(--primary));
}

/* „Abbrechen" – nur im Fokus-Modus (Anmeldung/Registrierung offen) */

.landing-nav__close {
  display: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 160ms ease;
}

.landing-nav__close .material-symbols-outlined {
  font-size: 1.25rem;
}

.landing-nav__close:hover {
  color: hsl(var(--foreground));
}

/* --- Fokus-Modus: Anmeldung/Registrierung zeigt nur noch das Formular ---
     Klasse .is-auth-focus setzt landing-onboarding.js (setHeroFocus).
     Die Abschnitte der Startseite verschwinden, damit niemand glaubt,
     er sei schon eingeloggt. Rechtliches bleibt im Fuß erreichbar. */

.landing-page.is-auth-focus .sky-ticker,
  .landing-page.is-auth-focus .landing-tile,
  .landing-page.is-auth-focus .landing-nav__links,
  .landing-page.is-auth-focus .landing-locale,
  .landing-page.is-auth-focus .landing-nav__login,
  .landing-page.is-auth-focus .landing-nav__cta,
  .landing-page.is-auth-focus .site-footer__social {
  display: none;
}

.landing-page.is-auth-focus .landing-nav__close {
  display: inline-flex;
}

.landing-page.is-auth-focus .landing-nav__actions {
  margin-left: auto;
}

/* Schritt 1: „Abbrechen" oben reicht – kein zweites „Zurück" */

.landing-page.is-auth-focus [data-onboarding-step="1"] .landing-onboarding__back {
  display: none;
}

.landing-page.is-auth-focus .landing-nav__brand {
  pointer-events: none;
}

/* Die Pille erscheint erst, wenn die Hero-Aktion aus dem Bild ist –
     so bleibt es bei einer primären Aktion pro Ansicht. */

.landing-nav__cta {
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms,
      background-color 160ms ease, transform 120ms ease;
}

/* Trefferfläche 44 px, sichtbar bleibt die kompakte Pille */

.landing-nav__cta::after {
  content: '';
  position: absolute;
  inset: -0.375rem 0;
}

.landing-nav.is-past-hero .landing-nav__cta {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (min-width: 900px) {
  .landing-nav__links {
    display: flex;
  }

  .landing-nav__actions {
    margin-left: 0.75rem;
    gap: 0.75rem;
  }

  .landing-nav__login {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .landing-nav__tagline {
    display: block;
  }
}

@media (max-width: 359px) {
  .landing-nav__brand .brand-wordmark {
    display: none;
  }
}

/* Sprachumschalter DE | EN */

.landing-locale {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: hsl(var(--subtle-foreground));
}

.landing-locale__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2.75rem;
  color: hsl(var(--muted-foreground));
  transition: color 160ms ease;
}

.landing-locale__link:hover,
  .landing-locale__link.is-active {
  color: hsl(var(--foreground));
}

.landing-locale__sep {
  width: 1px;
  height: 0.75rem;
  background: hsl(var(--border-strong));
}

/* --- Kacheln ----------------------------------------------------- */

.landing-tile {
  position: relative;
  padding: 3rem var(--landing-gutter);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  scroll-margin-top: var(--landing-nav-height);
}

@media (min-width: 768px) {
  .landing-tile {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.landing-tile__inner {
  max-width: 61.25rem;
  margin: 0 auto;
}

.landing-tile__inner--wide {
  max-width: 72rem;
}

.landing-tile__head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-tile__head {
    margin-bottom: 3.5rem;
  }
}

.landing-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

.landing-lead {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: hsl(var(--muted-foreground));
}

.landing-fineprint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: hsl(var(--subtle-foreground));
}

/* Abschluss einer Kachel: Notiz + Textlink (keine zweite Pille) */

.landing-tile__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  text-align: center;
}

.landing-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.landing-tile__link::after {
  content: '›';
  font-size: 1.2em;
  line-height: 1;
}

/* --- Hero -------------------------------------------------------- */

.hero-landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--landing-nav-height) + env(safe-area-inset-top, 0px) + 3rem) var(--landing-gutter) 4rem;
  background-color: hsl(var(--background));
  overflow: hidden;
  isolation: isolate;
}

body.cosmos-live .hero-landing {
  background-color: transparent;
}

/* CSS-Himmel: Ersatz, solange bzw. falls WebGL nicht läuft */

.hero-cosmos {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 600ms ease;
}

body.cosmos-live .hero-cosmos {
  opacity: 0;
}

/* Sterne als Punkte gezeichnet (funktionale Marke, kein Flächenverlauf) */

.hero-cosmos__stars {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
      radial-gradient(1px 1px at 12% 18%, hsl(var(--foreground)) 50%, transparent 51%),
      radial-gradient(1px 1px at 27% 64%, hsl(var(--foreground) / 0.8) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 41% 32%, hsl(var(--foreground)) 50%, transparent 51%),
      radial-gradient(1px 1px at 58% 78%, hsl(var(--foreground) / 0.7) 50%, transparent 51%),
      radial-gradient(1px 1px at 66% 14%, hsl(var(--primary)) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 79% 47%, hsl(var(--foreground) / 0.9) 50%, transparent 51%),
      radial-gradient(1px 1px at 88% 82%, hsl(var(--foreground) / 0.7) 50%, transparent 51%),
      radial-gradient(1px 1px at 6% 86%, hsl(var(--foreground) / 0.6) 50%, transparent 51%),
      radial-gradient(1px 1px at 94% 26%, hsl(var(--foreground) / 0.8) 50%, transparent 51%),
      radial-gradient(1px 1px at 49% 8%, hsl(var(--foreground) / 0.6) 50%, transparent 51%);
  background-size: 37rem 31rem;
}

/* Horoskopkreis als Haarlinie – so groß, dass er den Claim rahmt statt kreuzt */

.hero-cosmos__wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(125vh, 60rem);
  aspect-ratio: 1 / 1;
  border: 1px solid hsl(var(--foreground) / 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-cosmos__wheel::before {
  content: '';
  position: absolute;
  inset: 12.5%;
  border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 50%;
}

/* Horizont am Fuß des Hero – bleibt auch über dem WebGL-Himmel stehen */

.hero-landing__horizon {
  --horizon-top: 86%;
  z-index: -1;
}

@media (max-width: 767px) {
  .hero-landing__horizon {
    --horizon-size: 420%;
    --horizon-top: 93%;
  }
}

/* --- Der Moment: ein Stern geht am Horizont auf -------------------
     Ablauf nach dem Laden: Horizont erscheint → Stern steigt auf und zieht
     eine feine Spur → er zündet (ein Ring läuft aus) → die Zeitzeile
     erscheint. Danach atmet der Stern, alle 9 s läuft ein leiser Ring aus.
     --moment-x / --moment-drop legen den Fußpunkt auf den Bogen. */

.hero-landing__horizon {
  animation: hero-horizon-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

/* Die Box reicht vom Stern (oben) bis zum Fußpunkt auf dem Bogen (unten). */

.hero-moment {
  --moment-rise: 6.5rem;
  /* Scheitel bei 86 %; bei 72 % Breite liegt der Bogen rund 2 vw tiefer */
  --moment-foot: calc(86% + 2vw);
  position: absolute;
  left: 72%;
  top: calc(var(--moment-foot) - var(--moment-rise));
  z-index: -1;
  width: 0;
  height: var(--moment-rise);
  pointer-events: none;
  transition:
      top 1.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      height 1.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      left 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-moment__trail {
  position: absolute;
  left: -0.5px;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to top,
      hsl(var(--mark-aurum) / 0),
      hsl(var(--mark-aurum) / 0.45) 55%,
      hsl(var(--mark-star) / 0.8));
  transform-origin: 50% 100%;
  animation: hero-moment-trail 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both;
}

.hero-moment__star {
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  width: 1rem;
  height: 1rem;
  background: hsl(var(--mark-star));
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
  animation:
      hero-moment-rise 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both,
      hero-moment-breathe 5s ease-in-out 3.6s infinite;
}

.hero-moment__ring {
  position: absolute;
  left: -2rem;
  top: -2rem;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--mark-aurum));
  opacity: 0;
  animation:
      hero-moment-ignite 1.4s ease-out 3.1s both,
      hero-moment-ripple 9s ease-out 6s infinite;
}

.hero-moment__label {
  position: absolute;
  left: 1.5rem;
  top: -0.4375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: hsl(var(--foreground) / 0.78);
  animation: hero-moment-label 0.9s ease-out 3.4s both;
}

/* Geburtsmoment eingetragen: Zeile in Aurum */

.hero-moment.is-personal .hero-moment__label {
  color: hsl(var(--primary));
}

/* erneutes Zünden, wenn sich der Moment ändert (Klasse setzt landing.js) */

.hero-moment.is-igniting .hero-moment__ring {
  animation: hero-moment-ignite 1.4s ease-out both;
}

@media (max-width: 767px) {
  .hero-moment {
    --moment-rise: 4.25rem;
    /* Scheitel bei 93 %; bei 80 % Breite liegt der Bogen rund 2,3 vw tiefer */
    --moment-foot: calc(93% + 2.3vw);
    left: 80%;
  }

  /* schmal: kein Platz neben dem Stern */

  .hero-moment__label {
    display: none;
  }
}

/* --- Letzter Schritt der Anmeldung: der Stern steigt hoch ----------
     Der Geburtsmoment soll hier auffallen. Breit: neben die Glyphe des
     Sonnenzeichens, rechts vom Formular. Schmal: ans rechte Ende der
     Zeile „Letzter Schritt", Datum links daneben.
     Klasse setzt landing-onboarding.js. */

.hero-landing.is-final-step .hero-moment {
  --moment-top: calc(var(--landing-nav-height) + env(safe-area-inset-top, 0px) + 3rem + 0.4375rem);
  top: var(--moment-top);
  height: calc(var(--moment-foot) - var(--moment-top));
  left: min(100% - var(--landing-gutter) - 0.5rem, 50% + 14.5rem);
}

.hero-landing.is-final-step .hero-moment__ring {
  animation:
      hero-moment-ignite 1.4s ease-out 1.7s both,
      hero-moment-ripple 9s ease-out 4.5s infinite;
}

.hero-landing.is-final-step .hero-moment__label {
  display: block;
  left: auto;
  right: 1.25rem;
  text-align: right;
  animation: hero-moment-label 0.9s ease-out 1.9s both;
}

.hero-landing.is-final-step .hero-moment__label-prefix {
  display: none;
}

/* schmal: nur ein kurzer Schweif unter dem Stern – die volle Spur liefe durch das Formular */

@media (max-width: 919px) {
  .hero-landing.is-final-step .hero-moment__trail {
    top: 0;
    bottom: auto;
    height: 1.5rem;
    background: linear-gradient(to top,
        hsl(var(--mark-aurum) / 0),
        hsl(var(--mark-star) / 0.8));
  }
}

@media (min-width: 920px) {
  .hero-landing.is-final-step .hero-moment {
    --moment-top: calc(var(--landing-nav-height) + 3rem + 6rem);
    left: max(72%, 50% + 17.5rem);
  }

  .hero-landing.is-final-step .hero-moment__label {
    left: 1.5rem;
    right: auto;
    text-align: left;
  }

  /* mittlere Breiten: „Dein Moment" als eigene Zeile über dem Datum */

  .hero-landing.is-final-step .hero-moment__label-prefix {
    display: block;
  }

  .hero-landing.is-final-step .hero-moment__label-separator {
    display: none;
  }
}

@media (min-width: 920px) and (min-height: 700px) {
  .hero-landing.is-final-step .hero-moment {
    --moment-top: calc(var(--landing-nav-height) + 12vh + 6rem);
  }
}

@media (min-width: 1200px) {
  .hero-landing.is-final-step .hero-moment__label-prefix,
    .hero-landing.is-final-step .hero-moment__label-separator {
    display: inline;
  }
}

@keyframes hero-horizon-in {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-moment-trail {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes hero-moment-rise {
  from {
    transform: translateY(var(--moment-rise)) scale(0.4) rotate(-45deg);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes hero-moment-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

@keyframes hero-moment-ignite {
  0% {
    transform: scale(0.2);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes hero-moment-ripple {
  0% {
    transform: scale(0.2);
    opacity: 0.5;
  }

  16%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes hero-moment-label {
  from {
    opacity: 0;
    transform: translateX(-0.375rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Solange der Seiten-Lader die Seite verdeckt, wartet die Szene. */

body.page-is-loading .hero-landing__horizon,
  body.page-is-loading .hero-moment > * {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-landing__horizon,
    .hero-moment > * {
    animation: none;
  }

  .hero-moment {
    transition: none;
  }
}

.hero-landing__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 61.25rem;
  text-align: center;
}

.hero-landing__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-claim {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.875rem, 1.5rem + 6.2vw, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

.hero-claim__line {
  display: block;
}

@media (min-width: 768px) {
  .hero-claim__line {
    display: inline;
  }
}

.hero-support {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: hsl(var(--muted-foreground));
}

/* Onboarding offen: der Hero wird zur ruhigen Bühne für eine Frage */

.hero-landing.is-onboarding .hero-landing__intro {
  display: none;
}

.hero-landing.is-onboarding {
  align-items: flex-start;
}

@media (min-width: 768px) and (min-height: 700px) {
  .hero-landing.is-onboarding {
    padding-top: calc(var(--landing-nav-height) + 12vh);
  }
}

/* --- Sky-Ticker: Mono-Zeile zwischen zwei Haarlinien ------------- */

.sky-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.sky-ticker__track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  animation: sky-ticker-scroll 80s linear infinite;
}

.sky-ticker__group {
  display: flex;
  flex: none;
}

.sky-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
  border-right: 1px solid hsl(var(--border));
}

.sky-ticker__glyph {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-variant-emoji: text;
  line-height: 1;
  color: hsl(var(--primary));
}

@keyframes sky-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* --- Scroll-Reveal: einmalig, ≤ 12 px --------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Gäste-Schnellstart (Inline-Script in index.html): Hero-Text erscheint ohne auf JS zu warten. */

html[data-guest-boot] .hero-landing__copy [data-reveal] {
  animation: hero-guest-reveal 500ms ease both;
}

@keyframes hero-guest-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html[data-guest-boot] .hero-landing__copy [data-reveal] {
    animation: none;
  }

  .sky-ticker__track {
    animation: none;
  }

  .cosmos-canvas,
    .hero-cosmos {
    transition: none;
  }
}

/* Ladeanzeige auf der Aurum-Pille: Ink statt Aurum */

.landing-page .btn-primary .loading-spinner-sm,
  .landing-page .btn-primary-lg .loading-spinner-sm {
  margin-right: 0;
  border-color: hsl(var(--primary-foreground) / 0.25);
  border-top-color: hsl(var(--primary-foreground));
}

/* ============================================
     ACCOUNT & CREDITS
     Einstellungen als Gruppen mit Haarlinien, Shop als flache Karten.
     ============================================ */

/* Guthaben im Seitenkopf (.stat + optionale Aktion) */

.credit-balance {
  align-items: flex-end;
  gap: 1.5rem;
}

.credit-balance .stat {
  align-items: flex-end;
  text-align: right;
}

.credit-balance .stat__value {
  font-size: 3.5rem;
}

/* Leise destruktive Aktion: Outline mit Statusfarbe als Text */

.btn-quiet-danger {
  color: hsl(var(--destructive));
}

.btn-quiet-danger:hover:not(:disabled) {
  border-color: hsl(var(--destructive) / 0.7);
  background: hsl(var(--destructive) / 0.08);
}

/* --- Einstellungs-Gruppen --- */

.\!settings {
  display: flex !important;
  flex-direction: column !important;
}

.settings {
  display: flex;
  flex-direction: column;
}

.settings-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid hsl(var(--border));
}

.settings-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.settings-group:last-child {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .settings-group {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 4rem;
  }
}

.settings-group__body {
  min-width: 0;
}

.settings-group__body > .list-row:first-child {
  padding-top: 0;
}

.settings-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
}

.settings-row--inline {
  align-items: center;
}

.settings-row__label {
  flex: 0 0 12rem;
  padding-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.settings-row--inline .settings-row__label {
  padding-top: 0;
}

.settings-row__control {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 28rem;
}

.settings-row--inline .settings-row__control {
  flex: 0 1 auto;
}

.settings-row__text {
  flex: 1 1 16rem;
  margin: 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.settings-row__help,
  .settings-group__hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--subtle-foreground));
}

.settings-group__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
}

.settings-group__hint {
  margin: 0;
}

@media (max-width: 640px) {
  .settings-group {
    padding: 2rem 0;
  }

  .settings-row__label {
    flex-basis: 100%;
    padding-top: 0;
  }

  .settings-row__control {
    max-width: none;
  }

  .settings-row--inline > .btn-outline,
    .settings-group__footer > .btn-primary,
    .settings-group__footer > .btn-outline {
    width: 100%;
  }

  .credit-balance .stat {
    align-items: flex-start;
    text-align: left;
  }

  .credit-balance .stat__value {
    font-size: 2.5rem;
  }
}

/* --- Credit-Pakete --- */

.credit-packages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .credit-packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.credit-package {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.credit-package.is-featured {
  border-color: hsl(var(--primary));
}

.credit-package__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.75rem;
}

.credit-package__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.credit-package__tag {
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
  text-align: right;
}

.credit-package__chip {
  padding: 0.1875rem 0.625rem;
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.credit-package__credits {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.credit-package__unit {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.credit-package__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.credit-package__amount {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.credit-package__per {
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

.credit-package__savings {
  color: hsl(var(--success));
}

.credit-package__meta {
  margin: 1.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.credit-package__meta p {
  margin: 0;
}

.credit-package__meta p.credit-package__fineprint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--subtle-foreground));
}

.credit-package__action {
  width: 100%;
  margin-top: auto;
}

/* --- Preisliste: Haarlinien-Zeilen, Preise in Mono --- */

.credit-cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .credit-cost-grid {
    display: block;
    -moz-columns: 2;
         columns: 2;
    -moz-column-gap: 4rem;
         column-gap: 4rem;
  }

  .credit-cost-section {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    margin-bottom: 2.5rem;
  }

  .credit-cost-section:last-child {
    margin-bottom: 0;
  }
}

.credit-cost-section__title {
  margin: 0 0 0.5rem;
}

.credit-cost-list {
  margin: 0;
  border-top: 1px solid hsl(var(--border));
}

.credit-cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.credit-cost-row__title {
  min-width: 0;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.credit-cost-row__meta {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

.credit-cost-row__value {
  flex: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.credit-cost-row__value.is-free {
  color: hsl(var(--success));
}

.credit-cost-row__unit,
  .transaction-item__unit {
  margin-left: 0.375rem;
  font-size: 0.75rem;
  color: hsl(var(--subtle-foreground));
}

/* --- Transaktionen --- */

.transaction-list {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.transaction-item {
  padding: 0.875rem 0;
}

.transaction-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.transaction-item__title {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.transaction-item__meta {
  margin: 0.125rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.transaction-item__amount {
  flex: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: hsl(var(--foreground));
}

.transaction-item__amount.is-credit {
  color: hsl(var(--success));
}

.transaction-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
     RECHTLICHES – Lesefläche auf Papier
     ============================================ */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: var(--bar-blur);
  -webkit-backdrop-filter: var(--bar-blur);
  border-bottom: 1px solid hsl(var(--border));
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
}

.legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.legal-header__brand .brand-mark {
  --mark-size: 2.25rem;
}

.legal-header .btn-ghost {
  min-height: 2.75rem;
}

.legal-header .btn-ghost .material-symbols-outlined {
  font-size: 1.125rem;
}

.legal-page {
  max-width: 56rem;
  margin-inline: auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-sheet {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4.5rem);
}

.legal-sheet__head,
  .legal-prose {
  max-width: 44rem;
  margin-inline: auto;
}

.legal-sheet__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: hsl(var(--foreground));
}

.legal-sheet__lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  color: hsl(var(--muted-foreground));
}

.legal-prose {
  margin-top: 3rem;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.legal-prose > div {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}

.legal-prose > div:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-prose h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.legal-prose p,
  .legal-prose ul {
  margin: 0;
}

.legal-prose p + p,
  .legal-prose p + ul,
  .legal-prose ul + p,
  .legal-prose div > div + div {
  margin-top: 0.875rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose li + li {
  margin-top: 0.375rem;
}

.legal-prose strong {
  font-weight: 600;
}

.legal-prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.legal-prose a:hover {
  color: hsl(var(--primary-hover));
}

.legal-prose__note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .legal-header__inner {
    padding-inline: 1rem;
  }

  .legal-page {
    padding: 0 0 3rem;
  }

  .legal-sheet {
    border-radius: 0;
  }
}

/* ============================================
     LOGIN / WEITERLEITUNG – zentriert, ohne Kartenrahmen
     ============================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3rem 1.5rem;
}

.auth-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 26rem;
  text-align: center;
}

.auth-page__logo {
  --mark-size: 4rem;
  margin-bottom: 1rem;
}

.auth-page__rule {
  width: 100%;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid hsl(var(--border));
}

.auth-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.auth-page__lead {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  color: hsl(var(--muted-foreground));
}

.auth-page__note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

/* Mehr Luft zwischen Abschnitten auf schmalen Screens (Kalender, Credits, Account, Admin) */

@media (max-width: 640px) {
  .app-content--roomy {
    gap: 2.5rem;
  }

  .app-content--roomy .btn-sm {
    min-height: 2.75rem;
  }
}

/* ===================================
     LANDING – Einstieg, Multi-Step-Onboarding, OTP-Anmeldung
     Eine Frage pro Schritt in Caslon, große Eingaben, Mono-Schrittzähler,
     eine Primär-Pille, „Zurück" als Textlink.
     =================================== */

.landing-onboarding {
  width: 100%;
  margin-top: 2.25rem;
}

.landing-onboarding.is-open {
  margin-top: 0;
}

/* --- Einstieg (Gate) --------------------------------------------- */

.landing-onboarding__gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.landing-onboarding__secondary {
  margin: 0;
}

.landing-onboarding__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.landing-onboarding__trust {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--subtle-foreground));
}

/* Im Hero steht unter der Pille nur eine Zeile (Angebot). Der Login-Link
     bleibt darunter klein – ab 900px übernimmt „Anmelden" in der Navigation. */

.landing-onboarding__gate .landing-onboarding__trust {
  margin-top: 0.75rem;
}

.landing-onboarding__gate .landing-onboarding__link {
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .landing-onboarding__gate .landing-onboarding__secondary {
    display: none;
  }
}

/* --- Schrittfolge ------------------------------------------------- */

.landing-onboarding__panel,
  .landing-onboarding__login-only {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
}

.landing-onboarding__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.landing-onboarding__progress {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Fortschritt: Haarlinie als Spur, Aurum als Füllung */

.landing-onboarding__progress-bar {
  height: 1px;
  background: hsl(var(--border-strong));
}

.landing-onboarding__progress-fill {
  display: block;
  width: 20%;
  height: 1px;
  background: hsl(var(--primary));
  transition: width 200ms ease;
}

.landing-onboarding__step {
  display: flex;
  flex-direction: column;
}

.landing-onboarding__title,
  .landing-onboarding__login-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.026em;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

/* Letzter Schritt: Glyphe des Sonnenzeichens als Exponat über dem Titel */

.landing-onboarding__sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid hsl(var(--primary) / 0.55);
  border-radius: var(--radius-pill);
  font-size: 1.75rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

.landing-onboarding__sign.hidden {
  display: none;
}

.landing-onboarding__text {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

.landing-onboarding__text [data-onboarding-soft-name] {
  color: hsl(var(--foreground));
}

/* Große Eingaben – gleiche Komponente wie in der App (.form-input) */

.landing-onboarding .form-input,
  .landing-onboarding .form-select {
  min-height: 3.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 1.0625rem;
}

/* Auswahlfelder: gleiche Höhe wie die Textfelder, eigener Pfeil statt Browser-Optik */

.landing-onboarding .form-select {
  padding-right: 3rem;
  background-position: right 1.25rem center;
  text-overflow: ellipsis;
}

/* Noch nichts gewählt: wie ein Platzhalter gesetzt */

.landing-onboarding .form-select:has(option[value=""]:checked) {
  color: hsl(var(--subtle-foreground));
  -webkit-text-fill-color: hsl(var(--subtle-foreground));
}

.landing-onboarding__input {
  margin-top: 1.75rem;
}

.landing-onboarding__input + .sr-only + .landing-onboarding__input {
  margin-top: 0.75rem;
}

.landing-onboarding__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}

.landing-onboarding__next {
  min-width: 9rem;
  margin-left: auto;
}

.landing-onboarding__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
}

.landing-onboarding__error {
  order: 9;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--destructive));
}

/* Uhrzeit: drei Optionen als Zeilen; gewählt = Aurum-Rand */

.landing-onboarding__time-modes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.landing-onboarding__choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-md);
  background: hsl(var(--surface-sunken) / 0.6);
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.landing-onboarding__choice:hover {
  border-color: hsl(var(--foreground) / 0.4);
}

.landing-onboarding__choice:has(input:checked) {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.landing-onboarding__choice input {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  accent-color: hsl(var(--primary));
}

.landing-onboarding__subfield .landing-onboarding__input {
  margin-top: 0;
}

.landing-onboarding__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

/* --- OTP-Anmeldung (Schritt 5 und „Ich habe schon ein Profil") ---- */

.hero-signup {
  display: flex;
  flex-direction: column;
  margin-top: 1.75rem;
}

.hero-signup__stage {
  margin: 0;
}

/* Was gratis dabei ist – als Chips statt als Satz */

.hero-signup__gifts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
}

.hero-signup__gifts .chip {
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

/* Schmale Displays: kompakter, damit das E-Mail-Feld nicht nach unten rutscht */

@media (max-width: 479px) {
  .hero-signup__gifts {
    gap: 0.5rem;
  }

  .hero-signup__gifts .chip {
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .hero-signup__gifts .chip .material-symbols-outlined {
    font-size: 1.0625rem;
  }

  /* .hero-signup davor: die Grundregel steht weiter unten in dieser Datei */

  .hero-signup .hero-signup__assurances {
    gap: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .hero-signup .hero-signup__assurances li {
    gap: 0.3125rem;
  }

  .hero-signup .hero-signup__assurances .material-symbols-outlined {
    font-size: 1.0625rem;
  }
}

.hero-signup__gifts .material-symbols-outlined,
  .hero-signup__assurances .material-symbols-outlined {
  font-size: 1.25rem;
  color: hsl(var(--primary));
}

/* E-Mail-Feld mit Symbol; im Code-Schritt bleibt es als Bestätigung der Adresse stehen */

.hero-signup__fields {
  position: relative;
}

.hero-signup__input-icon {
  position: absolute;
  top: 1.75rem;
  left: 1.125rem;
  transform: translateY(-50%);
  font-size: 1.375rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.landing-onboarding .hero-signup__input-icon ~ .hero-signup__input {
  padding-left: 3.25rem;
}

.hero-signup--onboarding .hero-signup__button:not(:disabled)::after {
  content: '→';
  margin-left: 0.5rem;
  font-size: 1.125em;
  line-height: 1;
}

/* Drei Zusagen unter der Pille */

.hero-signup__assurances {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: hsl(var(--muted-foreground));
}

.hero-signup__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}

@media (min-width: 480px) {
  .hero-signup__assurances li + li {
    padding-left: 1.25rem;
    border-left: 1px solid hsl(var(--border-strong));
  }
}

/* Letzter Schritt: mittig gesetzt, eine Achse von der Glyphe bis zur Pille */

.landing-onboarding__step--final {
  text-align: center;
}

.landing-onboarding__step--final .landing-onboarding__text {
  text-wrap: balance;
}

.landing-onboarding__step--final .hero-signup__actions {
  justify-content: center;
}

.landing-onboarding__step--final .landing-onboarding__nav {
  justify-content: flex-start;
  align-items: flex-start;
}

.landing-onboarding__step--final .landing-onboarding__back::before {
  content: '←';
  margin-right: 0.5rem;
}

.hero-signup__bar {
  margin-top: 1rem;
}

.hero-signup__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-signup__fields .btn-primary {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.hero-signup__input:disabled {
  opacity: 0.6;
}

.hero-signup__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.hero-signup__hint strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.hero-signup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.hero-signup__resend,
  .hero-signup__change-email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
}

.hero-signup__resend:disabled {
  color: hsl(var(--subtle-foreground));
  text-decoration: none;
  cursor: default;
}

.hero-signup__referral-banner {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--primary));
}

/* Einladungscode: zugeklappt, damit der letzte Schritt nur ein Feld zeigt */

.hero-signup__referral {
  margin-top: 0.5rem;
}

.hero-signup__referral-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
  text-decoration-color: hsl(var(--border-strong));
  text-underline-offset: 0.25em;
  cursor: pointer;
  list-style: none;
}

.hero-signup__referral-toggle:hover {
  color: hsl(var(--foreground));
}

.hero-signup__referral-toggle::-webkit-details-marker {
  display: none;
}

.hero-signup__referral[open] .hero-signup__referral-toggle {
  min-height: 2rem;
  color: hsl(var(--muted-foreground));
}

.landing-onboarding .hero-signup__referral-input {
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-signup__referral-input::-moz-placeholder {
  text-transform: none;
  letter-spacing: 0;
}

.hero-signup__referral-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

/* Rückmeldung aus landing.js: Statusfarbe als Text, keine farbige Fläche */

.landing-form-message {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--destructive));
}

.landing-form-message--success {
  color: hsl(var(--success));
}

.landing-onboarding__login-only .landing-onboarding__secondary {
  margin-top: 0.75rem;
}

/* Login: „Noch kein Profil? Chart starten" als eine Zeile */

.landing-onboarding__switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.375rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.landing-onboarding__login-only .hero-signup {
  margin-top: 1.75rem;
}

/* Code-Schritt (Login und letzter Onboarding-Schritt): der Hinweis „Code an … gesendet"
     steht direkt unter der Überschrift; Nebenwege treten zurück. */

.is-code-step .hero-signup__hint {
  order: -1;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.47;
}

.is-code-step [data-signup-email],
  .is-code-step [data-signup-email-icon],
  .is-code-step .landing-onboarding__switch,
  .is-code-step .hero-signup__gifts,
  .is-code-step .hero-signup__referral,
  .is-code-step .landing-onboarding__sign {
  display: none;
}

.landing-onboarding__login-only.is-code-step .hero-signup,
  .landing-onboarding__step--final.is-code-step .hero-signup {
  margin-top: 1rem;
}

.landing-onboarding__login-only .landing-onboarding__link {
  font-size: 0.9375rem;
}

@media (max-width: 479px) {
  .landing-onboarding__nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.25rem;
  }

  .landing-onboarding__next {
    width: 100%;
    min-height: 3.25rem;
    margin-left: 0;
  }

  .landing-onboarding__back {
    justify-content: center;
  }
}

/* --- Report-Vorschau: das Exponat auf einer Nacht-Bühne --------- */

.landing-studio__tabs {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto 1.5rem;
}

.landing-studio__tab-short {
  display: none;
}

@media (max-width: 479px) {
  .landing-studio__tab-full {
    display: none;
  }

  .landing-studio__tab-short {
    display: inline;
  }
}

.landing-stage {
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .landing-stage {
    padding: 3.5rem 3rem;
  }
}

.landing-studio__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-studio__panel[hidden] {
  display: none;
}

.landing-studio__caption {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* Report-Kapitel wie in der Leseansicht: Papier-Blatt auf der Nacht */

.landing-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 44rem;
  min-height: 23rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  transition: opacity 200ms ease;
}

@media (min-width: 768px) {
  .landing-sheet {
    min-height: 21rem;
    padding: 3rem 3.5rem;
  }
}

.landing-sheet.is-fading {
  opacity: 0;
}

.landing-sheet__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
}

.landing-sheet__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
}

.landing-sheet__astro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
}

.landing-sheet__astro-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.landing-sheet__body {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.landing-sheet__body p {
  margin: 0;
}

.landing-sheet__body p + p {
  margin-top: 1em;
}

.landing-sheet__cite {
  margin: auto 0 0;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: hsl(var(--subtle-foreground));
}

/* Blättern zwischen Auszügen: Mono-Ziffern statt Punkte */

.landing-studio__pager {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.landing-studio__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: hsl(var(--subtle-foreground));
  transition: color 160ms ease;
}

.landing-studio__page:hover {
  color: hsl(var(--foreground));
}

.landing-studio__page.is-active {
  color: hsl(var(--primary));
}

.landing-studio__split {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 46rem;
}

@media (min-width: 768px) {
  .landing-studio__split {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3.5rem;
    justify-items: start;
  }
}

.landing-studio__aside {
  max-width: 24rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .landing-studio__aside {
    text-align: left;
  }
}

/* Astro Card – Hochformat, als Haarlinien-Zeichnung */

.landing-astro-card {
  display: flex;
  flex-direction: column;
  width: 15rem;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 1.5rem 1.25rem;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-md);
  background: hsl(var(--surface));
}

.landing-astro-card__chart {
  width: 100%;
  height: auto;
  margin: auto 0;
  fill: none;
  stroke: hsl(var(--foreground) / 0.45);
  stroke-width: 0.6;
}

.landing-astro-card__chart .is-tick {
  stroke: hsl(var(--foreground) / 0.6);
}

.landing-astro-card__chart .is-aspect {
  stroke: hsl(var(--foreground) / 0.25);
}

.landing-astro-card__chart .is-body {
  fill: hsl(var(--foreground));
  stroke: none;
}

.landing-astro-card__chart .is-sun {
  fill: hsl(var(--primary));
  stroke: none;
}

.landing-astro-card__caption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-astro-card__brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}

.landing-astro-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.landing-astro-card__signs,
  .landing-astro-card__ratio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.landing-astro-card__ratio {
  color: hsl(var(--subtle-foreground));
}

/* Zukunftskind – zwei Bildrahmen */

.landing-future-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 9.5rem));
  gap: 1rem;
}

.landing-future-card {
  margin: 0;
}

.landing-future-card__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-md);
  background: hsl(var(--surface));
  font-size: 2rem;
  font-variant-emoji: text;
  color: hsl(var(--subtle-foreground));
}

.landing-future-card figcaption {
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* --- Ablauf: drei Spalten, Mono-Ziffern, Haarlinien -------------- */

.landing-steps__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-step {
  padding: 1.75rem 0;
  border-top: 1px solid hsl(var(--border));
}

.landing-step:last-child {
  padding-bottom: 0;
}

.landing-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Bildmarke je Schritt: Me → We → How */

.landing-step__mark {
  --mark-size: 2.75rem;
}

/* Fächert auf, sobald der Schritt ins Bild kommt. */

.landing-step[data-reveal]:not(.is-visible) .landing-step__mark > i {
  transform: none;
}

.landing-step[data-reveal]:not(.is-visible) .landing-step__mark::before,
  .landing-step[data-reveal]:not(.is-visible) .landing-step__mark::after {
  opacity: 0;
}

.landing-step__mark > i {
  transition-delay: 240ms;
}

.landing-step__mark::before,
  .landing-step__mark::after {
  transition-delay: 700ms;
}

.landing-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
}

.landing-step__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.landing-step__text {
  margin: 0.625rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .landing-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid hsl(var(--border));
  }

  .landing-step {
    padding: 2.25rem 2rem 0.5rem;
    border-top: 0;
    border-left: 1px solid hsl(var(--border));
  }

  .landing-step:last-child {
    padding-bottom: 0.5rem;
  }

  .landing-step:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .landing-step:last-child {
    padding-right: 0;
  }
}

/* --- Reportarten: flache Karten mit Haarlinie -------------------- */

.landing-products__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .landing-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .landing-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-product {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.landing-product__glyph {
  font-size: 1.75rem;
  line-height: 1;
  font-variant-emoji: text;
  color: hsl(var(--primary));
}

.landing-product__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.landing-product__question {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.landing-product__text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.landing-product__price {
  margin: auto 0 0;
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

/* --- Audiobook: der Player als ruhiges Instrument ---------------- */

/* Hörprobe als Karte: gleiche Fläche und Rundung wie der Player im Report */

.landing-player {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--surface));
}

@media (min-width: 768px) {
  .landing-player {
    gap: 1.75rem;
    padding: 1.75rem 2rem;
  }
}

.landing-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: background-color 160ms ease, transform 120ms ease;
}

.landing-player__play:hover {
  background: hsl(var(--primary-hover));
}

.landing-player__play:active {
  transform: scale(0.97);
}

.landing-player__play .material-symbols-outlined {
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.landing-player__timeline {
  flex: 1;
  min-width: 0;
}

.landing-player__wave {
  margin-bottom: 0.5rem;
}

.landing-player__wave .audio-wave {
  height: 3rem;
}

.landing-player__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.5rem;
}

.landing-player__track {
  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: hsl(var(--border-strong));
  overflow: hidden;
}

.landing-player__fill {
  width: 0;
  height: 100%;
  background: hsl(var(--primary));
}

.landing-player__bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--progress, 0%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: hsl(var(--foreground));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-player__seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.landing-player__time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

/* --- Astrokartografie: die Kugel ist das Exponat ----------------- */

.landing-acg__stage {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .landing-acg__stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
  }
}

.landing-acg__globe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.landing-acg__globe {
  width: min(100%, 30rem);
}

.landing-acg .astrocart-globe__hint {
  display: none;
}

.landing-acg__globe-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.landing-acg__places {
  display: flex;
  flex-direction: column;
  border-top: 1px solid hsl(var(--border));
}

.landing-acg__place {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  border-left: 2px solid transparent;
  text-align: left;
  transition: border-color 160ms ease;
}

.landing-acg__place.is-active {
  border-left-color: hsl(var(--primary));
}

.landing-acg__place-meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.landing-acg__place.is-active .landing-acg__place-angle {
  color: hsl(var(--primary));
}

.landing-acg__place-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.landing-acg__place-text {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.landing-acg__place:hover .landing-acg__place-text {
  color: hsl(var(--foreground));
}

/* --- Zwölf Zeichen: Haarlinien-Zeichnung mit einem Aurum-Körper -- */

.landing-orbit__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .landing-orbit__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 5rem;
  }
}

.landing-orbit__text {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

.landing-orbit__stats {
  display: flex;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid hsl(var(--border));
}

.landing-orbit__stats .stat {
  flex: 1;
  gap: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid hsl(var(--border));
}

.landing-orbit__stats .stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-orbit__stage {
  display: flex;
  justify-content: center;
}

.orbit-system {
  width: min(100%, 26rem);
  height: auto;
  fill: none;
  stroke: hsl(var(--border-strong));
  stroke-width: 0.5;
  overflow: visible;
}

.orbit-system .is-tick {
  stroke: hsl(var(--foreground) / 0.5);
}

.orbit-system .is-body {
  fill: hsl(var(--foreground));
  stroke: none;
}

.orbit-system .is-sun {
  fill: hsl(var(--primary));
  stroke: none;
}

.orbit-system text {
  fill: hsl(var(--muted-foreground));
  stroke: none;
  font-family: var(--font-sans);
  font-size: 9px;
  font-variant-emoji: text;
}

/* --- Warum: drei Textspalten ------------------------------------- */

.landing-why .landing-tile__head {
  max-width: 58rem;
}

.landing-why__grid {
  display: grid;
}

.landing-why__item {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
}

.landing-why__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.landing-why__copy {
  margin: 0.625rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .landing-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .landing-why__item {
    padding: 1.75rem 0 0;
  }
}

.landing-why__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .landing-why__proof {
    margin-top: 3.5rem;
  }
}

.landing-why__proof li {
  padding: 0 1rem;
  border-left: 1px solid hsl(var(--border-strong));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.landing-why__proof li:first-child {
  border-left: 0;
}

/* --- Abschluss: der Himmel kehrt zurück -------------------------- */

.landing-final-cta {
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-final-cta {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

body.cosmos-live .landing-final-cta {
  background-color: transparent;
}

.landing-final-cta__horizon {
  --horizon-top: 84%;
}

@media (max-width: 767px) {
  .landing-final-cta__horizon {
    --horizon-size: 420%;
    --horizon-top: 92%;
  }
}

.landing-final-cta > .landing-tile__inner {
  position: relative;
}

.landing-final-cta__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: hsl(var(--foreground));
}

.landing-final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.landing-final-cta__offer {
  margin-top: 0.25rem;
}

/* Mobile Header - immer sichtbar */

.app-sidebar__invite.mobile-header {
  display: none;
}

.report-tabs-row.mobile-header {
  display: none;
}

.report-sheets.mobile-header {
  display: none;
}

.report-inline-error.mobile-header {
  display: none;
}

.report-block.mobile-header {
  display: none;
}

.report-hint.mobile-header {
  display: none;
}

.report-error.mobile-header {
  display: none;
}

.dash-next-report.mobile-header {
  display: none;
}

.dashboard-invite-cta.mobile-header {
  display: none;
}

.dash-mondkalender.mobile-header {
  display: none;
}

.self-profile-gate.mobile-header {
  display: none;
}

.self-profile-gate__empty.mobile-header,
  .self-profile-gate__picker.mobile-header {
  display: none;
}

.invite-share-native.mobile-header {
  display: none;
}

.admin-denied.mobile-header {
  display: none;
}

body.magicspace-page:has(#magicspace-checkout-bar.mobile-header) .magicspace-main,
  .magicspace-main:has(#report-builder.mobile-header) {
  padding-bottom: 0;
}

.magicspace-checkout-bar.mobile-header {
  display: none;
}

.admin-reports-panel.mobile-header {
  display: none;
}

.reports-empty.mobile-header {
  display: none;
}

.report-tab-panel.mobile-header {
  display: none;
}

.profile-form__option-detail.mobile-header {
  display: none;
}

.profile-form__loader.mobile-header {
  display: none;
}

.profile-studio-state.mobile-header {
  display: none;
}

body:has(#landing-page-container.mobile-header) .cosmos-host {
  visibility: hidden;
}

.landing-onboarding__sign.mobile-header {
  display: none;
}

@media (max-width: 1023px) {
  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.mobile-header {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.mobile-header {
    display: none;
  }

  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links__item.mobile-header {
    display: none;
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link.mobile-header {
    display: none;
  }
}

.audiobook-section.mobile-header {
  display: none;
}

.mobile-header{
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 50;
  display: none;
}

.auth-loading.mobile-header {
  display: none;
}

.page-loading.mobile-header {
  display: none;
}

.report-processing.mobile-header {
  display: none;
}

.astrocart-preview.mobile-header {
  display: none;
}

.mobile-header {
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: hsl(var(--background) / 0.82);
  backdrop-filter: var(--bar-blur);
  -webkit-backdrop-filter: var(--bar-blur);
  border-bottom: 1px solid hsl(var(--border));
}

@media (max-width: 1023px) {
  .mobile-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Verstecke Mobile-Header auf Landing Page */

  #landing-page-container:not(.hidden) ~ .mobile-header,
    body:has(#landing-page-container:not(.hidden)) .mobile-header {
    display: none !important;
  }

  .app-main {
    padding-top: var(--mobile-header-offset);
  }
}

/*
   * Toasts: Tailwind top-4/z-50 am Markup schlägt Component-CSS —
   * deshalb !important auf Mobile, damit sie unter dem Header landen.
   */

#toast-container {
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 80;
}

@media (max-width: 1023px) {
  #toast-container {
    top: calc(var(--mobile-header-offset) + 0.5rem) !important;
    z-index: 80 !important;
  }

  /* Landing: Mobile-Header ausgeblendet → Toast unter Safe-Area */

  body:has(#landing-page-container:not(.hidden)) #toast-container {
    top: max(0.85rem, env(safe-area-inset-top, 0px)) !important;
  }
}

@media (max-width: 640px) {
  #toast-container {
    left: 0.75rem !important;
    right: 0.75rem !important;
    max-width: none;
    width: auto;
  }

  #toast-container .toast {
    padding: 0.85rem 0.95rem;
  }
}

.mobile-header__brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.mobile-header__brand:hover{
  opacity: 0.8;
}

.mobile-header__brand {
  text-decoration: none;
  color: inherit;
}

.mobile-header__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.mobile-header__logo .brand-mark {
  --mark-size: 2.25rem;
}

.mobile-header__title{
  color: hsl(var(--foreground));
}

.mobile-header__toggle{
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
}

/* Mobiler Header rechts: Credit-Guthaben + Account (ersetzt das Burger-Menü) */

.mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.mobile-header__credits {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.5rem;
  padding: 0 0.875rem 0 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.mobile-header__credits .material-symbols-outlined {
  font-size: 1.1rem;
}

.mobile-header__credits-value {
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.mobile-header__credits:hover,
  .mobile-header__credits.is-active {
  border-color: hsl(var(--primary) / 0.6);
}

.mobile-header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.mobile-header__account .material-symbols-outlined {
  font-size: 1.3rem;
}

.mobile-header__account:hover,
  .mobile-header__account.is-active {
  border-color: hsl(var(--primary) / 0.6);
  color: hsl(var(--primary));
}

/* Account-Seite: Einträge, die mobil früher im Seitenmenü standen */

.account-mobile-links,
  .dashboard-admin-link {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-header__brand {
    min-width: 0;
  }

  /* Haarlinien-Zeilen statt Karte */

  .account-mobile-links {
    display: grid;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
  }

  .account-mobile-links__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 0;
    border: 0;
    border-bottom: 1px solid hsl(var(--border));
    background: none;
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease;
  }

  .account-mobile-links__item:last-child {
    border-bottom: 0;
  }

  .account-mobile-links__item.hidden {
    display: none;
  }

  .account-mobile-links__item > .material-symbols-outlined:first-child {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
  }

  .account-mobile-links__chevron {
    margin-left: auto;
    font-size: 1.25rem;
    color: hsl(var(--subtle-foreground));
  }

  .account-mobile-links__item--logout,
    .account-mobile-links__item--logout > .material-symbols-outlined:first-child {
    color: hsl(var(--destructive));
  }

  /* Not :not(.hidden) — Tailwind rewrites that via @apply hidden. */

  .dashboard-admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    text-decoration: none;
  }

  .dashboard-admin-link.hidden {
    display: none;
  }

  .dashboard-admin-link > .material-symbols-outlined:first-child {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
  }

  .dashboard-admin-link__chevron {
    margin-left: auto;
    font-size: 1.25rem;
    color: hsl(var(--subtle-foreground));
  }

  .app-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .app-topbar{
    position: relative;
    margin-top: 0;
  }
}

.audiobook-section {
  position: relative;
  min-width: 0;
}

.audiobook-section.hidden {
  display: none;
}

/* Wartezustand: gleiche Karte wie der Player, Pegel läuft ruhig */

.audiobook-section__pending {
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  padding: 2rem 1.5rem;
  background: hsl(var(--surface));
}

@media (min-width: 768px) {
  .audiobook-section__pending {
    padding: 2.5rem;
  }
}

.audiobook-section__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.audiobook-section__status {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground));
}

.audiobook-section__pending-visual {
  margin-top: 2rem;
  display: flex;
  height: 2.5rem;
  align-items: center;
  gap: 0.25rem;
}

.audiobook-section__pending-visual span {
  width: 2px;
  height: 28%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, hsl(var(--mark-lilac)), hsl(var(--primary)));
  animation: audiobook-level 1.6s ease-in-out infinite;
}

.audiobook-section__pending-visual span:nth-child(2) {
  height: 55%;
  animation-delay: 0.12s;
}

.audiobook-section__pending-visual span:nth-child(3) {
  height: 90%;
  animation-delay: 0.24s;
}

.audiobook-section__pending-visual span:nth-child(4) {
  height: 45%;
  animation-delay: 0.36s;
}

.audiobook-section__pending-visual span:nth-child(5) {
  height: 65%;
  animation-delay: 0.48s;
}

.audiobook-section__error {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: hsl(var(--destructive));
}

.audiobook-section.is-ready .audiobook-section__pending {
  display: none;
}

.audiobook-player {
  position: relative;
  min-width: 0;
}

.audiobook-player__container {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  padding: 1.5rem 1.25rem;
  background: hsl(var(--surface));
}

@media (min-width: 768px) {
  .audiobook-player__container {
    padding: 2.5rem;
  }
}

.audiobook-player__header {
  margin-bottom: 1.75rem;
}

.audiobook-player__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .audiobook-player__title {
    font-size: 2.125rem;
  }
}

/* Wellenform (audio-wave.js): gespielter Teil im Verlauf der Reportart,
     bei Wiedergabe schlagen die Striche im Takt der Stimme aus */

.audiobook-player__stage {
  margin-bottom: 1.25rem;
}

.audio-wave {
  display: block;
  width: 100%;
  height: 3.5rem;
  cursor: pointer;
  touch-action: pan-y;
}

/* Farbfühler für das Canvas – nie sichtbar */

.audio-wave__probe {
  display: none;
}

.audio-wave__probe--a {
  color: color-mix(in srgb, hsl(var(--rt-a, var(--mark-lilac))), #000 var(--rt-shade, 0%));
}

.audio-wave__probe--b {
  color: color-mix(in srgb, hsl(var(--rt-b, var(--mark-aurum))), #000 var(--rt-shade, 0%));
}

.audio-wave__probe--idle {
  color: hsl(var(--border-strong));
}

/* Wiedergabe / Laden – kein Dauer-Effekt im Stand */

@keyframes audiobook-level {
  0%, 100% {
    transform: scaleY(0.55);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Bedienung: Fortschritt über die volle Breite, darunter Transport (Mitte) und Aktionen (rechts) */

.audiobook-player__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  row-gap: 1.25rem;
}

.audiobook-player__progress-container {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.audiobook-player__transport {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .audiobook-player__transport {
    gap: 1rem;
  }
}

.audiobook-player__actions {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.audiobook-player__play-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: background-color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .audiobook-player__play-button {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.audiobook-player__play-button:hover {
  background: hsl(var(--primary-hover));
}

.audiobook-player__play-button:active {
  transform: scale(0.97);
}

.audiobook-player__play-button .material-symbols-outlined {
  font-size: 2.25rem;
  font-variation-settings: 'FILL' 1;
}

.audiobook-player__play-button .play-icon,
  .audiobook-player__play-button .pause-icon {
  position: absolute;
}

.audiobook-player__skip-button,
  .audiobook-player__volume-button,
  .audiobook-player__download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: transparent;
  color: hsl(var(--muted-foreground));
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.audiobook-player__skip-button:hover,
  .audiobook-player__volume-button:hover,
  .audiobook-player__download-button:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.06);
}

.audiobook-player__skip-button:active,
  .audiobook-player__volume-button:active,
  .audiobook-player__download-button:active {
  transform: scale(0.97);
}

.audiobook-player__skip-button .material-symbols-outlined {
  font-size: 1.625rem;
}

.audiobook-player__volume-button .material-symbols-outlined,
  .audiobook-player__download-button .material-symbols-outlined {
  font-size: 1.375rem;
}

.audiobook-player__time-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.audiobook-player__time-display #audiobook-current-time {
  color: hsl(var(--foreground));
}

.audiobook-player__progress-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.5rem;
  --progress: 0%;
}

.audiobook-player__progress-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: hsl(var(--border-strong));
}

.audiobook-player__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: hsl(var(--primary));
  transition: width 0.1s linear;
}

.audiobook-player__progress-thumb {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  left: var(--progress, 0%);
  transform: translate(-50%, -50%);
  background: hsl(var(--primary));
  pointer-events: none;
  transition: left 0.1s linear;
}

.audiobook-player__seek {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  opacity: 0;
}

.audiobook-player__seek:focus-visible + *,
  .audiobook-player__progress-bar:focus-within .audiobook-player__progress-thumb {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

.audiobook-player__meta {
  margin: 0.875rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: hsl(var(--subtle-foreground));
}

.audiobook-player__meta:empty {
  display: none;
}

/* Schmal: Download steht bereits im Seitenkopf – im Player bleibt nur die Lautstärke */

@media (max-width: 480px) {
  .audiobook-player--report .audiobook-player__download-button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audiobook-section__pending-visual span {
    animation: none !important;
  }
}

[data-report-chart-type] {
  --rt-a: var(--mark-aurum);
  --rt-b: var(--mark-lilac);
}

/* Text */

[data-report-chart-type="natal"] {
  --rt-a: 42 85% 64%;
  --rt-b: 22 84% 60%;
}

[data-report-chart-type="transit"],
  [data-report-chart-type="daily"] {
  --rt-a: 44 80% 68%;
  --rt-b: 214 62% 70%;
}

[data-report-chart-type="pair"] {
  --rt-a: 346 68% 70%;
  --rt-b: 268 56% 72%;
}

[data-report-chart-type="soul"] {
  --rt-a: 268 58% 74%;
  --rt-b: 228 64% 68%;
}

[data-report-chart-type="chinese"] {
  --rt-a: 8 74% 60%;
  --rt-b: 40 80% 62%;
}

/* Audio */

[data-report-chart-type="audiobook"] {
  --rt-a: 262 58% 72%;
  --rt-b: 38 80% 64%;
}

[data-report-chart-type="pair_audiobook"] {
  --rt-a: 262 58% 72%;
  --rt-b: 342 66% 70%;
}

[data-report-chart-type="children_audiobook"] {
  --rt-a: 262 58% 72%;
  --rt-b: 188 58% 60%;
}

/* Bild */

[data-report-chart-type="astro_card"] {
  --rt-a: 14 80% 64%;
  --rt-b: 42 82% 64%;
}

[data-report-chart-type="future_child"] {
  --rt-a: 338 68% 72%;
  --rt-b: 26 86% 68%;
}

/* 3D */

[data-report-chart-type="astrocartography"] {
  --rt-a: 190 62% 56%;
  --rt-b: 258 56% 72%;
}

/* --- Fläche: Schimmer aus der Glyphen-Ecke ------------------------- */

.magicspace-catalog .report-type-widget[data-report-chart-type],
  .dash-shortcut[data-report-chart-type],
  .report-module[data-report-chart-type] .report-module__surface {
  background-image: radial-gradient(130% 150% at 0% 0%,
      hsl(var(--rt-a) / calc(0.17 * var(--brand-tint, 1))) 0,
      hsl(var(--rt-b) / calc(0.09 * var(--brand-tint, 1))) 42%,
      transparent 74%);
  background-repeat: no-repeat;
}

.magicspace-catalog .report-type-widget.is-disabled,
  .magicspace-catalog .report-type-widget[aria-disabled="true"],
  .magicspace-catalog .report-type-widget:has(input:disabled):not(.is-active) {
  background-image: none;
}

/* --- Rand bei Hover in der Reportfarbe ----------------------------- */

@media (hover: hover) {
  .magicspace-catalog .report-type-widget[data-report-chart-type]:hover:not(.is-active):not(.is-disabled),
    .dash-shortcut[data-report-chart-type]:hover,
    .report-module[data-report-chart-type]:hover .report-module__surface {
    border-color: color-mix(in srgb, hsl(var(--rt-a)) 50%, hsl(var(--border-strong)));
  }
}

/* --- Glyphe im Verlauf --------------------------------------------- */

.magicspace-catalog .report-type-widget[data-report-chart-type] .report-type-widget__icon > *,
  .dash-shortcut[data-report-chart-type] .dash-shortcut__glyph,
  .report-module[data-report-chart-type] .report-module__icon > * {
  background-image: linear-gradient(135deg,
      color-mix(in srgb, hsl(var(--rt-a)), #000 var(--rt-shade, 0%)),
      color-mix(in srgb, hsl(var(--rt-b)), #000 var(--rt-shade, 0%)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- 1. Verlaufs-Haarlinie ---------------------------------------- */

/* Die Linie selbst bleibt die neutrale Haarlinie. Darüber wandert ein
     kurzer, leiser Lichtschein (Aurum → Lilac) langsam hin und her. */

.degree-rule {
  height: 1px;
  border: 0;
  background-color: hsl(var(--border));
}

.mobile-header::after,
  .landing-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
}

.degree-rule,
  .mobile-header::after,
  .landing-nav::after {
  background-image: linear-gradient(90deg,
      hsl(var(--mark-aurum) / 0),
      hsl(var(--mark-aurum) / calc(0.5 * var(--brand-tint, 1))) 38%,
      hsl(var(--mark-lilac) / calc(0.42 * var(--brand-tint, 1))) 62%,
      hsl(var(--mark-lilac) / 0));
  background-repeat: no-repeat;
  background-size: min(34%, 26rem) 100%;
  background-position: 0% 0;
  animation: brand-line-drift 12s ease-in-out infinite alternate;
}

/* Der Schein bleibt in der linken Hälfte: Bei 34 % Breite liegt seine
     rechte Kante mit 24 % Position bei rund 50 % der Linie. */

@keyframes brand-line-drift {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 24% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .degree-rule,
    .mobile-header::after,
    .landing-nav::after {
    animation: none;
  }
}

/* Mobil trägt die Kopfleiste die Verlaufs-Haarlinie. Die Linie unter dem
     Seitenkopf entfällt dort, sonst steht sie doppelt; übrige Trenner
     bleiben neutral. */

@media (max-width: 1023px) {
  .degree-rule {
    background-image: none;
    animation: none;
  }

  .page-head + .degree-rule {
    display: none;
  }
}

/* Dashboard ab 640 px: Die Linie bleibt als Horizont des Bogens. */

@media (min-width: 640px) and (max-width: 1023px) {
  .dashboard-overview > .page-head + .degree-rule {
    display: block;
  }
}

/* --- 2. Verlaufs-Füllung ------------------------------------------ */

.magicspace-processing-card__bar,
  .landing-onboarding__progress-fill,
  .audiobook-player__progress-fill,
  .landing-player__fill {
  background: linear-gradient(90deg, hsl(var(--mark-lilac)), hsl(var(--primary)) 70%);
}

/* Jede Karte trägt denselben Schimmer in ganz leiser Form */

.\!card {
  background-image:
      radial-gradient(70% 100% at 100% 100%, hsl(var(--mark-aurum) / calc(0.06 * var(--brand-tint, 1))), transparent 70%),
      radial-gradient(110% 150% at 100% 100%, hsl(var(--mark-lilac) / calc(0.07 * var(--brand-tint, 1))), transparent 70%) !important;
  background-repeat: no-repeat !important;
}

.card {
  background-image:
      radial-gradient(70% 100% at 100% 100%, hsl(var(--mark-aurum) / calc(0.06 * var(--brand-tint, 1))), transparent 70%),
      radial-gradient(110% 150% at 100% 100%, hsl(var(--mark-lilac) / calc(0.07 * var(--brand-tint, 1))), transparent 70%);
  background-repeat: no-repeat;
}

/* --- 3. Eck-Schimmer ---------------------------------------------- */

.brand-glow,
  .landing-player,
  .audiobook-player__container,
  .dash-today__surface,
  .app-sidebar__panel,
  .self-profile-gate__card,
  .magicspace-processing-card {
  background-image:
      radial-gradient(60% 90% at 100% 100%, hsl(var(--mark-aurum) / calc(0.2 * var(--brand-tint, 1))), transparent 72%),
      radial-gradient(105% 140% at 100% 100%, hsl(var(--mark-lilac) / calc(0.16 * var(--brand-tint, 1))), transparent 70%);
  background-repeat: no-repeat;
}

/* Aktive Navigationszeile: Aurum läuft von links in die Fläche aus */

.app-nav__link.is-active {
  background-image: linear-gradient(90deg,
      hsl(var(--mark-aurum) / calc(0.2 * var(--brand-tint, 1))),
      hsl(var(--mark-lilac) / calc(0.1 * var(--brand-tint, 1))) 55%,
      transparent);
}

/* Credit-Stand in der Sidebar: Zahl im Markenverlauf */

.app-sidebar__panel .app-sidebar__plan-value {
  background-image: linear-gradient(100deg,
      color-mix(in srgb, hsl(var(--mark-aurum)), #000 var(--rt-shade, 0%)),
      color-mix(in srgb, hsl(var(--mark-lilac)), #000 var(--rt-shade, 0%)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: -moz-fit-content;
  width: fit-content;
}

/* --- 4. Aurum-Schliff --------------------------------------------- */

.btn-primary,
  .btn-primary-lg,
  .audiobook-player__play-button,
  .landing-player__play,
  .app-bottom-nav__item--magic .app-bottom-nav__icon {
  background-image: linear-gradient(100deg, hsl(var(--primary-hover)), hsl(var(--primary)) 62%);
}

.btn-primary:hover:not(:disabled),
  .btn-primary-lg:hover:not(:disabled),
  .audiobook-player__play-button:hover,
  .landing-player__play:hover {
  background-image: none;
}

/* --- 5. Einstiegs-Ruf: „Dein nächster Report“ --------------------
     Einzige Karte mit umlaufendem Licht. Die Stärke hängt an der Station
     (data-tier, gesetzt von main.js nach erledigten Stationen):
     hero   – 0 erledigt: über „Dein Tag“, Lichtkante + Hof + Button-Streif;
              „Dein Tag“ gibt Eck-Schimmer und Primär-Button ab.
     strong – 1 erledigt: unter „Dein Tag“, Lichtkante + Eck-Schimmer.
     calm   – ab 2 erledigt: unter „Dein Tag“, ohne Effekte (30-dashboard.css). */

@property --next-report-angle {
  syntax: "<angle>";

  inherits: false;

  initial-value: 0deg;
}

.dash-next-report {
  position: relative;
  isolation: isolate;
}

.dash-next-report__surface {
  position: relative;
  z-index: 1;
}

/* Lichtkante als Hintergrund auf dem Rahmen (Gradient-Border): Innen- und
     Außenkante folgen derselben Rundung – keine Maske, daher in Safari ohne
     dunkle Ecken. Schichten von oben: Eck-Schimmer, Kartenfläche
     (padding-box), umlaufender Schein, ruhige Goldkante (border-box). */

.dash-next-report:is([data-tier="hero"], [data-tier="strong"]) .dash-next-report__surface {
  border-color: transparent;
  background:
      radial-gradient(60% 90% at 100% 100%, hsl(var(--mark-aurum) / calc(0.2 * var(--brand-tint, 1))), hsl(var(--mark-aurum) / 0) 72%) padding-box,
      radial-gradient(105% 140% at 100% 100%, hsl(var(--mark-lilac) / calc(0.16 * var(--brand-tint, 1))), hsl(var(--mark-lilac) / 0) 70%) padding-box,
      linear-gradient(hsl(var(--surface)), hsl(var(--surface))) padding-box,
      conic-gradient(from var(--next-report-angle),
        hsl(var(--mark-aurum) / 0) 0deg 200deg,
        hsl(var(--mark-aurum) / calc(0.95 * var(--brand-tint, 1))) 270deg,
        hsl(var(--mark-lilac) / calc(0.7 * var(--brand-tint, 1))) 315deg,
        hsl(var(--mark-lilac) / 0) 345deg 360deg) border-box,
      linear-gradient(hsl(var(--mark-aurum) / calc(0.28 * var(--brand-tint, 1))), hsl(var(--mark-aurum) / calc(0.28 * var(--brand-tint, 1)))) border-box;
  background-repeat: no-repeat;
  animation: next-report-orbit 9s linear infinite;
}

/* Hof (nur hero): weichgezeichnete Fläche HINTER der Karte. Die deckende
     Karte verdeckt die Mitte, sichtbar bleibt nur der Überlauf – ohne Maske,
     daher keine harten Kanten. Der Hof liegt ruhend um die ganze Karte und
     atmet nur über opacity; den Lauf übernimmt die Kante. Eine mitlaufende
     Bewegung im Hof (Custom Property oder transform unter dem Blur-Filter)
     lässt Safari Reste an den unteren Ecken stehen. */

.dash-next-report__glow {
  display: none;
}

.dash-next-report[data-tier="hero"] .dash-next-report__glow {
  display: block;
  position: absolute;
  inset: -3px;
  z-index: 0;
  pointer-events: none;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg,
      hsl(var(--mark-aurum) / calc(0.55 * var(--brand-tint, 1))),
      hsl(var(--mark-aurum) / calc(0.4 * var(--brand-tint, 1))) 55%,
      hsl(var(--mark-lilac) / calc(0.45 * var(--brand-tint, 1))));
  filter: blur(14px);
  animation: next-report-breathe 4.5s ease-in-out infinite alternate;
}

@keyframes next-report-breathe {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

/* Safari mischt beim Weichzeichnen sonst Schwarz aus „transparent“ hinein:
     alle Verläufe enden deshalb in Aurum/Lilac mit 0 % Deckkraft (siehe oben). */

@keyframes next-report-orbit {
  to {
    --next-report-angle: 360deg;
  }
}

/* Button-Streif (nur hero) */

.dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary {
  position: relative;
  overflow: hidden;
}

.dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, hsl(0 0% 100% / 0) 35%, hsl(0 0% 100% / 0.45) 50%, hsl(0 0% 100% / 0) 65%);
  transform: translateX(-120%);
  animation: next-report-sheen 4.5s ease-in-out 1.2s infinite;
}

@keyframes next-report-sheen {
  0% {
    transform: translateX(-120%);
  }

  30%, 100% {
    transform: translateX(120%);
  }
}

.dashboard-overview:has(.dash-next-report[data-tier="hero"]:not(.hidden)) .dash-today__surface {
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .dash-next-report .dash-next-report__surface,
    .dash-next-report .dash-next-report__glow,
    .dash-next-report .dash-next-report__cta .btn-primary::after {
    animation: none;
  }

  /* Ohne Bewegung: ruhige, vollständige Goldkante statt Lichtlauf */

  .dash-next-report:is([data-tier="hero"], [data-tier="strong"]) .dash-next-report__surface {
    background:
        radial-gradient(60% 90% at 100% 100%, hsl(var(--mark-aurum) / calc(0.2 * var(--brand-tint, 1))), hsl(var(--mark-aurum) / 0) 72%) padding-box,
        radial-gradient(105% 140% at 100% 100%, hsl(var(--mark-lilac) / calc(0.16 * var(--brand-tint, 1))), hsl(var(--mark-lilac) / 0) 70%) padding-box,
        linear-gradient(hsl(var(--surface)), hsl(var(--surface))) padding-box,
        linear-gradient(hsl(var(--mark-aurum) / calc(0.6 * var(--brand-tint, 1))), hsl(var(--mark-aurum) / calc(0.6 * var(--brand-tint, 1)))) border-box;
    background-repeat: no-repeat;
  }

  .dash-next-report[data-tier="hero"] .dash-next-report__glow,
    .dash-next-report[data-tier="hero"] .dash-next-report__cta .btn-primary::after {
    display: none;
  }
}

/* --- Audio-Player: Ring um den Play-Kreis atmet mit dem Pegel -----
     --audio-level (0–1) setzt audio-wave.js an der Player-Karte. */

.audiobook-player__play-button,
  .landing-player__play {
  position: relative;
}

.audiobook-player__play-button::before,
  .landing-player__play::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: var(--radius-pill);
  background: conic-gradient(from 210deg,
      hsl(var(--rt-a, var(--mark-lilac))),
      hsl(var(--rt-b, var(--mark-aurum))),
      hsl(var(--rt-a, var(--mark-lilac))));
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  opacity: calc(var(--audio-level, 0) * 0.95);
  transform: scale(calc(1 + var(--audio-level, 0) * 0.07));
  pointer-events: none;
}

/* --- Wartezustand im Magicspace: Bildmarke statt Spinner ---------- */

.magicspace-processing-card__mark {
  --mark-size: 4.5rem;
}

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

.pointer-events-none{
  pointer-events: none;
}

.\!visible{
  visibility: visible !important;
}

.visible{
  visibility: visible;
}

.invisible{
  visibility: hidden;
}

.static{
  position: static;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.inset-0{
  inset: 0px;
}

.right-4{
  right: 1rem;
}

.top-4{
  top: 1rem;
}

.z-10{
  z-index: 10;
}

.z-50{
  z-index: 50;
}

.z-\[100\]{
  z-index: 100;
}

.col-span-full{
  grid-column: 1 / -1;
}

.mx-4{
  margin-left: 1rem;
  margin-right: 1rem;
}

.mb-1{
  margin-bottom: 0.25rem;
}

.mb-2{
  margin-bottom: 0.5rem;
}

.mb-3{
  margin-bottom: 0.75rem;
}

.mb-6{
  margin-bottom: 1.5rem;
}

.mt-1{
  margin-top: 0.25rem;
}

.mt-2{
  margin-top: 0.5rem;
}

.mt-4{
  margin-top: 1rem;
}

.mt-6{
  margin-top: 1.5rem;
}

.block{
  display: block;
}

.inline-block{
  display: inline-block;
}

.flex{
  display: flex;
}

.inline-flex{
  display: inline-flex;
}

.\!table{
  display: table !important;
}

.table{
  display: table;
}

.grid{
  display: grid;
}

.contents{
  display: contents;
}

.hidden{
  display: none;
}

.h-24{
  height: 6rem;
}

.h-4{
  height: 1rem;
}

.h-48{
  height: 12rem;
}

.h-5{
  height: 1.25rem;
}

.h-full{
  height: 100%;
}

.w-4{
  width: 1rem;
}

.w-5{
  width: 1.25rem;
}

.w-full{
  width: 100%;
}

.min-w-0{
  min-width: 0px;
}

.min-w-\[48px\]{
  min-width: 48px;
}

.max-w-md{
  max-width: 28rem;
}

.flex-1{
  flex: 1 1 0%;
}

.flex-shrink-0{
  flex-shrink: 0;
}

.shrink{
  flex-shrink: 1;
}

.grow{
  flex-grow: 1;
}

.border-collapse{
  border-collapse: collapse;
}

.rotate-180{
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-help{
  cursor: help;
}

.cursor-pointer{
  cursor: pointer;
}

.resize{
  resize: both;
}

.grid-cols-1{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex-col{
  flex-direction: column;
}

.flex-wrap{
  flex-wrap: wrap;
}

.items-start{
  align-items: flex-start;
}

.items-end{
  align-items: flex-end;
}

.items-center{
  align-items: center;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.gap-0\.5{
  gap: 0.125rem;
}

.gap-2{
  gap: 0.5rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.gap-6{
  gap: 1.5rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.overflow-x-auto{
  overflow-x: auto;
}

.whitespace-nowrap{
  white-space: nowrap;
}

.rounded{
  border-radius: 8px;
}

.rounded-2xl{
  border-radius: 18px;
}

.rounded-full{
  border-radius: 9999px;
}

.border{
  border-width: 1px;
}

.border-b{
  border-bottom-width: 1px;
}

.border-border{
  border-color: hsl(var(--border));
}

.border-border\/50{
  border-color: hsl(var(--border) / 0.5);
}

.border-destructive{
  border-color: hsl(var(--destructive));
}

.border-destructive\/30{
  border-color: hsl(var(--destructive) / 0.3);
}

.border-primary{
  border-color: hsl(var(--primary));
}

.border-success\/30{
  border-color: hsl(var(--success) / 0.3);
}

.border-warning\/30{
  border-color: hsl(var(--warning) / 0.3);
}

.bg-background{
  background-color: hsl(var(--background));
}

.bg-destructive\/10{
  background-color: hsl(var(--destructive) / 0.1);
}

.bg-foreground\/10{
  background-color: hsl(var(--foreground) / 0.1);
}

.bg-foreground\/\[0\.03\]{
  background-color: hsl(var(--foreground) / 0.03);
}

.bg-muted{
  background-color: hsl(var(--muted));
}

.bg-primary\/5{
  background-color: hsl(var(--primary) / 0.05);
}

.bg-success\/10{
  background-color: hsl(var(--success) / 0.1);
}

.bg-warning\/10{
  background-color: hsl(var(--warning) / 0.1);
}

.p-2{
  padding: 0.5rem;
}

.p-4{
  padding: 1rem;
}

.p-5{
  padding: 1.25rem;
}

.p-6{
  padding: 1.5rem;
}

.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5{
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-2{
  padding-bottom: 0.5rem;
}

.text-left{
  text-align: left;
}

.text-center{
  text-align: center;
}

.text-right{
  text-align: right;
}

.font-display{
  font-family: "Libre Caslon Display", Georgia, serif;
}

.font-mono{
  font-family: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
}

.font-sans{
  font-family: Instrument Sans, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl{
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-\[10px\]{
  font-size: 10px;
}

.text-\[11px\]{
  font-size: 11px;
}

.text-base{
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl{
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-medium{
  font-weight: 500;
}

.font-semibold{
  font-weight: 600;
}

.uppercase{
  text-transform: uppercase;
}

.tracking-\[0\.3em\]{
  letter-spacing: 0.3em;
}

.tracking-wide{
  letter-spacing: 0.025em;
}

.text-amber-200{
  --tw-text-opacity: 1;
  color: rgb(253 230 138 / var(--tw-text-opacity, 1));
}

.text-destructive{
  color: hsl(var(--destructive));
}

.text-foreground{
  color: hsl(var(--foreground));
}

.text-indigo-200{
  --tw-text-opacity: 1;
  color: rgb(199 210 254 / var(--tw-text-opacity, 1));
}

.text-muted-foreground{
  color: hsl(var(--muted-foreground));
}

.text-orange-200{
  --tw-text-opacity: 1;
  color: rgb(254 215 170 / var(--tw-text-opacity, 1));
}

.text-pink-200{
  --tw-text-opacity: 1;
  color: rgb(251 207 232 / var(--tw-text-opacity, 1));
}

.text-primary{
  color: hsl(var(--primary));
}

.text-success{
  color: hsl(var(--success));
}

.text-warning{
  color: hsl(var(--warning));
}

.antialiased{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.opacity-50{
  opacity: 0.5;
}

.opacity-60{
  opacity: 0.6;
}

.shadow{
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.ring{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.blur{
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.grayscale{
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.invert{
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity{
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform{
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200{
  transition-duration: 200ms;
}

.duration-300{
  transition-duration: 300ms;
}

.ease-out{
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, -10px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ===================================
   AUTH LOADING STATE
   Wird während der Auth-Prüfung angezeigt
   =================================== */

.auth-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background, 240 6% 4%));
}

.auth-loading.hidden {
  display: none;
}

/* Einheitlicher Seiten-Loader: Logo zentriert, Status darunter */

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--background, 240 6% 4%));
  transition: opacity 0.28s ease;
  text-align: center;
}

.page-loading.hidden {
  display: none;
}

.page-loading--hiding {
  opacity: 0;
  pointer-events: none;
}

.page-loading__logo {
  display: block;
  --mark-size: 64px;
  margin: 0 auto;
}

.page-loading__text {
  margin: 0;
  max-width: 18rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: hsl(var(--muted-foreground, 240 4% 66%));
}

/* Sidebar bleibt sichtbar — Loader nur über dem Hauptinhalt */

.page-loading--scoped {
  position: absolute;
  inset: 0;
  z-index: 20;
}

body.page-is-loading .app-main {
  min-height: 100vh;
  min-height: 100dvh;
}

/* EN boot gate: hide German HTML shell until i18n-init applies dictionaries */

html[data-i18n-pending="1"] .app-shell {
  visibility: hidden;
  pointer-events: none;
}

html[data-i18n-pending="1"] body {
  background: hsl(var(--background, 240 6% 4%));
}

body.page-is-loading #dashboard-container,
body.page-is-loading #landing-page-container {
  visibility: hidden;
  pointer-events: none;
}

/* Mobil: Landing/Dashboard während Auth-Load nicht als riesige Scrollfläche belassen
   (visibility:hidden behält sonst die volle Landing-Höhe → Einstieg „mittig“) */

@media (max-width: 1023px) {
  body.page-is-loading #landing-page-container,
  body.page-is-loading #dashboard-container {
    max-height: 100dvh;
    overflow: hidden;
  }
}

.auth-loading__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-loading__logo {
  --mark-size: 64px;
}

.auth-loading__spinner {
  width: 20px;
  height: 20px;
  border: 1.5px solid hsl(var(--border-strong, 240 4% 28%));
  border-top-color: hsl(var(--primary, 40 78% 64%));
  border-radius: 50%;
  animation: auth-loading-spin 0.8s linear infinite;
}

@keyframes auth-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   THEME SYSTEM & CSS VARIABLES
   =================================== */

/* ===================================
   BILDMARKE – Me · We · How
   Drei Kreise in drei Zuständen:
     me   ein Kreis (alle drei liegen übereinander)
     we   der Kreis fächert zu dreien auf
     how  drei Kreise + Stern und Leuchten in der gemeinsamen Mitte (Standard)

   Markup:
     <span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i></span>
   Zustand:  data-state="me" | "we" | "how"
   Größe:    --mark-size am Element oder Wrapper setzen (Standard 2.5rem)
   Bewegung: .brand-mark--loop  (Lader: Me → We → How, Dauerschleife)
             .brand-mark--intro (einmaliges Auffächern beim Laden)
             Kopf-Logos (Sidebar, mobile Kopfleiste, Landing-Navigation)
             falten sich alle 15 s einmal zusammen und fächern neu auf.

   Farben kommen aus --mark-* (01-tokens-base.css) und folgen damit
   Nacht, Papier und hellem Theme. Die Geometrie spiegelt
   public/assets/images/mewehow-mark.svg.
   =================================== */

/* ===================================
   HORIZONT – das zweite Markenmotiv neben der Bildmarke
   Ein einzelner Lichtbogen: der Rand eines Himmelskörpers, in der Mitte
   Aurum, zu den Seiten Lilac. Rein dekorativ, liegt hinter dem Inhalt.

   Markup (im positionierten Elternelement, vor dem Inhalt):
     <span class="horizon" aria-hidden="true"></span>

   Stellgrößen am Element:
     --horizon-size  Durchmesser des Körpers (Standard 260 % der Breite)
     --horizon-x     waagerechte Lage des Scheitels (Standard 50 %)
     --horizon-top   senkrechte Lage des Scheitels (Standard 80 %)
     --horizon-body  Fläche unterhalb des Bogens (Standard: --background)
     --horizon-fade  wie weit die Linie seitlich ausläuft (Standard 30 %;
                     kleine, ganz sichtbare Bögen: 3 %)

   Regeln (DESIGN.md → „Horizont“): ein Bogen je Ansicht, nie gekreuzt,
   nie als gerades Leuchtband. Auf Papier und im hellen Theme bleibt nur
   die Linie (--horizon-glow: 0).
   =================================== */

/* ===================================
   LANDING – Grundgerüst (DESIGN.md → Layout / Landing)
   Vollflächige Kacheln im Wechsel Nacht ↔ Papier, schmale mattierte
   Navigation, Hero mit dem Himmel als „Foto", Ticker, Scroll-Reveal.
   Abschnitte: 86-landing-cosmos.css · Onboarding: 84-landing-editorial.css
   =================================== */

/* ===================================
   LANDING – Abschnitte (Kacheln)
   Report-Vorschau, Ablauf, Reportarten, Audiobook, Astrokartografie,
   Zwölf Zeichen, Warum, Abschluss. Grundgerüst: 80-landing-base.css
   =================================== */

/* ===================================
   MOBILE OPTIMIERUNGEN
   =================================== */

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* ===================================
   AUDIOBOOK PLAYER
   Ein ruhiges Instrument auf einer flachen Karte: Pegelzeile, Fortschritt,
   Aurum-Play-Kreis. Genutzt auf report.html.
   =================================== */

/* ===================================
   VERARBEITUNG
   Wartezustand auf report.html (das Magicspace-Overlay liegt in 60-magicspace.css).
   Bildmarke in Bewegung, Caslon-Statuszeile, Schritttext in Mono; darunter
   geht der Horizont auf (98-brand-accents.css).
   =================================== */

.report-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: min(78vh, 44rem);
  /* unten Platz für den Horizont, damit er nichts kreuzt */
  padding: 3rem 1rem 13rem;
  text-align: center;
}

.report-processing.hidden {
  display: none;
}

/* Bildmarke läuft als Me → We → How, solange der Report entsteht */

.report-processing__mark {
  --mark-size: 6.5rem;
}

.report-processing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
}

.report-processing__lead {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.report-processing__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: hsl(var(--primary));
}

/* ===================================
   ASTROKARTOGRAFIE
   Kugel auf eingelassenem Quadrat; alles Weitere flach mit Haarlinien.
   =================================== */

/* Linienfarben der vier Achsen – Daten, daher Element-Tokens.
   JS liest dieselben Tokens für WebGL (main.js → getAstrocartLineColors). */

.astrocart-swatch--asc {
  background: hsl(var(--element-fire));
}

.astrocart-swatch--desc {
  background: hsl(var(--element-water));
}

.astrocart-swatch--mc {
  background: hsl(var(--element-air));
}

.astrocart-swatch--ic {
  background: hsl(var(--element-earth));
}

/* Kompaktmodul über der Deutung */

.astrocart-preview {
  min-width: 0;
  max-width: 100%;
}

.astrocart-preview.hidden {
  display: none;
}

.astrocart-preview__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .astrocart-preview__layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 3rem;
  }
}

.astrocart-preview__globe-wrap {
  width: min(100%, 22rem);
  margin-inline: auto;
}

/* Quadrat immer reservieren – auch wenn die WebGL-Node temporär im Full-Slot ist */

.astrocart-preview__globe-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 12.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsl(var(--surface-sunken));
  border: 1px solid hsl(var(--border));
}

.astrocart-preview__globe-slot .astrocart-globe-host,
.astrocart-preview__globe-slot .astrocart-globe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.astrocart-preview__globe-slot .astrocart-globe__hint {
  display: none;
}

.astrocart-preview__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.astrocart-preview__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.024em;
  line-height: 1.1;
}

.astrocart-preview__lead {
  margin: 0;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.astrocart-preview__summary {
  width: 100%;
  margin-top: 0.5rem;
}

.astrocart-preview__highlight {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.astrocart-preview__highlight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.astrocart-preview__highlight-label,
.astrocart-preview__meta-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.astrocart-preview__highlight-value {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.astrocart-preview__highlight-detail {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.astrocart-preview__actions {
  margin-top: 0.5rem;
}

.astrocart-preview__cta .material-symbols-outlined {
  font-size: 1.125rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .astrocart-preview__globe-wrap {
    width: min(100%, 16rem);
  }

  .astrocart-preview__actions,
  .astrocart-preview__cta {
    width: 100%;
  }
}

.astrocart-full-globe-slot {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.astrocart-full-globe-slot .astrocart-globe-host,
.astrocart-full-globe-slot .astrocart-globe {
  width: 100%;
}

/* Vollansicht (Reiter „Astrokartografie") – Abschnitt ohne Kasten */

.astrocart-panel,
#astrocartography-result-section {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.astrocart-panel__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.astrocart-panel__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.astrocart-panel__legend-swatch {
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  border-radius: var(--radius-pill);
}

/* Kennzahlen: ein Streifen mit Haarlinien statt dreier Mini-Karten */

.astrocart-panel__summary {
  display: grid;
  margin-bottom: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .astrocart-panel__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.astrocart-panel__summary-item {
  min-width: 0;
  padding: 1rem 0;
}

.astrocart-panel__summary-item + .astrocart-panel__summary-item {
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .astrocart-panel__summary-item {
    padding: 1.125rem 1.25rem;
  }

  .astrocart-panel__summary-item:first-child {
    padding-left: 0;
  }

  .astrocart-panel__summary-item + .astrocart-panel__summary-item {
    border-top: 0;
    border-left: 1px solid hsl(var(--border));
  }
}

.astrocart-panel__summary-item .label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.astrocart-panel__summary-item .value {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.astrocart-panel__summary-item .detail {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.astrocart-panel__filters {
  margin-bottom: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.astrocart-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.astrocart-filters__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .astrocart-filters__row {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }

  .astrocart-filters__label {
    width: 4.5rem;
  }
}

.astrocart-filters__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.astrocart-filters__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.astrocart-filters__chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .astrocart-filters__chips {
    flex-wrap: wrap;
    overflow: visible;
  }
}

/* Filter-Chip = .chip; Auswahl über .is-active (JS) */

.astrocart-filters__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(var(--border-strong));
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.astrocart-filters__chip:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / 0.55);
}

.astrocart-filters__chip.is-active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
}

.astrocart-filters__dot {
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
}

.astrocart-stage {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .astrocart-stage {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
    align-items: stretch;
    gap: 2rem;
  }
}

.astrocart-stage__globe {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.astrocart-globe-host,
.astrocart-globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(72vh, 640px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-sunken));
}

.astrocart-globe__canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.astrocart-globe__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.astrocart-globe__canvas canvas:active {
  cursor: grabbing;
}

@media (max-width: 899px) {
  .astrocart-stage__globe {
    display: flex;
    justify-content: center;
  }

  .astrocart-full-globe-slot {
    position: relative;
    width: min(100%, 20rem);
    aspect-ratio: 1 / 1;
    min-height: 16rem;
  }

  .astrocart-full-globe-slot .astrocart-globe-host,
  .astrocart-full-globe-slot .astrocart-globe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
  }

  /* Host nur begrenzen, wenn er nicht im Preview-/Full-Slot absolut liegt */

  .astrocart-stage__globe > .astrocart-globe-host,
  .astrocart-stage__globe > .astrocart-globe {
    width: min(100%, 20rem);
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  .astrocart-full-globe-slot {
    width: min(100%, 16.5rem);
    min-height: 14.5rem;
  }
}

/* Tooltip schwebt über der Kugel → schwebende Ebene */

.astrocart-globe__tooltip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
  background: hsl(var(--surface-raised));
  border: 1px solid hsl(var(--border-strong));
  box-shadow: var(--shadow-float);
  max-width: min(14rem, calc(100% - 1rem));
}

.astrocart-globe__hint {
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.75rem;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: hsl(var(--subtle-foreground));
  pointer-events: none;
}

/* Top-Orte: flache Liste mit Haarlinien */

.astrocart-stage__shortcuts {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .astrocart-stage__shortcuts {
    max-height: min(72vh, 640px);
  }
}

.astrocart-shortcuts__head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.astrocart-shortcuts__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.astrocart-shortcuts__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: hsl(var(--subtle-foreground));
}

.astrocart-shortcuts__list {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.astrocart-shortcuts__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .astrocart-shortcuts__list {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    scroll-snap-type: none;
    scrollbar-width: thin;
  }
}

.astrocart-shortcut {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: 12rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem 0.875rem 0;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  transition: background-color 160ms ease;
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  .astrocart-shortcut {
    width: 100%;
    padding-inline: 0.75rem;
    scroll-snap-align: none;
  }
}

.astrocart-shortcut:hover,
.astrocart-shortcut:focus-visible {
  background: hsl(var(--foreground) / 0.04);
}

.astrocart-shortcut.is-active {
  background: hsl(var(--primary) / 0.08);
}

.astrocart-shortcut__rank {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--subtle-foreground));
}

.astrocart-shortcut.is-active .astrocart-shortcut__rank {
  color: hsl(var(--primary));
}

.astrocart-shortcut__body {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.astrocart-shortcut__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astrocart-shortcut__meta,
.astrocart-shortcut__line {
  margin: 0.125rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Orte im Detail: Zeilen mit Haarlinie, aktiv = Aurum-Kante */

.astrocart-details {
  display: grid;
  margin-top: 2.5rem;
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid hsl(var(--border));
}

.astrocart-detail-card {
  display: grid;
  gap: 0.875rem;
  padding: 1.5rem 0 1.5rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: border-color 160ms ease;
  scroll-margin-top: calc(var(--mobile-header-offset) + 0.75rem);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .astrocart-detail-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1rem 2.5rem;
    padding-left: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .astrocart-detail-card {
    scroll-margin-top: 5.5rem;
  }
}

.astrocart-detail-card.is-active {
  border-left-color: hsl(var(--primary));
}

.astrocart-place__rank {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
}

.astrocart-place__name {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.astrocart-place__meta {
  margin: 0.375rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.astrocart-place__summary {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.astrocart-place__lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.astrocart-place__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.astrocart-place__line:first-child {
  padding-top: 0;
}

.astrocart-place__line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.astrocart-place__line-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.astrocart-place__line-text {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.astrocart-place__line-measure {
  flex: none;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.astrocart-place__line-tone {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

/* Report-Abschnitte: Anker unter Mobile-Header */

#interpretation-section,
#audiobook-section,
#future-child-section,
#astro-card-section,
#astrocartography-preview,
#astrocartography-result-section,
#report-tabs,
#report-panel-deutung,
#report-panel-profile,
#report-panel-calculations,
#result-container .report-block,
#result-container section {
  scroll-margin-top: calc(var(--mobile-header-offset) + 0.75rem);
}

@media (min-width: 1024px) {
  #interpretation-section,
  #audiobook-section,
  #future-child-section,
  #astro-card-section,
  #astrocartography-preview,
  #astrocartography-result-section,
  #report-tabs,
  #report-panel-deutung,
  #report-panel-profile,
  #report-panel-calculations,
  #result-container .report-block,
  #result-container section {
    scroll-margin-top: 1.5rem;
  }
}

/* ===================================
   REPORT-FARBEN – jede Reportart trägt ein eigenes Farbpaar
   Greift überall, wo ein Element data-report-chart-type trägt:
   Magicspace-Katalog, Dashboard-Schnellstart, Report-Übersicht.

   Die Kategorie gibt die Farbfamilie vor, die Reportart die Nuance:
     Text   warm, von Aurum aus        (Sonne, Mond, Paar, Seele, China)
     Audio  von Lilac aus, tiefer
     Bild   Koralle und Rosé
     3D     Türkis nach Lilac

   Einsatz bleibt klein (DESIGN.md → „Report-Farben“): ein Schimmer aus
   der Ecke der Glyphe, die Glyphe selbst im Verlauf, der Rand bei Hover.
   Auswahl und Aktionen bleiben Aurum.
   --rt-shade dunkelt die Glyphe auf Papier ab, --brand-tint dämpft die Fläche.
   =================================== */

/* ===================================
   MARKEN-AKZENTE – Aurum → Lilac in kleinen Dosen
   Trägt den Verlauf der Bildmarke in gemeinsame Bausteine, damit er auf
   jeder Seite spürbar ist, ohne die Flächen einzufärben. Steht bewusst
   am Ende der Partials: Die Regeln ergänzen bestehende Komponenten.

   Vier Formen, sonst nichts (DESIGN.md → „Marken-Akzente“):
     1. Verlaufs-Haarlinie   neutrale Haarlinie, über die ein leiser
                             Lichtschein (Aurum → Lilac) langsam wandert
     2. Verlaufs-Füllung     Fortschritt und Wartezustände
     3. Eck-Schimmer         eine Leitkarte je Ansicht (.brand-glow)
     4. Aurum-Schliff        Primär-Button: heller → voller Aurum-Ton

   Stärke über --brand-tint (Nacht 1, Papier/hell 0.55).
   =================================== */

/* Wartezustand auf report.html: Horizont unter dem Inhalt.
   Der Bogen läuft seitlich und nach unten weich aus – keine Schnittkante. */

.report-processing {
  position: relative;
}

.report-processing > :not(.horizon) {
  position: relative;
  z-index: 1;
}

.report-processing__horizon {
  --horizon-size: 200%;
  --horizon-top: calc(100% - 9.5rem);
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(180deg, #000 calc(100% - 8rem), transparent calc(100% - 0.5rem));
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(180deg, #000 calc(100% - 8rem), transparent calc(100% - 0.5rem));
  -webkit-mask-composite: source-in, xor;
          mask-composite: intersect;
}

@media (max-width: 640px) {
  .report-processing__horizon {
    --horizon-size: 320%;
  }
}

.hover\:border-primary\/60:hover{
  border-color: hsl(var(--primary) / 0.6);
}

.hover\:bg-foreground\/5:hover{
  background-color: hsl(var(--foreground) / 0.05);
}

.hover\:text-destructive:hover{
  color: hsl(var(--destructive));
}

.hover\:opacity-70:hover{
  opacity: 0.7;
}

.group:hover .group-hover\:rotate-90{
  --tw-rotate: 90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:scale-110{
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@media (min-width: 640px){
  .sm\:min-w-\[60px\]{
    min-width: 60px;
  }

  .sm\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:gap-4{
    gap: 1rem;
  }

  .sm\:p-8{
    padding: 2rem;
  }
}

@media (min-width: 768px){
  .md\:w-auto{
    width: auto;
  }

  .md\:min-w-\[240px\]{
    min-width: 240px;
  }

  .md\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:flex-row{
    flex-direction: row;
  }

  .md\:items-center{
    align-items: center;
  }

  .md\:justify-between{
    justify-content: space-between;
  }

  .md\:p-10{
    padding: 2.5rem;
  }
}

@media (min-width: 1024px){
  .lg\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
