/* =============================================================
   UMZUG PLANEN  (template-umzug-planen-page.php)

   Die Hülle um das mehrstufige Umzugsformular: Kopfbereich, Zusagen,
   Ablauf und die Abschluss-Tafel.

   DAS FORMULAR WIRD HIER NICHT GESTALTET — UND ZWAR STRENG.

   Es kommt aus Contact Form 7 und bringt assets/css/umzugsform-style.css
   mit, das alles ab .form-container nach innen besitzt. Dieses Stylesheet
   verwendet sehr allgemeine Klassennamen: .btn, .btn-primary, .column,
   .error, .row. Eine einzige unvorsichtige Regel hier — etwa
   `.umzug-planen-page .btn` — würde die Schaltflächen im Formular
   überschreiben.

   Daraus folgen zwei Regeln, die beim Weiterarbeiten gelten müssen:

     1. JEDER Selektor beginnt mit .up- oder .umzug-planen-page .up-.
        Kein Elementselektor, keine allgemeine Klasse, kein Nachfahren-
        selektor, der im Formular landen kann.

     2. KEINE vererbten Eigenschaften auf einem Vorfahren des Formulars.
        color, font-size, font-family, line-height und text-align vererben
        sich — sie auf .up-form-section zu setzen hieße, sie im Formular zu
        setzen. Deshalb trägt dieser Abschnitt nur Abstand und Hintergrund,
        und die Typografie steht auf .up-head und .up-form-note, also
        NEBEN dem Formular statt darum herum.

   Aufgebaut wie die übrigen Seiten des Themes: ein Rhythmus
   (--up-section-y), Hintergrund als Modifikator (.up-bg-white /
   .up-bg-cream) mit Zusammenfallen des doppelten Abstands, ein
   Abschnittskopf (.up-head) und geteilte Schaltflächen (.fr-btn aus
   theme.css).
   ============================================================= */

:root {
  --up-orange: #f2a820;
  --up-orange-soft: var(--icon-bg);   /* Symbolfläche, siehe theme.css */
  --up-ink: #2a2e34;
  --up-muted: #5c5a5a;
  --up-cream: #fdf7ec;
  --up-border: #e5e7eb;
  --up-edge: 15px;
  --up-section-y: 4rem;
  --up-head-gap: 2.5rem;
  --up-card-radius: 16px;
}

.umzug-planen-page {
  overflow-x: clip;
}

.umzug-planen-page .up-section {
  position: relative;
  width: 100%;
  max-width: 100vw;
}

.umzug-planen-page .up-inner {
  position: relative;
  z-index: 1;
  padding: var(--up-section-y) var(--up-edge);
}

/* Zwei Nachbarn auf demselben Grund: Der Abstand des ersten trägt die Lücke
   allein. Zahlen beide, entsteht eine doppelte Lücke ohne Farbwechsel, der
   sie erklären würde. */
.umzug-planen-page .up-bg-white + .up-bg-white > .up-inner,
.umzug-planen-page .up-bg-cream + .up-bg-cream > .up-inner {
  padding-top: 0;
}

.umzug-planen-page .up-bg-white {
  background-color: #fff;
}

.umzug-planen-page .up-bg-cream {
  background-color: var(--up-cream);
}

/* =============================================================
   ABSCHNITTSKOPF
   ============================================================= */

.umzug-planen-page .up-head {
  max-width: 820px;
  margin: 0 auto var(--up-head-gap);
  text-align: center;
}

.umzug-planen-page .up-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #b8790a;
  font-family: 'Inter';
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.umzug-planen-page .up-eyebrow::before,
.umzug-planen-page .up-eyebrow::after {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--up-orange);
}

/* clamp() statt fester Pixel und eigener Verkleinerungsstufen: eine Zeile
   trägt Telefon bis Desktop, und die Größe folgt derselben Kurve wie h2 in
   theme.css. */
.umzug-planen-page .up-section-title {
  width: auto; /* theme.css setzt width:100% auf jede Überschrift */
  margin: 0 auto;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.25;
  text-wrap: balance;
}

.umzug-planen-page .up-lead {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--up-muted);
  font-size: var(--fs-md);
  line-height: 1.75;
  text-align: center;
}

/* =============================================================
   1. KOPFBEREICH
   ============================================================= */

.up-hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
}

.up-hero-media,
.up-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.up-hero-media img {
  position: relative;
  object-fit: cover;
}

.up-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--fr-scrim);
}

.up-hero .up-inner {
  width: 100%;
  padding-top: 4.25rem;
  padding-bottom: 4.25rem;
}

.up-hero-copy {
  max-width: 720px;
}

.up-hero-copy h1 {
  width: auto;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.16;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.015em;
  text-wrap: balance;
}

.up-hero-lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-md);
  line-height: 1.75;
}

/* Zwei Spalten: vier einzeilige Punkte untereinander ziehen den Kopfbereich
   ohne Lesegewinn in die Länge. */
.up-hero-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: 12px 34px;
  margin: 26px 0 0;
  padding: 0;
}

.up-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #fff !important; /* schlägt die globale li-Farbe aus theme.css */
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* Oben, nicht mittig: Bei einem zweizeiligen Punkt schwebt ein zentriertes
   Häkchen zwischen den Zeilen. */
.up-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(242, 168, 32, .22);
  border: 1px solid rgba(242, 168, 32, .55);
  color: var(--up-orange);
}

.up-check svg {
  display: block;
  width: 12px;
  height: 12px;
}

.up-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.up-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: var(--btn-h);
  padding: 8px 22px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--btn-radius);
  background-color: rgba(255, 255, 255, .12);
  color: #fff !important; /* schlägt die globale a-Farbe aus theme.css */
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background-color .25s ease, border-color .25s ease,
              transform .25s ease, box-shadow .25s ease;
}

/* Überfahren grün — dieselbe Regel wie bei den Schaltflächen. */
.up-hero-phone:hover,
.up-hero-phone:focus-visible {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(47, 93, 52, .8);
}

.up-hero-phone:hover .up-hero-phone-ico,
.up-hero-phone:focus-visible .up-hero-phone-ico {
  background-color: rgba(255, 255, 255, .22);
}

.up-hero-phone:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.up-hero-phone-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--up-orange);
  color: #fff;
  transition: background-color .25s ease;
}

.up-hero-phone-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.up-hero-phone-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.up-hero-phone-label {
  color: rgba(255, 255, 255, .78);
  font-family: 'Inter';
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.up-hero-phone-number {
  font-family: 'Inter';
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

/* =============================================================
   2. DIE ZUSAGEN

   Drei Aussagen direkt über dem Formular, weil hier die Fragen entstehen,
   die jemanden vom Ausfüllen abhalten: Wie lange dauert das? Ist der Preis
   am Ende ein anderer? Wer bekommt meine Daten?
   ============================================================= */

.up-facts-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.up-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 24px;
  background-color: #fff;
  border: 1px solid #f3e9d6;
  border-radius: var(--up-card-radius);
  box-shadow: 0 1px 2px rgba(96, 58, 20, .04), 0 16px 34px -30px rgba(96, 58, 20, .4);
}

.up-fact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--up-orange-soft);
  color: var(--icon-fg);
}

.up-fact-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.up-fact-text {
  min-width: 0;
}

.up-fact-text h2 {
  width: auto;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.up-fact-text p {
  margin: 0;
  color: var(--up-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* =============================================================
   3. DER FORMULARABSCHNITT

   Hier steht bewusst fast nichts.

   .up-form-section ist ein Vorfahre des Formulars. Alles, was sich vererbt —
   color, font-size, font-family, line-height, text-align — würde von hier aus
   im Formular landen und dessen eigenes Stylesheet unterlaufen. Der Abschnitt
   trägt deshalb nur Abstand und Hintergrund; die Typografie steht auf
   .up-head und .up-form-note, die NEBEN dem Formular liegen.
   ============================================================= */

/* Sprungziel: Der Knopf im Kopfbereich zeigt hierher, und ohne diese Zeile
   landet die Überschrift unter dem festen Header. */
.up-form-section {
  scroll-margin-top: 40px;
}

/* Der Hinweis unter dem Formular. Ein Geschwister des Shortcodes, kein
   Vorfahre — er kann deshalb Typografie setzen. */
.up-form-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin: 2rem auto 0;
  padding: 16px 18px;
  background-color: var(--up-cream);
  border: 1px solid #f2e4d1;
  border-radius: 12px;
  color: var(--up-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.up-form-note-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--icon-bg);
  color: var(--icon-fg);
}

.up-form-note-ico svg {
  display: block;
  width: 16px;
  height: 16px;
}

.up-form-note a {
  color: #b8790a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.up-form-note a:hover,
.up-form-note a:focus-visible {
  color: var(--up-ink);
}

/* =============================================================
   4. WAS DANACH PASSIERT
   ============================================================= */

.up-steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.up-step {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background-color: #fff;
  border: 1px solid #f3e9d6;
  border-radius: var(--up-card-radius);
  box-shadow: 0 1px 2px rgba(96, 58, 20, .04), 0 16px 34px -28px rgba(96, 58, 20, .35);
  transition: box-shadow .28s ease, transform .28s ease;
}

.up-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--up-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.up-step:hover::before {
  transform: scaleX(1);
}

.up-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(29, 35, 38, .05), 0 22px 40px -24px rgba(242, 168, 32, .65);
}

.up-step-num {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #f0e2cd;
  font-family: 'Inter';
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transition: color .28s ease;
}

.up-step:hover .up-step-num {
  color: var(--up-orange);
}

.up-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background-color: var(--up-orange-soft);
  color: var(--icon-fg);
  transition: background-color .28s ease, color .28s ease;
}

.up-step:hover .up-step-icon {
  background-color: var(--icon-bg-hover);
  color: var(--icon-fg-hover);
}

.up-step-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.up-step h3 {
  width: auto;
  margin: 0 0 8px;
  padding-right: 34px; /* hält die Ziffer frei */
  font-size: 16.5px;
  line-height: 1.35;
}

.up-step p {
  margin: 0;
  color: var(--up-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* =============================================================
   5. DIE ABSCHLUSS-TAFEL

   .fr-cta--panel ist eine weiße Karte, und dieser Abschnitt ist weiß — sie
   nimmt hier deshalb die Creme. Derselbe Tausch wie bei den FAQ-Tafeln.
   ============================================================= */

.up-cta-panel {
  background-color: var(--up-cream);
  border-color: #f2e4d1;
}

/* =============================================================
   RESPONSIV
   ============================================================= */

@media only screen and (max-width: 1200px) {
  :root {
    --up-section-y: 3.5rem;
  }


  .up-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 1024px) {
  :root {
    --up-section-y: 3rem;
    --up-head-gap: 2rem;
  }

  .up-hero {
    min-height: 0;
  }

  .up-hero .up-inner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Gestapelt, der Verlauf muss also nicht mehr zu einer Seite hin schwerer
     sein. */
  .up-hero-overlay {
    background: var(--fr-scrim-stacked);
  }

  .up-facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  :root {
    --up-section-y: 2.5rem;
    --up-head-gap: 1.75rem;
  }


  .up-hero-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .up-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .up-hero-phone {
    justify-content: flex-start;
  }

  .up-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .up-step {
    padding: 22px 20px 24px;
  }

  .up-fact {
    padding: 18px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .up-hero-phone,
  .up-hero-phone-ico,
  .up-step,
  .up-step::before,
  .up-step-num,
  .up-step-icon {
    transition: none;
  }

  .up-hero-phone:hover,
  .up-step:hover {
    transform: none;
  }
}
