:root {
  /* Farbpalette */
  --color-primary:   #FFB700;
  --color-dark:      #264653;
  --color-white:     #ffffff;
  --color-text:      #333333;
  --color-border:    #EEEEEE;
  --color-active:    #FFB700;
  --color-button:    #264653;
  --color-btn-hover: #1E3F45;
  --color-overlay:   #264653;

  /* Typografie */
  --font-base:  Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading-weight: 900;
  --font-size-base:  1rem;
  --line-height:     1.5;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base); /* 1rem */
  line-height: var(--line-height); /* 1.5 */
  color: var(--color-text);
  margin: 0;
}

/* Global Container */
.container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-nav__link:hover,
.main-nav__link:active {
  color: var(--color-primary); /* #FFB700 */
}

/* ---------------------------------------------------
   Überschriften-Styles
   --------------------------------------------------- */
h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(2rem, 4vw + 1rem, 4.2rem);
  line-height: 1.1;
  margin: 0;
  text-transform: none;
}
h2 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
}
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-dark);
}
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Links im Text */
p a {
  color: var(--color-primary);
  text-decoration: underline;
}
p a:hover {
  color: var(--color-active);
}

ul {
  list-style-position: outside;
  padding-left: 1.5rem;
}
ul li {
  padding-left: 0.5rem;
}

/* ---------------------------------------------------
   Hero
   --------------------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0;
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate; /* sauberer Stacking-Context fürs Overlay */
}

.hero__bg-wrapper {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  /* pointer-events: none;  ← entfernt für CSS3-Validator */
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
    object-position: center bottom;
  z-index: 0;
  /* pointer-events: none;  ← entfernt für CSS3-Validator */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
  opacity: 0.65;
  z-index: 1;
}

/* === EINMALIGES, stabiles Hero-Layout === */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.hero__content {
  flex: 1 1 55%;
  min-width: 360px; /* verhindert kompletten Umbruch */
}

.hero__aside {
  flex: 1 1 40%;
  min-width: 320px;
  min-height: 420px;   /* Platz für Formular reserviert (Fallback) */
  content-visibility: auto;
  contain: layout paint style;
  /* contain-intrinsic-size: auto 420px; ← entfernt für CSS3-Validator */
  padding: 1rem;
  background-color: var(--color-active);
}

.hero__aside-heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  line-height: 1.3;
  color: var(--color-dark);
  font-size-adjust: .52;
}


/* Stabilisiert alle Headings beim Webfont-Swap */
h1, h2, h3, h4 {
  font-size-adjust: .52;
}

/* LCP-Absatz sofort stabil */
.hero p {
  font-family: var(--font-base);
  font-size-adjust: .52;
  opacity: 1;
  transform: none;
  max-width: 60ch;
  margin: 0 0 1rem;
}

/* Buttons */
.button,
.hero__btn-quote {
  font-family: var(--font-heading);
  font-size-adjust: .52;
}


/* Stabilisiert alle Headings beim Webfont-Swap */
h1, h2, h3, h4 {
  font-size-adjust: .52;
}

/* LCP-Absatz sofort stabil */
.hero p {
  font-family: var(--font-base);
  font-size-adjust: .52;
  opacity: 1;
  transform: none;
  max-width: 60ch;
  margin: 0 0 1rem;
}

/* Buttons */
.button, .hero__btn-quote {
  font-family: var(--font-heading);
  font-size-adjust: .52;
}

