/* ============================================================
   SARCO GmbH & Co. KG — Design System
   Neues Grün-Design, 2026-07-25
   Primärgrün aus Markenlogo: #5AB169
   ============================================================ */

:root {
  /* ---- Grün-Palette (aus Logo + Icons abgeleitet) ---- */
  --green-primary:   #5AB169;   /* Marken-Hauptgrün (Logo) */
  --green-deep:      #2F7D47;   /* dunkles Waldgrün für Kontrast/Text-auf-hell */
  --green-forest:    #1E5233;   /* sehr dunkel, Footer/Headlines */
  --green-sage:      #508561;   /* gedämpftes Salbeigrün (Icons) */
  --green-soft:      #CDE0B6;   /* helles Akzentgrün (Icon-Flächen) */
  --green-mist:      #EAF4E4;   /* zarter Grün-Hauch für Sektionshintergründe */
  --green-glow:      #7BD98C;   /* helleres Highlight für Hover/Verläufe */

  /* ---- Neutral ---- */
  --ink:             #16231a;   /* fast-schwarz mit Grünstich, Fließtext */
  --ink-soft:        #4a564d;   /* sekundärer Text */
  --paper:           #ffffff;
  --paper-warm:      #f7faf5;   /* off-white mit Grünhauch */
  --line:            #e2ebdd;   /* dezente Trennlinien */

  /* ---- Typo ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-hero:  clamp(2.4rem, 5.5vw, 4.4rem);
  --fs-h2:    clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:  1.05rem;

  /* ---- Layout ---- */
  --maxw:      1400px;
  --radius:    18px;
  --radius-sm: 10px;
  --gap:       clamp(1.2rem, 3vw, 2.4rem);
  --shadow:    0 12px 40px -12px rgba(30, 82, 51, 0.22);
  --shadow-sm: 0 4px 18px -8px rgba(30, 82, 51, 0.25);
  --header-h:  72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---- Container ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 34px; width: auto; }

/* ---- Marken-Lockup (v2: textloses Icon + HTML-Text) ---- */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { height: 42px; width: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand__claim { font-weight: 600; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.brand__logo-img { height: 36px; width: auto; }
.brand__logo-img--footer { height: 40px; filter: brightness(0) invert(1); opacity: .95; }

/* [ENTFERNT 26.07.2026, Daishu #33196] .ver-switch war der Neu/Alt-Logo-Umschalter -- Website
   nutzt nur noch die v2-Logos, kein Umschalter/Vergleichsmodus mehr noetig. */
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a {
  font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green-primary); transition: width .25s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--green-deep); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

/* Sprachumschalter */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--green-deep);
  padding: .45rem .7rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); transition: border-color .2s, background .2s;
}
.lang-switch__btn:hover { border-color: var(--green-primary); background: var(--green-mist); }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden; min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s;
}
.lang-switch.open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu button {
  display: block; width: 100%; text-align: left; padding: .65rem 1rem;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft); transition: background .15s;
}
.lang-switch__menu button:hover { background: var(--green-mist); color: var(--green-deep); }
.lang-switch__menu button.active { color: var(--green-deep); background: var(--green-mist); }
.flag-icon {
  width: 20px; height: 14px; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; vertical-align: middle;
}
.lang-switch__menu button { display: flex; align-items: center; gap: .5rem; }

/* Burger (mobil) */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav__burger span { width: 24px; height: 2.5px; background: var(--green-deep); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--green-mist), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -8%; top: 20%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,217,140,.28), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-mist);
  padding: .5rem 1rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-primary); }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.02em;
  font-weight: 800; color: var(--green-forest); margin-bottom: 1.3rem;
}
.hero h1 .accent { color: var(--green-primary); }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 620px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1rem; padding: .95rem 1.7rem; border-radius: 100px;
  transition: transform .18s, box-shadow .25s, background .2s; will-change: transform;
}
.btn--primary { background: var(--green-primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(90,177,105,.6); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(47,125,71,.55); }
.btn--ghost { background: transparent; color: var(--green-deep); border: 2px solid var(--green-soft); }
.btn--ghost:hover { border-color: var(--green-primary); background: var(--green-mist); transform: translateY(-2px); }

/* ============================================================
   SECTIONS (generisch)
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--mist { background: var(--green-mist); }
.section--warm { background: var(--paper-warm); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section__label {
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-primary); margin-bottom: .8rem; display: block;
}
.section__title { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; color: var(--green-forest); font-weight: 800; }
.section__intro { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 1rem; }

/* ---- Vorteile / Cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-glow));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-soft); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 1.2rem;
  display: grid; place-items: center; background: var(--green-mist); font-size: 1.9rem;
}
.card__icon img { width: 40px; height: 40px; object-fit: contain; }
.card h3 {
  font-size: var(--fs-h3); color: var(--green-forest); margin-bottom: .6rem; font-weight: 700;
  /* hyphens:auto trennt der Browser-Engine nach eigenem Woerterbuch, unabhaengig von
     overflow-wrap -- das hat weiterhin "si-chern"/"Datenlö-schung" erzeugt (Daishu #33142).
     Silbentrennung komplett deaktiviert: Umbruch geschieht dadurch IMMER an Wortgrenzen.
     Einzelne zu lange Woerter (z.B. "Wiederverwertung") werden ueber word-break als
     allerletzten Ausweg gebrochen, aber ohne Bindestrich-Trennsilben. */
  hyphens: none; -webkit-hyphens: none;
  overflow-wrap: break-word; word-break: normal;
}
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: var(--gap); margin-top: 3rem; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: var(--green-primary); line-height: 1; }
.stat__label { color: var(--ink-soft); font-weight: 600; margin-top: .5rem; }

/* ---- Split (Text + Bild) ---- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
.split--rev .split__media { order: -1; }
.split__media {
  border-radius: var(--radius); overflow: hidden; background: var(--green-mist);
  aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow);
}
.split__media img { width: 72%; height: 72%; object-fit: contain; }
.split__body h3 { font-size: var(--fs-h3); color: var(--green-forest); margin: 1.4rem 0 .6rem; font-weight: 700; }
.split__body p { color: var(--ink-soft); }
.feature-list { margin-top: 1.5rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-primary); color: #fff; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; margin-top: .15rem;
}

/* ---- Service-Grid mit Icons ---- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: var(--gap); }
.service {
  text-align: center; padding: clamp(1.8rem,3vw,2.6rem);
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__img { width: 120px; height: 120px; margin: 0 auto 1.4rem; object-fit: contain; }
.service h3 { color: var(--green-forest); font-size: var(--fs-h3); margin-bottom: .6rem; }
.service p { color: var(--ink-soft); font-size: .96rem; }

/* ---- Hardware-Tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-mist); color: var(--green-deep); font-weight: 600; font-size: .86rem;
  padding: .4rem .95rem .4rem .6rem; border-radius: 100px; border: 1px solid var(--green-soft);
}
.tag__icon { width: 20px; height: 20px; flex-shrink: 0; }
.tag__icon img { display: block; width: 100%; height: 100%; }

/* ---- CTA-Band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green-forest));
  color: #fff; border-radius: var(--radius); padding: clamp(2.4rem,5vw,4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%;
  background: radial-gradient(circle, rgba(123,217,140,.35), transparent 70%);
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: 1rem; position: relative; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 2rem; position: relative; }
.cta-band .btn--primary { background: #fff; color: var(--green-deep); }
.cta-band .btn--primary:hover { background: var(--green-soft); }

/* ---- Kontakt ---- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__item .ico { flex-shrink:0; width: 46px; height:46px; border-radius: 12px; background: var(--green-mist); display:grid; place-items:center; font-size:1.3rem; }
.contact__item .ico img { width: 26px; height: 26px; display: block; }
.contact__item .ico--link { transition: transform .15s ease, background .15s ease; }
.contact__item .ico--link:hover { background: var(--green-soft); transform: scale(1.06); }
.contact__item h4 { color: var(--green-forest); font-size: 1.05rem; margin-bottom: .2rem; }
.contact__item a, .contact__item p { color: var(--ink-soft); }
.contact__item a:hover { color: var(--green-deep); }
.form { display: grid; gap: 1rem; background: var(--paper); padding: clamp(1.6rem,3vw,2.4rem); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form input, .form textarea {
  width: 100%; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green-primary); }
.form textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-forest); color: #cfe6d4; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); margin-bottom: 2.5rem; }
.footer__logo { margin-bottom: 1rem; }
.footer__logo img { height: 40px; }
.footer__logo .brand__name { color: #fff; }
.footer__logo .brand__mark { height: 40px; width: 40px; }
.footer p { opacity: .8; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a { display: block; padding: .3rem 0; opacity: .8; font-size: .95rem; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--green-glow); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; opacity: .7; }

/* ============================================================
   Scroll-Reveal (Infinite-Load-Sektionen)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.lazy-section { min-height: 40px; }
.section-loader { text-align: center; padding: 2rem; color: var(--green-sage); font-weight: 600; }
.section-loader__dot { display:inline-block; width:10px;height:10px;border-radius:50%;background:var(--green-primary); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.1)} }

/* ============================================================
   RESPONSIVE  (60% Desktop / 40% Mobil)
   ============================================================ */
@media (max-width: 860px) {
  .split, .split--rev, .contact { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem,4vw,2.2rem) 1.5rem;
    transform: translateY(-140%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: flex; }
  .nav__burger.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav__burger.open span:nth-child(2){ opacity: 0; }
  .nav__burger.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LEGAL / TEXTSEITEN (Impressum, Datenschutz) -- Daishu #33096, 26.07.2026
   ============================================================ */
.legal { padding: clamp(2rem,5vw,3.2rem) 0 clamp(3.5rem,8vw,5.5rem); }
.legal__content { max-width: 760px; }
.legal__content h2 {
  font-size: var(--fs-h3, 1.5rem); color: var(--green-forest); font-weight: 800;
  margin-top: 2.2rem; margin-bottom: .6rem; letter-spacing: -.01em;
}
.legal__content h2:first-child { margin-top: 0; }
.legal__content p { color: var(--ink-soft); line-height: 1.7; margin: .7rem 0; }
.legal__content ul { margin: .7rem 0 .7rem 1.2rem; color: var(--ink-soft); line-height: 1.7; }
.legal__content li { margin: .3rem 0; }
.legal__content a { color: var(--green-primary); text-decoration: underline; }
.legal__content strong { color: var(--ink); }
