/* ---------- Schriften (lokal gespeichert, siehe fonts/README.txt) ---------- */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Farben an einer Stelle ---------- */
:root {
  --rose: #e63950;
  --rose-dark: #c22a40;
  --pink: #f7a8b8;
  --blush: #fde8ec;
  --cream: #fff8f3;
  --hero-bottom: #ffe9e0;
  --text: #3a2530;
  --muted: #7a6670;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(194, 42, 64, 0.10);
  --shadow-hover: 0 18px 40px rgba(194, 42, 64, 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--rose); }

/* Handschrift-Akzente */
.handwritten {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--rose);
  margin: 0 0 4px;
  line-height: 1.2;
}
.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blush);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav nav a:hover { background: var(--blush); color: var(--rose); }

/* ---------- Großer Einstieg ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, #ffe0e7 0%, var(--hero-bottom) 100%);
}
.hero-inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin: 8px 0 18px; font-weight: 800; }
.hero h1 span { color: var(--rose); }
.hero-text p:not(.handwritten) { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 460px; }
.hero-img { width: 100%; filter: drop-shadow(0 20px 40px rgba(194, 42, 64, 0.18)); animation: float 6s ease-in-out infinite; }

/* Kleine Herzen, die langsam im Hintergrund aufsteigen (werden per JS erzeugt) */
.floating-hearts { position: absolute; inset: 0; pointer-events: none; }
.floating-hearts span {
  position: absolute; bottom: -30px; color: var(--pink); opacity: 0;
  animation: drift linear infinite;
}

/* Wellen zwischen den Abschnitten */
.wave { display: block; width: 100%; height: 60px; }
.hero + .wave { margin-top: -1px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-block;
  font: inherit; font-weight: 800;
  padding: 13px 28px;
  border: 2px solid var(--rose);
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(230, 57, 80, 0.25);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: var(--rose-dark); box-shadow: 0 10px 24px rgba(230, 57, 80, 0.35); }
.btn.ghost { background: #fff; color: var(--rose); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--blush); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

/* ---------- Abschnitte ---------- */
section[id] { scroll-margin-top: 60px; }
.section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.section.tinted { max-width: none; background: var(--blush); padding-top: 30px; padding-bottom: 30px; }
.section.tinted > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section.tinted > .intro { max-width: 640px; }
.section h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-align: center; margin: 0 0 10px; line-height: 1.2; font-weight: 800; }
.section h2.left { text-align: left; }
.intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px !important; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.why { text-align: center; transition: transform .25s, box-shadow .25s; }
.why:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.why img { width: 150px; }

/* Bilder wie Polaroid-Fotos */
.moments { gap: 32px; padding: 10px 0 20px; }
.polaroid {
  margin: 0; background: #fff; padding: 12px 12px 6px; border-radius: 6px;
  box-shadow: 0 14px 30px rgba(58, 37, 48, 0.14);
  transition: transform .3s;
}
.polaroid img { display: block; width: 100%; border-radius: 3px; }
.polaroid figcaption { font-family: "Caveat", cursive; font-weight: 600; font-size: 1.6rem; text-align: center; color: var(--text); padding: 6px 0 2px; }
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(3deg); }
.polaroid:hover { transform: rotate(0) scale(1.04); }

/* Ideen als Karten im Raster */
.ideas {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.ideas li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); color: var(--muted);
  transition: transform .2s, box-shadow .2s;
}
.ideas li:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ideas li.wide { grid-column: 1 / -1; }
.ideas strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 2px; }
.emoji {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; background: var(--blush);
}

/* Challenge als Liebesbrief-Karte */
.challenge {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 40px 28px 30px;
  box-shadow: var(--shadow);
  border: 3px dashed var(--pink);
  position: relative;
}
.challenge::before, .challenge::after {
  content: "♥"; position: absolute; color: var(--pink); font-size: 2rem;
}
.challenge::before { top: 10px; left: 18px; transform: rotate(-15deg); }
.challenge::after { bottom: 10px; right: 18px; transform: rotate(15deg); }
.challenge-text {
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  min-height: 4.4em; display: grid; place-items: center; margin: 10px 0;
}
.challenge-text.pop { animation: pop .4s ease; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0 16px; }
.counter { color: var(--muted); margin: 0; }
.counter strong { color: var(--rose); font-size: 1.2rem; }

/* Dankbarkeits-Tagebuch */
.split { display: flex; align-items: center; gap: 30px; max-width: 760px !important; margin-bottom: 26px !important; }
.split img { width: 190px; flex: none; }
.split p:not(.handwritten) { color: var(--muted); margin: 0; }
.gratitude { max-width: 760px !important; }
.gratitude label { font-weight: 800; display: block; margin-bottom: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input {
  flex: 1 1 220px; font: inherit;
  padding: 12px 18px; border: 2px solid var(--blush); border-radius: 999px; outline: none;
  background: var(--cream);
}
.row input:focus { border-color: var(--pink); background: #fff; }
.gratitude-list { list-style: none; padding: 0; margin: 18px 0 0; }
.gratitude-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px dashed var(--pink);
  font-family: "Caveat", cursive; font-weight: 600; font-size: 1.5rem; line-height: 1.3;
  animation: pop .35s ease;
}
.gratitude-list li span::before { content: "♥ "; color: var(--rose); }
.gratitude-list small { font-family: "Nunito", sans-serif; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.gratitude-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.gratitude-list button:hover { color: var(--rose); }

/* Abschluss */
.closing { text-align: center; }
.closing img { width: 200px; }
.quote {
  font-family: "Caveat", cursive; font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.2; color: var(--rose-dark);
  margin: 10px auto 16px; max-width: 760px;
}
.small { color: var(--muted); }

.footer { text-align: center; padding: 30px 16px 110px; color: var(--muted); } /* unten Platz für die Impressum-Leiste */
.beat { display: inline-block; color: var(--rose); animation: beat 1.4s ease-in-out infinite; }

/* Herzen, die beim „Geschafft“ aufsteigen */
.float-heart {
  position: fixed; pointer-events: none; color: var(--rose);
  font-size: 1.6rem; animation: rise 1.6s ease-out forwards; z-index: 20;
}

/* ---------- Animationen ---------- */
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.2); } }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { to { transform: translateY(-160px) scale(1.4); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-text p:not(.handwritten) { margin-left: auto; margin-right: auto; }
  .split { flex-direction: column; text-align: center; }
  .section h2.left { text-align: center; }
}
@media (max-width: 600px) {
  .nav nav { display: none; } /* auf dem Handy reicht das Logo */
  .tilt-left, .tilt-right { transform: none; }
  .ideas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .floating-hearts { display: none; }
}
