/* =========================================================================
   ifindi — Shared Design System
   Tokens, base styles, and components used across all templates.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --color-primary: #ef3f6e;
  --color-primary-hover: #d62a59;
  --color-primary-soft: #ffe5ec;
  --color-primary-softer: #fff0f4;
  --color-accent-gold: #ffb23f;
  --color-success: #22c55e;

  /* Surfaces */
  --color-bg: #fff8f4;
  --color-bg-alt: #fdf6f0;
  --color-surface: #ffffff;
  --color-surface-muted: #fbf3ed;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-subtle: #9ca3af;
  --color-text-on-primary: #ffffff;

  /* Borders */
  --color-border: #f1e3da;
  --color-border-strong: #e6d4c8;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(239, 63, 110, 0.08);
  --shadow-card-strong: 0 12px 40px rgba(239, 63, 110, 0.14);
  --shadow-soft: 0 4px 12px rgba(26, 26, 26, 0.06);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 24px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #fcfafb 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

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

.section {
  padding: 80px 0;
  position: relative;
}

.section--blush {
  background: var(--color-bg);
}

.section--white {
  background: var(--color-surface);
}

/* Patina wie im Hero — für den Weiß/Farbig-Wechsel der Startseiten-Sections */
.section--patina {
  background:
    radial-gradient(1100px 640px at 10% -12%, rgba(255, 218, 229, 0.45), transparent 60%),
    radial-gradient(920px 560px at 92% 4%, rgba(255, 226, 213, 0.4), transparent 62%),
    radial-gradient(780px 540px at 84% 98%, rgba(255, 208, 223, 0.35), transparent 65%),
    radial-gradient(640px 460px at 2% 90%, rgba(255, 232, 211, 0.45), transparent 62%),
    radial-gradient(680px 460px at 46% 34%, rgba(255, 255, 255, 0.85), transparent 72%),
    linear-gradient(163deg, #fffbf8 0%, #fdf4ef 46%, #fceeea 100%);
  overflow: hidden;
}

.section--patina::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  margin: 0;
}

body:not(.page-startseite) main > section { padding: 40px 0 80px; }
body:not(.page-startseite) main > section.chat { padding: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 6px 18px rgba(239, 63, 110, 0.32);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Site Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Header-Buttons: eckiger Radius laut Design, kompakter als Seiten-Buttons */
.site-header .btn {
  border-radius: var(--radius-md);
  padding: 12px 22px;
}

/* Startseite: Navi liegt transparent über dem Hero-Patina und bekommt erst
   beim Scrollen den weißen Hintergrund (Klasse via Scroll-Listener) */
.page-startseite .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-startseite .site-header.is-scrolled {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px rgba(190, 130, 130, 0.1);
}

/* Fixe Navi aus dem Fluss genommen — Hero gleicht die Headerhöhe aus */
.page-startseite .hero {
  min-height: 100vh;
  padding-top: 121px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text);
}

.brand__heart {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
}

.site-nav__link:hover {
  color: var(--color-text);
}

.site-nav__link--active {
  color: var(--color-primary);
}

.site-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  background-size: cover;
  background-position: center;
}

.avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__initial {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Marketing nav (logged out) ---------- */
.marketing-nav .site-nav__link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
}

/* ---------- Icon badge (used in features, "so funktioniert", etc) ---------- */
.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.icon-badge--step {
  position: relative;
  /* Doppelter Ring wie im Design: heller Halo außen, weißer Innenring */
  background: radial-gradient(circle at 38% 30%, #ffe9ee 0%, #fbd6de 82%);
  box-shadow:
    0 0 0 10px #fdeef2,
    inset 0 0 0 6px rgba(255, 255, 255, 0.65);
}

.icon-badge__step-num {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 63, 110, 0.35);
}

.icon-badge--lg {
  width: 84px;
  height: 84px;
}

.icon-badge--lg svg {
  width: 34px;
  height: 34px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border: 1px solid rgba(241, 227, 218, 0.6);
}

.card--soft {
  background: var(--color-surface-muted);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

/* ---------- Profile card (matching cards used across pages) ---------- */
.profile-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.profile-card__photo {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-primary-soft);
  background-size: cover;
  background-position: center;
}

.profile-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.profile-card__like {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

/* Unified ifindi dismiss (X) button — likes, matches, profiluebersicht */
.card-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card-dismiss:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(26, 26, 26, 0.18);
}

.card-dismiss:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-primary);
  color: #fff;
}

.profile-card__body {
  padding: 16px 18px 18px;
}

.profile-card__name {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
}

.profile-card__meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- Decorative ornaments (hearts/sparkles) ---------- */
.ornament {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  color: var(--color-primary-soft);
}

.ornament--heart-1 {
  top: 40px;
  left: 5%;
  width: 22px;
  color: var(--color-primary);
  opacity: 0.35;
}

.ornament--heart-2 {
  top: 80px;
  right: 6%;
  width: 18px;
  color: var(--color-primary);
  opacity: 0.3;
}

.ornament--sparkle {
  width: 18px;
  color: var(--color-accent-gold);
  opacity: 0.8;
}

/* Hand-drawn Doodles — nur im Startseiten-Hero verwendet */
.ornament--sketch-heart {
  top: 52px;
  left: 4%;
  width: 30px;
  transform: rotate(-14deg);
  opacity: 0.5;
  color: var(--color-primary);
}

.ornament--double-heart {
  top: 40px;
  left: 36%;
  width: 46px;
  transform: rotate(9deg);
  opacity: 0.55;
  color: var(--color-primary);
}

/* Im Hero überlagert der fixe transparente Header die Sektion —
   das Herz muss unter die Navi-Zeile rutschen */
.hero .ornament--double-heart {
  top: 96px;
}

.ornament--spark-1 {
  top: 56px;
  right: 6%;
  width: 20px;
  color: var(--color-accent-gold);
  opacity: 0.75;
}

.ornament--spark-2 {
  top: 92px;
  right: 3%;
  width: 30px;
  transform: rotate(14deg);
  opacity: 0.4;
  color: var(--color-primary);
}

.ornament--spark-3 {
  top: 152px;
  right: 8.5%;
  width: 13px;
  color: var(--color-accent-gold);
  opacity: 0.65;
}

.ornament--plane {
  top: 54%;
  left: 2.5%;
  width: 46px;
  transform: rotate(-8deg);
  opacity: 0.4;
  color: var(--color-primary);
}

.ornament--bubble {
  top: 52%;
  right: 2.5%;
  width: 44px;
  transform: rotate(6deg);
  opacity: 0.45;
  color: var(--color-primary);
}

.ornament--plant {
  bottom: 22px;
  left: 1.5%;
  width: 74px;
  opacity: 0.55;
  color: var(--color-primary);
}

.ornament--star {
  bottom: 70px;
  left: 12%;
  width: 22px;
  transform: rotate(-18deg);
  opacity: 0.4;
  color: var(--color-primary);
}

.ornament--swirl {
  bottom: 30px;
  right: 6.5%;
  width: 86px;
  opacity: 0.5;
  color: var(--color-primary);
}

.ornament--arrow {
  bottom: 52px;
  left: 52%;
  width: 56px;
  opacity: 0.85;
  color: #4a3f3d;
}

/* Handschriftliche Notiz am geschwungenen Pfeil */
.hero__note {
  position: absolute;
  left: 40%;
  bottom: 24px;
  width: 210px;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  color: #4a3f3d;
  transform: rotate(-5deg);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.site-footer__brand-col p {
  margin: 16px 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
}

.site-footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.site-footer__socials a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.site-footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.site-footer__newsletter h4 {
  font-size: 18px;
  margin: 0 0 8px;
}

.site-footer__newsletter p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--color-primary);
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Forms ---------- */
.input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 15px;
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(239, 63, 110, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.form-group label small {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
}

.form-group__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-group__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.form-group__forgot {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group__forgot:hover {
  text-decoration: underline;
}

.btn--full {
  width: 100%;
}

/* ---------- Auth card (Login) ---------- */
.auth-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-strong);
  border: 1px solid rgba(241, 227, 218, 0.6);
  padding: 48px 44px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__heart {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-card__eyebrow {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-card__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.auth-card__lead {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-card__alt {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-card__alt-link {
  color: var(--color-primary);
  font-weight: 600;
}

.auth-card__alt-link:hover {
  text-decoration: underline;
}

.form-group__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-group__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.form-group__forgot {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group__forgot:hover {
  text-decoration: underline;
}

.btn--full {
  width: 100%;
}

/* ---------- Auth card (Login) ---------- */
.auth-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-strong);
  border: 1px solid rgba(241, 227, 218, 0.6);
  padding: 48px 44px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__heart {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-card__eyebrow {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-card__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.auth-card__lead {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-card__alt {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-card__alt-link {
  color: var(--color-primary);
  font-weight: 600;
}

.auth-card__alt-link:hover {
  text-decoration: underline;
}

/* ---------- Register Page ---------- */
.register-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.register-form__error {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
}

.register-form__fieldset {
  border: none;
  margin: 0 0 28px;
  padding: 0;
}

.register-form__legend {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

.register-form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-subtle);
}

.register-form__field {
  margin-bottom: 16px;
}

.register-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.register-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.register-form__label span {
  color: var(--color-primary);
}

.register-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.register-form__submit {
  width: 100%;
  margin-top: 8px;
}

.register-form__login-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.register-form__login-link {
  color: var(--color-primary);
  font-weight: 600;
}

.register-form__login-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .register-card {
    padding: 24px 20px;
  }
  .register-form__row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================= */

/* ---------- Hero (Startseite Header) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 48px 0 88px;
  /* Patina: mehrere weiche Farbwolken (Rosé, Pfirsich, Creme) über einem
     diagonalen Grundverlauf statt einer statischen Fläche */
  background:
    radial-gradient(1100px 640px at 10% -12%, rgba(255, 218, 229, 0.45), transparent 60%),
    radial-gradient(920px 560px at 92% 4%, rgba(255, 226, 213, 0.4), transparent 62%),
    radial-gradient(780px 540px at 84% 98%, rgba(255, 208, 223, 0.35), transparent 65%),
    radial-gradient(640px 460px at 2% 90%, rgba(255, 232, 211, 0.45), transparent 62%),
    radial-gradient(680px 460px at 46% 34%, rgba(255, 255, 255, 0.85), transparent 72%),
    linear-gradient(163deg, #fffbf8 0%, #fdf4ef 46%, #fceeea 100%);
  overflow: hidden;
}

/* Feines Korn, damit der Verlauf wie eine Patina wirkt statt glatt */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    "copy visual"
    "actions visual";
  column-gap: 64px;
  align-items: center;
}

.hero__copy {
  grid-area: copy;
  align-self: end;
}

.hero__actions {
  grid-area: actions;
  align-self: start;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero__title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero__title em {
  color: var(--color-primary);
  font-style: normal;
}

.hero__lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Play-Icon im "Mehr erfahren"-Button */
.btn__play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Trust-Chips unter den CTAs */
.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.hero-chip svg {
  flex-shrink: 0;
}

.hero-chip--heart svg {
  color: var(--color-primary);
}

.hero-chip--check svg {
  color: var(--color-success);
}

.hero-chip--lock svg {
  color: var(--color-accent-gold);
}

/* Swipe-Karten-Fächer (Slider) */
.hero__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swipe-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.swipe-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-strong);
  overflow: hidden;
}

.swipe-card__photo {
  background-size: cover;
  background-position: center;
}

.swipe-card--main {
  position: relative;
  z-index: 2;
  width: 312px;
}

.swipe-card--main .swipe-card__photo {
  height: 290px;
}

.swipe-card--side {
  position: absolute;
  top: 36px;
  width: 236px;
  z-index: 1;
}

.swipe-card--side .swipe-card__photo {
  height: 230px;
}

.swipe-card--left {
  left: -4%;
  transform: rotate(-9deg);
}

.swipe-card--right {
  right: -8%;
  transform: rotate(9deg);
}

/* Rechte Karte steckt halb unter der Hauptkarte — der Textblock rückt nach
   rechts in den sichtbaren Streifen, nur die Begründung läuft (wie im Design)
   in voller Breite unter die Hauptkarte */
.swipe-card--right .swipe-card__body {
  margin-left: 108px;
}

.swipe-card--right .swipe-card__reason {
  margin-left: -108px;
}

.swipe-card--right .swipe-card__name {
  font-size: 18px;
  white-space: nowrap;
}

.swipe-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  z-index: 3;
}

.swipe-card__badge svg {
  color: var(--color-accent-gold);
}

.swipe-card__body {
  padding: 16px 18px 18px;
}

.swipe-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}

.swipe-card__name svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.swipe-card__meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 2px;
}

.swipe-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.swipe-chip {
  background: var(--color-surface-muted);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.swipe-card__reason {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--color-primary);
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 16px;
}

.swipe-card__reason svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.swipe-card__actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-bottom: 4px;
}

.swipe-action {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swipe-action--pass {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
}

.swipe-action--like {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 6px 18px rgba(239, 63, 110, 0.35);
}

.swipe-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.swipe-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}

.swipe-dots .is-active {
  width: 20px;
  background: var(--color-primary);
}

/* ---------- Stoerer / trust strip ---------- */
.trust-strip {
  background: var(--color-surface);
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.trust-strip__inner > .trust-item {
  flex-shrink: 0;
}

.trust-strip .container {
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item__icon svg {
  width: 14px;
  height: 14px;
}

.trust-item__icon--flag {
  background: transparent;
  font-size: 24px;
}

.trust-item__title {
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 2px;
  white-space: nowrap;
}

.trust-item__sub {
  color: var(--color-text-muted);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.trust-avatars__row {
  display: flex;
}

.trust-avatars__row .avatar,
.trust-avatars__count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  background-size: cover;
  background-position: center;
}

.trust-avatars__row .avatar:first-child {
  margin-left: 0;
}

.trust-avatars__count {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-rating__line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-rating__stars {
  color: var(--color-accent-gold);
  letter-spacing: -1px;
  font-size: 13px;
}

.trust-rating__value {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.trust-rating__sub {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- 3-step process (So funktioniert / Registrierung) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.steps::before {
  /* dashed connector arc */
  content: "";
  position: absolute;
  top: 30px;
  left: 16%;
  right: 16%;
  height: 60px;
  border-top: 2px dashed var(--color-primary-soft);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* Startseiten-Variante: einzelne geschwungene Pfeile statt Bogen */
.steps--arrows::before {
  display: none;
}

.steps__arrow {
  position: absolute;
  top: 20px;
  width: 150px;
  color: var(--color-primary);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.steps__arrow--1 {
  left: 20.5%;
}

.steps__arrow--2 {
  left: 56.5%;
  opacity: 0.7;
}

/* Doodles in der "So funktioniert"-Section */
.ornament--camera {
  top: 44px;
  right: 8%;
  width: 54px;
  opacity: 0.35;
  color: var(--color-primary);
  transform: rotate(6deg);
}

.ornament--camera-spark {
  top: 32px;
  right: 4.5%;
  width: 20px;
  color: var(--color-primary);
  opacity: 0.5;
}

.ornament--camera-swirl {
  top: 104px;
  right: 5.5%;
  width: 74px;
  color: var(--color-primary);
  opacity: 0.28;
}

.ornament--steps-heart {
  top: 150px;
  left: 4%;
  width: 30px;
  color: var(--color-primary);
  opacity: 0.35;
  transform: rotate(-10deg);
}

.ornament--steps-spark {
  bottom: 70px;
  left: 7%;
  width: 18px;
  color: var(--color-accent-gold);
  opacity: 0.6;
}

.ornament--steps-heart-2 {
  bottom: 52px;
  right: 6%;
  width: 22px;
  color: var(--color-primary);
  opacity: 0.3;
  transform: rotate(12deg);
}

/* ---------- Science/match block ---------- */
.science {
  margin-top: 72px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.science h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.science p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.science__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.science__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.science__list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
}

.science__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.science__phone {
  background: linear-gradient(180deg, #ffe5ec 0%, #fff 100%);
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 220px;
}

.science__percent {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.science__label {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.science__couple {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-primary-soft);
  background-size: cover;
  background-position: center;
}

/* Startseiten-Variante: eigene Hintergrund-Bubble mit schematischem iPhone */
.science--bubble {
  margin-top: 0;
  background:
    radial-gradient(560px 380px at 88% 14%, rgba(255, 213, 224, 0.5), transparent 68%),
    radial-gradient(520px 360px at 4% 90%, rgba(255, 229, 214, 0.55), transparent 62%),
    linear-gradient(150deg, #fdeff2 0%, #fcebe7 100%);
  border: 0;
  box-shadow: none;
  border-radius: 44px;
  padding: 64px 72px 0;
  overflow: hidden;
  align-items: center;
}

.science--bubble h3 {
  font-size: 26px;
}

.science--bubble .science__copy {
  padding-bottom: 64px;
}

.science--bubble .science__list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.science--bubble .science__list li {
  font-size: 15px;
  font-weight: 600;
}

.science--bubble .science__visual {
  align-self: end;
}

/* Weicher Kreis-Blob hinter dem Phone */
.science__blob {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(251, 210, 221, 0.9) 0%, rgba(248, 199, 211, 0.75) 100%);
  pointer-events: none;
}

/* Schematisches iPhone: weißer Rahmen, Screen mit Notch, endet an der Bubble-Unterkante */
.science--bubble .science__phone {
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 258px;
}

.science__screen {
  position: relative;
  background: linear-gradient(180deg, #fffafb 0%, #ffffff 100%);
  border: 10px solid #ffffff;
  border-bottom: 0;
  border-radius: 42px 42px 0 0;
  padding: 48px 16px 20px;
  box-shadow: var(--shadow-card-strong);
}

.science__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: #f1e4e8;
}

/* Kamera-Punkt rechts neben der Notch */
.science__notch::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3ccd3;
}

/* Kreisförmiger Progress-Ring um die Kompatibilitätsrate */
.science__ring {
  width: 170px;
  height: 170px;
  margin: 10px auto 4px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0 89%, #f7e1e7 89% 100%);
  padding: 11px;
}

.science__ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 63, 110, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.science--bubble .science__percent {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.science--bubble .science__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 6px;
}

.science--bubble .science__couple {
  border-radius: 16px;
}

.science__doodle {
  position: absolute;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.science__doodle--spark {
  top: 2%;
  right: 4%;
  width: 30px;
  opacity: 0.85;
}

.science__doodle--heart-fill {
  top: 20%;
  right: -2%;
  width: 34px;
  opacity: 0.9;
  transform: rotate(-8deg);
}

.science__doodle--heart-line {
  top: 42%;
  right: -7%;
  width: 30px;
  opacity: 0.8;
  transform: rotate(14deg);
}

.science__doodle--spark-small {
  bottom: 14%;
  left: -4%;
  width: 18px;
  color: var(--color-accent-gold);
  opacity: 0.7;
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.testimonial__photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-soft);
}

.testimonial__body {
  padding: 20px;
  text-align: center;
}

.testimonial__quote {
  font-size: 15px;
  color: var(--color-text);
  margin: 0 0 14px;
  line-height: 1.55;
}

.testimonial__meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Hilfe & FAQ ---------- */
.faq-groups {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 56px;
}

.faq-group__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item[open] {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__chevron {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.faq-item__answer a {
  color: var(--color-primary);
  font-weight: 600;
}

.faq-item__answer strong {
  color: var(--color-text);
}

.faq-cta {
  margin-top: 72px;
  text-align: center;
}

.faq-cta__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-cta__text {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ---------- Aufsteigende Herzen (Login, wie im Registrierungs-Wizard) ---------- */
.login-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Login-Karte über die Herzen heben — Herzen steigen dahinter auf */
#login .container {
  position: relative;
  z-index: 1;
}

.login-hearts__heart {
  position: absolute;
  bottom: -48px;
  color: var(--color-primary);
  opacity: 0;
  will-change: transform, opacity;
  animation-name: hearts-rise;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.login-hearts__heart svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes hearts-rise {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: var(--heart-opacity, 0.5);
  }
  88% {
    opacity: var(--heart-opacity, 0.5);
  }
  100% {
    transform: translateY(-112vh) rotate(20deg) scale(1.1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hearts {
    display: none;
  }
}

/* ---------- Ratgeber ---------- */
.guide-articles {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
}

.guide-article__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.guide-article__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.guide-article > p {
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.guide-tips {
  list-style: none;
  display: grid;
  gap: 12px;
}

.guide-tips li {
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
}

.guide-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.guide-tips a,
.legal-content a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Rechtsseiten (Impressum & Co.) ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.testimonial__name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
}

.testimonials__cta {
  text-align: center;
  margin-top: 32px;
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature__desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cta-banner {
  margin-top: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.cta-banner__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
}

.cta-banner__sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* Klassische Paket-Wahl: Seiten-Pakete zentriert, Premium+ ragt oben
     und unten heraus */
  align-items: center;
}

.plan {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan--featured {
  background: var(--color-primary-softer);
  border: 2px solid var(--color-primary);
  padding: 44px 32px;
  transform: scale(1.05);
  box-shadow: 0 18px 50px rgba(239, 63, 110, 0.18);
  z-index: 1;
}

.plan__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.plan__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

.plan__price {
  font-size: 40px;
  font-weight: 800;
  margin: 0;
  text-align: center;
  line-height: 1;
}

.plan__price small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.plan__features li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- Suggestions envelope (Profilübersicht) ---------- */
.suggestions {
  position: relative;
  padding: 80px 0;
  background: var(--color-bg);
  overflow: hidden;
}

.suggestions__stage {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 220px;
}

.suggestions__cards {
  position: relative;
  height: 260px;
  width: 360px;
  margin: 0 auto;
  z-index: 2;
}
.suggestions__cards .profile-card {
  position: absolute;
  width: 150px;
  height: 215px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: block;
}
.suggestions__cards .profile-card .profile-card__photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.suggestions__cards .profile-card:nth-child(1) {
  left: 10px;
  top: 28px;
  transform: rotate(-8deg);
  z-index: 1;
}
.suggestions__cards .profile-card:nth-child(2) {
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  top: 0;
  z-index: 3;
}
.suggestions__cards .profile-card:nth-child(3) {
  right: 10px;
  top: 28px;
  transform: rotate(8deg);
  z-index: 2;
}

.suggestions__envelope {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, #ffb4c8 0%, #ff6b94 100%);
  border-radius: 16px 16px 24px 24px;
  z-index: 1;
}

.suggestions__envelope::before {
  /* envelope flap */
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, #ff8eb1 0%, #ff6b94 100%);
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 0, 0 0);
}

.suggestions__envelope::after {
  /* heart seal */
  content: "♥";
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.suggestions__new-badge {
  position: absolute;
  top: -10px;
  left: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  z-index: 4;
}

.suggestions__cta {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.suggestions__chip {
  position: absolute;
  right: -32px;
  top: 30%;
  background: var(--color-surface);
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  font-weight: 700;
  border: 1px solid var(--color-border);
  z-index: 5;
}

.suggestions__chip strong {
  color: var(--color-primary);
  font-size: 22px;
  display: block;
}

.suggestions__chip small {
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---------- Discover (Profil Entdecken) ---------- */
.discover {
  padding: 40px 0 80px;
  background: var(--color-bg);
}

.discover__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.discover__header {
  margin-bottom: 24px;
}

.discover__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.discover__sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0;
}

.discover__cards-wrap {
  position: relative;
}

.discover__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.discover__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid var(--color-border);
}

.discover__nav--prev {
  left: -20px;
}

.discover__nav--next {
  right: -20px;
}

.discover__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.discover__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.discover__dots span.is-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

.discover__footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.sidebar__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar__hint {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.stats-list li span:first-child {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stats-list li span:last-child {
  font-weight: 700;
}

/* ---------- Profil-Slider (Heute für dich) ---------- */
.slider {
  position: relative;
  padding: 32px 0 64px;
  background: var(--color-bg);
  overflow: hidden;
}

.slider__header {
  text-align: center;
  margin-bottom: 32px;
}

.slider__eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.slider__title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
  display: inline-block;
  position: relative;
}

.slider__title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.slider__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 16px;
}

.slider__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slider__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: end;
}

.slider__stage .profile-card:nth-child(odd) {
  opacity: 0.92;
}

.slider__stage .profile-card:nth-child(3) {
  transform: translateY(-16px) scale(1.04);
  box-shadow: var(--shadow-card-strong);
  z-index: 2;
}

.slider__stage .profile-card:nth-child(1),
.slider__stage .profile-card:nth-child(5) {
  transform: translateY(12px) scale(0.94);
  opacity: 0.75;
}

.slider__nav {
  position: absolute;
  top: 45%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  z-index: 3;
}

.slider__nav--prev {
  left: 0;
}

.slider__nav--next {
  right: 0;
}

.slider__values {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value {
  text-align: left;
}

.value__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.value__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.value__desc {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Profile detail (Partnerprofil) ---------- */
.profile-detail {
  padding: 40px 0 80px;
  background: var(--color-bg);
}

.profile-detail__layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
}

.profile-detail__photo-wrap {
  position: relative;
}

.profile-detail__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-soft);
  cursor: zoom-in;
}

.profile-detail__photo-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.profile-detail__photo-nav--prev {
  left: 12px;
}

.profile-detail__photo-nav--next {
  right: 12px;
}

.profile-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.profile-detail__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-soft);
  border: 2px solid transparent;
}

.profile-detail__thumb.is-active {
  border-color: var(--color-primary);
}

.profile-detail__name {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-detail__status {
  font-size: 14px;
  color: var(--color-success);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-detail__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

.profile-detail__role {
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.profile-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text);
}

.profile-detail h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.profile-detail__section {
  margin-bottom: 36px;
}

.profile-detail__section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--color-text);
}

/* Steckbrief: EINE weiche Karte mit übersichtlichen Label/Wert-Zeilen —
   die Scanbarkeit der alten Tabelle, aber freundlich verpackt. */
.profile-facts {
  margin: 0 0 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border, #f1e3da);
  border-radius: var(--radius-lg);
  padding: 6px 18px;
  box-shadow: var(--shadow-card);
}
.profile-facts__item {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
}
.profile-facts__item + .profile-facts__item {
  border-top: 1px solid var(--color-border, #f1e3da);
}
.profile-facts__item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.profile-facts__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}
.profile-facts__item dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  overflow-wrap: break-word;
}

/* Freitext-Antworten als weiche Karten: Frage betont, Antwort mit Luft. */
.profile-freetext {
  background: var(--color-surface);
  border: 1px solid var(--color-border, #f1e3da);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.profile-freetext + .profile-freetext {
  margin-top: 12px;
}
.profile-freetext__q {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-hover);
}
.profile-freetext__a {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* "Über mich" als weiche Karte mit Herz-Akzent — passend zu Steckbrief- und
   Freitext-Karten. */
.profile-detail__bio {
  position: relative;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border, #f1e3da);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px 16px 46px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.profile-detail__bio::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 19px;
  width: 17px;
  height: 17px;
  background-color: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-softer);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
}

/* Auf dem Patina-Hintergrund der Profilseite brauchen die Chips mehr
   Kontrast: weißer Grund, sichtbare Kante, kräftiger Text. */
.profile-detail .tag {
  background: var(--color-surface);
  border: 1px solid rgba(239, 63, 110, 0.35);
  color: var(--color-primary-hover);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.profile-detail__actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.action-btn--primary {
  background-color: transparent;
  color: var(--color-primary, #e5445a);
  border: 2px solid var(--color-primary, #e5445a);
}

.action-btn.action-btn--liked {
  background-color: var(--color-primary, #e5445a);
  color: #fff;
  border-color: var(--color-primary, #e5445a);
}

.action-btn--gold {
  color: var(--color-accent-gold);
}

/* ---------- Profile edit (Profil bearbeiten) ---------- */
.profile-edit {
  padding: 40px 0 80px;
  background: var(--color-bg);
}

.profile-edit__container {
  max-width: 720px;
  margin: 0 auto;
}

.profile-edit__header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-edit__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.profile-edit__sub {
  color: var(--color-text-muted);
  font-size: 16px;
  margin: 0;
}

.profile-edit__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin: 25px 0;
}

.settings__consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.settings__consent-label {
  flex: 1;
}

.settings__consent-status {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.settings-flash {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  max-width: 440px;
  width: 100%;
}

.modal__title {
  font-size: 22px;
  margin: 0 0 12px;
}

.modal__body {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.profile-edit__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-edit__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-edit__section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.profile-edit__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-edit__grid .form-group--full {
  grid-column: 1 / -1;
}

.profile-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ---------- Photo grid (profile photos) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-soft);
  cursor: grab;
  margin: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.photo-tile:active {
  cursor: grabbing;
}

.photo-tile:hover {
  box-shadow: var(--shadow-card);
}

.photo-tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.photo-tile.is-dragging {
  /* „Aufgehobene" Kachel: leicht vergrößert + angehoben, über den anderen. */
  transform: scale(1.06);
  box-shadow: var(--shadow-card-strong);
  opacity: 0.96;
  z-index: 5;
  cursor: grabbing;
}
@media (prefers-reduced-motion: reduce) {
  .photo-tile {
    transition: none !important;
  }
}

.photo-tile.is-drop-target {
  outline: 2px dashed var(--color-primary);
  outline-offset: -2px;
}

.photo-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Bild nicht als eigenes Drag-Objekt / Textauswahl aufgreifen (iPad-Reorder). */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Touch-Reorder: keine Textauswahl auf den Kacheln; der Sort-Handle blockt
   Scroll/Selektion, damit pointerdown den Zug startet statt zu markieren. */
.photo-tile {
  user-select: none;
  -webkit-user-select: none;
}
.photo-tile__handle {
  touch-action: none;
}

.photo-tile__badge--primary {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.photo-tile__handle {
  position: absolute;
  top: 8px;
  right: 40px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.photo-tile:hover .photo-tile__handle,
.photo-tile:focus-within .photo-tile__handle {
  opacity: 1;
}

.photo-tile__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.photo-tile:hover .photo-tile__delete,
.photo-tile:focus-within .photo-tile__delete {
  opacity: 1;
}

.photo-tile__delete:hover {
  color: var(--color-primary-hover);
}

@media (hover: none) {
  .photo-tile__handle,
  .photo-tile__delete {
    opacity: 1;
  }
}

.photo-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  /* Purely decorative status layers (uploading spinner / pending gradient / …).
     Without this they cover the whole tile and swallow the drag that would
     otherwise start on the <img> — so a just-uploaded (pending) tile could not
     be reordered until a reload, while already-moderated tiles could. */
  pointer-events: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.photo-tile[data-status="uploading"] .photo-tile__overlay--uploading {
  display: flex;
  background: rgba(255, 255, 255, 0.7);
}

.photo-tile[data-status="pending"] .photo-tile__overlay--pending {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}

.photo-tile[data-status="rejected"] .photo-tile__image {
  opacity: 0.6;
}

.photo-tile[data-status="rejected"] .photo-tile__overlay--rejected {
  display: flex;
  background: rgba(220, 38, 38, 0.14);
}

.photo-tile[data-status="error"] .photo-tile__overlay--error {
  display: flex;
  padding: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
}

.photo-tile__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--color-primary-softer);
  border-top-color: var(--color-primary);
  animation: photo-spin 0.9s linear infinite;
}

@keyframes photo-spin {
  to {
    transform: rotate(360deg);
  }
}

.photo-tile__status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.photo-tile__status-chip--danger {
  background: #fef2f2;
  color: #b91c1c;
}

.photo-tile__error-msg {
  font-size: 11px;
  color: #b91c1c;
  margin: 0;
  line-height: 1.3;
}

.photo-grid__add {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-border-strong);
  background: var(--color-surface-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.photo-grid__add:hover,
.photo-grid__add:focus-within {
  border-color: var(--color-primary);
  background: var(--color-primary-softer);
  color: var(--color-primary-hover);
}

.photo-grid__add-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.photo-grid[data-count="10"] .photo-grid__add {
  display: none;
}

.photo-grid__caption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

.photo-grid__caption strong {
  color: var(--color-text);
  font-weight: 700;
}

@media (max-width: 1023px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-tile__spinner {
    animation: none;
  }
}

/* ---------- Chat ---------- */
.chat {
  padding: 24px 0 48px;
  background: var(--color-bg);
}

.chat__shell {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--color-border);
}

.chat__sidebar {
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.chat__sidebar-header {
  padding: 25.5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.chat__sidebar-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.chat__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.chat-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
  cursor: pointer;
}

.chat-item:hover,
.chat-item.is-active {
  background: var(--color-primary-softer);
}

.chat-item .avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-item__main {
  flex: 1;
  min-width: 0;
}

.chat-item__name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat-item__time {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-muted);
}

.chat-item__preview {
  color: var(--color-text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat__sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.chat__main {
  display: flex;
  flex-direction: column;
}

.chat__header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat__user h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.chat__user small {
  color: var(--color-success);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat__user small::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.chat__header-actions {
  display: flex;
  gap: 14px;
  color: var(--color-text-muted);
}

.chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.msg__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.msg__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.msg__time {
  font-size: 11px;
  color: var(--color-text-subtle);
}

.msg--in {
  align-self: flex-start;
}

.msg--in .msg__bubble {
  background: var(--color-surface-muted);
  border-bottom-left-radius: 4px;
  color: var(--color-text);
}

.msg--in .msg__time {
  text-align: left;
}

.msg__report-btn {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--color-text-subtle);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.msg--in:hover .msg__report-btn,
.msg__report-btn:focus-visible {
  opacity: 1;
}

.msg--out {
  align-self: flex-end;
}

.msg--out .msg__bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg--out .msg__time {
  text-align: right;
}

.msg--out .msg__meta {
  justify-content: flex-end;
}

.chat__nudge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 24px 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}

.chat__nudge-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.chat__nudge-label {
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-primary);
}

.chat__nudge-text {
  flex: 1;
}

.chat__composer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat__composer--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.chat__contact-ended {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--color-text-muted, #888);
  background: var(--color-surface-muted, #f5f5f5);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.chat__composer input {
  flex: 1;
  border: 0;
  background: var(--color-surface-muted);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  outline: none;
}

.chat__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- About stats ---------- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.about-stat {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.about-stat__number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.about-stat__label {
  display: block;
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */

/* Tablet */
@media (max-width: 980px) {
  /* Gestapelte Reihenfolge: Aufmacher → Slider → CTAs */
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    gap: 36px 0;
  }

  .hero__copy,
  .hero__actions {
    align-self: auto;
  }

  .hero__lead {
    margin-bottom: 0;
  }

  .hero__title {
    font-size: 40px;
  }

  .science {
    grid-template-columns: 1fr;
  }

  .science--bubble {
    padding: 40px 36px 0;
  }

  .science--bubble .science__copy {
    padding-bottom: 40px;
  }

  .science--bubble .science__visual {
    justify-self: center;
    width: 100%;
    max-width: 340px;
  }

  .features-grid,
  .testimonials__grid,
  .pricing-grid,
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .discover__layout {
    grid-template-columns: 1fr;
  }

  .profile-detail__layout {
    grid-template-columns: 1fr;
  }

  .profile-edit__card {
    padding: 24px;
  }

  .slider__stage {
    grid-template-columns: repeat(3, 1fr);
  }

  .slider__stage .profile-card:nth-child(1),
  .slider__stage .profile-card:nth-child(5) {
    display: none;
  }

  .slider__values {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__inner {
    justify-content: flex-start;
    gap: 20px;
  }

  .plan--featured {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 40px 0 64px;
  }

  /* Doodles auf kleinen Screens ausblenden — nur zwei Akzente bleiben */
  .hero .ornament,
  .hero__note {
    display: none;
  }

  .hero .ornament--sketch-heart,
  .hero .ornament--spark-1 {
    display: block;
  }

  .hero .ornament--sketch-heart {
    top: 24px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero__badges {
    flex-wrap: wrap;
  }

  .swipe-card--side {
    display: none;
  }

  .swipe-stack {
    max-width: 320px;
  }

  .section-title,
  .slider__title,
  .discover__title {
    font-size: 24px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .steps__arrow {
    display: none;
  }

  /* Section-Doodles auf kleinen Screens ausblenden */
  .section .ornament {
    display: none;
  }

  .science--bubble {
    border-radius: 28px;
    padding: 32px 24px 0;
  }

  .science--bubble .science__copy {
    padding-bottom: 32px;
  }

  .science__ring {
    width: 150px;
    height: 150px;
  }

  .features-grid,
  .testimonials__grid,
  .pricing-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .site-header__cta {
    margin-left: auto;
  }

  .site-header__cta .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .site-nav__link {
    font-size: 13px;
    flex-shrink: 0;
  }

  .site-nav__link--active::after {
    bottom: -8px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .chat__shell {
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
  }

  .chat__sidebar {
    display: none;
  }

  .chat__messages,
  .chat__header,
  .chat__composer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .msg {
    max-width: 80%;
  }

  .discover__cards {
    grid-template-columns: 1fr;
  }

  .suggestions__chip {
    width: 100px;
    height: 100px;
    right: 0;
  }

  .suggestions__chip strong {
    font-size: 18px;
  }

  .slider__stage {
    grid-template-columns: 1fr;
  }

  .slider__stage .profile-card:nth-child(1),
  .slider__stage .profile-card:nth-child(2),
  .slider__stage .profile-card:nth-child(4),
  .slider__stage .profile-card:nth-child(5) {
    display: none;
  }

  .slider__values {
    grid-template-columns: 1fr;
  }

  .profile-detail__name {
    font-size: 28px;
  }

  .profile-edit__title {
    font-size: 26px;
  }

  .profile-edit__card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .profile-edit__grid {
    grid-template-columns: 1fr;
  }

  .profile-edit__actions {
    flex-direction: column-reverse;
  }

  .profile-edit__actions .btn {
    width: 100%;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .trust-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-card {
    padding: 32px 22px;
    border-radius: var(--radius-lg);
  }

  .auth-card__title {
    font-size: 26px;
  }

  .auth-card__heart {
    width: 48px;
    height: 48px;
  }

  .auth-card__header {
    margin-bottom: 24px;
  }
}

/* Upsell banner — shown for free-tier users above the app nav */
.upsell-banner {
  background: #f5a623;
  text-align: center;
  padding: 0.5rem 1rem;
}
.upsell-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Full-width premium upsell banner — injected below header on app pages for non-premium users */
.premium-banner-full {
  background: var(--color-primary);
  text-align: center;
  padding: 0.5rem 1rem;
  width: 100%;
}
.premium-banner-full a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Avatar dropdown ---------- */
.avatar-dropdown {
  position: relative;
}

.avatar-dropdown button.avatar {
  cursor: pointer;
  border: none;
  padding: 0;
}

.avatar-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  z-index: 200;
  overflow: hidden;
}

.avatar-dropdown__menu--open {
  display: block;
}

.avatar-dropdown__item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.avatar-dropdown__item:hover {
  background: var(--color-primary-softer);
  color: var(--color-primary);
}

.avatar-dropdown__item--logout {
  color: var(--color-text-muted);
}

.avatar-dropdown__item--logout:hover {
  background: #fff5f5;
  color: #dc2626;
}

.avatar-dropdown__divider {
  height: 1px;
  background: var(--color-border, #e5e7eb);
  margin: 4px 0;
}

.avatar-dropdown form {
  margin: 0;
  padding: 0;
}

/* ---------- Entdecken redesign (Heute für dich ausgewählt) ---------- */
.completion-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--color-primary-softer, #fff0f4);
  border: 1px solid var(--color-primary-soft, #ffe5ec);
  border-radius: 10px;
}
.completion-banner__text { flex: 1; font-size: 0.95rem; }
.completion-banner__dismiss {
  border: none; background: none; font-size: 1.2rem; cursor: pointer;
  color: var(--color-text-muted, #6b7280); line-height: 1; padding: 4px;
}

.entdecken {
  position: relative;
  padding: 48px 0 72px;
  background:
    radial-gradient(120% 80% at 50% -20%, var(--color-primary-softer) 0%, transparent 45%),
    var(--color-bg);
  overflow: hidden;
}

/* Decorative heart confetti scattered along the side gutters (design fidelity). */
.entdecken::before,
.entdecken::after {
  content: "";
  position: absolute;
  top: 60px;
  bottom: 60px;
  width: 90px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef3f6e' opacity='0.32'><path d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef3f6e' opacity='0.22'><path d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef3f6e' opacity='0.28'><path d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef3f6e' opacity='0.18'><path d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef3f6e' opacity='0.24'><path d='M12 21s-7-4.35-9.33-9A5.67 5.67 0 0 1 12 6a5.67 5.67 0 0 1 9.33 6C19 16.65 12 21 12 21z'/></svg>");
  background-size: 18px 18px, 12px 12px, 22px 22px, 14px 14px, 16px 16px;
  z-index: 0;
}

.entdecken::before {
  left: 12px;
  background-position:
    20px 4%,
    62px 18%,
    8px 38%,
    48px 58%,
    24px 82%;
}

.entdecken::after {
  right: 12px;
  background-position:
    50px 6%,
    14px 22%,
    62px 44%,
    20px 64%,
    48px 86%;
}

.entdecken .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .entdecken::before,
  .entdecken::after {
    display: none;
  }
}

.entdecken__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 8px;
}

.entdecken__eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.entdecken__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.entdecken__title-accent {
  position: relative;
  white-space: nowrap;
}

.entdecken__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.85;
}

.entdecken__sub {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 22px;
}

.entdecken__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.entdecken__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.entdecken__chip svg {
  color: var(--color-primary);
}

/* Fan stage */
.entdecken__stage {
  position: relative;
  margin: 36px auto 0;
  max-width: 1100px;
  padding: 0 16px;
}

/* Leerzustand: keine echten Vorschläge (ersetzt den früheren Demo-Fallback). */
.entdecken__empty {
  max-width: 460px;
  margin: 24px auto 8px;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
}
.entdecken__empty-icon {
  color: var(--color-primary);
  margin-bottom: 12px;
}
.entdecken__empty-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--color-text);
}
.entdecken__empty-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.entdecken__fan {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  min-height: 420px;
  padding-top: 28px;
}

.fan-card {
  position: relative;
  flex: 0 0 auto;
  width: 178px;
  margin: 0 -14px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fan-card--featured {
  width: 286px;
  margin: 0 8px;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-14px);
}

.fan-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-primary-soft);
}

.fan-card--featured .fan-card__media {
  aspect-ratio: 4 / 3;
}

.fan-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-soft);
}

.fan-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.fan-card__badge--top {
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(239, 63, 110, 0.4);
}

.fan-card__badge--new {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-accent-gold);
  font-size: 9px;
}

.fan-card__badge--new svg {
  color: var(--color-accent-gold);
}

.fan-card__heart {
  position: absolute;
  right: 12px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* Gefüllter Primär-Kreis mit weißem Herz — wie der Like-Button der Profilseite. */
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-primary);
  z-index: 3;
}

.fan-card--featured .fan-card__heart {
  width: 44px;
  height: 44px;
}

.fan-card__body {
  padding: 18px 14px 16px;
}

.fan-card--featured .fan-card__body {
  padding: 22px 20px 20px;
}

.fan-card__name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
}

.fan-card--featured .fan-card__name {
  font-size: 20px;
}

.fan-card__verified {
  color: var(--color-primary);
  flex: 0 0 auto;
}

.fan-card__role {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.fan-card__city {
  font-size: 13px;
  color: var(--color-text-subtle);
  margin: 0 0 10px;
}

.fan-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fan-card__tag {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.fan-card__reason {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.fan-card__reason-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

.fan-card__reason-title svg {
  color: var(--color-primary);
}

.fan-card__reason-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.fan-card__more {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.fan-card__more:hover {
  text-decoration: underline;
}

/* Hand-drawn notes */
.entdecken__note {
  position: absolute;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 22px;
  line-height: 1.15;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.entdecken__note-arrow {
  display: block;
}

.entdecken__note--top {
  top: -6px;
  left: 8px;
  text-align: left;
}

.entdecken__note--top .entdecken__note-arrow {
  margin-top: 2px;
}

.entdecken__note--bottom {
  bottom: -40px;
  right: 10%;
  text-align: right;
}

.entdecken__note--bottom .entdecken__note-arrow {
  margin: 0 0 2px auto;
  transform: scaleX(-1);
}

/* CTA + dots */
.entdecken__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
}

.entdecken__dots {
  display: flex;
  gap: 8px;
}

.entdecken__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.entdecken__dots span.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* Feature row */
.entdecken__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.entdecken__feature {
  text-align: left;
}

.entdecken__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 14px;
}

.entdecken__feature-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.entdecken__feature-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .entdecken__features {
    grid-template-columns: repeat(2, 1fr);
  }
  .entdecken__note {
    display: none;
  }
}

@media (max-width: 860px) {
  .entdecken__fan {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: 0;
    padding-top: 8px;
  }
  .fan-card,
  .fan-card--featured {
    width: 100%;
    max-width: 340px;
    margin: 0;
    transform: none !important;
  }
  .fan-card--featured {
    order: -1;
  }
  .fan-card__media {
    aspect-ratio: 4 / 3;
  }
  .fan-card__heart {
    bottom: -18px;
  }
}

@media (max-width: 560px) {
  .entdecken__features {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* --- Phase 5 TP1: Domänen-Badges + Erklärseite --------------------------- */
.fan-card__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.domain-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(239, 63, 110, 0.10);
  color: var(--color-primary);
}
.domain-chip--strong {
  background: rgba(239, 63, 110, 0.22);
}
.fan-card__warum {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

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

.erklaerung {
  padding: 32px 0 64px;
}
.erklaerung__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
}
.erklaerung__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.erklaerung__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.erklaerung__title {
  font-size: 24px;
  margin: 0;
}
.erklaerung__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.erklaerung__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.erklaerung__label {
  font-size: 14px;
  font-weight: 600;
}
.erklaerung__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
  overflow: hidden;
}
.erklaerung__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(239, 63, 110, 0.35);
}
.erklaerung__bar-fill--strong { background: var(--color-primary); }
.erklaerung__bar-fill--solid { background: rgba(239, 63, 110, 0.6); }
.erklaerung__sentence {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}
.erklaerung__note,
.erklaerung__empty {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

/* ---------- App-Seiten: Patina-Hintergrund wie im Hero der Startseite ---------- */
.entdecken,
.likes,
.matches,
.chat,
.profile-edit,
.profile-detail,
.settings {
  position: relative;
  background:
    radial-gradient(1100px 640px at 10% -12%, rgba(255, 218, 229, 0.45), transparent 60%),
    radial-gradient(920px 560px at 92% 4%, rgba(255, 226, 213, 0.4), transparent 62%),
    radial-gradient(780px 540px at 84% 98%, rgba(255, 208, 223, 0.35), transparent 65%),
    radial-gradient(640px 460px at 2% 90%, rgba(255, 232, 211, 0.45), transparent 62%),
    radial-gradient(680px 460px at 46% 34%, rgba(255, 255, 255, 0.85), transparent 72%),
    linear-gradient(163deg, #fffbf8 0%, #fdf4ef 46%, #fceeea 100%);
}

/* Kurze Seiten (z. B. leere Likes-Liste): Patina bis zum Footer durchziehen */
.likes,
.matches,
.settings {
  min-height: calc(100vh - 73px);
  padding: 48px 0 72px;
}

/* ---------- Profil-Detail/-Vorschau: verspielter Look ---------- */
.profile-detail {
  overflow: hidden;
}

.profile-detail .container {
  position: relative;
  z-index: 1;
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 10px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--color-text-muted);
}

.preview-banner strong {
  color: var(--color-primary);
}

.preview-banner__icon {
  display: inline-flex;
  color: var(--color-primary);
}

/* Fotos als Polaroid: weißer Rahmen, leichte Drehung, Thumbs abwechselnd gekippt */
.profile-detail__photo-wrap {
  background: var(--color-surface);
  padding: 12px 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-strong);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}

.profile-detail__photo-wrap:hover {
  transform: rotate(0deg);
}

.profile-detail__thumbs {
  margin-top: 20px;
}

.profile-detail__thumb {
  background-clip: padding-box;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
  transition: transform 0.2s ease;
}

.profile-detail__thumb:nth-child(even) {
  transform: rotate(-2deg);
}

.profile-detail__thumb:hover {
  transform: rotate(0deg) scale(1.04);
}

.profile-detail__thumb.is-active {
  border-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .profile-detail__photo-wrap,
  .profile-detail__thumb {
    transform: none;
    transition: none;
  }
}

/* ---------- Foto-Lightbox (volle Auflösung, uncropped) ---------- */
/* Zoom-Hinweis auf dem großen Foto. pointer-events: none, damit der Klick ans
   Foto darunter geht und die Lightbox öffnet. */
.profile-detail__photo-zoom {
  position: absolute;
  right: 22px;
  bottom: 26px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 18, 30, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: photo-lightbox-in 0.18s ease;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 20, 0.88);
  cursor: zoom-out;
}

.photo-lightbox__img {
  position: relative;
  max-width: min(100%, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.photo-lightbox__close,
.photo-lightbox__nav {
  position: absolute;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.photo-lightbox__close:hover,
.photo-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.photo-lightbox__close {
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
}

.photo-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.photo-lightbox__nav--prev {
  left: clamp(8px, 2vw, 24px);
}

.photo-lightbox__nav--next {
  right: clamp(8px, 2vw, 24px);
}

.photo-lightbox__counter {
  position: absolute;
  bottom: clamp(12px, 3vw, 26px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

@keyframes photo-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox {
    animation: none;
  }
}

/* ---------- Like-Popup (Erstnachricht) + Bestätigung ---------- */
.like-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-softer);
  color: var(--color-primary);
  margin-bottom: 14px;
}

.like-modal__textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.like-modal__hint {
  margin: 6px 2px 20px;
  font-size: 12px;
  color: var(--color-text-subtle);
  text-align: right;
}

/* Bestätigungs-Overlay nach dem Senden */
.like-sent {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 224, 233, 0.85), transparent 70%),
    rgba(255, 248, 244, 0.92);
  animation: like-sent-fade 0.3s ease both;
}

.like-sent[hidden] {
  display: none;
}

.like-sent__card {
  text-align: center;
  max-width: 360px;
}

.like-sent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-card-strong);
  margin-bottom: 20px;
  animation: like-sent-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.like-sent__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--color-text);
}

.like-sent__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

@keyframes like-sent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes like-sent-pop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .like-sent,
  .like-sent__icon {
    animation: none;
  }
}

/* Profilbesucher: NEU-Markierung auf der Besucher-Karte. Setzt voraus, dass
   .profile-card position: relative hat (siehe .card-dismiss auf der Likes-Seite). */
.visitor-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Profilbesucher: Zaehler-Badge am Nav-Link (per JS eingefuegt, wenn count > 0). */
.site-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
