/* ==========================================================================
   Preise: eine Preiskarte (alles inklusive), zuschaltbare Extras und ein
   Rechner für den eigenen Aufenthalt.
   ========================================================================== */

.pricing-head { padding-block: clamp(3rem, 6vw, 5rem) var(--space-6); }
.pricing-head h1 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.pricing-head p { font-size: var(--fs-md); color: var(--torf-leise); margin: 0; }

.pricing { padding-block: var(--space-5) var(--space-9); }
.pricing__grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 961px) {
  .pricing__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .price-card { position: sticky; top: 6rem; }
}

/* Preiskarte */
.price-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 22px;
  background: var(--wiese);
  color: #fff;
  box-shadow: 0 24px 48px -30px rgb(36 33 28 / 0.6);
}
.price-card__value {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 3rem + 5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.price-card__value small { margin-top: 0.4rem; font-size: 0.4em; letter-spacing: 0; }
.price-card__unit { margin: var(--space-2) 0 var(--space-5); color: #dfe7e2; font-size: var(--fs-md); }
/* Hundeanzahl: der erste Schritt des Rechners */
.price-card__dogs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: 16px;
  background: rgb(255 253 248 / 0.1);
}
.price-card__label { font-weight: 700; color: #fff; }
.price-card__more { flex: 0 0 100%; margin: 0; font-size: var(--fs-sm); color: #eef3f0; }
.price-card__more[hidden] { display: none; }
.price-card__more a { color: #fff; font-weight: 700; }
.price-card :focus-visible { outline-color: #fff; }
.stepper--light button { border-color: rgb(255 253 248 / 0.85); background: transparent; color: #fff; }
.stepper--light button:hover:not(:disabled) { background: var(--nebel); color: var(--wiese); }
.stepper--light output { color: #fff; }
.price-card h2 {
  margin: 0 0 var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 253 248 / 0.2);
  color: #fff;
  font-size: var(--fs-md);
}
.price-card ul { margin: 0; padding: 0; list-style: none; }
.price-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  padding-block: 0.45rem;
  color: #eef2ee;
}
.price-card li svg { width: 20px; height: 20px; margin-top: 2px; color: #fff; }

/* Extras */
.extras h2 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.extras__intro { color: var(--torf-leise); margin-bottom: var(--space-5); }
.extras__list { display: grid; gap: var(--space-3); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(36 33 28 / 0.05), 0 12px 28px -24px rgb(36 33 28 / 0.5);
  cursor: pointer;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.extra:hover { border-color: var(--linie); }
.extra:has(input:checked) { border-color: var(--wiese); }
.extra:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.extra__name { display: block; font-weight: 700; color: var(--torf); }
.extra__desc { display: block; margin-top: 0.15rem; font-size: var(--fs-sm); color: var(--torf-leise); }
.extra__price { text-align: right; white-space: nowrap; font-family: var(--font-display); font-weight: 700; color: var(--wiese); }
.extra__price small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 0.8rem; color: var(--torf-leise); }

/* Extra pro Hund: Zusatzzeile „Für 1 von 2 Hunden“, hängt optisch an der Karte */
.extras__list li.has-sub .extra { border-bottom-color: transparent; border-radius: 16px 16px 0 0; box-shadow: none; }
.extra__dogs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-4);
  border: 1.5px solid var(--wiese);
  border-top: 1px solid var(--linie);
  border-radius: 0 0 16px 16px;
  background: #fff;
  color: var(--torf-leise);
  box-shadow: 0 12px 28px -24px rgb(36 33 28 / 0.5);
}
.extra__dogs[hidden] { display: none; }
.stepper--small button { width: 40px; height: 40px; font-size: 1.1rem; }
.stepper--small output { font-size: 1rem; }

/* Schalter */
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd5ca;
  transition: background-color 200ms var(--ease);
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(36 33 28 / 0.3);
  transition: transform 220ms cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch input:checked + span { background: var(--wiese); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Handy: Text über die volle Breite, darunter Preis und Schalter (wie beim Foto-Update) */
@media (max-width: 560px) {
  .extras__list .extra { grid-template-columns: minmax(0, 1fr) auto; }
  .extras__list .extra > span:first-child { grid-column: 1 / -1; }
  .extras__list .extra__price { grid-column: 1; grid-row: 2; text-align: left; }
  .extras__list .extra__price small { display: inline; margin-left: 0.3rem; }
  .extras__list .switch { grid-column: 2; grid-row: 2; }
}

/* Rechner */
.calc {
  padding: var(--space-5);
  border-radius: 20px;
  background: rgb(63 106 90 / 0.09);
}
.calc h2 { font-size: var(--fs-md); margin-bottom: var(--space-4); }
.calc__inputs { display: grid; gap: var(--space-4); }
.calc .field--range .range { max-width: none; }

.calc__lines { margin: var(--space-5) 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.calc__lines li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 0.35rem; color: var(--torf-leise); }
.calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1.5px solid var(--linie);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--torf);
  max-width: none;
}
.calc__note { margin: var(--space-2) 0 var(--space-5); font-size: var(--fs-sm); color: var(--torf-leise); max-width: none; }
.calc__empty { color: var(--torf-leise); font-size: var(--fs-sm); margin: var(--space-4) 0 var(--space-5); }

/* Gut zu wissen */
.pricing-notes { padding-block: 0 var(--space-9); }
.pricing-notes h2 { font-size: var(--fs-lg); }

/* Hervorgehobenes Extra: Foto- und Video-Update */
.extra--feature {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "body preview"
    "foot preview";
  align-items: start;
  gap: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 2px solid var(--wiese);
}
.extra--feature:hover { border-color: var(--wiese); }
.extra__badge {
  position: absolute;
  top: -0.8rem;
  left: var(--space-5);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--wiese);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}
.extra__body { grid-area: body; }
.extra--feature .extra__name { font-family: var(--font-display); font-size: var(--fs-md); }
.extra__foot { grid-area: foot; display: flex; align-items: center; gap: var(--space-4); align-self: end; }
.extra__foot .extra__price { text-align: left; font-size: var(--fs-md); }
.extra__foot .extra__price small { display: inline; margin-left: 0.3rem; font-size: 0.85rem; }

/* kleine Vorschau wie im Chat */
.extra__preview {
  grid-area: preview;
  display: grid;
  grid-template-columns: 76px 76px;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border-radius: 14px;
  background: var(--himmel);
}
.bubble { display: block; border-radius: 10px; overflow: hidden; }
.bubble--img { position: relative; height: 92px; box-shadow: 0 1px 2px rgb(36 33 28 / 0.15); }
.bubble--img img { width: 100%; height: 100%; object-fit: cover; }
.bubble__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(36 33 28 / 0.55);
  color: #fff;
  transform: translate(-50%, -50%);
}
.bubble__play svg { width: 14px; height: 14px; margin-left: 2px; }
.bubble--text {
  grid-column: 1 / -1;
  padding: 6px 9px;
  background: #fff;
  color: var(--torf);
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgb(36 33 28 / 0.12);
}
@media (max-width: 560px) {
  .extra--feature {
    grid-template-columns: 1fr;
    grid-template-areas: "body" "preview" "foot";
  }
  .extra__preview { grid-template-columns: 1fr 1fr; }
  .extra__foot { justify-content: space-between; }
}

.calc__label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--torf); }

/* Gut zu wissen: kompakt, direkt unter Preisen und Rechner */
.pricing { padding-bottom: var(--space-7); }
.pricing-notes { padding-block: 0 var(--space-8); }
.pricing-notes h2 { font-size: var(--fs-lg); margin-bottom: var(--space-5); }

.notes-small { font-size: var(--fs-sm); color: var(--torf-leise); margin: var(--space-3) 0 0; }
.notes-vat { margin-top: var(--space-6); max-width: none; }

/* Überschrift zweizeilig: zweite Zeile eingerückt, beginnt aber noch vor dem Ende der
   ersten Zeile (erste Zeile ist ca. 10,3em breit) – so überlappen sie leicht */
.pricing-title > span { display: block; }
.pricing-title > span + span { padding-left: 7em; }
.pricing-head { padding-bottom: var(--space-7); }
.pricing-head h1.pricing-title { margin-bottom: 0; }
@media (max-width: 700px) {
  .pricing-title > span + span { padding-left: 1.5em; }
}

/* ---------- Gut zu wissen: zwei Boxen (Zahlung, Stornierung) ---------- */
.info-cards { display: grid; gap: var(--space-5); }
@media (min-width: 1100px) { .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-card {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) 1px minmax(0, 1fr);
  gap: var(--space-6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 22px;
}
.info-card--tanne { background: rgb(63 106 90 / 0.11); }
.info-card--weide { background: rgb(140 154 126 / 0.22); }
.info-card__main { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); }
.info-card__badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--wiese);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.info-card__lead { margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--torf-leise); }
.info-card__big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--torf);
}
.info-card__big small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--torf-leise);
}
.info-card__sep { background: rgb(36 33 28 / 0.14); }
.info-card__list { display: grid; gap: var(--space-3); align-content: start; margin: 0; padding: 0; list-style: none; }
.info-card__list li { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); line-height: 1.5; color: var(--torf-leise); }
.info-card__list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--wiese); }
.info-card__list strong { color: var(--torf); }
/* Kompakt (Handy und zwei Boxen nebeneinander): oben Titel und große Zahl, darunter die Liste */
@media (max-width: 640px), (min-width: 1100px) {
  .info-card { grid-template-columns: 1fr; gap: var(--space-5); }
  .info-card__main { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .info-card__big { text-align: right; }
  .info-card__sep { height: 1px; }
}

/* ---------- Handgezeichneter Pfeil zum Foto-/Video-Update ---------- */
.extras__head { position: relative; }
.extras__head .extras__intro { max-width: min(25rem, calc(100% - 13.5rem)); } /* rechts Platz für den Pfeil-Text */
@media (max-width: 700px) { .extras__head .extras__intro { max-width: none; } }
.doodle {
  position: absolute;
  right: 0.5rem;
  bottom: -1.25rem;
  pointer-events: none;
  text-align: right;
  color: var(--wiese);
}
.doodle__label {
  display: block;
  margin-right: 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-5deg);
  transform-origin: right bottom;
}
.doodle__arrow { display: block; width: 7.5rem; height: auto; margin: 0.15rem 0 0 auto; overflow: visible; }
.doodle__arrow path { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Zeichnen: Linie, dann Spitze, dann Text */
.doodle.is-drawing .doodle__line,
.doodle.is-drawing .doodle__head { stroke-dasharray: 1; stroke-dashoffset: 1; }
.doodle.is-drawing .doodle__label { opacity: 0; }
.doodle.is-drawn .doodle__line,
.doodle.is-drawn .doodle__head { stroke-dasharray: 1; stroke-dashoffset: 0; }
.doodle.is-drawn .doodle__line { transition: stroke-dashoffset 900ms cubic-bezier(0.5, 0, 0.3, 1); }
.doodle.is-drawn .doodle__head { transition: stroke-dashoffset 250ms ease-out 900ms; }
.doodle.is-drawn .doodle__label { opacity: 1; transition: opacity 400ms ease 1300ms; }
@media (max-width: 700px) {
  .doodle { position: static; margin: calc(-1 * var(--space-3)) 0 var(--space-2) auto; }
}
