/* ═══════ VARIABLES ═══════ */

:root {
  --cream: #fdfaf4;
  --table: #e0d5c7;
  --ink: #3a3530;
  --brown: #8b6f47;
  --brown-light: #c4a97d;
  --brown-faint: #f5f0e6;
  --muted: #6b6259;
  --ghost: #9a8e80;

  --strawberry: #c0392b;

  --bp-bg: #0d1b2a;
  --bp-line: #4187c8;
  --bp-line-dim: rgba(65, 135, 200, 0.18);
  --bp-text: #a8d4f0;
}

/* ═══════ RESET ═══════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ═══════ HERO ═══════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  position: relative;
  padding: 2rem;
}

.hero-content {
  text-align: center;
}

.hero-berry {
  width: 90px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.hero h1 {
  font-family: "Caveat", cursive;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-sub em {
  font-style: italic;
  color: var(--strawberry);
}

.hero-pitch {
  max-width: 520px;
  margin: 1.5rem auto 0;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--ghost);
  line-height: 1.7;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  text-decoration: none;
}

.scroll-hint span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--brown-light);
  border-bottom: 2px solid var(--brown-light);
  transform: rotate(45deg);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ═══════ QUOTE ═══════ */

.quote-strip {
  background: var(--brown);
  color: var(--cream);
  padding: 3.5rem 2rem;
  text-align: center;
}

.quote-strip blockquote {
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.quote-strip cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.65;
}

/* ═══════ BLUEPRINT ═══════ */

.blueprint {
  background: var(--bp-bg);
  background-image:
    linear-gradient(var(--bp-line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-dim) 1px, transparent 1px);
  background-size: 50px 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 2rem;
  overflow: hidden;
}

.bp-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--bp-text);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bp-canvas {
  position: relative;
  width: 100%;
  max-width: 950px;
  flex: 1;
  min-height: 450px;
  aspect-ratio: 16 / 10;
}

.bp-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bp-laptop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 20vw, 220px);
  color: var(--bp-line);
  z-index: 2;
  opacity: 0.7;
}

.bp-item {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.bp-icon {
  width: clamp(60px, 8vw, 90px);
  height: clamp(50px, 7vw, 80px);
  color: var(--bp-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-icon svg {
  width: 100%;
  height: 100%;
}

.bp-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: var(--bp-text);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.bp-footnote {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(168, 212, 240, 0.4);
  text-align: center;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* ═══════ HABITATS ═══════ */

.habitats {
  background: var(--table);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.habitat-title {
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brown);
  text-align: center;
  margin-bottom: 0.5rem;
}

.habitat-pitch {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 1rem;
}

.habitat-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 2rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brown-light) transparent;
}

.habitat-track::-webkit-scrollbar {
  height: 6px;
}

.habitat-track::-webkit-scrollbar-thumb {
  background: var(--brown-light);
  border-radius: 3px;
}

.habitat-card {
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.habitat-photo {
  aspect-ratio: 4 / 3;
  background: var(--brown-faint);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 2px dashed var(--brown-light);
}

.habitat-photo span {
  font-size: 0.8rem;
  color: var(--ghost);
  text-align: center;
  padding: 1rem;
}

.habitat-card h3 {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 0.15rem;
}

.habitat-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ═══════ BENEFIT - FULL (Calendar) ═══════ */

.benefit-full {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
}

.benefit-full-text {
  text-align: center;
  margin-bottom: 2rem;
}

.benefit-full-text h2 {
  font-family: "Caveat", cursive;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.benefit-full-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 0.5rem;
}

.benefit-full-sub {
  font-size: 0.9rem;
  color: var(--ghost);
  font-style: italic;
}

/* ── Calendar ── */

.cal-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 380px;
}

.cal-stand {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  perspective: 800px;
}

.cal-stack {
  position: relative;
  width: 250px;
  height: 190px;
}

.cal-sheet {
  position: absolute;
  inset: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-origin: top center;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.2s;
}

.cal-sheet:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cal-sheet.tearing {
  animation: tearOff 0.5s ease-in forwards;
  pointer-events: none;
}

@keyframes tearOff {
  0% { transform: rotateX(0deg) translateY(0); opacity: 1; }
  25% { transform: rotateX(-25deg) translateY(-15px); opacity: 1; }
  100% { transform: rotateX(-10deg) translateY(320px) rotate(var(--fall-rot, 5deg)); opacity: 0; }
}

.cal-day {
  font-family: "Caveat", cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}

.cal-day-label {
  font-size: 0.75rem;
  color: var(--ghost);
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cal-event {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 210px;
}

.cal-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  overflow: hidden;
}

.cal-fallen {
  position: absolute;
  width: 75px;
  height: 55px;
  background: white;
  border: 1px solid #e0d8cc;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: 0.85rem;
  color: var(--brown-light);
  animation: land 0.3s ease-out forwards;
}

@keyframes land {
  from { opacity: 0; transform: translateY(-20px) rotate(var(--land-rot, 0deg)); }
  to { opacity: 0.6; transform: translateY(0) rotate(var(--land-rot, 0deg)); }
}

.cal-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cal-btn {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  background: var(--brown);
  color: var(--cream);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-btn:hover {
  background: var(--muted);
}

/* ═══════ BENEFITS (alternating) ═══════ */

.benefit {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.benefit-right {
  flex-direction: row-reverse;
}

/* Alternating background */
.benefit:nth-child(even) {
  /* uses default cream bg */
}

.benefit-illust {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.benefit-placeholder {
  aspect-ratio: 1;
  background: var(--brown-faint);
  border: 2px dashed var(--brown-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.benefit-placeholder svg {
  width: 80%;
  max-width: 140px;
  color: var(--brown);
}

.benefit-placeholder span {
  font-size: 0.75rem;
  color: var(--ghost);
  margin-top: 0.75rem;
  font-style: italic;
}

.benefit-text {
  flex: 1.2;
}

.benefit-text h2 {
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.benefit-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.benefit-aside {
  font-size: 0.92rem !important;
  color: var(--ghost);
  font-style: italic;
}

/* Subtle separators between benefits */
#begleitet { border-top: 1px solid var(--brown-faint); }
#einfach { background: var(--brown-faint); }
#fokussiert { border-top: 1px solid var(--brown-faint); }
#privat { background: var(--brown-faint); }
#nuetzlich { border-top: 1px solid var(--brown-faint); }
#nachhaltig { background: var(--brown-faint); }

/* ═══════ PREIS ═══════ */

/* ═══════ FINGERPRINT UNLOCK ═══════ */

.fp-area {
  position: relative;
}

.fp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.4s;
}

.fp-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.fp-icon {
  width: 50px;
  height: auto;
  color: var(--brown);
  transition: transform 0.3s, opacity 0.3s;
}

.fp-icon.scanning {
  animation: fpPulse 0.6s ease-out forwards;
}

@keyframes fpPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.fp-hint {
  font-size: 0.8rem;
  color: var(--ghost);
  margin-top: 0.75rem;
  font-style: italic;
}

.fp-content {
  filter: blur(5px);
  transition: filter 0.5s ease;
  user-select: none;
}

.fp-content.unlocked {
  filter: none;
  user-select: auto;
}

/* ═══════ PREIS / RECEIPT ═══════ */

.preis-section {
  background: var(--cream);
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.preis-section h2 {
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.preis-section h2 em {
  font-style: italic;
  color: var(--strawberry);
}

.receipt {
  max-width: 320px;
  margin: 0 auto;
  background: white;
  padding: 2rem 1.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--ink);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  text-align: left;
}

.receipt-header {
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.receipt-line {
  border-top: 1.5px dashed var(--brown-light);
  margin: 0.6rem 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.receipt-total {
  font-weight: 500;
  font-size: 0.9rem;
}

.receipt-footer {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.receipt-small {
  font-size: 0.7rem;
  color: var(--ghost);
}

/* ═══════ FOOTER ═══════ */

.site-footer {
  background: var(--ink);
  color: var(--ghost);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
}

.footer-link {
  color: var(--brown-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 169, 125, 0.4);
  transition: border-color 0.2s;
}

.footer-link:hover {
  border-color: var(--brown-light);
}

.footer-url {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: var(--brown-light);
  margin-top: 0.5rem;
}

.footer-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: rgba(154, 142, 128, 0.5);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ═══════ FLOATING BUTTON ═══════ */

.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--strawberry);
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.25);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.fab.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 57, 43, 0.3);
}

/* ═══════ BEERI LOG ═══════ */

.beeri-log {
  margin-top: 3rem;
  opacity: 0.12;
  transition: opacity 0.4s;
  max-width: 500px;
  overflow: hidden;
}

.beeri-log:hover {
  opacity: 0.4;
}

.beeri-log pre {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  line-height: 1.6;
  color: var(--ghost);
  white-space: pre;
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 700px) {
  /* Blueprint: switch to grid on mobile */
  .blueprint {
    min-height: auto;
    padding: 2.5rem 1rem 2rem;
  }

  .bp-canvas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    aspect-ratio: unset;
    min-height: unset;
    padding: 0 0.5rem;
  }

  .bp-laptop {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    width: 160px;
    margin: 0 auto 0.5rem;
    opacity: 0.5;
  }

  .bp-lines {
    display: none;
  }

  .bp-item {
    position: static !important;
    transform: none !important;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .bp-icon {
    width: 36px;
    height: 32px;
    flex-shrink: 0;
  }

  .bp-label {
    font-size: 0.65rem;
    text-align: left;
    white-space: normal;
  }

  .bp-footnote {
    margin-top: 1.25rem;
    font-size: 0.65rem;
  }

  /* Benefits */
  .benefit {
    flex-direction: column !important;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .benefit-illust {
    max-width: 220px;
  }

  /* Other mobile fixes */
  .habitat-card {
    min-width: 260px;
  }

  .cal-stack {
    width: 220px;
    height: 165px;
  }

  .fab {
    bottom: 1rem;
    right: 1rem;
    font-size: 1.1rem;
    padding: 0.6rem 1.3rem;
  }
}
