:root {
  --bg: #fdfcf9;
  --surface: #ffffff;
  --surface-soft: #f7f4ee;
  --text: #111826;
  --text-soft: #4d5a66;
  --line: #e6dfd2;
  --blue-main: #768eab;
  --blue-light: #7fa1ce;
  --violet: #8d41be;
  --cyan: #1ab4cc;
  --gold: #d4b483;
  --focus: #1a73e8;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

/* 🔴 WICHTIGSTER FIX (Layoutproblem!) */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER – FINAL KORREKT
========================= */

.site-header,
.header-inner,
.brand,
.brand-logo,
.brand-title,
.main-nav {
  all: unset;
}

/* =========================
   HERO – unverändert
========================= */

.hero {
  padding: 56px 0 24px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: end;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 38px rgba(0, 0, 0, 0.22));
}

.hero-content {
  padding: 24px 0 24px;
}

.hero-kicker {
  margin: 0 0 14px;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 700;
  color: var(--blue-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-text {
  margin: 0;
  max-width: 58ch;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--blue-main);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

/* =========================
   SECTION – unverändert
========================= */

.section {
  padding: 54px 0;
}

.section-light {
  background: var(--surface-soft);
}

.section-head {
  margin-bottom: 24px;
}

.section-head.left {
  margin-bottom: 16px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--blue-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.section h2 {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.15;
}

.section-intro {
  max-width: 65ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* =========================
   FOOTER – FINAL KORREKT
========================= */

.site-footer {
  background: var(--bg);
  padding-top: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr 260px; /* FIX */
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
}

.footer-logo {
  width: 180px; /* FIX */
  height: auto;
}

.footer-center {
  text-align: center;
  font-weight: 700;
}

.footer-center p {
  margin: 6px 0;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-right img {
  width: 180px; /* FIX */
}

.footer-bottom-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   FOCUS + A11Y
========================= */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .footer-top,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .footer-center,
  .footer-right {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .container {
    padding: 0 16px;
  }
}