/* ── Apartmentreinigung: seitenspezifische Regeln ──
   Tokens und Schriften kommen aus global.css; Direktkontakt nutzt .page-calc/.calc-wa-btn aus calculator.css. */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Platzhalter, die Almir vor dem Livegang ausfüllt: sollen beim Durchsehen sofort auffallen */

/* ── Hero ── */
.page-hero p.ap-hero-direct {
  font-size: 0.98rem; margin: 1rem 0 0; max-width: none; color: var(--ink);
}
.ap-hero-direct a,
.ap-link,
.ap-note a,
.ap-prose a,
.faq-a a,
.ap-privacy a,
.ap-success a {
  color: #C13A63; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(193, 58, 99, 0.45);
  border-bottom: 0;
}
.ap-hero-direct a:hover,
.ap-link:hover,
.ap-note a:hover,
.ap-prose a:hover,
.faq-a a:hover,
.ap-privacy a:hover,
.ap-success a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.ap-hero-direct a, .ap-link { display: inline-block; padding: 0.3rem 0; }

/* ── Hinweiszeilen ── */
.ap-note {
  font-family: 'Mulish', sans-serif; font-size: 0.98rem; line-height: 1.6;
  color: var(--ink); max-width: 720px; margin: 1.1rem auto 0; text-align: center;
}

/* ── Ablauf in vier Schritten ── */
.ap-steps {
  list-style: none; counter-reset: ap-step;
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  margin: 0; padding: 0;
}
.ap-steps li {
  counter-increment: ap-step;
  background: var(--white); border-radius: 16px; padding: 1.6rem 1.5rem;
}
.ap-steps li::before {
  content: counter(ap-step);
  display: block; margin-bottom: 0.6rem;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em;
  color: #C13A63;
}
@media (min-width: 700px) {
  .ap-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .ap-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ── Preistabellen ── */
.ap-price {
  width: 100%; max-width: 760px; margin: 0 auto 1.6rem;
  border-collapse: separate; border-spacing: 0 8px;
  font-family: 'Mulish', sans-serif; font-size: 1rem; color: var(--ink);
}
.ap-price thead th {
  text-align: left; font-size: 0.86rem; font-weight: 800;
  color: #5F5A5D; padding: 0 1.1rem 0.1rem;
}
.ap-price thead th:last-child { text-align: right; }
.ap-price tbody th,
.ap-price tbody td {
  background: var(--white); padding: 1rem 1.1rem; line-height: 1.45;
  vertical-align: middle;
}
.ap-price tbody th {
  text-align: left; font-weight: 700;
  border-radius: 12px 0 0 12px; width: 52%;
}
.ap-price tbody td {
  text-align: right; border-radius: 0 12px 12px 0; overflow-wrap: anywhere;
  font-weight: 800; color: #C13A63; white-space: nowrap;
}

/* ── Ratgeber-Karten ── */
.ap-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.ap-sub-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.3rem; letter-spacing: -0.015em;
  margin: 2.6rem 0 1rem; text-align: left;
}

/* ── Anfrageformular ── */
.ap-form {
  background: var(--white); border-radius: 16px;
  max-width: 760px; margin: 0 auto; padding: 1.4rem 1.2rem 1.6rem;
}
.ap-fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.ap-fieldset > legend {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.18rem; letter-spacing: -0.015em; color: var(--ink);
  padding: 0; margin-bottom: 0.9rem;
}
.ap-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ap-field { min-width: 0; }
.ap-field label,
.ap-radio-group > legend {
  display: block; font-family: 'Mulish', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.4rem; padding: 0;
}
.ap-field input,
.ap-field select,
.ap-field textarea {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 48px; padding: 0.7rem 0.9rem;
  font-family: 'Mulish', sans-serif; font-size: 16px; line-height: 1.4;
  color: var(--ink); background: #FFF6F8;
  border: 1.5px solid #857A81; border-radius: 12px;
  appearance: none; -webkit-appearance: none;
}
.ap-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.ap-field textarea { min-height: 120px; resize: vertical; }
.ap-field input[type=number] { -moz-appearance: textfield; }
.ap-field input:focus-visible,
.ap-field select:focus-visible,
.ap-field textarea:focus-visible,
.ap-radio input:focus-visible,
.ap-submit:focus-visible,
.ap-call-btn:focus-visible,
.ap-direct .calc-wa-btn:focus-visible {
  outline: 3px solid #C13A63; outline-offset: 2px;
}
.ap-field [aria-invalid="true"] { border-color: #B3261E; background: #FFF; }
.ap-err {
  color: #B3261E; font-family: 'Mulish', sans-serif;
  font-size: 0.92rem; font-weight: 700; line-height: 1.4;
  margin: 0.35rem 0 0;
}
.ap-err:empty { display: none; }
.ap-hint {
  font-family: 'Mulish', sans-serif; font-size: 0.9rem;
  color: #5F5A5D; margin: 0.7rem 0 0;
}
.ap-radio-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ap-radios { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ap-radio {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1rem; box-sizing: border-box;
  background: #FFF6F8; border-radius: 12px; cursor: pointer;
  font-family: 'Mulish', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--ink);
}
.ap-radio input { width: 20px; height: 20px; margin: 0; accent-color: #C13A63; }

/* Honeypot: aus dem Bild geschoben, nicht display:none (Bots füllen es trotzdem) */
.ap-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.ap-alert {
  background: #FDECEA; color: #7A1712; border-radius: 12px;
  padding: 0.9rem 1rem; margin: 0 0 1rem;
  font-family: 'Mulish', sans-serif; font-size: 0.98rem; line-height: 1.5; font-weight: 700;
}
.ap-alert[hidden], .ap-success[hidden], .ap-form[hidden] { display: none; }
.ap-submit {
  width: 100%; justify-content: center; min-height: 52px;
  font-size: 1rem; cursor: pointer;
}
.ap-submit[disabled] { opacity: 0.7; cursor: progress; }
.ap-privacy {
  font-family: 'Mulish', sans-serif; font-size: 0.88rem; line-height: 1.55;
  color: #5F5A5D; margin: 0.9rem 0 0;
}
.ap-success {
  background: var(--white); border-radius: 16px;
  max-width: 760px; margin: 0 auto; padding: 2rem 1.4rem; text-align: center;
}
.ap-success h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 0.6rem;
}
.ap-success p { font-family: 'Mulish', sans-serif; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.ap-alert:focus { outline: none; }
.ap-alert:focus-visible { outline: 3px solid #C13A63; outline-offset: 3px; }
.ap-success:focus { outline: none; }
.ap-success:focus-visible { outline: 3px solid #C13A63; outline-offset: 3px; }

/* Direktkontakt unter dem Formular (Grundstil aus calculator.css) */
.page-calc.ap-direct { max-width: 760px; margin: 1.5rem auto 0; text-align: center; }
.ap-call-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin-top: 0.4rem; min-height: 48px; }
.ap-direct .calc-wa-btn { min-height: 48px; box-sizing: border-box; }

@media (min-width: 760px) {
  .ap-form { padding: 2rem 2rem 2rem; }
  .ap-grid { grid-template-columns: 1fr 1fr; }
  .ap-field--full { grid-column: 1 / -1; }
}

/* ── Markenhinweis ── */
section.ap-tm-sec { padding-top: 0.5rem; padding-bottom: 2.5rem; }
.ap-tm {
  font-family: 'Mulish', sans-serif; font-size: 0.82rem; line-height: 1.5;
  color: #5F5A5D; max-width: 720px; margin: 0 auto; text-align: center;
}

/* Schmale Geräte: nichts darf seitlich überlaufen.
   Das Wort „Apartmentreinigung" ist in der Split-H1 bei 2rem (global) auf 320 px breiter als die Spalte. */
@media (max-width: 400px) {
  .page-hero--split h1 { font-size: 1.7rem; }
}
@media (max-width: 375px) {
  .ap-price tbody th, .ap-price tbody td { padding: 0.85rem 0.8rem; }
  .ap-price tbody th { width: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-steps li, .ap-submit { transition: none; }
}

/* Mobil: Haupt-CTA und Direktkontakt vor die Chips ziehen, damit der Button ohne Scrollen sichtbar ist */
@media (max-width: 899px) {
  .page-hero--split .page-hero-inner > .btn-pink { order: 1; }
  .page-hero--split .page-hero-inner > .ap-hero-direct { order: 2; }
  .page-hero--split .page-hero-inner > .hero-chips { order: 3; }
  .page-hero--split .page-hero-inner > .page-hero-media { order: 4; }
}
