/* Grialis Startseite. Farben aus App-Icon und App-Theme, Schriften wie in der App (Nunito, Literata). */
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 500; font-display: swap; src: url("assets/fonts/literata-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/literata-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("assets/fonts/literata-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0b2229;
  --night: #0e2e36;
  --teal: #22636e;
  --teal-2: #2f7f8c;
  --teal-3: #3e95a2;
  --coral: #ec5c43;
  --coral-2: #ff8a6c;
  --sun: #ffd166;
  --mint: #1fa899;
  --bg: #f6f1e8;
  --surface: #fffbf4;
  --text: #0b2229;
  --muted: #4f6870;
  --line: #e4dccd;
  --phone: #08191e;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b2229;
    --surface: #12333b;
    --text: #e6eef0;
    --muted: #a6bcc2;
    --line: #1f4650;
    --phone: #04100f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b2229; --surface: #12333b; --text: #e6eef0; --muted: #a6bcc2; --line: #1f4650; --phone: #04100f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Kopf und Hero: Abendhimmel wie im Icon, warmes Fensterlicht hinter dem Handy */
.hero {
  position: relative; color: #f2f7f8; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 58%, rgba(255, 209, 102, .28), transparent 70%),
    radial-gradient(90% 70% at 50% 0%, var(--teal-2), transparent 75%),
    linear-gradient(180deg, var(--teal) 0%, var(--night) 70%, var(--ink) 100%);
  overflow: hidden;
}
.hero::after {
  /* sanfter Übergang in die Seite */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(11, 34, 41, .35));
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .2px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.top nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 999px; color: #d6e6e9; }
.top nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.top nav a.lang { border: 1px solid rgba(255, 255, 255, .28); }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

.hero-grid { display: grid; gap: 36px; align-items: center; padding: 28px 0 72px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding: 40px 0 96px; } }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--coral);
}
.hero .eyebrow { color: var(--sun); }
h1, h2 { font-family: "Literata", Georgia, serif; font-weight: 600; letter-spacing: -.3px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 10px 0 18px; text-wrap: balance; }
h1 em { font-style: italic; font-weight: 500; color: var(--coral-2); }
.lead { font-size: clamp(18px, 2.2vw, 20px); color: #cfe0e3; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(236, 92, 67, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(236, 92, 67, .45); }
.btn-ghost { color: #e6f0f2; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.note { font-size: 14px; color: #a9c4c9; margin: 14px 0 0; }

/* Handy-Rahmen um die Screenshots */
.phone {
  position: relative; width: min(300px, 72vw); margin: 0 auto; aspect-ratio: 880 / 1565;
  border-radius: 34px; padding: 9px; background: var(--phone);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.hero .phone { transform: rotate(3deg); }
.hero .phone.back {
  position: absolute; width: min(250px, 58vw); left: 50%; top: 10%; transform: translateX(-118%) rotate(-7deg);
  opacity: .9; filter: saturate(.9) brightness(.85); z-index: -1;
}
.hero-art { position: relative; padding: 10px 0 0; }
@media (max-width: 899px) { .hero .phone.back { display: none; } }

/* Abschnitte */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 16px; text-wrap: balance; }
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-art { order: -1; }
}
.feature p { color: var(--muted); font-size: 18px; margin: 0 0 18px; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--mint) 22%, transparent);
  box-shadow: inset 0 0 0 2px var(--mint);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.45em + 4px); width: 5px; height: 9px;
  border: solid var(--mint); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.feature-art { display: flex; justify-content: center; gap: 18px; }
@media (max-width: 560px) { .feature-art { gap: 14px; } }
.feature-art .phone { margin: 0; }
.feature-art .phone + .phone { margin-top: 48px; }
@media (max-width: 560px) {
  .feature-art .phone { width: min(230px, calc((100vw - 46px) / 2)); border-radius: 26px; padding: 7px; }
  .feature-art .phone:only-child { width: min(260px, 66vw); }
  .hero .phone { width: min(260px, 64vw); }
  .feature-art .phone img { border-radius: 20px; }
  .feature-art .phone + .phone { margin-top: 32px; }
}
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Fair */
.fair { background: linear-gradient(180deg, var(--night), var(--ink)); color: #e6eef0; }
.fair h2 { color: #fff; }
.fair .intro { color: #a9c4c9; max-width: 36em; margin: 0 0 36px; font-size: 18px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 22px; }
.tile svg { width: 34px; height: 34px; margin-bottom: 12px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #fff; }
.tile p { margin: 0; color: #a9c4c9; font-size: 16px; }

/* Name */
.name { text-align: center; }
.name .formula {
  color: var(--text); font-weight: 600;
  font-family: "Literata", Georgia, serif; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.3; margin: 10px 0 18px;
}
.name .formula em { color: var(--coral); font-style: italic; font-weight: 500; }
.name .formula span { color: var(--muted); font-family: "Nunito", sans-serif; font-weight: 400; padding: 0 .25em; }
.name p { color: var(--muted); max-width: 34em; margin: 0 auto; font-size: 18px; }

/* Schluss */
.closing { text-align: center; padding-top: 0; }
.closing .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px 22px;
  display: grid; justify-items: center; gap: 6px;
}
.closing img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px rgba(11, 34, 41, .25); margin-bottom: 8px; }
.closing p { color: var(--muted); margin: 0 0 18px; max-width: 30em; }
.closing .btn-ghost { color: var(--text); border-color: var(--line); }
.closing .btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
