/* Design: „Salon Elfenbein“ — warm, gastlich, seriös (Gastronomie & Hotellerie) */
:root {
  --color-bg: #f9f6f1;
  --color-surface: #fffdf9;
  --color-band: #f2ebe4;
  --color-ink: #2a2420;
  --color-ink-muted: #5c534c;
  --color-border: #e6ddd2;
  --color-accent: #6d4c3d;
  --color-accent-hover: #5a3e32;
  --color-highlight: #b86b4a;
  --color-highlight-soft: #f7ebe3;
  --color-sage: #5a6b58;
  --color-success-bg: #e8efe8;
  --color-success: #2d5a32;
  --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow-md: 0 10px 28px rgba(42, 36, 32, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.35rem);
  --text-3xl: clamp(2.15rem, 4.5vw, 3.1rem);
  --text-4xl: clamp(2.5rem, 5vw, 3.6rem);
  --max-width: 72rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(249, 246, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.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;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.brand span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e9eef5;
  color: var(--color-accent);
}

.site-nav .sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}

.site-nav .sub-toggle:hover {
  background: #e9eef5;
  color: var(--color-accent);
}

.site-nav .sub-toggle .chev {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.site-nav li.is-open .sub-toggle .chev {
  transform: rotate(180deg);
}

.site-nav .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.site-nav li:hover .submenu,
.site-nav li.is-open .submenu,
.site-nav li:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .submenu a {
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
}

.header-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--color-highlight);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #a84d20;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-accent);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: #e9eef5;
  text-decoration: none;
}

main {
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section--surface {
  background: var(--color-band);
  border-block: 1px solid var(--color-border);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sage);
  margin: 0 0 var(--space-sm);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--color-ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 38rem;
}

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  background: #e4eaf2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dekoratives Flächenmotiv ohne externe Bilddateien */
.hero-visual--ph {
  background: linear-gradient(145deg, #ebe3d9 0%, #dccfbf 40%, #f3ece5 100%);
  background-size: 200% 200%;
  animation: ph-shift 14s ease-in-out infinite;
}

@keyframes ph-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual--ph {
    animation: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.alert-banner {
  background: var(--color-highlight-soft);
  border: 1px solid #f0c9b0;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.alert-banner strong {
  color: var(--color-ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-md);
}

.step-card {
  position: relative;
  padding-left: 4.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 4.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--space-md);
  top: var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

.testimonial {
  font-style: italic;
  color: var(--color-ink-muted);
}

.testimonial footer {
  margin-top: var(--space-md);
  font-style: normal;
  font-weight: 700;
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.price-tag {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin: var(--space-sm) 0;
}

.price-note {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.site-footer {
  background: #2a2420;
  color: #d4ccc4;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.site-footer a {
  color: #f2ebe4;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: var(--text-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-surface);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  margin-top: var(--space-xs);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.form-msg {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.form-msg--ok {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #b8dfc8;
}

.form-msg--err {
  background: #fdecea;
  color: #8a1c0f;
  border: 1px solid #f5c4be;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.meta-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-ink-muted);
}

.meta-list li {
  margin-bottom: var(--space-xs);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: min(100vh, 32rem);
    overflow-y: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: 0;
  }

  .site-nav > ul > li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .site-nav .has-sub > a {
    flex: 1;
  }

  .site-nav .has-sub .sub-toggle {
    flex-shrink: 0;
  }

  .site-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 var(--space-sm) var(--space-md);
    display: none;
  }

  .site-nav li.is-open .submenu {
    display: block;
  }

  .site-nav .sub-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta .btn {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}

@media (min-width: 961px) {
  .site-nav .sub-toggle {
    display: none;
  }

  .site-nav .has-sub > a {
    padding-right: 2rem;
    position: relative;
  }

  .site-nav .has-sub > a::after {
    content: "▾";
    font-size: 0.55rem;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.65;
  }
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* —— Conversion: Countdown, Sticky CTA, Modal, Exit-Intent —— */
body.has-sticky-cta {
  padding-bottom: 4.5rem;
}

.countdown-strip {
  background: linear-gradient(135deg, #3d2f28 0%, #6d4c3d 50%, #8a5a44 100%);
  color: #fdf8f3;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.countdown-strip strong {
  color: #fff;
}

.countdown-numbers {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: var(--space-sm);
}

.kurzantwort {
  background: #f0e8df;
  border-left: 4px solid var(--color-sage);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-md) 0;
  font-weight: 600;
  color: var(--color-ink);
}

.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(42, 36, 32, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.sticky-cta-bar .btn {
  flex: 1;
  max-width: 22rem;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(42, 36, 32, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-width: 32rem;
  width: 100%;
  max-height: min(92vh, 40rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
    padding: var(--space-xl);
  }

  .modal-panel {
    border-radius: var(--radius-lg);
    max-height: min(88vh, 44rem);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.modal-close {
  flex-shrink: 0;
  background: #e9eef5;
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-ink);
}

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
}

.wizard-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: var(--space-lg);
}

.wizard-progress span {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
}

.wizard-progress span.is-done {
  background: var(--color-accent);
}

.wizard-step h3 {
  margin-top: 0;
  font-size: var(--text-lg);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.choice-btn {
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.choice-btn:hover,
.choice-btn.is-selected {
  border-color: var(--color-accent);
  background: #e8f0f8;
}

.wizard-result {
  text-align: center;
}

.wizard-result h3 {
  color: var(--color-success);
}

.exit-intent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 965;
  background: rgba(42, 36, 32, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.exit-intent-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.exit-intent-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 26rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.exit-intent-card h2 {
  margin-top: 0;
}

.submenu--tall {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}

.nav-sub-label {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
  pointer-events: none;
}

.site-nav .submenu li.nav-sub-label:first-child {
  padding-top: var(--space-sm);
}
