/* ============================================
   ARVO — Teaser Page Styles
   Design: Lina (Visual & Motion Designer)
   Code: Jonas (Senior Frontend Architect)

   Color Palette:
   - Midnight Navy:  #0A1628 (Background)
   - Ice Blue:       #4FC3F7 (Accent/CTA)
   - White:          #FFFFFF (Primary text)
   - Muted Blue-Gray:#94A3B8 (Secondary text)
   - Slate:          #64748B (Footer/Meta)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --midnight: #0A1628;
  --midnight-light: #0F1D32;
  --ice-blue: #4FC3F7;
  --ice-blue-hover: #6DD0FA;
  --ice-blue-glow: rgba(79, 195, 247, 0.25);
  --white: #FFFFFF;
  --muted: #94A3B8;
  --slate: #64748B;
  --max-width: 1200px;
  --section-padding-y: 120px;
  --section-padding-y-mobile: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--midnight);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--ice-blue);
  color: var(--midnight);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding-y) 0;
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  user-select: none;
}

.logo-a {
  color: var(--ice-blue);
}

.logo-rvo {
  color: var(--white);
}

/* Logo SVG — The Open A */
.logo-svg {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: baseline;
  margin-right: -0.02em;
}

.logo-svg path {
  fill: var(--ice-blue);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.55), rgba(10, 22, 40, 0.82)),
    url('images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero .logo {
  margin-bottom: 16px;
}

.hero-claim {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.hero-headline {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 48px;
}

.hero-form {
  display: flex;
  flex-wrap: wrap; /* Ermöglicht Zeilenumbruch für Consent-Hinweis */
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 16px;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
}

.hero-form input[type="email"]::placeholder {
  color: var(--slate);
}

.hero-form input[type="email"]:focus {
  border-color: var(--ice-blue);
  background: rgba(79, 195, 247, 0.06);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  background: var(--ice-blue);
  color: var(--midnight);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--ice-blue-hover);
  box-shadow: 0 0 24px var(--ice-blue-glow), 0 0 48px rgba(79, 195, 247, 0.1);
}

.cta-button:focus-visible {
  outline: 2px solid var(--ice-blue);
  outline-offset: 3px;
}

.cta-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.cta-button:hover svg {
  transform: translateX(3px);
}

.hero-subtext {
  font-size: 14px;
  color: var(--slate);
  font-weight: 300;
}

.form-message {
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.form-message.success {
  color: var(--ice-blue);
  display: block;
}

.form-message.error {
  color: #EF4444;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--slate);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Story Section --- */
.story {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--ice-blue), transparent);
  opacity: 0.3;
}

.story-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.story-text {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.story-text em {
  font-style: normal;
  color: var(--ice-blue);
  font-weight: 500;
}

.story-text:last-of-type {
  margin-bottom: 0;
}

.story-closer {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-top: 40px;
}

.story-closer span {
  color: var(--ice-blue);
}

/* --- Roadmap Section --- */
.roadmap {
  padding: var(--section-padding-y) 0;
  background: var(--midnight-light);
}

.roadmap-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ice-blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.roadmap-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.7), rgba(10, 22, 40, 0.95));
  z-index: 0;
}

.roadmap-card > * {
  position: relative;
  z-index: 1;
}

.roadmap-card:nth-child(1) {
  background-image: url('images/kelvin-bg.webp');
}

.roadmap-card:nth-child(2) {
  background-image: url('images/sentinel-bg.webp');
}

.roadmap-card:nth-child(3) {
  background-image: url('images/cortex-bg.webp');
}

.roadmap-card:hover {
  border-color: rgba(79, 195, 247, 0.2);
  background-color: rgba(79, 195, 247, 0.03);
}

.roadmap-icon {
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.roadmap-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ice-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.roadmap-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.roadmap-name span {
  color: var(--muted);
  font-weight: 400;
}

.roadmap-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.roadmap-status {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-blue);
}

.roadmap-closer {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Social Proof Counter --- */
.social-proof {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  padding: 32px 0 0;
  letter-spacing: 0.01em;
}

.social-proof .counter {
  color: var(--ice-blue);
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-padding-y) 0;
  text-align: center;
}

.cta-content {
  max-width: 520px;
  margin: 0 auto;
}

.cta-headline {
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtext {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-section .hero-form {
  margin-bottom: 16px;
}

/* --- Pioneer Hint --- */
.pioneer-hint {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* --- Post-Signup Share Buttons --- */
.post-signup-share {
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.share-prompt {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ice-blue);
  background: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.share-btn:hover {
  background: rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.4);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer .logo {
  font-size: 24px;
}

.footer-made {
  font-size: 13px;
  color: var(--slate);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ice-blue);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--slate);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--ice-blue);
  background: rgba(79, 195, 247, 0.06);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-contact {
  font-size: 14px;
  color: var(--slate);
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--ice-blue);
}

.footer-copyright {
  font-size: 13px;
  color: var(--slate);
  font-weight: 300;
}

/* --- Legal Pages (Impressum / Datenschutz) --- */
.legal-section {
  padding: var(--section-padding-y) 0;
  display: none;
}

.legal-section.active {
  display: block;
}

.legal-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--white);
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-section a {
  color: var(--ice-blue);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: opacity 0.2s ease;
}

.legal-back:hover {
  opacity: 0.8;
}

/* --- Legal Sub-Sections (h4 — e.g. "3.1 Bereitstellung der Webseite") --- */
/* Die DSE verwendet h4 für Unterabschnitte innerhalb der h3-Kapitel.
   Visuell kleiner als h3, aber klar als Zwischenüberschrift erkennbar. */
.legal-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* --- Legal Tabellen (Auftragsverarbeiter, Drittlandtransfer) --- */
/* Tabellen in der DSE müssen auf dunklem Hintergrund lesbar sein
   und auf Mobile horizontal scrollbar sein (overflow-x). */
.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-section thead th {
  text-align: left;
  font-weight: 600;
  color: var(--white);
  padding: 12px 16px;
  border-bottom: 2px solid rgba(79, 195, 247, 0.25);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-section tbody td {
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.legal-section tbody td strong {
  color: var(--white);
  font-weight: 500;
}

.legal-section tbody tr:last-child td {
  border-bottom: none;
}

/* --- Legal Listen (Verarbeitungszwecke, Logdaten etc.) --- */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

/* Ice-blue Bullet statt Standard-Punkt — passt zum Design-System */
.legal-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ice-blue);
  opacity: 0.6;
}

/* --- Legal Inline-Code (z.B. __cf_bm Cookie-Name) --- */
.legal-section code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: rgba(79, 195, 247, 0.08);
  color: var(--ice-blue);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.15);
}

/* --- Consent-Hinweis unter Signup-Formular (Art. 7 DSGVO) --- */
/* Der Hinweis sitzt innerhalb des Flex-Formulars zwischen Input und Button.
   flex-basis: 100% erzwingt einen Zeilenumbruch, damit er visuell
   unterhalb des Input-Feldes erscheint, aber im DOM vor dem Button steht. */
.signup-consent-notice {
  flex-basis: 100%;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  padding: 0;
  order: 10;
  text-align: center;
}

.signup-consent-notice a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.signup-consent-notice a:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Tabellen-Wrapper (Mobile) --- */
/* Auf schmalen Screens können die breiten Tabellen horizontal scrollen */
@media (max-width: 640px) {
  .legal-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .legal-section thead,
  .legal-section tbody,
  .legal-section tr {
    display: table;
    width: 100%;
  }

  .legal-section thead th,
  .legal-section tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .fade-in:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.25s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.4s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.55s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.7s; }

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 32px;
  }

  .story-text {
    font-size: 20px;
  }

  .roadmap-grid {
    gap: 24px;
  }

  .roadmap-card {
    padding: 24px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  :root {
    --section-padding-y: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .logo {
    font-size: 36px;
  }

  .hero {
    padding: 60px 20px 40px;
    background-image:
      linear-gradient(rgba(10, 22, 40, 0.60), rgba(10, 22, 40, 0.85)),
      url('images/hero-bg-mobile.webp');
  }

  .hero-claim {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hero-headline {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-form input[type="email"] {
    width: 100%;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .story-text {
    font-size: 18px;
  }

  .story-closer {
    font-size: 18px;
  }

  .section-title {
    font-size: 26px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-headline {
    font-size: 26px;
  }

  .cta-section .hero-form {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .cta-button svg {
    transition: none;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--ice-blue);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
