/* ==========================================================================
   Eigen.Timer – Landingpage
   Eigenwerk.Code – Daniel Pöppel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Space Grotesk (selbst gehostet, kein Google Fonts)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-v22-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #F8F8F6;
  --color-bg-soft: #EFECE5;
  --color-dark: #0E1116;
  --color-dark-surface: #1A1F28;
  --color-accent: #2D5BFF;
  --color-accent-dark: #1A40CC;
  --color-muted: #6B6F76;
  --color-border: #DDD9D0;
  --color-text: #1A1C20;

  --font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --max-width: 1080px;
  --text-width: 65ch;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  max-width: var(--text-width);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-s);
}

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

section {
  padding: var(--space-xxl) 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-m);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-dark {
  background-color: var(--color-dark);
  color: #fff;
}

.btn-dark:hover {
  background-color: #2a2f38;
  color: #fff;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-m);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--color-dark);
  color: #fff;
  border: none;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.store-badge:hover {
  background-color: #2a2f38;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-badge svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.store-badge .badge-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-badge .badge-pre {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge .badge-name {
  font-size: 1rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-m);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.header-brand:hover {
  text-decoration: none;
}

.header-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
}

.header-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.header-name span {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  gap: var(--space-m);
  align-items: center;
}

.header-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 500;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.header-cta {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--color-dark);
  color: #fff;
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-m);
  flex-shrink: 0;
}

.hero-app-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 0;
}

.hero-app-name span {
  color: var(--color-accent);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-wrap: wrap;
}

.hero-price {
  display: inline-block;
  background-color: rgba(45, 91, 255, 0.15);
  border: 1px solid rgba(45, 91, 255, 0.35);
  color: #7DA3FF;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-platforms {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.hero-screenshot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-screenshot img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-l);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features {
  background-color: var(--color-bg);
}

.features .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.features-header {
  max-width: 52ch;
}

.features-header h2 {
  margin-top: var(--space-xs);
}

.features-header p {
  color: var(--color-muted);
  margin-top: var(--space-s);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feature-card {
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-m) var(--space-l) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--color-accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(45, 91, 255, 0.1);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */
.screenshots {
  background-color: var(--color-dark);
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.screenshots .section-label {
  color: rgba(255, 255, 255, 0.4);
}

.screenshots h2 {
  color: #fff;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.screenshots-scroll {
  display: flex;
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-s);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 220px;
}

.screenshot-item img {
  width: 220px;
  border-radius: var(--radius-l);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-item figcaption {
  margin-top: var(--space-s);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

@media (min-width: 900px) {
  .screenshot-item {
    width: 240px;
  }

  .screenshot-item img {
    width: 240px;
  }
}

/* --------------------------------------------------------------------------
   Preis & Ehrlichkeit
   -------------------------------------------------------------------------- */
.pricing {
  background-color: var(--color-bg-soft);
}

.pricing .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .pricing .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.pricing-content h2 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-m);
}

.pricing-content p {
  color: var(--color-muted);
  margin-bottom: var(--space-m);
}

.pricing-card {
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.pricing-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-muted);
  align-self: flex-start;
  margin-top: 0.4rem;
}

.pricing-type {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: -0.5rem;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.pricing-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-color: rgba(45, 91, 255, 0.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' fill='none' stroke='%232D5BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.1rem;
}

.pricing-divider {
  height: 1px;
  background-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-l);
}

.cta-section h2 {
  color: #fff;
  max-width: 32ch;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 48ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-l) 0;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.footer-brand a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Subpage Layout (Impressum, Datenschutz, Nutzungsbedingungen)
   -------------------------------------------------------------------------- */
.subpage-header {
  background-color: var(--color-dark);
  padding: var(--space-l) 0;
}

.subpage-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
  justify-content: space-between;
}

.subpage-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.subpage-brand:hover {
  text-decoration: none;
}

.subpage-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
}

.subpage-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.subpage-brand-name span {
  color: var(--color-accent);
}

.subpage-back {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}

.subpage-back:hover {
  color: #fff;
  text-decoration: none;
}

.subpage-content {
  padding: var(--space-xxl) 0;
}

.subpage-content .container {
  max-width: 720px;
}

.subpage-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: var(--space-l);
}

.subpage-content h2 {
  font-size: 1.2rem;
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
}

.subpage-content h3 {
  font-size: 1rem;
  margin-top: var(--space-m);
  margin-bottom: var(--space-s);
}



.subpage-content p {
  color: var(--color-muted);
  margin-bottom: var(--space-s);
  max-width: 65ch;
}

.subpage-content ul,
.subpage-content ol {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--color-muted);
  margin-bottom: var(--space-s);
}

.subpage-content ul li,
.subpage-content ol li {
  margin-bottom: 0.4rem;
}

.content-placeholder {
  background-color: var(--color-bg-soft);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: var(--space-m) 0;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Responsive Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  section {
    padding: var(--space-xl) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .store-badge,
  .feature-card {
    transition: none;
  }
}