/* Totmannwarner – Website-Design, abgeleitet aus dem App-Theme */

:root {
  /* Aus den App-Screenshots abgeleitete Marken- und Alarmfarben */
  --bg: #0b1322;
  --bg-elevated: #111b2d;
  --card: #141f34;
  --card-border: #223252;
  --text: #eef2f8;
  --text-muted: #93a2bb;
  --text-faint: #67759269;

  --accent: #2fd8a0;       /* Erfolg / "Keine Bewegung erkannt" */
  --accent-dark: #17b184;
  --blue: #3d7bf5;         /* Vibration */
  --purple: #9163f0;       /* Ton */
  --pink: #ef5da8;         /* SMS */
  --orange: #f4933b;       /* Anruf */

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hintergrund-Verlauf, dezent, wie der App-Farbverlauf */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 15% -5%, rgba(61, 123, 245, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(145, 99, 240, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(47, 216, 160, 0.10), transparent 60%),
    var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 34, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgba(61, 123, 245, 0.5);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text); }

a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #06281f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
a.nav-cta:hover { background: var(--accent-dark); color: #06281f; }

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
}
.lang-switch a {
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-faint);
  border: 1px solid transparent;
}
.lang-switch a[aria-current="true"] {
  color: var(--text);
  border-color: var(--card-border);
  background: var(--card);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 60px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(47, 216, 160, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 .accent-text {
  background: linear-gradient(90deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  background: var(--accent);
  color: #06281f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(47, 216, 160, 0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(47, 216, 160, 0.6); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row svg { flex: none; color: var(--accent); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1b2947, #0c1526);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.phone-frame img {
  border-radius: 28px;
  overflow: hidden;
}

.phone-blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,245,0.28), transparent 65%);
  filter: blur(10px);
  z-index: -1;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.floating-chip .icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.chip-sms { top: 64px; left: -12px; }
.chip-sms .icon { background: var(--pink); }
.chip-call { bottom: 84px; right: -18px; }
.chip-call .icon { background: var(--orange); }

@media (max-width: 640px) {
  .chip-sms { top: 48px; left: -6px; }
  .chip-call { bottom: 64px; right: -6px; }
}

/* ---------- Logo strip ---------- */

.press-strip {
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.press-strip .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.press-strip span.label {
  color: var(--text-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 6px;
}
.press-strip .press-name {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}
a.press-name {
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s;
}
a.press-name:hover {
  opacity: 1;
  color: var(--text);
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
}
.step-index {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(47,216,160,0.12);
  color: var(--accent);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Alarm types grid – styled after the app's alarm tiles */
.alarm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.alarm-tile {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
}
.alarm-tile .icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.alarm-tile.vibration .icon { background: var(--blue); }
.alarm-tile.sound .icon { background: var(--purple); }
.alarm-tile.sms .icon { background: var(--pink); }
.alarm-tile.call .icon { background: var(--orange); }
.alarm-tile h3 { margin: 0 0 6px; font-size: 1rem; }
.alarm-tile p { margin: 0; color: var(--text-muted); font-size: 0.86rem; }

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.feature-split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature-split.reverse .feature-visual { order: 2; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone-frame { width: 220px; }
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .bullet {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(47,216,160,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.audience-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.audience-card:nth-child(1) .icon { background: var(--blue); }
.audience-card:nth-child(2) .icon { background: var(--pink); }
.audience-card:nth-child(3) .icon { background: var(--orange); }
.audience-card:nth-child(4) .icon { background: var(--purple); }
.audience-card:nth-child(5) .icon { background: var(--accent-dark); }
.audience-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.audience-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Privacy band */
.privacy-band {
  background: linear-gradient(135deg, rgba(61,123,245,0.10), rgba(47,216,160,0.10));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.privacy-band .container,
.privacy-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-points { display: grid; gap: 18px; }
.privacy-point { display: flex; gap: 14px; align-items: flex-start; }
.privacy-point .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #06281f;
  display: flex; align-items: center; justify-content: center;
}
.privacy-point p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.94rem; }
.privacy-point strong { color: var(--text); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-faint);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; color: var(--accent); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Final CTA */
.cta-band {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin: 0 0 30px; }

.badge-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-badge img { height: 54px; width: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 50px 0 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal-page { padding: 60px 0 100px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page a { color: var(--accent); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); z-index: 40; overflow-y: auto; background: var(--bg); flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 28px 24px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 10px; }

  .steps, .audience-grid { grid-template-columns: 1fr; }
  .alarm-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-visual { order: 0; }
  .privacy-band .container, .privacy-band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .privacy-band { padding: 34px 22px; }
}

@media (max-width: 480px) {
  .alarm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
}

/* ---------- Language menu ---------- */
.lang-menu { position: relative; margin-left: 8px; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 5px 9px; border-radius: 8px; color: var(--text); border: 1px solid var(--card-border); background: var(--card); user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; display: grid; gap: 2px; padding: 6px; background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.main-nav .lang-menu-list a { font-size: 0.92rem; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); text-decoration: none; }
.main-nav .lang-menu-list a:hover { background: var(--card); color: var(--text); }
.main-nav .lang-menu-list a[aria-current="true"] { background: var(--card); color: var(--text); }
.footer-bottom .lang-switch { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 980px) {
  .lang-menu { margin-left: 0; }
  .lang-menu-list { position: static; margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; }
  .lang-menu-float .lang-menu-list { position: absolute; margin-top: 0; grid-template-columns: 1fr; box-shadow: var(--shadow); }
}
