/* =============================================================
   Fiestalimo · Kontaktseite (1:1 nach Vorlage)
   Nutzt die Design-Tokens aus main.css (:root).
   ============================================================= */

.kontakt-page { background: var(--cream); }
.kontakt { position: relative; }

/* ---------- Hero mit Limousinen-Backdrop ---------- */
.kontakt-hero {
  --header-height: 76px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 42vh, 440px);
  padding: calc(var(--header-height) + clamp(22px, 4vw, 44px)) 0 clamp(28px, 4vw, 52px);
  background: var(--paper);
}

.kontakt-hero__backdrop { position: absolute; inset: 0; z-index: -2; }
.kontakt-hero__backdrop picture { display: block; width: 100%; height: 100%; }
.kontakt-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }

.kontakt-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(251, 246, 238, 0.98) 0%, rgba(251, 246, 238, 0.95) 26%,
      rgba(251, 246, 238, 0.6) 42%, rgba(251, 246, 238, 0.14) 58%, rgba(251, 246, 238, 0) 72%),
    linear-gradient(180deg,
      rgba(251, 246, 238, 0.5) 0%, rgba(251, 246, 238, 0) 26%,
      rgba(251, 246, 238, 0) 66%, var(--cream) 100%);
}

.kontakt-hero__content { position: relative; z-index: 1; }

.kontakt-hero .kicker {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.kontakt-hero .kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--gold);
}

.kontakt-hero__title {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.kontakt-hero__title em { font-style: italic; color: var(--gold); }

.kontakt-hero__lead {
  margin: 20px 0 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

/* ---------- Body / Grid ---------- */
.kontakt-body { padding: clamp(30px, 4vw, 60px) 0 clamp(60px, 8vw, 110px); }
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* ---------- Direkter Draht (hell) ---------- */
.kontakt-aside {
  padding-right: clamp(18px, 2.4vw, 44px);
  border-right: 1px solid var(--line);
}
.kontakt-aside__title {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
}
.kontakt-aside__rule { display: block; width: 46px; height: 2px; margin: 14px 0 18px; background: var(--gold); }
.kontakt-aside__text { margin: 0 0 28px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

.kontakt-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.kontakt-info li { display: flex; align-items: center; gap: 16px; }
.kontakt-info__ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--gold-dark);
  background: rgba(196, 138, 54, 0.1);
  border: 1px solid var(--line-strong);
}
.kontakt-info__ic svg { width: 22px; height: 22px; }
.kontakt-info__txt { display: grid; gap: 2px; min-width: 0; }
.kontakt-info__txt strong { color: var(--ink); font-size: 1rem; }
.kontakt-info__txt a { color: var(--ink); text-decoration: none; }
.kontakt-info__txt a:hover { color: var(--gold-dark); }
.kontakt-info__txt small { color: var(--muted); font-size: 0.82rem; }

/* ---------- Formular-Karte ---------- */
.kontakt-formwrap {
  position: relative;
  padding: clamp(24px, 3vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.kontakt-form__title {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.01em;
}
.kontakt-form__rule { display: block; width: 46px; height: 2px; margin: 14px 0 22px; background: var(--gold); }

.kontakt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kontakt-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.kontakt-field label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.kontakt-field label small { color: var(--muted); font-weight: 500; }
.kontakt-field .req { color: var(--gold-dark); }

.kontakt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.kontakt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kontakt-input::placeholder { color: var(--muted); opacity: 0.75; }
.kontakt-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 138, 54, 0.14);
}
.kontakt-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.kontakt-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}
.kontakt-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
}
.kontakt-consent a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.kontakt-consent .req { color: var(--gold-dark); }

.kontakt-feedback {
  margin-bottom: 16px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.88rem;
  border: 1px solid;
}
.kontakt-feedback[hidden] { display: none; }
.kontakt-feedback--error { background: #fdf3f0; border-color: #e6c3b9; color: #b0492f; }

/* Fußzeile der Karte: Hinweis links, Button rechts */
.kontakt-formfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.kontakt-secure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 58%;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.kontakt-secure__ic { flex: 0 0 auto; color: var(--muted); }
.kontakt-secure__ic svg { width: 20px; height: 20px; }

.kontakt-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease-premium, ease), background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.kontakt-submit:hover { background: #000; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(23, 18, 12, 0.22); }
.kontakt-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }
.kontakt-submit__ic svg { width: 18px; height: 18px; }
.kontakt-submit.is-loading .kontakt-submit__ic { animation: kontaktPulse 0.9s ease-in-out infinite; }

@keyframes kontaktPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Erfolgsansicht ---------- */
.kontakt-success { text-align: center; padding: clamp(20px, 4vw, 40px) 10px; animation: kontaktFade 0.5s var(--ease-premium, ease) both; }
.kontakt-success[hidden] { display: none; }
@keyframes kontaktFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.kontakt-success__ic {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 14px 30px rgba(196, 138, 54, 0.34);
}
.kontakt-success__ic svg { width: 34px; height: 34px; }
.kontakt-success h2 { margin: 0 0 8px; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 1.6rem; }
.kontakt-success p { margin: 0 auto 8px; max-width: 420px; color: var(--ink-soft); line-height: 1.6; }
.kontakt-success__ref { color: var(--gold-dark); font-weight: 700; }
.kontakt-success__home {
  display: inline-block; margin-top: 16px; padding: 12px 26px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--ink); font-weight: 700; font-size: 0.88rem; text-decoration: none;
}
.kontakt-success__home:hover { border-color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .kontakt-hero__wash {
    background: linear-gradient(180deg, rgba(251, 246, 238, 0.9) 0%, rgba(251, 246, 238, 0.66) 46%, var(--cream) 100%);
  }
  .kontakt-hero { min-height: auto; }
}

@media (max-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-aside {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .kontakt-row { grid-template-columns: 1fr; gap: 0; }
  .kontakt-formfoot { flex-direction: column; align-items: stretch; gap: 16px; }
  .kontakt-secure { max-width: none; }
  .kontakt-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kontakt-submit, .kontakt-success { transition: none; animation: none; }
}
