/* Schmees & Lühn – AluBohle Landingpage
   Umsetzung 1:1 nach Figma "S&L Landingpage" */

/* Fonts
   Primärschrift lt. Design: "DIN Next LT Pro" (lizenzpflichtig!).
   Lege die lizenzierten Web-Font-Dateien in assets/fonts/ ab und
   aktiviere die @font-face-Blöcke unten. Bis dahin greift der
   Fallback (Inter), der dem Schriftbild sehr nahe kommt. */
/*
@font-face {
  font-family: "DIN Next LT Pro";
  src: url("../assets/fonts/DINNextLTPro-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DIN Next LT Pro";
  src: url("../assets/fonts/DINNextLTPro-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DIN Next LT Pro";
  src: url("../assets/fonts/DINNextLTPro-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

/* Inter (self-hosted, DSGVO-konform)
   Lokal eingebunden statt von Google-Servern (keine IP-Übertragung an
   Google). Dateien: assets/fonts/inter-latin-*-normal.woff2 */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Design Tokens */
:root {
  /* Brand */
  --brand-primary: #014B92;
  --brand-m-blue:  #0671E0;
  --brand-secondary: #E6FF00;
  --brand-info:    #0B89FE;
  /* Action */
  --action-error:   #E53835;
  --action-success: #2E7D31;
  --action-warning: #FBC02D;
  /* Neutral */
  --white:          #FFFFFF;
  --black:          #212121;
  --black-2:        #131516;
  --d-grey:         #303436;
  --grey:           #717171;
  --grey-2:         #565E61;
  --grey-blue:      #ABBED1;
  --l-grey:         #89939E;
  --l-grey-2:       #7D888C;
  --silver:         #F5F7FA;
  /* Shades */
  --shade-s1: #013F7A;
  --shade-s2: #013565;
  --shade-s3: #012A51;
  --shade-s4: #01203D;
  --shade-s5: #011528;
  /* Tints */
  --tint-t1: #9ACEFE;
  --tint-t2: #AED8FF;
  --tint-t3: #C2E1FF;
  --tint-t4: #D6EBFF;
  --tint-t5: #EBF5FF;
  /* Text */
  --text-900: #18191F;
  --text-300: #D9DBE1;

  /* Typography */
  --font-primary: "DIN Next LT Pro", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-secondary: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Shadows */
  --shadow-2:  0 2px 4px 0 rgba(171,190,209,0.6);
  --shadow-4:  0 4px 8px 0 rgba(171,190,209,0.4);
  --shadow-6:  0 6px 12px 0 rgba(171,190,209,0.3);
  --shadow-8:  0 8px 16px 0 rgba(171,190,209,0.4);
  --shadow-16: 0 16px 32px 0 rgba(171,190,209,0.3);

  /* Layout */
  --content-max: 1152px;   /* 1440 - 2*144 */
  --gutter: 144px;
  --radius-btn: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 20px;
  line-height: 1.5;
  color: var(--d-grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 60px; }
.section--silver { background: var(--silver); }

/* Typography */
.h1 { font-size: 64px; line-height: 76px; font-weight: 700; color: var(--d-grey); margin: 0; letter-spacing: 0; }
.h2 { font-size: 36px; line-height: 44px; font-weight: 500; color: var(--d-grey); margin: 0; }
.h3 { font-size: 28px; line-height: 36px; font-weight: 500; color: var(--d-grey); margin: 0; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--d-grey); margin: 0; }
.lead { font-size: 20px; line-height: 24px; font-weight: 400; color: var(--grey-2); margin: 0; }
.body { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--grey-2); margin: 0; }
.eyebrow { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--d-grey); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  border-radius: var(--radius-btn);
  transition: background-color .18s ease, box-shadow .18s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: var(--white);
  padding: 14px 32px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  /* Wipe: dunkleres Blau läuft von links nach rechts ein */
  background-image: linear-gradient(90deg, var(--shade-s1) 50%, var(--brand-primary) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .4s ease, box-shadow .22s ease;
}
.btn--primary:hover { background-position: 0 0; box-shadow: var(--shadow-4); }
.btn--header {
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  background-image: linear-gradient(90deg, var(--shade-s1) 50%, var(--brand-primary) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .4s ease, box-shadow .22s ease;
}
.btn--header:hover { background-position: 0 0; box-shadow: var(--shadow-4); }
.btn__arrow { width: 16px; height: 16px; }

/* Header */
.header {
  background: var(--silver);
  height: 84px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 144px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { height: 48px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 50px;
}
.nav__link {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-900);
  transition: color .15s ease;
}
.nav__link:hover { color: var(--brand-primary); }
.nav__link--brand,
.nav__link.is-active { color: var(--brand-primary); font-weight: 500; }
.nav-toggle { display: none; }

/* Hero (Startseite: Bild oben) */
.hero {
  background: var(--silver);
  padding-block: 60px;
}
.hero__media {
  width: 100%;
  aspect-ratio: 1151 / 460;
  object-fit: cover;
  border-radius: 0px;
  margin-bottom: 40px;
}
.hero__text { display: flex; flex-direction: column; gap: 16px; max-width: 1152px; }
.hero__title { max-width: 100%; }
.hero__lead { max-width: 631px; }
.hero__actions { margin-top: 32px; }

/* Hero (Unterseiten: Text oben, Bild unten) */
.subhero { background: var(--white); padding-block: 60px; }
.subhero__text { display: flex; flex-direction: column; gap: 16px; }
.subhero__title { max-width: 782px; }
.subhero__lead { max-width: 631px; }
.subhero__actions { margin-top: 32px; }
.subhero__media {
  width: 100%;
  aspect-ratio: 1151 / 460;
  object-fit: cover;
  border-radius: 0px;
  margin-top: 40px;
}

/* Teaser / "Unlock" Zeilen (Startseite) */
.teaser { padding-block: 48px; }
.teaser__row {
  display: grid;
  grid-template-columns: 562px 488px;
  justify-content: space-between;
  align-items: center;
  gap: 96px;
}
.teaser__media {
  width: 100%;
  border-radius: 0px;
  object-fit: cover;
  aspect-ratio: 562 / 310;
}
.teaser__media--contain {
  object-fit: contain;
  background: transparent;
}
.teaser__content { display: flex; flex-direction: column; gap: 32px; }
.teaser__text { display: flex; flex-direction: column; gap: 16px; max-width: 501px; }
.teaser--reverse .teaser__media { order: 2; }
.teaser--reverse .teaser__content { order: 1; }

/* Feature Grid (bookmark-check) */
.features { padding-block: 20px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 562px));
  justify-content: space-between;
  column-gap: 30px;
  row-gap: 40px;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { width: 47px; height: 47px; flex: 0 0 47px; }
.feature__body { display: flex; flex-direction: column; gap: 4px; }
.feature__title { font-size: 28px; line-height: 36px; font-weight: 500; color: var(--d-grey); margin: 0; }
.feature__desc { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--grey-2); margin: 0; }

/* CTA-Band */
.cta {
  background: var(--silver);
  padding-block: 60px;
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta__eyebrow { color: var(--d-grey); }
.cta__title { color: var(--black-2); max-width: 760px; }
.cta__lead { max-width: 628px; }
.cta__actions { margin-top: 16px; }

/* Downloadbereich */
.downloads {
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 408px) auto;
  justify-content: space-between;
  gap: 60px;
  align-items: center;
}
.downloads__heading { display: flex; flex-direction: column; gap: 8px; max-width: 408px; }
.downloads__desc { color: var(--text-900); }
.downloads__grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 30px;
  row-gap: 40px;
}
.download {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--grey-2);
}
.download:hover .download__label { color: var(--brand-primary); }
.download__icon { width: 48px; height: 48px; flex: 0 0 48px; }
.download__label { font-size: 20px; line-height: 24px; }

/* Footer (dunkel) */
.footer {
  background: var(--shade-s4);
  color: var(--white);
}
.footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer__logo { height: 59px; width: auto; filter: brightness(0) invert(1); }
.footer__links { display: flex; gap: 30px; }
.footer__link { font-size: 20px; line-height: 28px; color: var(--white); }
.footer__link:hover { color: var(--tint-t3); }

/* Responsive */
@media (max-width: 1240px) {
  .header__inner { padding-inline: 48px; }
  .footer__inner { padding-inline: 64px; }
  .teaser__row { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  body { font-size: 18px; }
  .h1 { font-size: 44px; line-height: 52px; }
  .h2 { font-size: 30px; line-height: 38px; }
  .h3 { font-size: 24px; line-height: 32px; }

  .header__inner { padding-inline: 24px; }
  .nav {
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--silver);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    border-top: 1px solid var(--grey-blue);
    box-shadow: var(--shadow-4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; width: 100%; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    padding: 10px;
    order: 3;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--d-grey); border-radius: 2px; transition: .2s; }
  .header__cta { display: none; }

  .teaser__row { grid-template-columns: 1fr; gap: 32px; }
  .teaser--reverse .teaser__media { order: 0; }
  .teaser--reverse .teaser__content { order: 0; }
  .teaser__text { max-width: none; }

  .features__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .downloads { grid-template-columns: 1fr; gap: 32px; }
  .downloads__grid { grid-template-columns: 1fr; row-gap: 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; padding: 48px 24px; gap: 32px; }
}

@media (max-width: 560px) {
  .h1 { font-size: 34px; line-height: 42px; }
  .hero__media, .subhero__media { aspect-ratio: 16 / 10; }
  .btn--primary { padding: 12px 24px; font-size: 18px; }
  .footer__links { flex-direction: column; gap: 16px; }
}


/* Consent Manager / Cookie-Banner  (S&L-Design) */
#sl-consent { font-family: var(--font-secondary); }
.sl-cc-lock { overflow: hidden; }

/* Banner */
.sl-cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  background: var(--white); color: var(--d-grey);
  border: 1px solid var(--tint-t4);
  border-radius: 10px; box-shadow: var(--shadow-16);
  max-width: 720px; margin: 0 auto;
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.16,.84,.44,1), opacity .35s ease, visibility 0s linear .35s;
}
.sl-cc-banner.is-visible {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform .35s cubic-bezier(.16,.84,.44,1), opacity .35s ease;
}
.sl-cc-banner__inner { padding: 24px; }
.sl-cc-banner__title {
  font-family: var(--font-primary);
  font-size: 20px; line-height: 1.3; font-weight: 700;
  color: var(--brand-primary); margin: 0 0 8px;
}
.sl-cc-banner__text { font-size: 15px; line-height: 1.6; margin: 0; color: var(--grey-2); }
.sl-cc-link { color: var(--brand-m-blue); text-decoration: underline; }
.sl-cc-link:hover { color: var(--brand-primary); }
.sl-cc-banner__actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: flex-end;
}

/* Buttons */
.sl-cc-btn {
  appearance: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-primary); font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: var(--radius-btn); line-height: 1;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .05s ease;
}
.sl-cc-btn:active { transform: translateY(1px); }
.sl-cc-btn:focus-visible { outline: 3px solid var(--tint-t1); outline-offset: 2px; }
.sl-cc-btn--primary { background: var(--brand-primary); color: var(--white); }
.sl-cc-btn--primary:hover { background: var(--shade-s1); }
.sl-cc-btn--ghost {
  background: var(--white); color: var(--brand-primary); border-color: var(--grey-blue);
}
.sl-cc-btn--ghost:hover { background: var(--silver); border-color: var(--brand-primary); }

/* Modal */
.sl-cc-modal { position: fixed; inset: 0; z-index: 10000; }
.sl-cc-modal[hidden] { display: none; }
.sl-cc-modal__overlay { position: absolute; inset: 0; background: rgba(1,21,40,0.55); backdrop-filter: blur(2px); }
.sl-cc-modal__dialog {
  position: relative; background: var(--white); color: var(--d-grey);
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  margin: 24px auto; border-radius: 12px; box-shadow: var(--shadow-16);
  display: flex; flex-direction: column;
}
.sl-cc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--tint-t4);
}
.sl-cc-modal__title {
  font-family: var(--font-primary); font-size: 22px; font-weight: 700;
  color: var(--brand-primary); margin: 0;
}
.sl-cc-modal__close {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--grey); padding: 4px 8px; border-radius: 6px;
}
.sl-cc-modal__close:hover { color: var(--brand-primary); background: var(--silver); }
.sl-cc-modal__body { padding: 8px 24px; }
.sl-cc-modal__foot {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  padding: 16px 24px 22px; border-top: 1px solid var(--tint-t4);
}

/* Kategorie-Gruppen */
.sl-cc-group { padding: 16px 0; border-bottom: 1px solid var(--tint-t5); }
.sl-cc-group:last-child { border-bottom: none; }
.sl-cc-group__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sl-cc-group__title { font-family: var(--font-primary); font-weight: 700; font-size: 17px; color: var(--black); }
.sl-cc-group__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--grey-2); }

/* Toggle-Switch */
.sl-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.sl-cc-switch input { opacity: 0; width: 0; height: 0; }
.sl-cc-switch__slider {
  position: absolute; inset: 0; cursor: pointer; background: var(--grey-blue);
  border-radius: 999px; transition: background-color .2s ease;
}
.sl-cc-switch__slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%; transition: transform .2s ease; box-shadow: var(--shadow-2);
}
.sl-cc-switch input:checked + .sl-cc-switch__slider { background: var(--brand-primary); }
.sl-cc-switch input:checked + .sl-cc-switch__slider::before { transform: translateX(20px); }
.sl-cc-switch input:disabled + .sl-cc-switch__slider { background: var(--tint-t2); cursor: not-allowed; }
.sl-cc-switch input:focus-visible + .sl-cc-switch__slider { outline: 3px solid var(--tint-t1); outline-offset: 2px; }

/* Mobil */
@media (max-width: 560px) {
  .sl-cc-banner__inner { padding: 20px; }
  .sl-cc-banner__actions { justify-content: stretch; }
  .sl-cc-banner__actions .sl-cc-btn { flex: 1 1 100%; }
  .sl-cc-modal__foot { justify-content: stretch; }
  .sl-cc-modal__foot .sl-cc-btn { flex: 1 1 100%; }
}


/* Hover-Effekte (dezent) */
@media (hover: hover) and (pointer: fine) {
  /* Bilder: leichtes Anheben + Zoom + minimal heller */
  .hero__media, .subhero__media, .teaser__media {
    transition: transform .45s cubic-bezier(.16,.84,.44,1),
                box-shadow .45s ease, filter .45s ease;
    will-change: transform;
  }
  .hero__media:hover, .subhero__media:hover, .teaser__media:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-8);
    filter: brightness(1.03);
  }

  /* Download-Items: Icon hebt sich leicht, Zeile rückt minimal */
  .download { transition: transform .2s ease; }
  .download:hover { transform: translateX(2px); }
  .download__icon { transition: transform .25s ease; }
  .download:hover .download__icon { transform: translateY(-3px) scale(1.06); }
}

/* Barrierefreiheit: Bewegungen deaktivieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  .hero__media, .subhero__media, .teaser__media,
  .btn, .download, .download__icon { transition: none !important; }
  .hero__media:hover, .subhero__media:hover, .teaser__media:hover,
  .btn--primary:hover, .btn--header:hover,
  .download:hover, .download:hover .download__icon { transform: none !important; }
}
