/*
 * SK Kontakt - Nova hell
 * Links Kontaktkarte, rechts Formular. Schrift und Grundfarben kommen vom Template.
 */

.skk-contact {
  --skk-accent: #B1976B;
  --skk-accent-2: #d8c3a1;
  --skk-text: #2b2d3a;
  --skk-muted: #5f6370;
  --skk-line: #d6d9de;
  --skk-bar: #cfd2d8;
  --skk-radius: 14px;

  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
  color: var(--skk-text);
  font: inherit;
}

.skk-contact *,
.skk-contact *::before,
.skk-contact *::after {
  box-sizing: border-box;
}

.skk-contact--single {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Karte links ---------- */

.skk-card {
  background: #fff;
  border-radius: var(--skk-radius);
  padding: 1.5rem 2rem 2rem;
  box-shadow: 0 2px 4px rgba(35, 40, 60, .06), 0 10px 28px rgba(35, 40, 60, .10);
}

.skk-h {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.25rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--skk-text);
}

.skk-h:first-child {
  margin-top: .5rem;
}

.skk-h::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 1.15rem;
  background: var(--skk-bar);
  border-radius: 1px;
}

.skk-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.skk-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0 0 .6rem;
  line-height: 1.45;
}

.skk-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--skk-accent-2);
}

.skk-list a:hover,
.skk-list a:focus-visible {
  color: var(--skk-accent);
}

.skk-icon {
  flex: 0 0 auto;
  margin-top: .15rem;
  color: var(--skk-text);
}

/* Karte mit Klick-Zustimmung */

.skk-map {
  position: relative;
  height: 400px;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 8px;
  background: #eef0f3;
}

.skk-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.skk-map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 2.5rem 1.25rem 1.25rem;
  text-align: center;
  font-size: .95rem;
  color: var(--skk-muted);
}

.skk-map__consent p {
  margin: 0;
}

.skk-map.is-loaded .skk-map__consent {
  display: none;
}

.skk-map__open {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .65rem;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  color: #1a73e8;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.skk-map__open:hover,
.skk-map__open:focus-visible {
  background: #f4f8ff;
}

.skk-hours {
  padding: .9rem 1rem;
  border-radius: 8px;
  background: var(--skk-accent);
  color: #fff;
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- Formular rechts ---------- */

.skk-main {
  min-width: 0;
}

.skk-title {
  margin: 0 0 1.1rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--skk-text);
}

.skk-sub {
  margin: 0 0 1.1rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--skk-text);
}

.skk-intro {
  margin: 0 0 1.1rem;
  color: var(--skk-muted);
}

.skk-required {
  margin: 0 0 1.4rem;
  color: var(--skk-muted);
}

.skk-required strong {
  color: var(--skk-text);
}

.skk-field {
  margin: 0 0 1.25rem;
}

.skk-field > label {
  display: block;
  margin: 0 0 .4rem;
  color: var(--skk-muted);
  font-weight: 400;
}

.skk-field .star {
  color: var(--skk-text);
  font-weight: 700;
}

.skk-contact .skk-input,
.skk-contact .skk-field .form-control {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: .55rem .75rem;
  border: 1px solid var(--skk-line);
  border-radius: 6px;
  background: #fff;
  color: var(--skk-text);
  font: inherit;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.skk-contact textarea.skk-input {
  min-height: 15rem;
  resize: vertical;
}

.skk-contact .skk-input:focus,
.skk-contact .skk-field .form-control:focus {
  outline: 0;
  border-color: var(--skk-accent);
  box-shadow: 0 0 0 3px rgba(177, 151, 107, .25);
}

.skk-field--check .form-check {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.skk-field--check input[type="checkbox"] {
  float: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: .1rem 0 0;
  accent-color: var(--skk-accent);
}

.skk-field--captcha {
  margin-top: 1.75rem;
}

.skk-field--captcha > label {
  color: var(--skk-muted);
}

/* Honeypot: nur für Bots erreichbar */

.skk-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Button: Akzentfarbe mit weichem Glow */

.skk-btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--skk-accent) 40%, var(--skk-accent-2) 150%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(177, 151, 107, .40);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.skk-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 9px 24px rgba(177, 151, 107, .50);
}

.skk-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--skk-accent), 0 6px 18px rgba(177, 151, 107, .40);
}

.skk-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(177, 151, 107, .40);
}

.skk-btn--small {
  padding: .5rem 1.1rem;
  font-size: .9rem;
}

.skk-actions {
  margin-top: 1.5rem;
}

/* Fehlermeldung im Formular */

.skk-alert {
  margin: 0 0 1.25rem;
  padding: .9rem 1.2rem;
  border: 1px solid #efc7c1;
  border-left: 5px solid #c8554a;
  border-radius: 10px;
  background: #fff6f5;
  color: #7a2a22;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(200, 85, 74, .10);
}

.skk-alert p {
  margin: 0;
}

.skk-alert p + p {
  margin-top: .35rem;
}

/* ---------- Danke-Karte nach dem Senden ---------- */

.skk-thanks {
  max-width: 600px;
  margin: 1rem auto;
  padding: 2.75rem 2rem 2.5rem;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(35, 40, 60, .06), 0 14px 36px rgba(35, 40, 60, .12);
}

.skk-thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--skk-accent) 0%, var(--skk-accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(177, 151, 107, .45);
}

.skk-thanks__title {
  margin: 0 0 .8rem;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--skk-text);
}

.skk-thanks__text {
  max-width: 30rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
  color: var(--skk-text);
}

a.skk-btn,
a.skk-btn:hover,
a.skk-btn:focus {
  color: #fff;
  text-decoration: none;
}

.skk-btn--pill {
  padding: .8rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--skk-accent) 0%, var(--skk-accent-2) 100%);
  box-shadow: 0 8px 22px rgba(177, 151, 107, .45);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 860px) {
  .skk-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Das Formular steht auf dem Handy zuerst. */
  .skk-main {
    order: -1;
  }

  .skk-card {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .skk-title {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skk-btn,
  .skk-contact .skk-input {
    transition: none;
  }

  .skk-btn:hover {
    transform: none;
  }
}
