/* ============================================================
   RENORIS B2C — base.css
   Gleiche CI-Token wie die B2B-Seite, nur anders gewichtet:
   Sand trägt die Seite, Tiefblau setzt Zäsuren, Kupfer bleibt
   Signatur mit genau einem gefüllten Button je Ansicht.
   ============================================================ */

:root {
  /* --- Farbwelt · CI-Moodboard Entwurf 02 ----------------- */
  --tiefblau:      #0B1F33;
  --marine:        #14304D;
  --kupfer:        #B4703F;
  --kupfer-hell:   #D99A6C;
  --sand:          #F4F1EC;
  --nebel:         #E6E2DB;
  --graphit:       #1C2229;
  --freigabe:      #2F7D5C;

  /* --- Abgeleitet ----------------------------------------- */
  --bg:            var(--sand);
  --bg-weiss:      #FBFAF8;
  --fg:            var(--graphit);
  --heading:       var(--tiefblau);
  --fg-muted:      rgba(28, 34, 41, .70);
  --line:          var(--nebel);
  --line-strong:   rgba(11, 31, 51, .24);

  --on-dark:       var(--sand);
  --on-dark-muted: rgba(244, 241, 236, .62);
  --on-dark-line:  rgba(244, 241, 236, .16);

  --accent:        var(--kupfer);
  /* Kupfer als Textfarbe erreicht auf Sand nur 3,5:1 und ist laut CI
     ohnehin Linie und Marker, nicht Schrift. Für Beschriftungen gibt es
     deshalb eine abgedunkelte Variante derselben Farbe: 5,6:1 auf Sand,
     4,9:1 auf Nebel. Flächen und Linien bleiben beim reinen Kupfer. */
  --kupfer-text:   #8C5129;
  --accent-text:   var(--kupfer-text);

  /* --- Typografie ----------------------------------------- */
  --font-display: "Outfit", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* B2C etwas kleiner als B2B — hier wird gelesen, nicht inszeniert */
  --fs-display: clamp(2.4rem, 4.6vw, 4.1rem);
  --fs-h2:      clamp(1.85rem, 3.1vw, 2.9rem);
  --fs-h3:      clamp(1.15rem, 1.5vw, 1.5rem);
  --fs-lead:    clamp(1.05rem, 1.25vw, 1.3rem);
  --fs-body:    clamp(1rem, 1.02vw, 1.09rem);
  --fs-mono:    0.6875rem;

  --lh-body:    1.65;

  /* --- Raster --------------------------------------------- */
  --wrap:       min(1280px, 92vw);
  --wrap-narrow: min(880px, 92vw);
  --gutter:     clamp(1.25rem, 4vw, 4rem);
  --section-y:  clamp(4rem, 8vh, 7.5rem);
  --radius:     3px;
  --radius-lg:  6px;

  /* --- Motion --------------------------------------------- */
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);

  /* Höhe der mobilen Kontaktleiste — hält den Fuss frei */
  --bar-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, fieldset, legend { margin: 0; }
ol, ul { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

::selection { background: var(--kupfer); color: var(--sand); }
:focus-visible { outline: 2px solid var(--kupfer); outline-offset: 3px; }

/* ------------------------------------------------------------
   Typografie-Klassen
   ------------------------------------------------------------ */
.h-display { font-size: var(--fs-display); text-wrap: balance; }
.h2 { font-size: var(--fs-h2); text-wrap: balance; }
.h3 { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.52;
  color: var(--fg-muted);
  max-width: 54ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--kupfer);
  flex: none;
}
.eyebrow--light { color: var(--on-dark-muted); }
.eyebrow--light::before { background: var(--kupfer-hell); }

/* ------------------------------------------------------------
   Buttons — genau ein gefüllter Kupfer-Button je Ansicht
   ------------------------------------------------------------ */
.btn {
  --btn-fg: var(--tiefblau);
  --btn-bg: transparent;
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 1.8rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  text-align: center;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--tiefblau);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover::after { transform: scaleY(1); }
.btn:hover { color: var(--sand); border-color: var(--tiefblau); }

.btn--primary {
  --btn-bg: var(--kupfer);
  --btn-fg: var(--tiefblau);
  --btn-bd: var(--kupfer);
  font-weight: 500;
}
.btn--primary::after { background: var(--tiefblau); }
.btn--primary:hover { color: var(--sand); border-color: var(--tiefblau); }

.btn--outline { --btn-fg: var(--sand); --btn-bd: rgba(244,241,236,.34); }
.btn--outline::after { background: var(--sand); }
.btn--outline:hover { color: var(--tiefblau); border-color: var(--sand); }

.btn--lg { padding: 1.25rem 2.1rem; }
.btn--sm { padding: .8rem 1.2rem; font-size: .625rem; }
.btn--block { width: 100%; }

/* Telefon-Link im Fliesstext */
.tel-link {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  border-bottom: 1px solid var(--kupfer);
  padding-bottom: 1px;
  white-space: nowrap;
}
.tel-link:hover { color: var(--kupfer-text); }

/* ------------------------------------------------------------
   Reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
