/* ── KONTAKT ─────────────────────────────────────────────
   Page head (.intro-*) comes from leistungen.css / style.css.
   ─────────────────────────────────────────────────────── */

/* Marina-am-Telefon photo, same hero treatment as .hero--wir: the photo
   sits behind the pixel blocks in its own full-bleed section, so the
   "Kontakt" heading below stays on a plain background instead of
   competing with her face for the same space. */
.hero--kontakt {
  background-image: url('imgs/kontakt-header.webp');
}

/* the hero above already carries the pixel blocks; leistungen.css's
   default .page-head background would repeat them a second time here */
.page-head {
  padding-bottom: clamp(20px, 2.5vw, 40px);
  background-image: none;
}

/* leistungen.css reserves calc(26vw + 22px) of top padding below 700px for
   the pixel-blocks band it paints there; this page has no such band, and
   the dead space would stop the bubble from reaching up into the hero */
.page-head--plain {
  padding-top: clamp(24px, 3vw, 56px);
}

.page-head--plain .page-head-inner {
  width: auto;
  right: 0;
  margin-inline: 0;
  max-width: var(--maxw);
  text-align: left;
}

.page-head--plain .intro-mark,
.page-head--plain .intro-title span {
  margin-inline: 0;
}

/* Heading flush left directly under the hero, bubble overlapping the hero
   edge at the top right: same treatment and size as index.html / wir.html.
   Mirrors .intro-bubble in style.css, including the --bubble-w ratio maths. */
.page-head-bubble {
  display: block;
  width: var(--bubble-w);
  height: auto;
  margin: calc(var(--bubble-w) * -0.249) 0 clamp(16px, 2vw, 34px) auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 901px) {
  .page-head--plain {
    position: relative;
    /* keeps the out-of-flow bubble inside the section */
    min-height: calc(var(--bubble-w) * 0.343 + 40px);
  }

  .page-head--plain .page-head-inner {
    margin-inline: auto;
  }

  .page-head-bubble {
    position: absolute;
    top: calc(var(--bubble-w) * -0.249);
    right: var(--gutter);
    margin: 0;
  }
}

@media (min-width: 1680px) {
  .page-head-bubble {
    right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  }
}

/* ── EINLEITUNG ──────────────────────────────────────── */
.kontakt-intro {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(20px, 3vw, 40px);
  text-align: center;
}

.kontakt-hook {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  color: var(--c-berry);
}

.kontakt-copy {
  margin-top: clamp(18px, 2.4vw, 32px);
  text-align: left;
}

.kontakt-copy p {
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-body);
}

.kontakt-copy p + p {
  margin-top: 1.1em;
}

/* ── FORMULAR + DIREKTKONTAKT ────────────────────────── */
.kontakt-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gutter) var(--section-y);
  align-items: start;
}

/* two columns only when the form still has room to breathe beside the
   contact card; below that the card leads and the form follows */
@media (min-width: 880px) {
  .kontakt-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

/* the heading and the form are one grid item, so .kontakt-main stays a
   two-column grid rather than gaining a third auto-placed child */
.kontakt-form-wrap {
  min-width: 0;
}

.kontakt-form-title {
  font-family: 'DIN Condensed', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(14px, 1.8vw, 24px);
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
  min-width: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row--pair {
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
}

@media (min-width: 520px) {
  .form-row--pair {
    flex-direction: row;
    gap: clamp(14px, 1.8vw, 22px);
  }
}

.form-row--pair > div {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kontakt-form label {
  font-family: 'DIN Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-soft);
}

.kontakt-form label span[aria-hidden="true"] {
  color: var(--c-red);
  margin-left: 2px;
}

.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form input[type="tel"],
.kontakt-form select,
.kontakt-form textarea {
  font-family: 'DIN', sans-serif;
  /* must stay at 16px or larger: iOS Safari zooms the whole page in on
     focus for any smaller control font */
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-ink);
  padding: 13px 16px;
  min-height: var(--tap);
  border: 1.5px solid var(--c-rule);
  border-radius: 8px;
  background: var(--c-paper);
  transition: border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.kontakt-form textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--c-red);
}

.form-row--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-row--check input[type="checkbox"] {
  margin-top: 2px;
  /* 24px is the WCAG 2.5.8 minimum target size */
  width: 24px;
  height: 24px;
  accent-color: var(--c-red);
  flex-shrink: 0;
}

.form-row--check label {
  font-family: 'DIN', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-muted);
  line-height: 1.55;
}

.form-row--check a {
  color: var(--c-ink);
  font-weight: 600;
}

.kontakt-submit {
  -webkit-appearance: none;
  appearance: none;
  align-self: flex-start;
  margin-top: 6px;
  min-height: var(--tap);
  padding: 15px 34px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(97deg, #F0954D 0%, #EC6A54 30%, #E2234F 50%, #C14162 75%, #7B2565 100%);
  color: #fff;
  font-family: 'DIN Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.25s var(--ease-out-quint), transform 0.25s var(--ease-out-quint);
}

.kontakt-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(226, 35, 79, 0.3);
  transform: translateY(-2px);
}

.kontakt-submit:active { transform: translateY(0) scale(0.98); }
.kontakt-submit:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }

/* on a phone a left-aligned pill next to a full-width form looks stranded */
@media (max-width: 519px) {
  .kontakt-submit {
    align-self: stretch;
    text-align: center;
  }
}

/* ── HÄUFIGE FRAGEN ──────────────────────────────────────
   The answers are also the source for the FAQPage JSON-LD in the
   head; Google requires FAQ markup to mirror visible copy, so the
   two must be kept in sync if either is edited. */
.kontakt-faq {
  max-width: 860px;
  margin-inline: auto;
  padding: 0 var(--gutter) var(--section-y);
}

.kontakt-faq > h2 {
  font-family: 'DIN Condensed', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}

.faq-item {
  padding-top: clamp(14px, 1.4vw, 22px);
  border-top: 1px solid var(--c-rule);
}

.faq-item + .faq-item {
  margin-top: clamp(18px, 2.2vw, 30px);
}

.faq-item h3 {
  font-family: 'DIN Condensed', sans-serif;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.015em;
  color: var(--c-ink);
}

.faq-item p {
  margin-top: clamp(8px, 0.9vw, 14px);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-muted);
}

/* ── DIREKTKONTAKT ───────────────────────────────────── */
.kontakt-direct {
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #F0954D 0%, #E2234F 45%, #7B2565 100%);
  color: #fff;
  min-width: 0;
}

/* the contact card comes first on a phone: the fastest route to a phone
   call should not sit below a six-field form */
@media (max-width: 879px) {
  .kontakt-direct {
    order: -1;
  }
}

.kontakt-direct h2 {
  font-family: 'DIN Condensed', sans-serif;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.direct-block {
  margin-top: clamp(18px, 2vw, 26px);
}

.direct-label {
  font-family: 'DIN Condensed', sans-serif;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.direct-block p {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.direct-name {
  display: inline-block;
  min-width: 118px;
  font-weight: 600;
}

/* below ~400px the name and the number stop fitting on one line, and the
   fixed label width leaves the number stranded on its own */
@media (max-width: 400px) {
  .direct-name {
    display: block;
    min-width: 0;
  }
}

.direct-block a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}

.direct-block a:hover { opacity: 0.8; }

/* telephone, e-mail and the map link are all tap targets */
.direct-block a[href^="tel:"],
.direct-block a[href^="mailto:"],
.direct-block a[href^="https://www.google.com/maps"] {
  display: inline-block;
  padding-block: 11px;
}

.direct-social {
  display: flex;
  gap: 10px;
  margin-top: clamp(20px, 2.4vw, 30px);
}

.direct-social .social-icon {
  width: var(--tap);
  height: var(--tap);
  border-radius: 9px;
}
