/* Unrepeat CSS Stylesheet - Graphit Design System (Light Theme Only) */

:root {
  --bg-primary: #F4F4F6; /* paper - Grundfläche */
  --bg-card: #FFFFFF; /* paperRaised - Karten */
  --bg-sunk: #F4F4F6; /* paperSunk - Inlays / Eingabefelder */
  --border-color: rgba(113, 113, 122, 0.15); /* Dünner Trenner */
  --text-primary: #18181B; /* ink - Haupttext */
  --text-secondary: #71717A; /* inkSoft - Sekundärtext */
  --text-muted: #A1A1AA; /* inkFaint - Inaktiv / Platzhalter */
  
  /* Akzent - Stahlblau */
  --accent: #5C7CA3; /* stahlblau gedämpft */
  --accent-deep: #48648A; /* Akzent für Text auf hellem Grund */
  --accent-light: #E2E9F1; /* zarter Akzent-Hintergrund */
  
  /* Streak - Orange (komplett entkoppelt) */
  --flame: #B45309;
  --flame-light: #FEF0E0;
  
  /* Fehlermeldungen - Rot */
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Weiche kühle Schatten statt Ränder */
  --shadow-premium: 0 16px 40px -10px rgba(24, 24, 27, 0.06), 0 2px 8px -2px rgba(24, 24, 27, 0.03);
  --shadow-hover: 0 24px 48px -8px rgba(24, 24, 27, 0.1), 0 4px 12px -2px rgba(24, 24, 27, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  padding: 20px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 244, 246, 0.8);
  border-bottom: 1px solid var(--border-color);
}

header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  display: block;
}

.logo:hover {
  opacity: 0.8;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 80px 0 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-light);
  color: var(--accent-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px auto;
  font-weight: 400;
  line-height: 1.5;
}

/* Schwarz trägt: Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--text-primary); /* ink - Schwarz */
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 100px; /* Kapsel-Form für Interaktives */
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background-color: #27272a;
  transform: translateY(-1px);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Feature Grid */
.features {
  padding: 48px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Karten tragen Schatten statt Rand */
.card {
  background-color: var(--bg-card); /* paperRaised - Weiß */
  padding: 36px;
  border-radius: 20px; /* Radius.card = 20px */
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: inline-block;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Screenshot gallery - horizontal scroll strip of framed App-Store shots */
.screenshots {
  margin: 24px 0 72px;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 560px;
  width: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
}

@media (max-width: 640px) {
  .screenshot-item {
    height: 420px;
  }
}

/* Content Pages Styling (Privacy, Impressum) */
.page-content {
  padding: 48px 0 80px 0;
  max-width: 720px;
}

.page-title {
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-intro {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
  background: var(--bg-card);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-section ul {
  color: var(--text-secondary);
  margin-left: 20px;
  margin-bottom: 14px;
  font-size: 14px;
}

.legal-section li {
  margin-bottom: 6px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  background-color: rgba(24, 24, 27, 0.04);
  padding: 4px;
  border-radius: 100px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.05);
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: var(--bg-card);
  text-align: center;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Kopf: Logo oben, die fünf Links darunter umbrechend statt über den Rand hinaus */
  header {
    position: static;
    padding: 12px 0 10px 0;
  }

  header .nav-container {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  nav a {
    font-size: 13px;
    padding: 4px 0;
  }

  h1 {
    font-size: 34px;
  }

  .hero {
    padding: 40px 0 24px 0;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .features {
    padding: 32px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
  }

  .card {
    padding: 24px;
  }

  .screenshots {
    margin: 8px 0 40px;
  }

  /* Galerie läuft bis an den Bildschirmrand */
  .screenshots-scroll {
    margin: 0 -16px;
    padding: 8px 16px 24px;
    gap: 16px;
    scroll-padding: 0 16px;
  }

  .page-content {
    padding: 28px 16px 48px 16px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-intro {
    margin-bottom: 24px;
  }

  .legal-section {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .legal-section h2 {
    font-size: 18px;
  }

  .legal-section ul {
    margin-left: 16px;
  }

  footer {
    padding: 28px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
}

/* ===== Startseite ===== */

/* Kopf der Startseite: kleiner schwarzer Laden-Knopf rechts in der Navigation */
nav a.nav-cta {
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
}

nav a.nav-cta:hover {
  color: #FFFFFF;
  background: #27272a;
}

/* Hero: Wand aus früheren Einträgen, in der Mitte der gesperrte */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  text-align: center;
}

.wall {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, transparent 30%, #000 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, transparent 30%, #000 78%);
}

.wall-row {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  animation: wall-drift 70s linear infinite;
}

.wall-row:nth-child(even) {
  animation-direction: reverse;
  margin-left: -140px;
}

.chip {
  background: #EAEAED;
  color: var(--text-muted);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 14px;
}

@keyframes wall-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-420px); }
}

@media (prefers-reduced-motion: reduce) {
  .wall-row { animation: none; }
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 0;
  hyphens: manual;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 19px;
  margin: 20px auto 0;
  max-width: 560px;
}

/* Eingabekarte wie in der App */
.entry-card {
  background: var(--bg-card);
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(24, 24, 27, 0.04), 0 24px 60px rgba(24, 24, 27, 0.14);
  padding: 16px;
  max-width: 460px;
  margin: 40px auto 36px;
  text-align: left;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-sunk);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.35;
}

.field.blocked {
  border-color: #F2A0A0;
  background: #FFF5F5;
}

.field-num {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #E4E4E7;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.field-warning {
  color: #E5484D;
  font-size: 14px;
  margin: 8px 4px 0;
}

.hero-fine {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
}

.cta-button svg {
  flex: 0 0 auto;
}

/* Abschnitte */
.section {
  padding: 56px 0;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.section .section-title {
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card.compact {
  padding: 26px 26px 28px;
}

.card.compact .card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.card.compact p {
  font-size: 15px;
  line-height: 1.5;
}

/* Nutzen direkt unter dem Hero */
.benefits {
  padding: 0 0 40px;
}

/* So funktioniert's */
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.steps .screenshots {
  margin: 36px 0 0;
}

/* Bewertung */
.review {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  padding: 32px 36px;
  max-width: 720px;
}

.review-stars {
  color: var(--flame);
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 12px;
}

.review blockquote {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.review figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Häufige Fragen */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  padding: 0 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 28px 18px 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 20px;
}

/* Abschluss: die einzige schwarze Fläche der Seite */
.final-cta {
  background: var(--text-primary);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  margin: 24px 0 72px;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.final-cta p {
  color: #A1A1AA;
  font-size: 17px;
  margin: 12px auto 28px;
  max-width: 480px;
}

.final-cta .cta-button {
  background: #FFFFFF;
  color: var(--text-primary);
}

.final-cta .cta-button:hover {
  background: #F4F4F6;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  /* Auf dem Handy läuft die Wand nur oben und unten, nicht hinter dem Text */
  .wall {
    justify-content: space-between;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(#000 0, transparent 9%, transparent 91%, #000 100%);
    mask-image: linear-gradient(#000 0, transparent 9%, transparent 91%, #000 100%);
  }

  .entry-card {
    margin: 32px auto 28px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section {
    padding: 40px 0;
  }

  .review {
    padding: 24px;
  }

  .review blockquote {
    font-size: 17px;
  }

  .final-cta {
    padding: 40px 20px;
    border-radius: 22px;
    margin-bottom: 48px;
  }

  .final-cta h2 {
    font-size: 28px;
  }
}

/* Sprachwahl im Fuß der Startseite */
.language-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  width: auto;
}

.language-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.language-list a:hover,
.language-list a[aria-current="page"] {
  color: var(--text-primary);
}

.language-list a[aria-current="page"] {
  font-weight: 700;
}

/* Japanisch hat keine Leerzeichen: Überschriften nur an den <wbr>-Stellen umbrechen */
:lang(ja) h1,
:lang(ja) h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ===== Artikel ===== */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 24px;
}

.article h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  hyphens: auto;
}

.article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-bottom: 20px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 44px 0 14px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  background: var(--accent-light);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 15px;
}

.prose blockquote p {
  margin: 0;
}

/* Vergleichstabelle: auf dem Handy seitlich scrollbar statt gequetscht */
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: var(--shadow-premium);
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  min-width: 140px;
}

.prose th {
  font-weight: 700;
  font-size: 14px;
}

.prose tr:last-child td {
  border-bottom: none;
}

/* Artikel-Links im Fuß */
.article-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 13px;
}

.article-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.article-list a:hover {
  color: var(--text-primary);
}

.article-list-label {
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article {
    padding: 28px 0 8px;
  }

  .article h1 {
    font-size: 32px;
  }

  .prose {
    font-size: 16px;
  }

  .prose h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  /* Drei Spalten passen umgebrochen auf die volle Breite, ohne Wischen */
  .prose table {
    display: table;
    width: 100%;
    font-size: 14px;
  }

  .prose th,
  .prose td {
    min-width: 0;
    padding: 10px 8px;
  }
}
