/* Inter, lokal ausgeliefert (SIL Open Font License) – keine Verbindung zu Google. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --screen: #070A0F;
    --panel: rgba(20, 26, 34, 0.86);
    --border: #212B37;
    --text: #EAF0F7;
    --muted: #8C9AAB;
    --faint: #5A6878;
    --accent: #3ED0E3;
    --a: #34D399;  /* Available */
    --r: #FBBF24;  /* Reserved  */
    --s: #F87171;  /* Sold      */

    /* Skyline wie im Login der App */
    --cell: 26px;
    --gap: 8px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--screen); color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  /* ---------- Hintergrund: zwei weiche Lichtflecken ---------- */
  .backdrop { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
  .glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; }
  .glow.a { top: -220px; left: -200px; background: rgba(62, 208, 227, 0.13); animation: driftA 9s ease-in-out infinite alternate; }
  .glow.b { bottom: -260px; right: -220px; background: rgba(52, 211, 153, 0.08); animation: driftB 9s ease-in-out infinite alternate; }
  @keyframes driftA { from { transform: translate(-40px, 0); } to { transform: translate(20px, 30px); } }
  @keyframes driftB { from { transform: translate(30px, 0); } to { transform: translate(-20px, -40px); } }

  .page { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

  /* ---------- Kopfzeile ---------- */
  .top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 8px; }
  .brand { display: flex; align-items: flex-end; gap: 11px; text-decoration: none; opacity: 0; animation: fade .5s forwards; }
  .brand img { width: 53px; height: 44px; display: block; }
  .brand span { font-size: 13px; font-weight: 600; letter-spacing: 4.2px; color: var(--muted); margin-bottom: 1px; }
  .langs { display: flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: 999px; padding: 3px; }
  .langs button {
    font: 700 12px "Inter", sans-serif; color: var(--muted);
    background: none; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  }
  .langs button[aria-pressed="true"] { background: var(--text); color: var(--screen); }

  /* ---------- Hero ---------- */
  .hero {
    min-height: calc(100vh - 90px);
    display: flex; align-items: center; gap: 56px; padding: 24px 0 64px;
  }
  .hero-text { flex: 1.1; min-width: 0; opacity: 0; animation: up .6s .2s ease-out forwards; }
  .hero-art { flex: .9; min-width: 0; }
  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
    padding: 6px 12px; border-radius: 999px; background: rgba(62, 208, 227, 0.12);
  }
  .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
  h1 {
    font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
    margin: 20px 0 20px; text-wrap: balance;
  }
  .lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; max-width: 560px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 54px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none;
    font: 700 16px "Inter", sans-serif; transition: transform .12s, opacity .12s, background .2s;
  }
  .btn:active { transform: scale(.985); opacity: .9; }
  .btn.primary { background: var(--accent); color: #04121C; box-shadow: 0 10px 34px -10px rgba(62,208,227,.6); }
  .btn.ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid #2A3644; }
  .btn.ghost:hover { background: rgba(255,255,255,0.09); }
  .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 26px; font-size: 14px; color: var(--muted); }
  .legend b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
  .legend b::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }

  /* ---------- Skyline ---------- */
  .skyline { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 100%; padding-bottom: 4px; }
  .ground { position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px; background: #26313E; }
  .tower { background: #101820; border: 1px solid #1E2A36; border-radius: 6px 6px 0 0; overflow: hidden; }
  .tower.side { opacity: .55; }
  .tower.side i { display: block; height: calc(var(--cell) * var(--k)); margin: calc(var(--gap) * var(--k)) 5px 0; background: #18232E; border-radius: 2px; }
  .tower.main { position: relative; background: #111B25; border-color: #253545; overflow: visible; padding-bottom: var(--gap); }
  .roof { position: absolute; top: -7px; left: 25%; width: 50%; height: 7px; background: #1E2A36; border-radius: 3px 3px 0 0; }
  .row { display: flex; gap: var(--gap); padding: 0 var(--gap); margin-top: var(--gap); }
  .win { width: var(--cell); height: var(--cell); border-radius: calc(var(--cell) * .18); background: #1C2936; }
  .win.lit { background: var(--c); box-shadow: 0 0 7px var(--c); }
  .rise { opacity: 0; animation: rise .46s cubic-bezier(.2,.9,.3,1.25) forwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
  @keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  /* Lichtband: vom Erdgeschoss bis zur obersten Etage, nie über das Dach hinaus. */
  .scan {
    position: absolute; left: -6px; right: -6px; top: 0; border-radius: 6px; pointer-events: none;
    height: calc(var(--cell) + 2 * var(--gap));
    background: rgba(62, 208, 227, 0.16); border-top: 1px solid rgba(62, 208, 227, 0.55);
    opacity: 0; animation: scan 3.2s 1.3s ease-in-out infinite;
  }
  @keyframes scan {
    0%   { opacity: .4; transform: translateY(calc(8 * (var(--cell) + var(--gap)))); }
    50%  { opacity: .9; }
    100% { opacity: .4; transform: translateY(0); }
  }

  /* ---------- Abschnitte ---------- */
  section.block { padding: 72px 0; border-top: 1px solid #141C25; }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 0; text-wrap: balance; }
  .intro { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 680px; margin-top: 16px; }

  .problem { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
  .problem .intro { margin-top: 0; font-size: 18px; }
  .pains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .pains span { font-size: 13px; color: #FCA5A5; padding: 6px 12px; border-radius: 999px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.22); }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: step; }
  .step { position: relative; padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border); }
  .step .num {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: #04121C; background: var(--c); box-shadow: 0 0 18px -4px var(--c);
  }
  .step h3 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; margin: 18px 0 8px; }
  .step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

  .features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
  .feat { display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: rgba(20, 26, 34, 0.7); border: 1px solid var(--border); }
  .feat .ico {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  }
  .feat h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; margin: 2px 0 6px; }
  .feat p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

  .audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .aud { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--c); }
  .aud h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
  .aud p { font-size: 15px; line-height: 1.55; color: var(--muted); }

  /* ---------- Abschluss + Anmeldung ---------- */
  .closing { display: flex; align-items: center; gap: 48px; }
  .closing-text { flex: 1; min-width: 0; }
  .card {
    width: 420px; flex-shrink: 0;
    background: var(--panel); border: 1px solid var(--border); border-radius: 24px;
    padding: 24px; box-shadow: 0 16px 60px rgba(0,0,0,.35);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .card.shake { animation: shake .29s ease-in-out; }
  @keyframes shake { 17% { transform: translateX(-10px); } 41% { transform: translateX(10px); } 62% { transform: translateX(-6px); } 83% { transform: translateX(6px); } }
  .card h3 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; margin-top: 14px; }
  .card .sub { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 8px; }
  .field {
    display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; margin-top: 20px;
    background: #0D1218; border: 1px solid #232E3A; border-radius: 16px; transition: border-color .2s, background .2s;
  }
  .field:focus-within { border-color: var(--accent); background: #0E161E; }
  .field svg { flex-shrink: 0; color: var(--faint); transition: color .2s; }
  .field:focus-within svg { color: var(--accent); }
  .field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: 400 16px "Inter", sans-serif; }
  .field input::placeholder { color: var(--faint); }
  .card .btn { width: 100%; margin-top: 14px; }
  .msg { margin-top: 12px; border-radius: 12px; padding: 12px; font-size: 13.5px; line-height: 1.4; display: none; }
  .msg.ok  { display: block; color: #A7F3D0; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
  .msg.bad { display: block; color: #FCA5A5; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); }
  .hint { color: var(--faint); font-size: 13px; line-height: 1.45; text-align: center; margin-top: 16px; }
  .hint a { color: var(--muted); white-space: nowrap; }

  footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid #141C25; font-size: 13px; color: var(--faint); }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--text); }

  /* Beim Scrollen einblenden */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
  .reveal.in { opacity: 1; transform: none; }

  /* ---------- Tablet / Telefon ---------- */
  @media (max-width: 960px) {
    .features { grid-template-columns: 1fr; }
    .problem { grid-template-columns: 1fr; gap: 20px; }
    .closing { flex-direction: column; align-items: stretch; gap: 28px; }
    .card { width: 100%; max-width: 480px; }
  }
  @media (max-width: 860px) {
    :root { --cell: 16px; --gap: 5px; }
    .hero { flex-direction: column; align-items: stretch; gap: 40px; min-height: 0; padding-top: 28px; }
    .steps, .audience { grid-template-columns: 1fr; }
    section.block { padding: 56px 0; }
  }
  @media (max-width: 420px) {
    :root { --cell: 14px; --gap: 4.5px; }
    .page { padding: 0 16px; }
    .card, .step, .aud { padding: 20px; }
    .feat { padding: 18px; gap: 14px; }
    .actions .btn { flex: 1 1 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
    .scan, .glow { animation: none !important; }
    .reveal { opacity: 1; transform: none; }
  }

  /* Legal pages share the landing page's brand, backdrop, typography and panels. */
  .footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
  .legal-page .top { gap: 20px; flex-wrap: wrap; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
  .legal-nav a { text-decoration: none; padding: 8px 0; }
  .legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--accent); }
  .legal-main { max-width: 800px; margin: 0 auto; padding: 54px 0 72px; }
  .legal-main h1 { font-size: clamp(32px, 5vw, 52px); overflow-wrap: anywhere; }
  .legal-main .intro { margin-bottom: 28px; }
  .legal-notice { padding: 18px 22px; margin: 24px 0; border: 1px solid rgba(251,191,36,.3);
    border-radius: 16px; background: rgba(251,191,36,.08); color: var(--r); line-height: 1.6; }
  .legal-content { padding: 30px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border); }
  .legal-content h2 { font-size: 22px; line-height: 1.35; margin: 32px 0 12px; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 12px; overflow-wrap: anywhere; }
  .legal-content strong { color: var(--text); }
  .legal-content a { color: var(--accent); text-underline-offset: 3px; }
  .legal-form-note { text-align: left; line-height: 1.6; }
  @media (max-width: 420px) {
    .legal-main { padding: 36px 0 48px; }
    .legal-content { padding: 20px; }
    .legal-notice { padding: 16px; }
  }


  [hidden] { display: none !important; }
