/**
 * Elaine's Organizer — Präsentations-Website
 * Gestaltung angelehnt an die Produkt-UI (Blauton, helle Flächen, Karten).
 */

:root {
  --bg-color: #f4f6f9;
  --surface-color: #ffffff;
  --tint-color: #edf2f7;
  --text-main: #2d3748;
  --text-soft: #4a5568;
  --text-muted: #718096;
  --primary-color: #3182ce;
  --primary-hover: #2b6cb0;
  --primary-soft: #ebf8ff;
  --border-color: #e2e8f0;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: #1a202c;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

a:hover {
  color: var(--primary-hover);
}

code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--tint-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 760px;
}

.section {
  padding: 4.5rem 0;
}

.section-tinted {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-cta {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--primary-soft) 100%);
}

.section-intro {
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Header & Navigation ─────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #1a202c;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nav-cta {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem;
  border-bottom: none;
  transition: background-color 0.15s ease-in-out;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--primary-hover);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--primary-soft) 0%, transparent 60%),
    var(--bg-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 1.25rem 0 1.5rem;
  max-width: 34rem;
}

.hero-verse {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-verse cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface-color);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: var(--text-main);
}

/* ── Geschichte ──────────────────────────────────────────── */

.story p {
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
}

.story-quote {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
}

.story-quote blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: #1a202c;
}

.story-quote figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Funktionen ──────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

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

.feature-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ── Eindrücke / Screenshots ─────────────────────────────── */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.shot {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* Hochformatige Screenshots (Einstellungsdialoge): volle Bildhöhe im Spaltenraster */
.shot-full img {
  aspect-ratio: auto;
}

.shot figcaption {
  padding: 0.65rem 0.5rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero-Screenshot */
.hero-visual .shot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lift);
  display: block;
}

/* ── Bild-Overlay (Lightbox) ──────────────────────────────── */

.shot img,
.hero-visual .shot-img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 4.5rem 2rem;
  background: rgba(26, 32, 44, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 6.5rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.lightbox-figure figcaption {
  color: #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
  max-width: 56rem;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Datenschutz / Technik Listen ────────────────────────── */

.checklist {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--text-soft);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 2px solid var(--primary-color);
}

.checklist strong {
  color: #1a202c;
}

.tech-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.tech-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-soft);
}

.tech-list li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.75em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary-color);
}

/* ── Kontakt ─────────────────────────────────────────────── */

.contact-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 2rem;
  text-align: center;
}

.contact-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.35rem;
}

.contact-mail {
  color: var(--text-soft);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  color: #1a202c;
}

.footer-verse {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Einblenden beim Scrollen ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsiv ───────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lift);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border-color);
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.1rem;
    border-bottom: none;
  }

  .nav-cta {
    border-radius: var(--radius-sm);
    margin: 0.5rem 0 0.25rem;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .lightbox {
    padding: 3.5rem 0.5rem 4.5rem;
  }

  .lightbox-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
