/* ==========================================================================
   Semestly — Landing Page Stylesheet
   Calm Minimalist Aesthetic inspired by Apple & Things 3
   ========================================================================== */

:root {
  /* Warm Linen & Ivory Signature Palette */
  --bg-landing: #f5f2eb;
  --bg-surface: #fffdf9;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: rgba(42, 37, 33, 0.045);
  --bg-hover: rgba(42, 37, 33, 0.07);

  --brand-color: #39604e;
  --brand-color-hover: #2d4e3f;
  --brand-color-soft: rgba(57, 96, 78, 0.1);

  --text-primary: #1f1b18;
  --text-secondary: #574e46;
  --text-muted: #8c8276;

  --border-subtle: rgba(42, 37, 33, 0.09);
  --border-medium: rgba(42, 37, 33, 0.16);

  --accent-emerald: #336650;
  --accent-ocean: #385f82;
  --accent-amber: #bd6834;
  --accent-rose: #b04856;

  /* Native Apple SF Pro Typography Prioritized Everywhere */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'SF Pro', system-ui, sans-serif;

  --shadow-xs: 0 1px 3px rgba(38, 32, 26, 0.04);
  --shadow-sm: 0 3px 12px rgba(38, 32, 26, 0.06), 0 1px 3px rgba(38, 32, 26, 0.04);
  --shadow-md: 0 12px 34px rgba(38, 32, 26, 0.09), 0 3px 10px rgba(38, 32, 26, 0.04);
  --shadow-lg: 0 24px 60px rgba(38, 32, 26, 0.11), 0 6px 20px rgba(38, 32, 26, 0.05);
}

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

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

body.landing-body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

body.landing-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-landing);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   1. Floating Rounded Pill Navigation Bar (Extra Chunky, Elegant & Warm)
   ========================================================================== */

.landing-nav-wrapper {
  position: fixed;
  top: 1.4rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 1.5rem;
}

.landing-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, calc(100vw - 3rem));
  padding: 1.35rem 2.4rem 1.35rem 2.8rem;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 2px solid var(--border-medium);
  border-radius: 999px;
  box-shadow: 0 22px 64px rgba(38, 32, 26, 0.16), 0 6px 20px rgba(38, 32, 26, 0.08);
  transition: all 180ms ease;
  box-sizing: border-box;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 850;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.landing-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(38, 32, 26, 0.16);
  display: block;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2.2rem, 3.8vw, 4.2rem);
  list-style: none;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  transition: color 140ms ease;
}

.landing-nav-links a:hover {
  color: var(--brand-color);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-toggle-btn {
  appearance: none;
  border: 1.8px solid var(--border-medium);
  background: rgba(42, 37, 33, 0.06);
  color: var(--text-secondary);
  font-size: 1.08rem;
  font-weight: 750;
  padding: 0.82rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 150ms ease;
  user-select: none;
}

.lang-toggle-btn:hover {
  border-color: var(--brand-color);
  background: var(--bg-surface);
  color: var(--brand-color);
}

.lang-code {
  opacity: 0.5;
  transition: opacity 140ms ease, color 140ms ease;
}

.lang-code.is-active {
  opacity: 1;
  color: var(--brand-color);
  font-weight: 800;
}

.lang-sep {
  opacity: 0.3;
  font-weight: 400;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand-color);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.72rem 1.65rem;
  border-radius: 999px;
  transition: all 150ms ease;
  box-shadow: 0 4px 16px rgba(57, 96, 78, 0.28);
}

.nav-cta-btn:hover {
  background: var(--brand-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(57, 96, 78, 0.38);
  color: #ffffff;
}

/* ==========================================================================
   2. Hero Section (Clean Minimalist Headline & Direct Download)
   ========================================================================== */

.landing-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(17.5rem, 22vh, 22rem) 1.5rem clamp(7.5rem, 11vh, 10rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ==========================================================================
   2a. Hero Subtle Floating Focus Dots (Calm Ambient Motion)
   ========================================================================== */

.hero-dots-field {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  user-select: none;
}

.hero-dot {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background-color: var(--brand-color);
  opacity: var(--base-op, 0.26);
  transform: translate3d(0, 0, 0);
  animation: heroDotFloat var(--dur, 13s) ease-in-out infinite alternate;
  animation-delay: var(--del, 0s);
  will-change: transform, opacity;
}

.hero-dot.is-tick {
  width: var(--w, 2px);
  height: var(--h, 8px);
  border-radius: 1px;
  transform: rotate(var(--rot, 35deg));
  animation: heroTickFloat var(--dur, 13s) ease-in-out infinite alternate;
  animation-delay: var(--del, 0s);
}

@keyframes heroDotFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: var(--base-op, 0.26);
  }
  50% {
    transform: translate3d(var(--dx, 25px), var(--dy, -25px), 0) scale(1.3);
    opacity: calc(var(--base-op, 0.26) * 1.55);
  }
  100% {
    transform: translate3d(calc(var(--dx, 25px) * -0.85), calc(var(--dy, -25px) * 0.75), 0) scale(0.85);
    opacity: calc(var(--base-op, 0.26) * 0.75);
  }
}

@keyframes heroTickFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rot, 35deg)) scale(0.9);
    opacity: var(--base-op, 0.26);
  }
  50% {
    transform: translate3d(var(--dx, 25px), var(--dy, -25px), 0) rotate(calc(var(--rot, 35deg) + 14deg)) scale(1.25);
    opacity: calc(var(--base-op, 0.26) * 1.45);
  }
  100% {
    transform: translate3d(calc(var(--dx, 25px) * -0.85), calc(var(--dy, -25px) * 0.75), 0) rotate(calc(var(--rot, 35deg) - 10deg)) scale(0.88);
    opacity: calc(var(--base-op, 0.26) * 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot,
  .hero-dot.is-tick {
    animation: none;
  }
}

.hero-headline {
  font-size: clamp(3.5rem, 6.8vw, 6.2rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 3.8rem;
  position: relative;
  z-index: 1;
}

.hero-line-break {
  display: inline;
}

@media (max-width: 640px) {
  .hero-line-break {
    display: none;
  }

  .hero-headline {
    font-size: clamp(2.7rem, 8.5vw, 3.4rem);
    text-align: center;
    margin: 0 auto 2.8rem;
  }
}

.hero-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1.25rem 4.2rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: var(--brand-color);
  color: #ffffff;
  box-shadow: 0 10px 32px rgba(57, 96, 78, 0.35);
  transition: all 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--brand-color);
  position: relative;
  z-index: 1;
}

.hero-download-btn:hover {
  background: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(57, 96, 78, 0.44);
  color: #ffffff;
}

.hero-sublink {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.hero-sublink a {
  color: var(--text-secondary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 140ms ease;
}

.hero-sublink a:hover {
  color: var(--brand-color);
}

/* ==========================================================================
   2b. Floating Orbs Arched Ribbon (Wall-to-Wall Edge-to-Edge)
   ========================================================================== */

.hero-bubbles-section {
  width: 100%;
  padding: 3.5rem 0 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: clip;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-bubbles-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-bubbles-subtitle {
  margin: 1.8rem 1.5rem 3rem;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  text-align: center;
  max-width: 1140px;
  line-height: 1.2;
}

.hero-bubbles-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 1.4rem clamp(1rem, 2.5vw, 3.5rem) 4rem;
  gap: clamp(0.35rem, 0.9vw, 1.4rem);
}

.hero-bubble {
  width: clamp(66px, 5.5vw, 98px);
  height: clamp(66px, 5.5vw, 98px);
  border-radius: 50%;
  background: #fffdfa;
  border: 1px solid rgba(42, 37, 33, 0.08);
  box-shadow: 0 8px 24px rgba(38, 32, 26, 0.05), 0 2px 6px rgba(38, 32, 26, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transform: translate3d(0, var(--arc-offset, 0px), 0);
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, background 260ms ease, color 260ms ease;
  cursor: default;
  flex-shrink: 0;
  animation: sineWave 6.4s ease-in-out infinite;
}

.hero-bubble:hover {
  transform: translate3d(0, calc(var(--arc-offset, 0px) - 16px), 0) scale(1.12);
  box-shadow: 0 18px 40px rgba(38, 32, 26, 0.12), 0 4px 12px rgba(38, 32, 26, 0.05);
  background: #ffffff;
  color: var(--brand-color);
  animation-play-state: paused;
}

.hero-bubble.is-brand {
  color: var(--brand-color);
  border-color: rgba(57, 96, 78, 0.26);
  background: #ffffff;
}

.hero-bubble svg {
  width: clamp(26px, 2.3vw, 36px);
  height: clamp(26px, 2.3vw, 36px);
  display: block;
}

.hero-bubble img {
  height: clamp(32px, 2.7vw, 44px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: none;
}


/* Sichtbare, harmonische Sinus-Welle (fließend von links nach rechts) */
@keyframes sineWave {
  0%, 100% {
    transform: translate3d(0, var(--arc-offset, 0px), 0);
  }
  50% {
    transform: translate3d(0, calc(var(--arc-offset, 0px) - 13px), 0);
  }
}

/* Welle von links nach rechts durch zeitlich gestaffelte Phasenfahrten */
.hero-bubble:nth-child(1)  { animation-delay:  0.00s; }
.hero-bubble:nth-child(2)  { animation-delay: -0.45s; }
.hero-bubble:nth-child(3)  { animation-delay: -0.90s; }
.hero-bubble:nth-child(4)  { animation-delay: -1.35s; }
.hero-bubble:nth-child(5)  { animation-delay: -1.80s; }
.hero-bubble:nth-child(6)  { animation-delay: -2.25s; }
.hero-bubble:nth-child(7)  { animation-delay: -2.70s; }
.hero-bubble:nth-child(8)  { animation-delay: -3.15s; }
.hero-bubble:nth-child(9)  { animation-delay: -3.60s; }
.hero-bubble:nth-child(10) { animation-delay: -4.05s; }
.hero-bubble:nth-child(11) { animation-delay: -4.50s; }
.hero-bubble:nth-child(12) { animation-delay: -4.95s; }
.hero-bubble:nth-child(13) { animation-delay: -5.40s; }
.hero-bubble:nth-child(14) { animation-delay: -5.85s; }

@media (max-width: 1080px) {
  .hero-bubbles-section {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4rem;
  }
  .hero-bubbles-section::-webkit-scrollbar {
    display: none;
  }
  .hero-bubbles-track {
    justify-content: flex-start;
    width: max-content;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   3. The 3 Feature Sections (Auseinandergezogen & Hochkant-Vorschau)
   ========================================================================== */

.feature-section-fullpage {
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 2.5rem;
  box-sizing: border-box;
  background: var(--bg-landing);
}

.feature-container {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4rem, 7vw, 9rem);
  width: 100%;
}

.feature-text-col {
  flex: 1 1 440px;
  max-width: 490px;
  text-align: left;
}

.feature-title {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1.6rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.feature-visual-col {
  flex: 1 1 640px;
  width: 100%;
  max-width: 660px;
  display: flex;
  justify-content: flex-end;
}

/* Hochkant / Portrait Card Frame (Taller, Generous, High-Impact) */
.feature-card-frame {
  width: 100%;
  max-width: 660px;
  min-height: 600px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 40px;
  padding: 3rem 2.6rem;
  box-shadow: 0 28px 70px rgba(38, 32, 26, 0.1), 0 8px 24px rgba(38, 32, 26, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.feature-card-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(38, 32, 26, 0.13), 0 10px 28px rgba(38, 32, 26, 0.07);
}

/* Mockup Components */
.mockup-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-traffic-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.mockup-pill-tag {
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Feature 1 UI Details (Modul-Studio, Termine & Wochen-Aufgaben) */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.kpi-tile {
  background: var(--bg-landing);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 1.35rem 1.35rem;
}

.kpi-tile-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 750;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.kpi-tile-val {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.kpi-tile-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Funktion 1 Split Grid: Nächste Klausur & Wochen-Fokus */
.module-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .module-split-grid {
    grid-template-columns: 1fr;
  }
}

.module-split-card {
  background: var(--bg-landing);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.module-split-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.module-split-footer {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.target-gpa-banner {
  background: rgba(57, 96, 78, 0.08);
  border: 1px solid rgba(57, 96, 78, 0.2);
  border-radius: 20px;
  padding: 1.15rem 1.45rem;
  font-size: 0.98rem;
  color: var(--brand-color);
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-item-name {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.countdown-item-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.countdown-badge {
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge-urgent { background: rgba(176, 72, 86, 0.14); color: var(--accent-rose); }
.badge-upcoming { background: rgba(189, 104, 52, 0.14); color: var(--accent-amber); }
.badge-future { background: rgba(56, 95, 130, 0.14); color: var(--accent-ocean); }

/* ==========================================================================
   Feature 2 UI Details (Authentischer Semestly Karteikarten-Player wie in app.html)
   ========================================================================== */

.app-flashcard-stage {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}

/* Player Top Bar (app.html line 721) */
.app-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0 0.2rem;
}

.app-back-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.app-player-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-deck-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-status-pill {
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-landing);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

/* Authentic Flashcard Flip Container (styles.css line 8260) */
.app-flashcard-card {
  perspective: 1000px;
  width: 100%;
  min-height: 270px;
  cursor: pointer;
  user-select: none;
}

.app-flashcard-inner {
  position: relative;
  width: 100%;
  min-height: 270px;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 26px;
  box-shadow: 0 4px 20px rgba(38, 32, 26, 0.06), 0 1px 3px rgba(38, 32, 26, 0.04);
  background: var(--bg-landing);
  border: 1px solid var(--border-subtle);
}

.app-flashcard-inner.is-flipped {
  transform: rotateY(180deg);
}

.app-flashcard-front,
.app-flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 270px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.6rem 2.8rem;
  border-radius: 26px;
  box-sizing: border-box;
}

.app-flashcard-back {
  transform: rotateY(180deg);
  background: var(--bg-subtle);
}

.app-flashcard-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.app-flashcard-text {
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
  max-width: 480px;
}

.app-flashcard-back .app-flashcard-text {
  color: var(--brand-color);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Authentic Controls Row (styles.css line 8325 & line 645-720) */
.app-flashcard-controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.app-card-front-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 460px;
}

.app-card-back-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 460px;
}

.app-flashcard-stage.is-card-flipped .app-card-front-controls {
  display: none;
}

.app-flashcard-stage.is-card-flipped .app-card-back-controls {
  display: flex;
}

.app-btn-secondary {
  appearance: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.app-btn-arrow {
  width: 42px;
  height: 40px;
  font-size: 1.05rem;
  padding: 0;
}

.app-btn-primary {
  appearance: none;
  background: var(--brand-color);
  color: #fffdf9;
  border: 1px solid var(--brand-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.55rem 1.6rem;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(57, 96, 78, 0.22);
  flex: 1;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-btn-primary:hover {
  background: #2f5141;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57, 96, 78, 0.3);
}

/* Rating Buttons when flipped */
.app-btn-rating {
  appearance: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: all 150ms ease;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.app-btn-rating small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}

.app-btn-rating.is-fail {
  background: rgba(176, 72, 86, 0.12);
  color: #b04856;
  border: 1px solid rgba(176, 72, 86, 0.25);
}

.app-btn-rating.is-hard {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.app-btn-rating.is-pass {
  background: rgba(57, 96, 78, 0.12);
  color: var(--brand-color);
  border: 1px solid rgba(57, 96, 78, 0.25);
}

.app-btn-rating:hover {
  transform: translateY(-1px);
}

/* Feature 3 UI Details (Notizzettel-Wall & Gedanken) */
.sticky-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 640px) {
  .sticky-wall-grid {
    grid-template-columns: 1fr;
  }
}

.sticky-note-card {
  border-radius: 18px;
  padding: 1.35rem 1.35rem;
  box-shadow: 0 8px 24px rgba(38, 32, 26, 0.06), 0 2px 6px rgba(38, 32, 26, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.sticky-note-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 14px 32px rgba(38, 32, 26, 0.12);
  z-index: 2;
}

.sticky-note-card.note-yellow {
  background: #fcf8e6;
  border: 1px solid rgba(220, 195, 120, 0.45);
  color: #4a4020;
  transform: rotate(-1.5deg);
}

.sticky-note-card.note-green {
  background: #edf5f0;
  border: 1px solid rgba(57, 96, 78, 0.25);
  color: #213c30;
  transform: rotate(1.2deg);
}

.sticky-note-card.note-blue {
  background: #eef4f9;
  border: 1px solid rgba(56, 95, 130, 0.25);
  color: #1e354a;
  transform: rotate(1.5deg);
}

.sticky-note-card.note-rose {
  background: #faeeee;
  border: 1px solid rgba(176, 72, 86, 0.22);
  color: #4a2128;
  transform: rotate(-1deg);
}

.sticky-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.sticky-pin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  color: currentColor;
}

.sticky-note-body {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

.sticky-note-tag {
  font-size: 0.74rem;
  font-weight: 750;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* Feature 3 UI Details (Wochen-Aufgaben & Timer Hochkant) */
.week-progress-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.week-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.week-progress-fill {
  height: 100%;
  width: 80%;
  background: var(--brand-color);
  border-radius: 999px;
}

.task-list-sample {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.8rem;
}

.task-row-sample {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.task-row-sample input[type="checkbox"] {
  accent-color: var(--brand-color);
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.task-row-sample.is-done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.timer-strip-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-landing);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 1.35rem 1.65rem;
}

.timer-digits {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-color);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. Downloads Section (Neutral, Balanced & Calm)
   ========================================================================== */

.downloads-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8.5rem 2.5rem 6.5rem;
  background: var(--bg-landing);
}

.downloads-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4.5rem;
}

.downloads-title {
  font-size: clamp(2.5rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.downloads-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin: 0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  max-width: 1220px;
  margin: 0 auto;
}

.download-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 32px;
  padding: 2.8rem 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.download-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.platform-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: var(--bg-landing);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--border-subtle);
}

.download-box h3 {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.download-box p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 2.2rem;
}

.download-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease;
  background: var(--brand-color);
  color: #ffffff;
  border: 1px solid var(--brand-color);
  box-shadow: 0 4px 18px rgba(57, 96, 78, 0.28);
}

.download-action-btn:hover {
  background: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(57, 96, 78, 0.38);
  color: #ffffff;
}

.download-meta-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
}

/* ==========================================================================
   4b. Mission & Warum Semestly (Warm, Personal & Grounded)
   ========================================================================== */

.mission-section {
  max-width: 980px;
  margin: 2rem auto 2rem;
  padding: 0 2rem;
}

.mission-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 36px;
  padding: 4rem 3.6rem;
  box-shadow: 0 20px 50px rgba(38, 32, 26, 0.05), 0 2px 8px rgba(38, 32, 26, 0.03);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mission-section {
    padding: 0 1.25rem;
    margin: 1.5rem auto 1.5rem;
  }
  .mission-card {
    padding: 2.6rem 1.6rem;
    border-radius: 26px;
  }
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-color);
  background: rgba(57, 96, 78, 0.1);
  padding: 0.36rem 1.05rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.mission-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 1.8rem;
}

.mission-body {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.78;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-body p {
  margin: 0;
}

.mission-footer-line {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-color);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   5. FAQ Section (Expanded, Warm Surfaces)
   ========================================================================== */

.faq-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 7.5rem 2.5rem;
  background: var(--bg-landing);
}

.faq-head {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
}

.faq-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-item[open] {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 1.45rem 1.8rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 160ms ease;
}

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

.faq-content {
  padding: 0 1.8rem 1.6rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ==========================================================================
   6. Clean Warm Footer
   ========================================================================== */

.landing-footer {
  background: #ede8df;
  padding: 4rem 2.5rem 3.2rem;
}

.landing-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 140ms ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1040px) {
  .feature-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5rem;
  }
  .feature-text-col {
    max-width: 100%;
  }
  .feature-visual-col {
    justify-content: center;
    max-width: 100%;
  }
  .feature-card-frame {
    max-width: 520px;
    margin: 0 auto;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-nav-wrapper {
    top: 1rem;
    padding: 0 1rem;
  }
  .landing-nav {
    gap: 1.2rem;
    padding: 0.7rem 0.9rem 0.7rem 1.4rem;
  }
  .landing-nav-links {
    display: none;
  }
  .feature-section-fullpage {
    padding: 5rem 1.5rem;
    min-height: auto;
  }
  .feature-card-frame {
    padding: 2.2rem 1.6rem;
    min-height: 540px;
  }
}

/* ==========================================================================
   7. Legal Dialog (Impressum & DSGVO Modal)
   ========================================================================== */

dialog.sheet-dialog {
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(38, 32, 26, 0.22), 0 4px 16px rgba(38, 32, 26, 0.08);
  padding: 0;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100dvh - 3.5rem);
  box-sizing: border-box;
}

dialog.sheet-dialog::backdrop {
  background-color: rgba(32, 27, 23, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sheet-header {
  padding: 1.5rem 1.6rem 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sheet-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-color-light);
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-header h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}

.sheet-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 140ms ease;
}

.sheet-close-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.sheet-body.legal-dialog-body {
  padding: 1.4rem 1.6rem;
  overflow-y: auto;
  max-height: 55vh;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-pills {
  display: flex;
  gap: 0.45rem;
  background: var(--bg-surface-elevated);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.filter-pill {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
  text-align: center;
}

.filter-pill.active {
  background: var(--bg-surface);
  color: var(--brand-color);
  box-shadow: 0 2px 8px rgba(38, 32, 26, 0.08);
}

.legal-section h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.legal-section h4 {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-primary);
  margin: 0.85rem 0 0.3rem;
}

.legal-section p {
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
}

.legal-link {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet-footer {
  padding: 1rem 1.6rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 0 0 20px 20px;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 140ms ease;
}

.footer-legal-btn:hover {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Support Modal Actions */
.support-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.6rem;
}

.support-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 160ms ease;
  box-sizing: border-box;
}

.support-action-link.coffee-btn {
  background: var(--brand-color);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(57, 96, 78, 0.25);
}

.support-action-link.coffee-btn:hover {
  background: var(--brand-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(57, 96, 78, 0.35);
  color: #ffffff;
}

.support-action-link.paypal-btn {
  background: #0070ba;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.25);
}

.support-action-link.paypal-btn:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 112, 186, 0.35);
  color: #ffffff;
}

.support-action-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
