:root {
  --bg: #050609;
  --surface: rgba(13, 16, 22, 0.9);
  --surface-2: rgba(19, 23, 31, 0.94);
  --border: rgba(255, 255, 255, 0.085);
  --border-red: rgba(224, 46, 38, 0.42);
  --red: #e02e26;
  --red-hi: #ff4a40;
  --red-soft: rgba(224, 46, 38, 0.14);
  --text: #eceef2;
  --muted: #98a2b2;
  --good: #52d694;
}

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

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

a { color: inherit; text-decoration: none; }

/* ============ Sticky Navigation ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 6, 9, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-red);
}
.nav-brand span { color: var(--red-hi); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cfd5e0;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-links a.nav-cta {
  background: var(--red-soft);
  border: 1px solid var(--border-red);
  color: #ff8a82;
}
.nav-links a.nav-cta:hover {
  background: rgba(224, 46, 38, 0.24);
  color: #fff;
}
@media (max-width: 480px) {
  .topbar-inner { padding: 9px 12px; }
  .nav-links a { padding: 6px 8px; font-size: 12.5px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(5, 6, 9, 0.35) 0%, rgba(5, 6, 9, 0.82) 70%, #050609 100%),
    url('assets/hero-bg.jpg') center center / cover no-repeat;
}
.hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 48px 20px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-inner.hero-compact {
  padding: 32px 20px 28px;
}
.hero-compact .claim {
  margin-bottom: 0;
}
.brand-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1.5px solid var(--border-red);
  box-shadow: 0 0 34px rgba(224, 46, 38, 0.34), 0 14px 32px rgba(0, 0, 0, 0.72);
  margin-bottom: 16px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.86);
  border: 1px solid var(--border-red);
  color: #ff7e76;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .kicker { font-size: 10px; letter-spacing: 0.08em; padding: 5px 10px; }
}
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 10px var(--red-hi);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.claim {
  margin: 0 0 24px;
  max-width: 650px;
  color: #c9cfd9;
  font-size: clamp(15px, 2.2vw, 17px);
}
.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ Container & Sektionen ============ */
.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
section[id] { scroll-margin-top: 68px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 44px;
}
@media (max-width: 820px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
}
.pillar-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 4px;
}
.pillar b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.pillar p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.sec-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 3px;
}
.sec-title {
  margin: 0;
  font-size: clamp(21px, 3.2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.sec-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ============ App-Karten ============ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 780px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  background: linear-gradient(160deg, var(--surface-2) 0%, rgba(9, 11, 16, 0.97) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.app-card:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
}
.app-top { display: flex; gap: 14px; align-items: center; }
.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  flex-shrink: 0;
  background: #080a0f;
}
.app-head { flex: 1; min-width: 0; }
.app-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-name { margin: 0; font-size: 21px; font-weight: 800; }
.status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(82, 214, 148, 0.12);
  color: var(--good);
  border: 1px solid rgba(82, 214, 148, 0.32);
}
.app-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.app-desc { margin: 0; font-size: 14.5px; color: #d4d9e2; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: #cfd5e0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 7px;
}

.whats-new {
  font-size: 13px;
  color: var(--muted);
  background: rgba(5, 7, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 9px 12px;
}
.whats-new b { color: #e2e6ee; }

.app-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.fallback-link {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 6px;
  transition: color 0.15s ease;
}
.fallback-link span {
  color: #cfd5e0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fallback-link:hover span { color: var(--red-hi); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #e6342c 0%, #b51f19 100%);
  border: 1px solid rgba(255, 130, 120, 0.45);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 46, 38, 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #f23d35 0%, #c6241d 100%); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--border-red);
  background: rgba(224, 46, 38, 0.1);
}

/* ============ Bewerbungs-Box (Google Groups 1-Klick) ============ */
.apply-card {
  background: linear-gradient(135deg, rgba(24, 15, 18, 0.92) 0%, rgba(12, 15, 22, 0.95) 100%);
  border: 1px solid var(--border-red);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 760px) { .apply-card { grid-template-columns: 1fr; } }

.apply-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}
.apply-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cfd5e0;
}
.apply-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.apply-steps li { display: flex; gap: 8px; align-items: baseline; }
.apply-steps b { color: var(--red-hi); }

.apply-cta {
  background: rgba(5, 6, 9, 0.62);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tester-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #d6dce6;
  margin-bottom: 4px;
}
.field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 15, 22, 0.95);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input::placeholder { color: #6c7686; }
.field-input:focus {
  border-color: var(--red-hi);
  box-shadow: 0 0 0 3px rgba(224, 46, 38, 0.18);
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.field-hint.warn { color: #ffad66; }
.field-hint.err { color: #ff7070; }
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}
.form-status.ok {
  display: block;
  background: rgba(82, 214, 148, 0.12);
  border: 1px solid rgba(82, 214, 148, 0.38);
  color: #c8f7df;
}
.form-status.err {
  display: block;
  background: rgba(255, 74, 74, 0.12);
  border: 1px solid rgba(255, 74, 74, 0.38);
  color: #ffc2c2;
}
.btn:disabled { opacity: 0.65; cursor: wait; }
.google-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}
.google-note strong { color: #e2e6ee; }
.google-note a {
  color: #cfd5e0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.google-note a:hover { color: var(--red-hi); }

/* ============ FAQ ============ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
}
summary {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--red-hi); font-size: 18px; font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ============ Kontakt-Box ============ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-card h3 { margin: 0 0 4px; font-size: 17px; }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 560px; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: #cfd5e0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { color: var(--red-hi); }
