/* ==========================================================================
   Widi Garage AG – Stylesheet
   --------------------------------------------------------------------------
   Desktop-First: Basis-Styles = Desktop-Frame (1920 px),
   Anpassungen für kleinere Viewports über max-width Media Queries
   (1600 → 1280 → 1024 → 768 → 360).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --color-primary:        #50c7f2;
  --color-primary-dark:   #48bde8;
  --color-primary-hover:  #3ab9e9;
  --color-text:           #252525;
  --color-white:          #ffffff;
  --color-overlay-light:  rgba(255, 255, 255, 0.30);
  --color-focus:          #1b6f8f;

  /* Schatten */
  --shadow-header:   0 4px 4px rgba(0, 0, 0, 0.15);
  --shadow-card:     0 4px 25.8px 3px rgba(0, 0, 0, 0.25);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.16);

  /* Typografie */
  --font-display: "Volvo Broad", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fw-medium: 500;
  --fw-bold:   700;
  --fw-black:  900;

  --fs-h1:      96px;
  --fs-h2:      75px;
  --fs-h3:      48px;
  --fs-number:  220px;
  --fs-eyebrow: 24px;
  --fs-body:    20px;
  --fs-nav:     20px;
  --fs-btn:     20px;
  --fs-footer:  20px;

  --lh-display: 1;
  --lh-body:    1.255;

  /* Layout */
  --header-height:   165px;
  --gutter:          80px;      /* Seitenabstand Header/Footer */
  --container-max:   1760px;    /* 1920 – 2×80 */
  --container-narrow:1462px;    /* Inhaltsbreite Hero/Sections */
  --grid-gap:        94px;

  --radius-card:  33px;
  --radius-news:  33px;
  --radius-btn:   15px;

  --btn-height:    55px;
  --btn-padding-x: 35px;

  /* Section-Rhythmus (Desktop-Frame) */
  --hero-min-height:     915px;
  --services-pt:         123px;
  --services-pb:         139px;
  --news-pt:             78px;
  --news-pb:             54px;
  --footer-main-height:  663px;
  --footer-bottom-height:75px;

  /* Breakpoints – Referenzwerte (Media Queries können keine Custom Properties
     lesen; JS liest --bp-nav aus, damit Burger-Logik & CSS synchron bleiben) */
  --bp-xl:  1600px;
  --bp-lg:  1280px;
  --bp-md:  1024px;
  --bp-sm:  768px;
  --bp-xs:  480px;
  --bp-nav: 1280px;
}

/* Proprietäre Display-Schrift – Font-Dateien unter /assets/fonts/ ablegen.
   Bis dahin greift der Fallback (Bebas Neue via Google Fonts – Laufweite sehr nah an Volvo Broad). */
@font-face {
  font-family: "Volvo Broad";
  src: url("../fonts/VolvoBroad.woff2") format("woff2"),
       url("../fonts/VolvoBroad.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: 12px 20px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-weight: var(--fw-bold);
}
.skip-link:focus { top: 0; }


/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}


/* --------------------------------------------------------------------------
   4. Typografie
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  text-transform: uppercase;      /* Volvo Broad wirkt in der Vorlage als Versalschrift */
  letter-spacing: 0;
}

.display--xl { font-size: var(--fs-h1); }
.display--lg { font-size: var(--fs-h2); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  line-height: 1.25;
}


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-primary-hover);
}

.btn:active { transform: translateY(1px); }


/* --------------------------------------------------------------------------
   6. Social-Icons
   -------------------------------------------------------------------------- */
.social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social li { display: flex; }

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  transition: opacity 0.2s ease;
}

.social__link--lg {
  width: 31px;
  height: 31px;
}

.social__link img {
  width: 100%;
  height: 100%;
}

.social__link:hover { opacity: 0.75; }


/* --------------------------------------------------------------------------
   7. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 60px;               /* Logo sitzt in der Vorlage 60px vom Rand */
}

.site-header__logo {
  flex-shrink: 0;
  width: 216px;
  height: 124px;
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 56px;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Hover / aktiv / geöffnetes Dropdown: Blau + Black (Figma 102-141) */
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active,
.site-nav__toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.site-nav__link.is-active,
.site-nav__toggle[aria-expanded="true"] {
  font-weight: var(--fw-black);
}

/* Schriftschnitt-Wechsel darf die Nachbarn nicht verschieben:
   Breite über unsichtbaren Black-Text reservieren */
.site-nav__label {
  display: inline-grid;
  text-align: inherit;
}

.site-nav__label::after {
  content: attr(data-label);
  grid-area: 1 / 1;
  height: 0;
  visibility: hidden;
  font-weight: var(--fw-black);
  pointer-events: none;
}

.site-nav__chevron {
  width: 10px;
  height: 8px;
}

/* Umbruch "Neuwagen / Occasion" nur im mobilen Menü */
.site-nav__break { display: none; }

.site-nav__cta { min-width: 148px; }

/* Social-Icons im Menü – nur mobil */
.social--nav { display: none; }

/* Dropdown – dunkles Panel (Figma 102-141): 332×264, Radius 29, #252525 */
.dropdown {
  position: absolute;
  top: calc(100% + 21px);
  left: -3px;
  z-index: 50;
  min-width: 332px;
  padding: 21px 39px;                 /* 27px optisch, abzüglich 6px Item-Padding */
  background: var(--color-text);
  border-radius: 29px;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* unsichtbare Brücke, damit der Hover zwischen Toggle und Panel nicht abreisst */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -21px;
  height: 21px;
}

.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.dropdown__link {
  display: grid;
  padding: 6px 0;
  font-size: var(--fs-nav);
  line-height: 1.25;
  color: var(--color-white);
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Breite für den Black-Schnitt vorreservieren → Panel wächst beim Hover nicht */
.dropdown__link::after {
  content: attr(data-label);
  grid-area: 1 / 1;
  height: 0;
  visibility: hidden;
  font-weight: var(--fw-black);
  pointer-events: none;
}

.dropdown__link:hover,
.dropdown__link:focus-visible,
.dropdown__link.is-active {
  color: var(--color-primary);
  font-weight: var(--fw-black);
}

/* Burger – erst im mobilen Layout sichtbar */
.burger {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Linien bleiben laut Vorlage (Figma 180-218) auch im geöffneten Zustand unverändert */
.burger__line {
  display: block;
  width: 29px;
  height: 3px;
  border-radius: 200px;
  background: var(--color-primary);
  transition: opacity 0.2s ease;
}

.burger__line:nth-child(2) { width: 25px; }

.burger:hover .burger__line { opacity: 0.75; }


/* --------------------------------------------------------------------------
   8. Blaue Hintergrundform (Hero + Dienstleistungen)
   -------------------------------------------------------------------------- */
.brand-backdrop {
  position: relative;
  background-image: url("../images/shape-hero.svg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;       /* SVG hat preserveAspectRatio="none" */
}


/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: var(--hero-min-height);
}

.hero__inner {
  position: relative;
  padding-top: 167px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__content .display--xl { margin-top: 0; }

.hero__text {
  max-width: 560px;
  margin-top: 20px;
}

.hero__cta {
  margin-top: 29px;
  min-width: 248px;
}

.hero .social { margin-top: 20px; }

/* Icon-Collage: Positionen aus dem Desktop-Frame (Ursprung 1011/480),
   über --s skalierbar */
.hero__art {
  --s: 1;
  position: absolute;
  top: 315px;
  right: calc(var(--gutter) - 27px * var(--s));   /* Collage ragt 27px über die Inhaltsbreite */
  z-index: 1;
  width: calc(706px * var(--s));
  height: calc(441px * var(--s));
  pointer-events: none;
}

.hero__icon {
  position: absolute;
  display: block;
  width:  calc(var(--w) * var(--s));
  height: calc(var(--w) * var(--s));
  left:   calc(var(--x) * var(--s));
  top:    calc(var(--y) * var(--s));
}

.hero__icon--car-tag      { --w: 179px; --x: 85px;  --y: 32px;  }
.hero__icon--toolbox      { --w: 190px; --x: 517px; --y: 0px;   }
.hero__icon--gear         { --w: 70px;  --x: 307px; --y: 73px;  }
.hero__icon--car-mechanic { --w: 147px; --x: 369px; --y: 71px;  }
.hero__icon--tool-fill    { --w: 92px;  --x: 262px; --y: 139px; }
.hero__icon--mechanic     { --w: 117px; --x: 0px;   --y: 199px; }
.hero__icon--hammer       { --w: 174px; --x: 125px; --y: 203px; display: flex; align-items: center; justify-content: center; }
.hero__icon--hammer img   { width: 76%; height: 76%; transform: rotate(23.47deg); }
.hero__icon--car          { --w: 225px; --x: 291px; --y: 199px; }
.hero__icon--gas          { --w: 91px;  --x: 503px; --y: 235px; }
.hero__icon--tools        { --w: 90px;  --x: 209px; --y: 351px; }

/* Partnermarken unten rechts */
.hero__brands {
  position: absolute;
  right: 27px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 23px;
}

.hero__brands li:nth-child(1) img { width: 144px; height: 83px; object-fit: contain; }
.hero__brands li:nth-child(2) img { width: 165px; height: 60px; object-fit: contain; }


/* --------------------------------------------------------------------------
   10. Dienstleistungen
   -------------------------------------------------------------------------- */
.services {
  position: relative;
  padding-top: var(--services-pt);
  padding-bottom: var(--services-pb);
}

.services .display--lg { margin-bottom: 73px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 57px;
}

.service-card__link {
  display: block;
  color: inherit;
}

.service-card__media {
  position: relative;
  aspect-ratio: 425 / 282;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* heller Overlay wie in der Vorlage (weiss, 30 %) */
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay-light);
  pointer-events: none;
}

.service-card__link:hover .service-card__media,
.service-card__link:focus-visible .service-card__media {
  transform: translateY(-4px);
}

/* Nummer überlappt die Karte, Titel sitzt auf gemeinsamer Grundlinie */
.service-card__caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: -120px;
  padding-left: 41px;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-number);
  line-height: 1;
  color: var(--color-text);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text);
}


/* --------------------------------------------------------------------------
   11. Aktuelles / News
   -------------------------------------------------------------------------- */
.news {
  padding-top: var(--news-pt);
  padding-bottom: var(--news-pb);
  background: var(--color-white);
}

.news .display--lg { margin-bottom: 61px; }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 424 / 449;
  border-radius: var(--radius-news);
  background: var(--color-text);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
}

.news-card__media {
  flex: 0 0 52.4%;
  border-radius: var(--radius-news) var(--radius-news) 0 0;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
}

.news-card__body {
  flex: 1 1 auto;
  padding: 29px 32px 0 31px;
}

.news-card__title {
  font-size: var(--fs-h3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card__text {
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button ragt in der Vorlage 21 px über die Kartenunterkante */
.news-card__btn {
  position: absolute;
  left: 0;
  bottom: -21px;
  min-width: 186px;
}

.news__more {
  margin-top: 124px;
  text-align: center;
}

.news__more .btn { min-width: 276px; }


/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer__main {
  min-height: var(--footer-main-height);
  padding-top: 138px;
  padding-bottom: 60px;
  background-image: url("../images/shape-footer.svg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
}

/* W-Marke: Ausschnitt aus dem Logo */
.site-footer__mark {
  width: 276px;
  height: 158px;
  margin: 0 auto 64px;
  overflow: hidden;
}

.site-footer__mark img {
  width: 168.59%;
  max-width: none;
  margin-left: -32.56%;
  margin-top: -1.65%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 425px) auto;
  justify-content: space-between;
  column-gap: 40px;
  row-gap: 48px;
}

.footer-col__title {
  font-size: var(--fs-h3);
  color: var(--color-text);
}

.footer-col__text {
  margin-top: 17px;
  font-size: var(--fs-footer);
  color: var(--color-text);
}

/* Hover wie bei den Social-Icons: Farbe bleibt (#252525), nur leicht abgeschwächt */
.footer-col__strong {
  font-weight: var(--fw-black);
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.footer-col__strong:hover,
.footer-col__strong:focus-visible {
  color: var(--color-text);
  opacity: 0.75;
}

.footer-col--links { margin-right: 34px; }

.footer-col--links .social {
  margin-top: 34px;
  gap: 10px;
}

.footer-col--links .social__link { width: 25px; height: 25px; }

.site-footer__bottom {
  min-height: var(--footer-bottom-height);
  background: var(--color-white);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--footer-bottom-height);
  font-size: var(--fs-footer);
}

.site-footer__link {
  font-weight: var(--fw-black);
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.site-footer__link:hover { color: var(--color-primary-hover); }


/* ==========================================================================
   13. Responsive – Desktop-First (max-width)
   ========================================================================== */

/* ---------- ≤ 1600px: grosse Laptops ---------- */
@media (max-width: 1600px) {
  :root {
    --fs-h1: 80px;
    --fs-h2: 64px;
    --fs-h3: 42px;
    --fs-number: 190px;
    --fs-eyebrow: 22px;
    --fs-nav: 18px;
    --gutter: 64px;
    --grid-gap: 60px;
    --hero-min-height: 840px;
  }

  .site-header__inner { padding-left: 48px; }
  .site-nav { gap: 40px; }
  .site-nav__list { gap: 36px; }

  .hero__inner { padding-top: 140px; }
  .hero__art { --s: 0.8; top: 290px; }

  .service-card__caption { margin-top: -104px; padding-left: 36px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}

/* ---------- ≤ 1280px: Tablet quer / kleine Laptops – Burger-Navigation ---------- */
@media (max-width: 1280px) {
  :root {
    --header-height: 121px;
    --fs-h1: 68px;
    --fs-h2: 54px;
    --fs-h3: 36px;
    --fs-number: 160px;
    --fs-eyebrow: 20px;
    --fs-body: 18px;
    --fs-btn: 18px;
    --fs-footer: 18px;
    --fs-nav: 20px;
    --gutter: 48px;
    --grid-gap: 48px;
    --btn-height: 50px;
    --btn-padding-x: 28px;
    --hero-min-height: 720px;
    --services-pt: 96px;
    --services-pb: 110px;
    --news-pt: 72px;
    --footer-main-height: 560px;
  }

  .site-header__inner { padding-left: 26px; }
  .site-header__logo { width: 133px; height: 76px; }

  /* Burger sichtbar – Navigation als blauer Drawer von rechts (Figma 180-218) */
  .burger { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    z-index: 105;
    width: 320px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding: 41px 45px 52px 24px;
    background: var(--color-primary);
    border-radius: 15px 0 0 15px;
    text-align: right;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .site-nav__item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .site-nav__link {
    flex-direction: row-reverse;      /* Chevron links vom Label */
    justify-content: flex-end;
    gap: 25px;
    padding: 0;
    font-size: 18px;
    line-height: 1.28;
    white-space: normal;
    color: var(--color-text);
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .site-nav__link.is-active {
    color: var(--color-white);
  }

  /* geöffneter Toggle bleibt im mobilen Menü unverändert (dunkel, Medium) */
  .site-nav__toggle[aria-expanded="true"] {
    color: var(--color-text);
    font-weight: var(--fw-medium);
  }

  .site-nav__toggle[aria-expanded="true"]:hover,
  .site-nav__toggle[aria-expanded="true"]:focus-visible {
    color: var(--color-white);
  }

  .site-nav__break { display: inline; }

  .site-nav__chevron { width: 10px; height: 8px; }

  /* Dropdown als Akkordeon: rechtsbündig, 14px, kein Panel */
  .dropdown {
    position: static;
    min-width: 0;
    padding: 12px 0 0;
    background: none;
    border-radius: 0;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .dropdown::before { display: none; }

  .has-dropdown.is-open > .dropdown { display: block; transform: none; }

  .dropdown li + li { margin-top: 7px; }

  .dropdown__link {
    padding: 0;
    font-size: 14px;
    line-height: 1.29;
    color: var(--color-text);
  }

  .dropdown__link:hover,
  .dropdown__link:focus-visible,
  .dropdown__link.is-active {
    color: var(--color-white);
    font-weight: var(--fw-black);
  }

  /* Kontakt-Button: weiss auf blau, 124×46 */
  .site-nav__cta {
    margin-top: 37px;
    align-self: flex-end;
    min-width: 124px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 15px;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 18px;
  }

  .site-nav__cta:hover,
  .site-nav__cta:focus-visible {
    background: var(--color-white);
    color: var(--color-primary-hover);
  }

  /* Social-Icons (weiss) unter dem Button */
  .social--nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 36px;
  }

  .social--nav .social__link { width: 20px; height: 20px; }

  .hero__inner { padding-top: 110px; }
  .hero__content { max-width: 700px; }
  .hero__art { --s: 0.62; top: 300px; right: var(--gutter); }
  .hero__brands { right: 24px; bottom: 16px; gap: 16px; }
  .hero__brands li:nth-child(1) img { width: 110px; height: 64px; }
  .hero__brands li:nth-child(2) img { width: 126px; height: 46px; }

  .services .display--lg { margin-bottom: 56px; }
  .services__grid { row-gap: 40px; }
  .service-card__caption { margin-top: -88px; padding-left: 30px; gap: 12px; }

  .news .display--lg { margin-bottom: 48px; }
  .news-card__body { padding: 22px 24px 0; }
  .news-card__btn { min-width: 150px; bottom: -18px; }
  .news__more { margin-top: 96px; }
  .news__more .btn { min-width: 240px; }

  .site-footer__main { padding-top: 96px; }
  .site-footer__mark { width: 220px; height: 126px; margin-bottom: 48px; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 40px;
  }
  .footer-col--links { margin-right: 0; }
}

/* ---------- ≤ 1024px: Tablet hoch ---------- */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 60px;
    --fs-h2: 48px;
    --fs-h3: 32px;
    --fs-number: 140px;
    --hero-min-height: 0px;
  }

  .hero__inner { padding-top: 96px; padding-bottom: 120px; }
  .hero__content { max-width: 560px; }
  .hero__art { --s: 0.5; top: auto; bottom: 100px; right: var(--gutter); }   /* oberhalb der Partnermarken */
  .hero__brands { position: absolute; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
  .news-card { width: 100%; max-width: 424px; }
}

/* ---------- ≤ 768px: Mobile (Vorlage 393px) ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 121px;
    --fs-h1: 54px;
    --fs-h2: 36.84px;
    --fs-h3: 27.3px;
    --fs-number: 124px;
    --fs-eyebrow: 13.5px;
    --fs-body: 11.24px;
    --fs-btn: 11.24px;
    --fs-footer: 11.24px;
    --fs-nav: 18px;
    --gutter: 52px;
    --radius-card: 33px;
    --radius-news: 18.6px;
    --radius-btn: 8.4px;
    --btn-height: 31px;
    --btn-padding-x: 19px;
    --hero-min-height: 0px;
    --services-pt: 70px;
    --services-pb: 100px;
    --news-pt: 82px;
    --news-pb: 12px;
    --footer-main-height: 982px;
    --footer-bottom-height: 72px;
  }

  .skip-link { left: 16px; }

  /* Header */
  .site-header__inner { padding-left: 26px; padding-right: 32px; }   /* Burger-Linien enden wie in der Vorlage 39px vor dem Rand */
  .site-nav { width: 281px; }            /* Drawer-Breite laut Mobile-Frame */

  /* blaue Form – mobile Variante (639×2250, um −100px/+268px versetzt) */
  .brand-backdrop {
    background-image: url("../images/shape-hero-mobile.svg");
    background-position: -100px 268px;
    background-size: calc(100% + 246px) calc(100% - 268px);
  }

  /* Hero */
  .hero__inner {
    padding-top: 77px;
    padding-bottom: 0;
  }

  .hero__content { max-width: 289px; }
  .hero__content .display--xl { max-width: 289px; }
  .hero__text { margin-top: 22px; max-width: 289px; }
  .hero__cta { margin-top: 24px; min-width: 139px; }
  .hero .social { margin-top: 11px; gap: 4px; }
  .social__link { width: 14px; height: 14px; }
  .social__link--lg { width: 17.4px; height: 17.4px; }
  .eyebrow { line-height: 1.2; }

  /* Collage wird zum Flow-Element unter dem Text */
  .hero__art {
    --s: 0.42;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 32px 0 0 2px;
  }

  .hero__brands {
    position: static;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    padding: 0 20px 25px 0;
  }

  .hero__brands li:nth-child(1) img { width: 63px; height: 36px; }
  .hero__brands li:nth-child(2) img { width: 72px; height: 27px; }

  /* Dienstleistungen: 1 Spalte, Karte 244px zentriert */
  .services .display--lg { margin-bottom: 55px; margin-right: -12px; }   /* "Unsere Dienstleistungen" darf minimal in den Rand laufen (2 Zeilen wie im Frame) */

  .services__grid {
    grid-template-columns: minmax(0, 244px);
    justify-content: center;
    row-gap: 35px;
  }

  .service-card__caption {
    margin-top: -69px;
    padding-left: 34px;
    gap: 8px;
  }

  /* News: 1 Spalte, Karte 240px zentriert */
  .news .display--lg { margin-bottom: 47px; }

  .news__grid {
    grid-template-columns: minmax(0, 240px);
    justify-content: center;
    row-gap: 60px;                       /* 48px + 12px Button-Überhang */
  }

  .news-card { max-width: 240px; }
  .news-card__body { padding: 16px 19px 0 17.5px; }
  .news-card__text { margin-top: 6px; }
  .news-card__btn { min-width: 105px; bottom: -12px; }

  .news__more { margin-top: 60px; }
  .news__more .btn { min-width: 157px; }

  /* Footer – Wellenform (1160×982, um −383px versetzt), Inhalte zentriert */
  .site-footer__main {
    padding-top: 160px;
    padding-bottom: 60px;
    background-image: url("../images/shape-footer-mobile.svg");
    background-position: -383px 0;
    background-size: calc(100% + 767px) 100%;
    text-align: center;
  }

  .site-footer__mark { width: 161px; height: 92px; margin-bottom: 49px; }

  .footer-grid {
    grid-template-columns: minmax(0, 285px);
    justify-content: center;
    row-gap: 48px;
  }

  .footer-col__text { margin-top: 13px; }
  .footer-col--links .social { justify-content: center; margin-top: 18px; gap: 8px; }
  .footer-col--links .social__link { width: 19px; height: 19px; }

  .site-footer__bottom-inner {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 4px;
    padding-block: 12px;
    font-size: 11.69px;
    text-align: center;
  }
}

/* ---------- ≤ 360px: sehr kleine Smartphones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 24px; --fs-h1: 46px; }

  .hero__content,
  .hero__content .display--xl,
  .hero__text { max-width: 100%; }

  .site-header__inner { padding-right: 20px; }
  .services__grid,
  .news__grid { grid-template-columns: minmax(0, 100%); }
}
