/* ============================================================
   hochzeiterin - geteilte Styles fuer alle Seiten
   Enthaelt: Schriften, Reset, Header, Footer, Newsletter,
            Buttons, Divider, Animationen, Preload-Schutz.
   Seitenspezifische Styles (Hero, Filter, etc.) bleiben in
   der jeweiligen HTML-Datei.
   ============================================================ */

/* ─────────── SCHRIFTEN (lokal) ─────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 400; font-display: block;
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 400; font-display: block;
  src: url('fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: block;
  src: url('fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 300; font-display: block;
  src: url('fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 400; font-display: block;
  src: url('fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 500; font-display: block;
  src: url('fonts/jost-500.woff2') format('woff2');
}

/* ─────────── RESET + BASIS ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Verhindert das Mit-Animieren von Transitions beim ersten Seiten-Render.
   Wird per site.js nach dem ersten Frame UND nach Laden der Schriften
   wieder entfernt. */
body.preload,
body.preload *,
body.preload *::before,
body.preload *::after {
  transition: none !important;
  -webkit-transition: none !important;
}

/* Manche Browser zeigen einen Cross-Fade beim Seitenwechsel - hier aus. */
@view-transition { navigation: none; }

:root {
  --cream: #FAF6F3;
  --cream-soft: #f3ebe4;
  --rose: #c08a8a;
  --rose-deep: #a86f6f;
  --rose-light: #d4b0b0;
  --rose-pale: #ecdcdc;
  --charcoal: #4a4540;
  --charcoal-light: #756d65;
  --charcoal-muted: #a89f96;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─────────── HEADER / NAV ─────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  padding: 1.1rem 2rem 1rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
header.scrolled {
  background: rgba(250, 246, 243, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-inner .nav-logo { order: 1; }
.header-inner nav { order: 2; flex: 1; justify-content: center; display: flex; }
.header-inner .nav-auth { order: 3; }

.nav-logo img {
  height: 66px;
  width: auto;
  display: block;
}

/* ── Hamburger-Button (nur mobil sichtbar) ── */
.nav-toggle {
  display: none;
  order: 3;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  align-items: center;
}
nav li { white-space: nowrap; }

nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.3s ease;
}

nav a:hover { color: var(--rose-deep); }
nav a:hover::after { width: 100%; }
nav a.is-active { color: var(--rose-deep); }
nav a.is-active::after { width: 100%; }

/* ── Auth-Button rechts oben (Login/Registrierung) ── */
.nav-auth { display: flex; align-items: center; }

.auth-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-family: Jost, sans-serif;
  font-weight: 300;
  padding: 0.5rem 1.17rem;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.2;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(168,111,111,0.28);
}
.auth-pill:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168,111,111,0.38);
}
.auth-line1 {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-line2 {
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.auth-heart {
  width: 0.95em;
  height: 0.95em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  margin-bottom: 1px;
}
.auth-heart svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: #fff;
  fill: none;
}
.auth-pill:hover .auth-heart { transform: scale(1.2); }

/* ─────────── BUTTONS (geteilt) ─────────── */
.btn {
  display: inline-block;
  font-family: Jost, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.9rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168,111,111,0.28);
}
.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,111,111,0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--rose-deep);
  border-color: var(--rose-light);
}
.btn-ghost:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,111,111,0.3);
}

/* ─────────── SECTION-TITLE (geteilt) ─────────── */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--rose-deep);
  margin-bottom: 1.8rem;
}

/* ─────────── DIVIDER ─────────── */
.divider {
  max-width: 820px;
  margin: 2.6rem auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}
.divider .line { flex: 1; height: 1px; background: var(--rose-light); }
.divider svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─────────── NEWSLETTER-ABSCHNITT ─────────── */
.newsletter-section {
  margin: 3.3rem auto 0;
  padding: 3.2rem 1.5rem;
  background: var(--cream-soft);
  text-align: center;
}
.newsletter-section .section-title { margin-bottom: 0.8rem; }
.newsletter-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  margin: 0 auto 1.6rem;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-input {
  font-family: Jost, sans-serif;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  width: min(280px, 70vw);
  border: 1px solid var(--rose-pale);
  border-radius: 100px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s ease;
}
.newsletter-input:focus { border-color: var(--rose); }
.newsletter-input::placeholder { color: var(--charcoal-muted); }
.newsletter-btn {
  font-family: Jost, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168,111,111,0.28);
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.newsletter-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,111,111,0.38);
}

/* ─────────── FOOTER ─────────── */
footer {
  text-align: center;
  margin-top: 0;
  padding: 2.6rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--charcoal-muted);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  margin-bottom: 1.2rem;
}
.footer-social a {
  color: var(--charcoal-light);
  display: inline-flex;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover {
  color: var(--rose-deep);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.footer-legal a {
  color: var(--charcoal-light);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--rose-deep); }

/* ─────────── ANIMATIONS ─────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }

/* ─────────── RESPONSIVE (Header/Footer) ─────────── */
@media (max-width: 720px) {
  header { padding: 0.7rem 0.9rem; }

  .header-inner {
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .header-inner .nav-logo {
    order: 2;
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
  }
  .nav-logo img {
    height: 38px;
    max-width: 100%;
    width: auto;
  }

  .header-inner .nav-auth {
    order: 3;
    flex-shrink: 0;
  }
  .auth-pill { padding: 0.4rem 0.7rem; }
  .auth-line1 { font-size: 0.58rem; }
  .auth-line2 { font-size: 0.48rem; }

  .header-inner nav {
    order: 4;
    flex-basis: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .header-inner nav.is-open { max-height: 320px; }
  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  nav li {
    white-space: normal;
    border-top: 0.5px solid var(--rose-pale);
  }
  nav a {
    display: block;
    padding: 0.95rem 0.3rem;
    font-size: 0.9rem;
  }
  nav a::after { display: none; }

  .divider { margin: 2rem auto; }

  .newsletter-section { margin-top: 2.6rem; padding: 2.4rem 1.2rem; }
  .newsletter-sub { font-size: 0.9rem; }

  /* Newsletter-Formular gestapelt */
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-input { width: 100%; }
  .newsletter-btn { width: 100%; }

  /* Buttons: volle Breite */
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
  }

  footer { padding: 2.2rem 1.2rem; }
  .footer-legal { gap: 0.9rem 1.2rem; }
}

@media (max-width: 380px) {
  header { padding: 0.6rem 0.7rem; }
  .nav-toggle { width: 36px; height: 36px; padding: 7px; }
  .nav-logo img { height: 34px; }
  .auth-pill { padding: 0.35rem 0.6rem; }
  .auth-line1 { font-size: 0.52rem; }
  .auth-line2 { font-size: 0.44rem; }
}

/* ─────────── BRAND-AKZENT (z. B. "hochzeiterin" im Fliesstext) ─────────── */
.brand { color: var(--rose); }

/* ─────────── MULTI-SELECT DROPDOWN ─────────── */
.multi-select {
  position: relative;
  width: 100%;
}
.multi-select-trigger {
  width: 100%;
  text-align: left;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a86f6f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
  border: 0.5px solid var(--rose-pale);
  border-radius: 100px;
  padding: 0.65rem 2.4rem 0.65rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--charcoal);
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Touch-Optimierung fuer iOS/Android */
  -webkit-tap-highlight-color: rgba(192,138,138,0.15);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.multi-select-trigger:hover { border-color: var(--rose-light); }
.multi-select.is-open .multi-select-trigger {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(192,138,138,0.12);
}
.multi-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 0.5px solid var(--rose-pale);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74,69,64,0.14);
  max-height: 280px;
  overflow-y: auto;
  /* z-index ueber sticky header (100) und alles andere */
  z-index: 200;
  display: none;
  padding: 0.4rem 0;
  -webkit-overflow-scrolling: touch;
}
.multi-select.is-open .multi-select-menu { display: block; }
.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--charcoal);
  transition: background 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(192,138,138,0.15);
  touch-action: manipulation;
}
.multi-select-option:hover { background: var(--cream-soft); }
.multi-select-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--rose);
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile: groessere Tap-Targets und mehr Platz */
@media (max-width: 720px) {
  .multi-select-trigger {
    padding: 0.85rem 2.4rem 0.85rem 1.1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  .multi-select-menu {
    max-height: 60vh;
    padding: 0.25rem 0;
  }
  .multi-select-option {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
    gap: 0.7rem;
  }
  .multi-select-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}

/* Nur fuer Screenreader/SEO (visuell ausgeblendet) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Karten-Platzhalter (Locations/Dienstleister ohne Foto): Farbverlauf nach Name + Art-Umriss */
.vendor-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vendor-ph svg { width: 38%; max-width: 88px; height: auto; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.vendor-ph-0 { background: linear-gradient(135deg, #e7c3c3, #d29b9b); }
.vendor-ph-1 { background: linear-gradient(135deg, #e8d6b4, #d4ba8a); }
.vendor-ph-2 { background: linear-gradient(135deg, #c7d4be, #a4b897); }
.vendor-ph-3 { background: linear-gradient(135deg, #d7cdc3, #bbac9b); }
.vendor-ph-4 { background: linear-gradient(135deg, #dcc1cd, #c498ab); }
.vendor-ph-5 { background: linear-gradient(135deg, #c5ccde, #a0abc8); }

/* "Mehr anzeigen"-Button der Uebersichtsseiten */
.vendor-more { text-align: center; margin: 2.4rem auto 0; max-width: 1100px; padding: 0 1.5rem; }
.vendor-more-btn { cursor: pointer; background: #fff; border: 0.5px solid var(--rose); color: var(--rose-deep); border-radius: 100px; padding: 0.8rem 2.4rem; font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.vendor-more-btn:hover { background: var(--rose); color: #fff; }
.vendor-more-btn[disabled] { opacity: .5; cursor: default; }
