/* ==========================================================================
   Designsystem RatzFatz Umzugsrechner
   Farben und Schriften stammen von umzugratzfatz.de, damit Landingpage und
   Chat wie ein Teil der Kundenwebsite wirken.
   ========================================================================== */

:root {
  /* Marke */
  --rf-rot:          #bd1212;
  --rf-rot-dunkel:   #950d0d;
  --rf-rot-hell:     #da4d61;
  --rf-schwarz:      #020203;
  --rf-nacht:        #0c0c0f;   /* Hero-Hintergrund, minimal aufgehellt */

  /* Neutral */
  --rf-weiss:        #ffffff;
  --rf-grau-50:      #f7f7f8;
  --rf-grau-100:     #efeff1;
  --rf-grau-200:     #e3e3e7;
  --rf-grau-300:     #cdcdd4;
  --rf-grau-500:     #8b8b94;
  --rf-grau-700:     #4e4e57;

  /* Text */
  --rf-text:         #16161a;
  --rf-text-leise:   #5f5f68;
  --rf-text-invers:  #ffffff;

  /* Flaechen */
  --rf-flaeche:      #ffffff;
  --rf-flaeche-ruhig:#f7f7f8;
  --rf-linie:        #e3e3e7;

  /* Typografie */
  --rf-font-titel: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rf-font-text:  "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --rf-t-xs:   0.8125rem;                          /* 13px */
  --rf-t-s:    0.9375rem;                          /* 15px */
  --rf-t-m:    1.0625rem;                          /* 17px */
  --rf-t-l:    clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --rf-t-h3:   clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --rf-t-h2:   clamp(1.75rem, 2.2vw + 1rem, 2.75rem);
  --rf-t-h1:   clamp(2.25rem, 4.4vw + 1rem, 4rem);
  --rf-t-preis:clamp(2rem, 5vw + 0.5rem, 3.25rem);

  /* Abstaende */
  --rf-a-1: 0.25rem;
  --rf-a-2: 0.5rem;
  --rf-a-3: 0.75rem;
  --rf-a-4: 1rem;
  --rf-a-5: 1.5rem;
  --rf-a-6: 2rem;
  --rf-a-7: 3rem;
  --rf-a-8: 4.5rem;
  --rf-a-9: clamp(4rem, 8vw, 7.5rem);

  /* Radien, an den 4px der Kundenseite angelehnt, nur weicher */
  --rf-r-s:    6px;
  --rf-r-m:   12px;
  --rf-r-l:   20px;
  --rf-r-pill: 999px;

  /* Tiefe, sehr zurueckhaltend */
  --rf-schatten-1: 0 1px 2px rgba(2, 2, 3, 0.06), 0 1px 1px rgba(2, 2, 3, 0.04);
  --rf-schatten-2: 0 2px 6px rgba(2, 2, 3, 0.06), 0 12px 28px -14px rgba(2, 2, 3, 0.22);
  --rf-schatten-3: 0 24px 60px -24px rgba(2, 2, 3, 0.45);

  /* Layout */
  --rf-breite: 1120px;
  --rf-breite-schmal: 720px;

  --rf-tempo: 180ms cubic-bezier(0.2, 0, 0, 1);
}

/* --------------------------------------------------------------- Reset */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rf-flaeche);
  color: var(--rf-text);
  font-family: var(--rf-font-text);
  font-size: var(--rf-t-m);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--rf-font-titel);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 var(--rf-a-4);
  text-wrap: balance;
}

h1 { font-size: var(--rf-t-h1); }
h2 { font-size: var(--rf-t-h2); }
h3 { font-size: var(--rf-t-h3); letter-spacing: -0.015em; }

p { margin: 0 0 var(--rf-a-4); }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

/* Sichtbarer Fokus ist Pflicht, der Chat wird auch per Tastatur bedient. */
:focus-visible {
  outline: 3px solid rgba(189, 18, 18, 0.45);
  outline-offset: 2px;
  border-radius: var(--rf-r-s);
}

/* ------------------------------------------------------------ Bausteine */

.rf-behaelter {
  width: 100%;
  max-width: var(--rf-breite);
  margin-inline: auto;
  padding-inline: var(--rf-a-5);
}

.rf-nur-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Knopf, Grundform. Mindesthoehe 52px, der Traffic kommt vom Handy. */
.rf-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rf-a-2);
  min-height: 52px;
  padding: 0 var(--rf-a-6);
  border: 1px solid transparent;
  border-radius: var(--rf-r-pill);
  background: var(--rf-schwarz);
  color: var(--rf-text-invers);
  font-family: var(--rf-font-text);
  font-size: var(--rf-t-m);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--rf-tempo), background-color var(--rf-tempo),
              border-color var(--rf-tempo), box-shadow var(--rf-tempo);
}

.rf-knopf:hover { transform: translateY(-1px); }
.rf-knopf:active { transform: translateY(0); }

.rf-knopf--rot {
  background: var(--rf-rot);
  box-shadow: 0 10px 24px -12px rgba(189, 18, 18, 0.9);
}
.rf-knopf--rot:hover { background: var(--rf-rot-dunkel); }

.rf-knopf--offen {
  background: transparent;
  border-color: var(--rf-linie);
  color: var(--rf-text);
}
.rf-knopf--offen:hover { border-color: var(--rf-schwarz); }

.rf-knopf--hell {
  background: var(--rf-weiss);
  color: var(--rf-schwarz);
}

.rf-knopf--breit { width: 100%; }

/* Textmarker im Stil der Kundenseite: Wort auf roter Flaeche. */
.rf-marker {
  background: var(--rf-rot);
  color: var(--rf-text-invers);
  padding: 0 0.22em 0.06em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rf-augenbraue {
  font-family: var(--rf-font-titel);
  font-size: var(--rf-t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-rot);
  margin: 0 0 var(--rf-a-3);
}

.rf-vorspann {
  font-size: var(--rf-t-l);
  color: var(--rf-text-leise);
  max-width: 58ch;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------- Fusszeile

   Dezent, aber auf jeder Seite. Der Link ist bewusst nicht auf nofollow
   gesetzt, damit er fuer Create Lab zaehlt.
*/

.powered {
  padding: var(--rf-a-2) var(--rf-a-4) var(--rf-a-3);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: var(--rf-grau-500);
  background: var(--rf-weiss);
}

.powered a {
  color: var(--rf-grau-700);
  text-decoration: none;
  border-bottom: 1px solid var(--rf-grau-300);
}

.powered a:hover { color: var(--rf-rot); border-bottom-color: var(--rf-rot); }
