/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@300;400;500&family=Dancing+Script:wght@500;600&display=swap');

:root {
  /* Pastell-Palette */
  --bg-main: #FFF7FB;            /* sehr helles Pastellrosa */
  --bg-card: #FFFFFF;
  --accent-main: #FFCDE1;         /* weich, rosa */
  --accent-strong: #FF94B8;       /* etwas kräftigeres Rosa */
  --text-main: #2E1F26;           /* warmes Dunkelbraun */
  --text-soft: #6F5A64;           /* weicher Text */
  --text-muted: #A48B98;
  --border-soft: rgba(255, 149, 185, 0.3);

  --radius-large: 18px;
  --radius-medium: 14px;

  --max-width: 800px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #FFEFF6, #FFF7FB 80%, #FFFFFF 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.4rem 3rem;
}

main {
  flex: 1;
}

/* Header / Nav – viel simpler, weniger „industrie“ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 251, 0.92);
  border-bottom: 1px solid rgba(255, 149, 185, 0.18);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #FFE5F0, #FF94B8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Dancing Script", cursive;
  font-size: 1.1rem;
  color: #fff;
}

.brand-text-main {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
}

.brand-text-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;   /* ❗ Umbrechen verhindern */
  gap: 0.8rem;
  justify-content: flex-end;
  white-space: nowrap; /* ❗ verhindert automatisches Zeilenbrechen */
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.30rem 0.7rem;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 205, 225, 0.45);
  border-color: rgba(255, 148, 184, 0.4);
}

.nav-links a.active {
  background: var(--accent-main);
  border-color: rgba(255, 148, 184, 0.7);
  color: var(--text-main);
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;        /* auf Handy wieder erlauben */
    justify-content: center;
    white-space: normal;    /* wieder Zeilen umbrechen */
  }

  .nav-links a {
    flex: 1 1 calc(50% - 0.6rem);  /* ✔ zwei Spalten */
    text-align: center;
  }
}

/* Hero – sehr minimal, zentriert */

.hero {
  margin-top: 2rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.0rem, 5vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.hero-subtitle {
  margin: 0 auto 1.2rem;
  max-width: 30rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.hero-meta-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* Buttons */

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.btn-main,
.btn-soft {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-main {
  background: linear-gradient(135deg, var(--accent-main), var(--accent-strong));
  color: #fff;
}

.btn-main:hover {
  filter: brightness(1.03);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-soft);
  color: var(--text-soft);
}

.btn-soft:hover {
  background: #ffffff;
}

/* Hero Photo – nur eine einfache Karte */

.hero-photo {
  margin: 0 auto;
  max-width: 320px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 149, 185, 0.25);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Kleine Notiz unter dem Bild */

.hero-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  margin-top: 2.4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}

/* Cards – simpler, weicher */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-large);
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(255, 149, 185, 0.24);
}

.card + .card {
  margin-top: 1rem;
}

.card-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* kleine Stichworte */

.tag-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #FFF1F7;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 149, 185, 0.25);
  padding: 1rem 1.4rem 1.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 0.5rem);   /* 2 Spalten auf Handy */
    text-align: center;
  }
}

/* --- Timer Card --- */

.timer-card {
  margin: 4.5rem auto 3rem;
  max-width: 340px;
  background: #FFEFF6;
  border: 1px solid rgba(255, 148, 184, 0.35);
  border-radius: 20px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(255, 148, 184, 0.15);
  animation: fadeIn 1.3s ease;
}

.timer-title {
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.timer-value {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.4;
  font-weight: 500;
  animation: pop 1s ease;
}

/* leichte Animationen */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0%   { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* -------------------------------
   Flip Envelope Cards
-------------------------------- */

.envelope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.envelope-wrapper {
  perspective: 1000px;
}

.envelope {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.15s ease;
  cursor: pointer;
}

.envelope.is-flipped {
  transform: rotateY(180deg);
}

/* Vorder- & Rückseite */

.envelope-front,
.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 148, 184, 0.25);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 14px rgba(255, 148, 184, 0.18);
}

.envelope-front {
  background: linear-gradient(145deg, #FFE6F0, #FFD4E5);
  font-family: "Playfair Display", serif;
  color: #B75B78;
  font-size: 1.2rem;
  gap: 0.4rem;
}

.envelope-number {
  font-size: 2rem;
  font-weight: 600;
}

.envelope-front small {
  font-size: 0.8rem;
  color: #8B6574;
}

.envelope-back {
  transform: rotateY(180deg);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* -------------------------------
   Date-Ideen – Checklisten-Style
-------------------------------- */

.date-intro {
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.date-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.date-input {
  flex: 1 1 180px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 148, 184, 0.5);
  background: #FFFDFE;
  font-size: 0.9rem;
  outline: none;
}

.date-input:focus {
  border-color: var(--accent-strong);
}

.date-add-btn,
.date-clear-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 148, 184, 0.5);
  background: #FFFFFF;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-soft);
}

.date-add-btn {
  background: linear-gradient(135deg, var(--accent-main), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}

.date-add-btn:hover {
  filter: brightness(1.03);
}

.date-clear-btn:hover {
  background: #FFF1F7;
}

.date-list {
  margin-top: 0.8rem;
}

.date-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 148, 184, 0.25);
  margin-bottom: 0.4rem;
}

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

.date-checkbox {
  width: 18px;
  height: 18px;
}

.date-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.date-text {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.date-text.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.date-delete-btn {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
}

.date-delete-btn:hover {
  color: var(--accent-strong);
}
