/* myco – öffentliche Website. Nur für die Seiten unter public/*.html (body.site).
   Farben stammen aus der App-Palette (public/css/app.css); die App selbst lädt diese Datei nicht. */
:root {
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --bg: #163d2c;
  --bg-grad: linear-gradient(160deg, #24593f 0%, #17402e 50%, #0e2b1f 100%);
  --glow-1: rgba(80, 190, 130, .28);
  --glow-2: rgba(190, 245, 150, .12);
  --surface: rgba(31, 74, 55, .62);
  --surface-solid: #1f4a37;
  --surface-2: #245340;
  --line: rgba(200, 255, 220, .13);
  --line-strong: rgba(200, 255, 220, .24);
  --ink: #f0f9f3;
  --ink-2: #c8e0d1;
  --ink-3: #9dbdaa;
  --accent: #86e6b0;
  --accent-hover: #a2f0c4;
  --accent-ink: #062014;
  --accent-soft: rgba(134, 230, 176, .2);
  --lime: #d4f48a;
  --node: #D2F7A6;
  --warn: #f0c36b;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --wrap: 1320px;
  --head-h: 76px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #9fd0b2;
    --bg-grad: linear-gradient(160deg, #bfe3c6 0%, #93caa9 50%, #6db08e 100%);
    --glow-1: rgba(96, 178, 132, .38);
    --glow-2: rgba(200, 242, 150, .45);
    --surface: rgba(203, 233, 212, .7);
    --surface-solid: #cbe9d4;
    --surface-2: #c2e4cc;
    --line: rgba(18, 60, 38, .14);
    --line-strong: rgba(18, 60, 38, .24);
    --ink: #0f231a;
    --ink-2: #284034;
    --ink-3: #3f584b;
    --accent: #2c7656;
    --accent-hover: #24654a;
    --accent-ink: #ffffff;
    --accent-soft: #a3d6b5;
    --node: #2c7656;
    --warn: #8a5a12;
    --shadow: 0 28px 60px -24px rgba(15, 50, 34, .38);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body.site {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(60vw 50vw at 85% -10%, var(--glow-2), transparent 70%), radial-gradient(70vw 60vw at -10% 10%, var(--glow-1), transparent 65%), var(--bg-grad);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; }
a { color: inherit; }
p a, .prose a, li a.inline { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * clamp(20px, 4vw, 48px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); border-radius: 12px; }
.logo img { width: 38px; height: 38px; border-radius: 11px; transition: transform .5s var(--ease); }
.logo .wordmark { height: 27px; width: auto; color: var(--ink); }
.logo .wordmark .node { fill: var(--node); }
.logo:hover img { transform: rotate(-8deg) scale(1.04); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.open { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.head { height: var(--head-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.head .main-nav { justify-self: center; }
.main-nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.main-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang button { border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); transition: color .2s, background .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -14px var(--accent); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: 0 14px 30px -14px var(--accent); }
.btn.ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.win { background: var(--ink); color: var(--bg); }
.btn.win:hover { background: var(--ink-2); }
.btn.win .ic { width: 16px; height: 16px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.lg .ic { transition: transform .25s var(--ease); }
.btn.lg:hover .ic { transform: translateX(3px); }
.btn[hidden], [hidden] { display: none !important; }

.burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.burger .ic { width: 22px; height: 22px; }
.drawer { border-top: 1px solid var(--line); padding: 12px clamp(20px, 4vw, 48px) 24px; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { padding: 14px 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer nav a[aria-current="page"] { color: var(--accent); }
.drawer-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.drawer-actions .btn { flex: 1; }

/* Weniger Platz: Texte der Windows-Schaltfläche kürzen, dann Navigation in ein Menü */
@media (max-width: 1400px) { .btn.win span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .btn.win { width: 42px; padding: 0; } }
@media (max-width: 1100px) {
  .head { grid-template-columns: auto 1fr; }
  .head .main-nav { justify-self: auto; }
  .main-nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 680px) {
  .head-actions .btn.ghost, .head-actions .btn.primary { display: none !important; }
  .logo .wordmark { height: 24px; }
  .logo img { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------- Typografie */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 750; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.lead.narrow { max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.muted { color: var(--ink-3); font-size: 15px; }
.section-title { margin-bottom: 36px; max-width: 18ch; }
.placeholder { display: inline; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); font-style: italic; font-size: .95em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pill { display: inline-flex; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- Abschnitte */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band + .band { padding-top: 0; }
.sub-hero + .band { padding-top: 8px; }
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.sub-hero h1 { font-size: clamp(40px, 6vw, 80px); max-width: 15ch; margin-bottom: 26px; }
.legal-hero h1 { margin-bottom: 30px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g3, .g4 { grid-template-columns: 1fr; } }

.card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 18px 0 10px; }
.card p { font-size: 16px; }
.card-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.card-ic.big { width: 56px; height: 56px; padding: 13px; border-radius: 18px; }

/* Startseite */
.home-hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.beta-live { margin-top: 22px; font-size: 15px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.beta-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: end; }
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid var(--line); }
.orbit span { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 22px var(--accent); }
.orbit span:nth-child(1) { top: -7px; left: calc(50% - 7px); }
.orbit span:nth-child(2) { bottom: 12%; left: 4%; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.orbit span:nth-child(3) { bottom: 18%; right: 1%; width: 8px; height: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.glass-card { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 20px 16px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow); animation: float 9s ease-in-out infinite; }
.glass-card .card-ic { grid-row: span 2; }
.glass-card b { font-size: 16px; font-weight: 650; color: var(--ink); }
.glass-card small { font-size: 14px; color: var(--ink-3); }
.glass-card.c1 { top: 12%; left: 0; }
.glass-card.c2 { top: 44%; right: 0; animation-delay: -3s; }
.glass-card.c3 { bottom: 9%; left: 12%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; aspect-ratio: 1 / .8; }
}

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-grid h2 { margin-bottom: 20px; }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); transition: padding .3s var(--ease); }
.checks li:hover { padding-left: 10px; }
.checks li .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.checks.no li .ic { color: var(--ink-3); }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cta-panel > div:first-child { max-width: 640px; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel .row { display: flex; gap: 12px; flex-wrap: wrap; }

.interest-cloud { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.interest-cloud li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; font-weight: 500; transition: transform .3s var(--ease), border-color .2s, background .2s; }
.interest-cloud li:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feature { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 16px; }
.feature:hover .card-ic { background: var(--accent); color: var(--accent-ink); }
.feature .card-ic { transition: background .25s, color .25s; }
@media (max-width: 860px) { .feature-list { grid-template-columns: 1fr; } }

.notice-panel, .notice-inline, .draft-note { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.notice-panel h2 { font-size: 24px; margin-bottom: 8px; }
.draft-note { max-width: 860px; border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.draft-note .card-ic { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.notice-inline { padding: 18px 20px; margin-bottom: 20px; }

/* Download */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.dl-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.dl-head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.dl-card h3 { margin: 30px 0 12px; font-size: 17px; }
.notes { margin: 0; padding: 18px 20px; border-radius: var(--r); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line); white-space: pre-wrap; font: 15px/1.6 var(--font); color: var(--ink-2); }
.stack { display: grid; gap: 14px; }
.mini { padding: 24px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.mini h3 { font-size: 17px; margin-bottom: 8px; }
.mini p, .mini li { font-size: 16px; color: var(--ink-2); }
.mini ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Rechtstexte */
.prose > * { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 0; }
.prose b { color: var(--ink); }
.prose code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.prose .btn { margin-top: 16px; display: flex; width: fit-content; }

/* ---------------------------------------------------------------- Footer */
.site-footer { margin-top: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 62%, #000 8%); }
@media (prefers-color-scheme: light) { .site-footer { background: color-mix(in srgb, var(--bg) 80%, #fff 20%); } }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding: 64px 0 48px; }
.foot-brand p { margin-top: 18px; max-width: 36ch; font-size: 15px; color: var(--ink-3); }
.foot-beta { margin-top: 16px !important; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-size: 15px; color: var(--ink-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.foot-col a:hover { color: var(--ink); background-size: 100% 1px; }
.foot-col p { font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); }
.foot-bottom p { font-size: 14px; color: var(--ink-3); }
.lang-note button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); font-size: 14px; }
.lang-note button:hover, .lang-note button[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 1000px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------- Bewegung */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Smartphone: die drei Karten der Startseite untereinander statt schwebend */
@media (max-width: 600px) {
  .hero-visual { aspect-ratio: auto; display: grid; gap: 10px; max-width: none; }
  .orbit { display: none; }
  .glass-card { position: static; animation: none; box-shadow: none; }
  .glass-card small { display: block; }
  .glass-card .card-ic { grid-row: span 2; }
}
