/* HamTalk Website. Farbwelt „Nachtfunk“ aus der App: Cyan = Empfang, Glut = Senden.
   Bewusst nur dunkel: Die App selbst ist nur dunkel, die Seite soll sich wie sie anfühlen. */
:root {
  --grund: #070b14;
  --grund-2: #0b1220;
  --flaeche: #0f1828;
  --rand: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --leise: #93a0b4;
  --cyan: #22d3ee;
  --cyan-tief: #0e7490;
  --glut: #ff5c38;
  --radius: 16px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --rund: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 18px/1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, .badge:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #04131a; padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 20, 0.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--rand); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav nav a:hover { opacity: 1; }
.btn-store-sm { border: 1px solid rgba(34, 211, 238, 0.5); padding: 7px 16px; border-radius: 999px; color: var(--cyan) !important; opacity: 1 !important; }

/* Schriftzug wie in der App: Neonröhre */
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.marke:hover { text-decoration: none; }
.marke-symbol { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(34, 211, 238, 0.25); }
.wordmark { font: 400 1.75rem/1 var(--rund); letter-spacing: 0.01em; }
/* Leuchtröhre mit voller Farbe: heller Kern in der Röhrenfarbe, darum ein kräftiger Hof (Chris 07.10.: nicht ausgebleicht) */
.neon.c { color: #a5f3fc; text-shadow: 0 0 2px #22d3ee, 0 0 8px #22d3ee, 0 0 18px rgba(34, 211, 238, 0.85), 0 0 36px rgba(6, 182, 212, 0.55); }
.neon.o { color: #ffb4a0; text-shadow: 0 0 2px #ff5c38, 0 0 8px #ff5c38, 0 0 18px rgba(255, 92, 56, 0.85), 0 0 36px rgba(234, 64, 32, 0.55); }
.hero-symbol { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(34, 211, 238, 0.3); }

/* Hero: Antenne über dem Dorf, rechts die echte App */
.hero { position: relative; overflow: hidden; min-height: min(100dvh, 860px); display: flex; align-items: center; }
.hero-bild {
  position: absolute; inset: 0;
  /* Rechtsbündig: Die Antenne steht so zwischen Text und iPhone statt dahinter */
  background: url("/assets/hero.jpg") right center / cover no-repeat;
}
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.55) 45%, rgba(7, 11, 20, 0.2) 70%, rgba(7, 11, 20, 0.6) 100%),
              linear-gradient(180deg, transparent 60%, var(--grund) 100%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 750; letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c7d0dd; max-width: 34ch; }
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.badge img { height: 56px; width: auto; }
.badge { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.badge:hover { transform: translateY(-2px); }
.link-pfeil { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.link-pfeil i { color: var(--cyan); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.link-pfeil:hover i { transform: translateX(4px); }

.phone { margin: 0; justify-self: center; }
.phone-rahmen {
  width: min(320px, 72vw);
  aspect-ratio: 1287 / 2796;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #3a4456, #121826 40%, #0a0f19);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(34, 211, 238, 0.14);
  transform: rotate(3deg);
}
.phone-rahmen img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }

/* Funktionen als Bento */
.funktionen { padding-top: 120px; padding-bottom: 40px; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.kachel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.kachel i { font-size: 30px; color: var(--cyan); margin-bottom: auto; }
.kachel p { color: var(--leise); font-size: 1rem; }
.kachel.gross { grid-column: span 2; grid-row: span 2; }
.kachel.breit { grid-column: span 2; }
.kachel.sperr { background: radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.18), transparent 55%), var(--flaeche); }
.kachel.sperr h3 { font-size: 1.5rem; }
.kachel.bild-unterwegs { padding: 0; overflow: hidden; position: relative; background: url("/assets/unterwegs.jpg") 30% center / cover; min-height: 460px; }
.kachel.bild-unterwegs h3 { font-size: 1.8rem; }
.kachel.bild-unterwegs .kachel-text { position: absolute; inset: auto 0 0 0; padding: 28px; background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.92) 55%); display: flex; flex-direction: column; gap: 8px; }
.kachel.bild-unterwegs i { margin-bottom: 4px; }
.kachel.bild-unterwegs p { color: #c7d0dd; }
.kachel.akzent { background: linear-gradient(160deg, rgba(34, 197, 94, 0.18), transparent 70%), var(--flaeche); }
.kachel.akzent i { color: #4ade80; }

/* Das brauchst du */
.brauchst { margin-top: 100px; background: linear-gradient(180deg, var(--grund), var(--grund-2) 30%, var(--grund-2) 70%, var(--grund)); padding: 100px 0; }
.brauchst-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.liste li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.liste i { font-size: 26px; color: var(--cyan); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25); }
.liste strong { display: block; font-size: 1.15rem; }
.liste span { color: var(--leise); }
.hinweis { grid-column: 2; color: var(--leise); font-size: 1rem; padding-left: 70px; }

/* Neuigkeiten als Zeitleiste */
.neu { padding-top: 110px; padding-bottom: 110px; }
.zeitleiste { margin-top: 44px; max-width: 760px; border-left: 2px solid rgba(34, 211, 238, 0.25); padding-left: 32px; display: grid; gap: 44px; }
.eintrag { position: relative; }
.eintrag::before { content: ""; position: absolute; left: -41px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grund); border: 2px solid var(--cyan); }
.eintrag.bald::before { background: var(--cyan); box-shadow: 0 0 14px rgba(34, 211, 238, 0.7); }
.version { font-weight: 700; font-size: 1.3rem; margin-right: 12px; }
.datum { color: var(--leise); font-size: 0.95rem; }
.eintrag ul { margin: 14px 0 0; padding-left: 20px; color: #c7d0dd; display: grid; gap: 6px; }

/* Community */
.community { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-top: 1px solid var(--rand); }
.community-bild { background: url("/assets/shack.jpg") center / cover; }
.community-text { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--grund-2); }
.community-text p { color: #c7d0dd; max-width: 46ch; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--cyan); color: #04131a; font-weight: 650; text-decoration: none; padding: 14px 24px; border-radius: 999px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3); }
.btn:active { transform: scale(0.98); }
.gruss { font: 300 1.4rem/1 var(--rund); color: var(--text) !important; }

/* Fuß */
.fuss { border-top: 1px solid var(--rand); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--leise); font-size: 0.95rem; }
.fuss-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fuss nav { display: flex; gap: 24px; }
.fuss a { color: var(--leise); }

/* Rechtsseiten */
.recht { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 32px; }
.recht h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.recht p, .recht li { color: #c7d0dd; }
.recht p + p { margin-top: 12px; }

/* sanfte Einblendung beim Scrollen, nur wo der Browser es kann und Bewegung erwünscht ist */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .kachel, .liste li, .eintrag { animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
  .hero-text { animation: rein 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .phone { animation: rein 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rein { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Handy */
@media (max-width: 900px) {
  .nav nav a:not(.btn-store-sm) { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: left; padding-top: 48px; }
  .hero-bild { background-position: 70% center; }
  .hero-bild::after { background: linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.85) 60%, var(--grund) 100%); }
  .phone-rahmen { transform: none; width: min(280px, 70vw); }
  .bento { grid-template-columns: 1fr; }
  .kachel.gross, .kachel.breit { grid-column: auto; grid-row: auto; }
  .kachel.bild-unterwegs { min-height: 340px; }
  .brauchst-in { grid-template-columns: 1fr; }
  .hinweis { grid-column: 1; padding-left: 0; }
  .community { grid-template-columns: 1fr; }
  .community-bild { min-height: 300px; }
  .community-text { padding: 56px 24px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

/* Über uns / Für KI */
.recht .intro { font-size: 1.2rem; color: var(--text); max-width: 60ch; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.person { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; }
.person h2 { margin: 6px 0 10px !important; font-size: 1.8rem !important; }
.ruf { font: 600 0.95rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cyan); letter-spacing: 0.06em; }
.recht ul { padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 700px) { .team { grid-template-columns: 1fr; } }

/* Familie der Editionen */
.familie { padding-top: 110px; }
.familie-lead { margin-top: 16px; color: var(--leise); font-size: 1.15rem; max-width: 52ch; }
.editionen { margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.edition { border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.edition h3 { font-size: 1.35rem; }
.edition h3 span { color: var(--leise); font-weight: 500; }
.edition p { color: var(--leise); font-size: 1rem; }
.edition .status { font: 600 0.8rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; color: var(--leise); }
.edition.aktiv { border: 1px solid rgba(34, 211, 238, 0.45); background: radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, 0.16), transparent 60%), var(--flaeche); }
.edition.aktiv .status { color: var(--cyan); }
.edition.aktiv h3 span { color: var(--cyan); }
.community-text p + p { margin-top: -6px; }
@media (max-width: 900px) { .editionen { grid-template-columns: 1fr; } }

/* Jede Kachel mit eigenem Nachtbild (Chris 07.10.: eine Bildkachel unter lauter leeren wirkte unfertig).
   Verlauf von unten hält die Schrift lesbar, das Bild bleibt oben sichtbar. */
.kachel.foto { position: relative; overflow: hidden; isolation: isolate; min-height: 280px; background: var(--flaeche); }
.kachel.foto::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bild) center / cover no-repeat; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.kachel.foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 20, 0.15) 0%, rgba(7, 11, 20, 0.55) 45%, rgba(7, 11, 20, 0.94) 80%); }
.kachel.foto p { color: #c7d0dd; }
.kachel.foto i { text-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.kachel.foto.gruen i { color: #4ade80; text-shadow: 0 0 14px rgba(74, 222, 128, 0.6); }
.kachel.bild-unterwegs { transition: background-size 0.8s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kachel.foto:hover::before { transform: scale(1.04); }
}
