/* ============================================================
   FONTS: self-hosted, GDPR-compliant
   Paths are relative to this CSS file: css/style.css → fonts/
============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrainsmono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */

:root {
  /* Backgrounds */
  --bg-primary:   #fcf9f2;
  --bg-secondary: #f4ecdf;
  --bg-tertiary:  #ebdcc2;

  /* Text */
  --text-primary:   #4a4036;
  --text-secondary: #8c7b68;

  /* Accents */
  --accent-warm:   #e8aa65;
  --accent-bright: #f09b43;
  --accent-gold:   #e2c073;

  /* Effects */
  --shadow-soft:       0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover:      0 8px 24px rgba(0, 0, 0, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;

  /* Layout */
  --container-max:  1100px;
  --section-pad:    clamp(64px, 8vw, 112px);
}

/* ============================================================
   RESET & BASE
============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   ANALOG GRAIN EFFECT
============================================================ */

body::before {
  content: "";
  position: fixed;
  inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1000;
  animation: noise 0.2s infinite;
  will-change: transform;
}

@keyframes noise {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-1%,-1%); }
  20%  { transform: translate(1%,1%); }
  33%  { transform: translate(-2%,1%); }
  50%  { transform: translate(-1%,-2%); }
  66%  { transform: translate(1%,-1%); }
  80%  { transform: translate(2%,1%); }
  100% { transform: translate(0,1%); }
}

/* Accessibility: Disable all animations for motion-sensitive users */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .bg-glow {
    animation: none;
  }

  .fade-in {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .stats-slider-track {
    transition: none;
  }

  .sim-cursor {
    transition: none;
  }
}

/* ============================================================
   DECORATIVE BACKGROUND GLOWS
============================================================ */

.bg-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  background-color: var(--accent-warm);
  opacity: 0.12;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  top: -200px;
  right: -200px;
  animation-duration: 35s;
}

.bg-glow-2 {
  top: 40%;
  left: -300px;
  background-color: var(--accent-gold);
  animation-duration: 50s;
  animation-delay: -5s;
}

.bg-glow-3 {
  bottom: -100px;
  right: 10%;
  width: 500px;
  height: 500px;
  animation-duration: 40s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 80px) scale(1.1); }
  66%      { transform: translate(-40px, 50px) scale(0.9); }
}

ul, ol { list-style: none; }
a      { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ============================================================
   LAYOUT
============================================================ */

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

.section {
  padding-block: var(--section-pad);
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 48px;
}

.section-header .section-headline {
  margin-bottom: 0;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-warm);
  color: var(--text-primary);
  padding: 16px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
}

/* ============================================================
   FADE-IN
============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Stagger delays for sim-step cards */
.sim-step.fade-in:nth-child(2) { transition-delay: 0.07s; }
.sim-step.fade-in:nth-child(3) { transition-delay: 0.14s; }
.sim-step.fade-in.fade-in:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   HERO
============================================================ */

.hero {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding-block: 100px 60px;
}

@media (max-width: 767px) {
  .hero {
    padding-block: 64px 40px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 30% 0%, var(--accent-warm) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-screenshots {
  margin-bottom: 0;
}

.hero-screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 2.618rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}

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

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 2;
  /* Provides context for absolutely positioned post-it overlap */
  overflow: visible;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.hero-post-it {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background-color: #ffefba; /* Klassisches Post-it Gelb */
  color: #4b3621; /* Dunkelbraune "Stift"-Farbe */
  padding: 16px;
  width: 140px;
  height: 140px;
  font-family: 'JetBrains Mono', monospace; /* Technisch-handwerklicher Look */
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;

  /* Centering the text */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Die Notiz "klebt" schief */
  transform: rotate(-4deg);

  /* Realistischer Schatten (unten etwas abgehoben) */
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.1),
    5px 15px 25px rgba(0, 0, 0, 0.05);

  /* Papier-Textur Effekt */
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);

  z-index: 20;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 767px) {
  .hero-post-it {
    width: 90px;
    height: 90px;
    font-size: 0.65rem;
    padding: 10px;
    bottom: -10px;
    left: -10px;
  }

  .hero-post-it::before {
    width: 36px;
    height: 14px;
    top: -7px;
  }
}

/* Tesafilm-Streifen oben auf dem Post-it */
.hero-post-it::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 52px;
  height: 20px;
  background: rgba(200, 230, 255, 0.35);
  border-left: 1px solid rgba(180, 210, 240, 0.4);
  border-right: 1px solid rgba(180, 210, 240, 0.4);
  backdrop-filter: blur(1px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  z-index: 21;
}


.hero-trust {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}



.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--bg-tertiary);
}

.trust-badge-icon {
  color: var(--text-secondary);
}


/* ============================================================
   SETUP SIMULATOR & CLICK GLOW
============================================================ */

.setup-simulator {
  padding-block: var(--section-pad);
}

.simulator-wrapper {
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-hover);
  border-radius: 12px;
}

.browser-ui {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.browser-ui-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.browser-ui-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-ui-address {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-ui-extensions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  position: relative;
}

.ext-icon {
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--accent-bright);
}

.ext-icon.visible {
  opacity: 1;
}

.ext-pin {
  transition: all 0.3s;
}

.ext-pin.pinned {
  color: var(--text-primary);
  fill: currentColor;
}

.browser-ui-body {
  height: 280px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Klick-Glow Animation */
.sim-click-glow {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.is-clicking .sim-click-glow {
  animation: click-ripple 0.5s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes click-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(232, 170, 101, 1); opacity: 1; width: 4px; height: 4px; }
  100% { box-shadow: 0 0 0 35px rgba(232, 170, 101, 0); opacity: 0; width: 4px; height: 4px; }
}

/* Webstore Mockup */
.webstore-mock {
  width: 80%;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.webstore-mock-header {
  padding: 10px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5f6368;
}

.webstore-mock-content {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extension-info { display: flex; gap: 12px; align-items: center; }
.extension-info-icon { width: 32px; height: 32px; background: var(--accent-warm); border-radius: 6px; }
.extension-info-text { display: flex; flex-direction: column; text-align: left; font-size: 12px; }
.extension-info-text strong { color: #202124; }
.extension-info-text span { color: #5f6368; font-size: 11px; }

/* Status-Sichtbarkeit */
.sim-state {
  position: absolute;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

.sim-state.active {
  opacity: 1;
  pointer-events: auto;
}

.ext-icon {
  opacity: 0.2;
  color: var(--text-secondary);
  transition: all 0.4s;
}
.ext-icon.active {
  opacity: 1;
  color: var(--accent-bright);
  transform: scale(1.2);
}

.sim-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Der Timer-Kreis im Simulator */
.sim-popup {
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Button-Breite fixieren um Layout-Shift zu verhindern */
#btn-start {
  min-width: 140px;
  text-align: center;
}

.sim-popup-circle {
  width: 120px;
  height: 120px;
  border: 6px solid var(--accent-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.05em;
}

/* BUTTON PRESS ANIMATION */
.is-pressed {
  transform: scale(0.95) !important;
  transition: transform 0.15s ease-out;
}

/* TIMER ANIMATION - Timer läuft */
.timer-running {
  color: var(--accent-bright);
  animation: timer-pulse 0.4s ease-out;
}

@keyframes timer-pulse {
  0%   { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* CURSOR ANIMATION - Sanfte, natürliche Bewegung */
.sim-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  z-index: 100;
  transition: left 0.85s cubic-bezier(0.25, 1, 0.5, 1), top 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  transform: translate(-4px, -4px);
  will-change: left, top;
}

/* ============================================================
   MAKER LETTER & SUPPORT CARD
   ============================================================ */

.maker-letter {
  background-color: var(--bg-primary);
  padding-top: var(--section-pad);
}

.maker-letter-card {
  background-color: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  padding: 80px clamp(32px, 5vw, 64px) 64px;
  max-width: 820px;
  margin: 40px auto 0;
  border: 1px solid var(--bg-tertiary);
  border-bottom: none;
  position: relative;
  box-shadow: var(--shadow-soft);

  /* Journal Paper Engine */
  background-image: linear-gradient(var(--bg-tertiary) 1px, transparent 1px);
  background-size: 100% 32px;
  background-position-y: 28px;
}

/* Torn Paper Effect */
.maker-letter-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background:
    linear-gradient(135deg, var(--bg-secondary) 7px, transparent 0) calc(50% - 10px) 0,
    linear-gradient(225deg, var(--bg-secondary) 7px, transparent 0) calc(50% + 10px) 0;
  background-size: 20px 20px;
  background-repeat: repeat-x;
}

/* Claude Credits Badge */
.maker-letter-credits {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-secondary);
  opacity: 0.5;
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}

.maker-letter-header {
  margin-bottom: 40px;
}

/* Maker letter uses a larger, bolder headline variant */
.maker-letter .section-headline {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.maker-letter-content p {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0 0 32px 0;
  color: var(--text-primary);
  opacity: 0.92;
}

/* Drop-Cap (Massive Editorial Style) */
.drop-cap::first-letter {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin: 0.5rem 0.75rem 0 0;
  color: var(--accent-bright);
}

@media (max-width: 640px) {
  .drop-cap::first-letter {
    font-size: 2.5rem;
    margin: 0.25rem 0.5rem 0 0;
  }
}

/* Frustration Popup (Interactive UI Simulation) */
.frustration-popup {
  position: relative;
  border: 2px solid #ff4444;
  background: var(--bg-primary);
  padding: 0;
  margin-bottom: 40px;
  transform: rotate(-1.5deg);
  border-radius: 8px;
  box-shadow: 8px 8px 0px rgba(255, 68, 68, 0.15);
  overflow: hidden;
  max-width: 400px;
}

.frustration-popup-header {
  background: #ff4444;
  color: white;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.frustration-popup p {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ff4444;
  margin: 0 !important;
  padding: 12px 24px;
  line-height: 1.4 !important;
  font-size: 0.875rem !important;
}

.frustration-popup p:last-child {
  padding-top: 0;
  opacity: 0.7;
}

/* Tech Deep Dive (Blueprint Style) */
.tech-deep-dive {
  background-color: var(--bg-primary);
  background-image: radial-gradient(var(--bg-tertiary) 1px, transparent 1px);
  background-size: 20px 20px; /* Dot grid */
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  border: 1px solid var(--bg-tertiary);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

@media (max-width: 640px) {
  .tech-deep-dive {
    padding: 20px 16px;
    border-radius: 12px;
    margin-inline: -4px;
  }
}

.tech-deep-dive-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-deep-dive-title::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--accent-warm);
  border-radius: 2px;
}

.tech-deep-dive p {
  font-family: var(--font-mono) !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  opacity: 0.8 !important;
  color: var(--text-primary) !important;
  margin-bottom: 20px !important;
}

.tech-deep-dive p:last-child {
  margin-bottom: 0 !important;
}

/* Code Window (Modern Editor Look) */
.code-window {
  background: #1e1e1e;
  border-radius: 8px;
  margin-block: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 100%;
}

.code-window-header {
  background: #2d2d2d;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
  color: #8c8c8c;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 8px;
}

.code-window pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-window code {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  color: #d4d4d4;
  line-height: 1.5 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Custom Scrollbar for Code Window */
.code-window pre::-webkit-scrollbar {
  height: 8px;
}

.code-window pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.code-window pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.code-window pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* P.S. Section */
.maker-ps {
  font-style: italic;
  font-size: 1rem !important;
  opacity: 0.7 !important;
  border-top: 1px solid var(--bg-tertiary);
  padding-top: 24px;
}

/* Brief Footer: Signatur & GitHub Button */
.maker-letter-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--bg-tertiary);
}

/* Letter Actions: GitHub Button Container */
.letter-actions {
  flex-shrink: 0;
}

.letter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-bright);
  color: var(--bg-primary);
  padding: 14px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.letter-actions .btn:hover,
.letter-actions .btn:focus-visible {
  background-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
  filter: brightness(1.08);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .maker-letter-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .letter-actions {
    width: 100%;
  }

  .letter-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Support Whisper: Dezenter Spendentext */
.support-whisper {
  text-align: center;
  margin-top: 60px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(32px, 5vw, 64px);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.support-whisper:hover {
  opacity: 0.75;
}

/* Text Links - Highlight Style */
.text-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-warm);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.text-link:hover {
  background-color: var(--accent-warm);
  color: var(--bg-primary);
  text-decoration-color: transparent;
  border-radius: 4px;
  padding: 0 4px;
}

/* Subtle text links in whisper section */
.support-whisper .text-link {
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
  padding: 0 2px;
}

.support-whisper .text-link:hover {
  background: linear-gradient(120deg, var(--accent-warm) 0%, var(--accent-bright) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom-color: transparent;
  opacity: 1;
}

/* Card Signature */
.maker-letter-signature {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 40px;
}

/* ============================================================
   FAQ
============================================================ */

.faq-list {
  border-top: 1px solid var(--bg-tertiary);
}

.faq-item {
  border-bottom: 1px solid var(--bg-tertiary);
}

.faq-item-question {
  display: flex;
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item-question:hover {
  color: var(--accent-bright);
}

.faq-item-question:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Plus/minus icon */
.faq-item-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
}

.faq-item-icon::before,
.faq-item-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background-color: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.faq-item-icon::before { width: 12px; height: 2px; }
.faq-item-icon::after  { width: 2px;  height: 12px; }

.faq-item--open .faq-item-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item--open .faq-item-answer {
  max-height: 400px;
}

.faq-item-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-bottom: 22px;
}

/* ============================================================
   FINAL CTA
============================================================ */

.cta-final {
  background-color: var(--bg-secondary);
}

.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta-final-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-final-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: -8px;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  padding-block: 40px;
  border-top: 1px solid var(--bg-tertiary);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

.footer-tracking {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.45;
}

/* ============================================================
   RESPONSIVE: 768px+
============================================================ */

@media (min-width: 768px) {
  .hero-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .footer-copy {
    order: 1;
    text-align: left;
  }

  .footer-nav {
    order: 2;
    justify-content: center;
  }

  .footer-tracking {
    order: 3;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .hero-top {
    grid-template-columns: 45% 55%;
    gap: 56px;
  }
}

/* ============================================================
   RESPONSIVE: 1024px+
============================================================ */

@media (min-width: 1024px) {
  .cta-final-inner {
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   STATS SLIDER
============================================================ */

/* Specific Slider styles moved to Bento Grid section */

/* ============================================================
   SITE HEADER
============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
  box-shadow: var(--shadow-soft);
  padding-block: 14px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.site-header--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.site-header-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header-logo:hover {
  color: var(--accent-bright);
}

.site-header-cta {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.hero-slogan {
  font-size: 1.618rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
  line-height: 1.2;
  margin-bottom: 10px;
}


/* ============================================================
   BENTO GRID FEATURES
============================================================ */

.features-bento {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.bento-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

@media (max-width: 640px) {
  .bento-card {
    padding: 24px;
  }
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-warm);
}

.bento-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.bento-card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-card-media {
  margin-bottom: 24px;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: none;
}

.bento-card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-card-img {
  transform: scale(1.02);
}

.bento-card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.bento-card-wide {
  justify-content: flex-start;
}

.bento-card-square {
  justify-content: flex-start;
}

.bento-card-square .bento-card-media {
  margin-bottom: 16px;
  justify-content: center;
  background: transparent;
  border: none;
}

@media (min-width: 768px) {
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .features-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 32px;
  }

  /* Asymmetrical: Wide card on first row, span 2 */
  .bento-card-wide:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  /* Square cards on the side or below */
  .bento-card-square:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .bento-card-square:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .bento-card-wide:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
  }
}


/* ============================================================
   STATS SLIDER (Bento Version)
============================================================ */

.stats-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-primary);
  box-shadow: var(--shadow-soft);
}

.stats-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.stats-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  background: transparent;
  border: none;
}

.stats-slider-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.stats-slider:hover .stats-slider-slide img {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Minimalist Hover Arrows */
.stats-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0; /* Standardmäßig unsichtbar */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Auf mobilen Geräten oder bei Hover über den Slider einblenden */
@media (max-width: 768px) {
  .stats-slider-btn {
    opacity: 0.8;
  }
}

.stats-slider:hover .stats-slider-btn {
  opacity: 1;
}

.stats-slider-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.stats-slider-btn-prev {
  left: 12px;
}

.stats-slider-btn-next {
  right: 12px;
}

/* ============================================================
   MODALS: Impressum & Datenschutz
============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.modal--open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.modal.modal--open .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  z-index: 1;
  background-color: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--bg-tertiary);
  box-shadow: var(--shadow-hover);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  overflow: hidden;
}

.modal.modal--open .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 40px 24px 40px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--bg-tertiary);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--bg-tertiary);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
  padding: 0;
  flex-shrink: 0;
}

.modal-close:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
  color: var(--accent-bright);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.modal-body {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 40px 40px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-warm) var(--bg-tertiary);
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.modal-body a {
  color: var(--accent-warm);
  text-decoration: underline;
  transition: color var(--transition-smooth);
}

.modal-body a:hover {
  color: var(--accent-bright);
}

.modal-body code {
  background-color: var(--bg-tertiary);
  color: var(--accent-warm);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--accent-warm);
  border-radius: 8px;
  transition: background var(--transition-smooth);
  border: 2px solid var(--bg-secondary);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bright);
}

.modal-body::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
}


/* Responsive: Mobile */
@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 28px 28px 16px 28px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
  }

  .modal-close svg {
    width: 18px;
    height: 18px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-body {
    font-size: 0.875rem;
    padding: 20px 28px 28px 28px;
  }
}

/* ============================================================
   SETUP SIMULATOR: Lokale Zentrierung
   Zentriert nur die Texte in dieser Sektion, keine globalen
   Auswirkungen auf andere Bereiche der Website
============================================================ */

.setup-simulator .section-header {
  text-align: center;
}

.setup-simulator .section-label {
  margin-inline: auto;
}

.setup-simulator .section-headline {
  margin-inline: auto;
}

/* ============================================================
   SIMULATOR GRID: Side-by-Side Layout on Desktop
============================================================ */

.simulator-grid {
  display: block;
}

@media (min-width: 768px) {
  .simulator-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;
  }
}

/* Modern Step Cards for Simulator (4-Step Version) */
.simulator-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sim-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .sim-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.sim-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(244, 236, 223, 0.5) 0%, rgba(235, 220, 194, 0.2) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 170, 101, 0.15);
  border-radius: 16px;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.sim-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent-warm);
  box-shadow: 0 12px 30px rgba(232, 170, 101, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.sim-step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-left: 2px solid var(--bg-tertiary);
  padding-left: 8px;
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.sim-step:hover .sim-step-number {
  color: var(--accent-bright);
  border-left-color: var(--accent-bright);
}

.sim-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sim-step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sim-step-text {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .simulator-wrapper {
    margin: 0;
  }
}

/* ============================================================
   MOCK UI IN BENTO CARDS (Data Ownership)
============================================================ */

.mock-ui {
  display: flex;
  gap: 12px;
  background-color: var(--bg-primary);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--bg-tertiary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.mock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mock-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--accent-warm);
  color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.mock-btn svg {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.bento-card:hover .mock-btn {
  background-color: var(--bg-primary);
  border-color: var(--accent-warm);
}

.bento-card:hover .mock-btn svg {
  color: var(--accent-bright);
}
