/* Schriften: lokal eingebunden, keine Anfrage an Google */
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/lato-400-latin.woff2") format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/lato-700-latin.woff2") format("woff2")}

/* laubercare.ch – Website-Stil
   Grundlage: Konzept Variante 1 «Vertraut», Kontakt aus Variante 2. Stand Dezember 2026. */
:root {
  --green: #8bc53f;
  --green-text: #5f9124;   /* Grün für Text auf Weiss, ausreichend Kontrast für grosse Titel */
  --heading: #54595f;
  --text: #4b5056;
  --tint: #eff2f5;
  --dark: #282d35;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Lato", system-ui, sans-serif; font-size: 16px; line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: #c3db96; color: #1d2b12; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
p { margin: 0 0 1em; }
strong { color: #3d4247; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(40, 45, 53, .38) 0%, rgba(40, 45, 53, .18) 45%, rgba(40, 45, 53, 0) 70%),
    url("img/hero-1920.webp") center 40% / cover no-repeat;
  color: #fff; padding: 80px 0 110px;
}
.hero__inner { width: 100%; }
.hero__logo { margin: 0 0 28px; }
.hero__logo img { width: 665px; max-width: 100%; }
.hero__claim {
  max-width: 720px; margin: 0; font-size: 25px; line-height: 1.8; font-weight: 400;
  text-shadow: 0 1px 12px rgba(30, 36, 43, .35);
}
.hero__shape { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }

/* Sections -------------------------------------------------------------- */
.section { padding: 64px 0 72px; }
.section--tint { background: var(--tint); }
.h2 { margin: 0 0 28px; color: var(--green-text); font-size: 35px; font-weight: 700; line-height: 1.2; }
#dienstleistungen p { max-width: 74em; font-size: 15px; }
.services { margin-top: 56px; }
.services .g-body { font-size: 15px; }
.services .g-panel-title { color: var(--heading); font-size: 20px; }

/* Über uns -------------------------------------------------------------- */
.person {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start;
  padding: 24px 0 40px;
}
.person + .person { border-top: 1px solid #dbe2e8; padding-top: 48px; }
.person__img { width: 260px; border-radius: 28px; }
.person__name { margin: 0 0 12px; color: var(--heading); font-size: 25px; font-weight: 700; line-height: 1.2; }
.person__text { max-width: 760px; font-size: 15px; }
.bullets { margin: 0 0 18px; padding-left: 20px; }

/* Offene Stellen -------------------------------------------------------- */
#offene-stellen p { font-size: 15px; }
.jobs__img { width: 300px; margin-top: 24px; }

/* Dienstleistungs-Grafik (Leporello) ---------------------------------- */
:root {
  --g-1: #d7e6bd;
  --g-2: #c3db96;
  --g-3: #accd6c;
  --g-4: #8bc53f;
  --g-band: #e0e7eb;
  --g-ink: #1d2b12;
  --g-slate: #282d35;
  --g-teal: #0f3442;
  --g-ease: cubic-bezier(.16, 1, .3, 1);
}

.g-panel-title { margin: 0 0 .6em; }
.g-body p { margin: 0 0 .8em; }
.g-body ul { margin: 0; padding: 0; list-style: none; }
.g-body li { position: relative; padding-left: 1.4em; margin: .35em 0; }
.g-body li::before {
  content: ""; position: absolute; left: .1em; top: .62em;
  width: .5em; height: .5em; border-radius: 50%;
  border: 2px solid var(--g-4);
}

/* ---------------------------------------------------------------- A ---- */
.ga { --ga-max: 1638px; }
.ga__list { list-style: none; margin: 0; padding: 0; }
.ga__phase { display: none; }
.ga__hint { margin: .9rem 0 0; font-size: .9rem; color: #555c64; text-align: center; }

@media (min-width: 760px) {
  .ga__list {
    container-type: inline-size;
    position: relative;
    padding-top: calc(465 / 1638 * 100%);
    background: url("img/leporello.webp") top center / 100% auto no-repeat;
  }
  .ga__item { display: contents; }
  .ga__btn {
    position: absolute;
    top: calc(155 / 1638 * 100cqw);
    width: calc(266 / 1638 * 100cqw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 0; padding: 0 1.6cqw;
    background: transparent;
    color: var(--g-ink);
    font: inherit; font-weight: 700;
    font-size: clamp(10px, 1.02cqw, 15px);
    line-height: 1.3; letter-spacing: .02em; text-transform: uppercase;
    cursor: pointer;
    transition: transform .4s var(--g-ease), box-shadow .4s var(--g-ease);
  }
  .ga__item:nth-child(1) .ga__btn { left: calc(60 / 1638 * 100cqw); }
  .ga__item:nth-child(2) .ga__btn { left: calc(443 / 1638 * 100cqw); }
  .ga__item:nth-child(3) .ga__btn { left: calc(927 / 1638 * 100cqw); }
  .ga__item:nth-child(4) .ga__btn { left: calc(1311 / 1638 * 100cqw); }
  .ga__btn:hover { transform: scale(1.035); box-shadow: 0 10px 24px -12px rgba(29, 43, 18, .45); }
  .ga__btn[aria-expanded="true"] { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--g-slate); }
  .ga__btn[aria-expanded="true"]::after {
    content: ""; position: absolute; left: 50%; bottom: -3.3cqw;
    border: 1cqw solid transparent; border-top-color: var(--g-slate);
    transform: translateX(-50%);
  }
  .ga__btn:focus-visible { outline: 3px solid var(--g-slate); outline-offset: 6px; }
  .ga__mark, .ga__chev { display: none; }
  .ga__panel {
    max-width: 920px; margin: 2rem auto 0; padding: 1.8rem 2.2rem;
    background: #fff; border: 1px solid #d3dbe1; border-radius: 6px;
    box-shadow: 0 14px 30px -24px rgba(40, 45, 53, .45);
  }
  [data-g-touched] .ga__panel:not([hidden]) { animation: ga-in .45s var(--g-ease) both; }
}

@keyframes ga-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 759.98px) {
  .ga__phase {
    display: block; margin: 1.4rem 0 .4rem; font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: #4a7615;
  }
  .ga__item:first-child .ga__phase { margin-top: 0; }
  .ga__btn {
    display: flex; align-items: center; gap: .85rem; width: 100%;
    padding: .95rem .2rem; border: 0; border-bottom: 1px solid #dfe5e9;
    background: none; color: inherit; font: inherit; font-weight: 700;
    font-size: .95rem; text-align: left; text-transform: uppercase; letter-spacing: .02em;
    cursor: pointer;
  }
  .ga__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--g-1); }
  .ga__item:nth-child(2) .ga__mark { background: var(--g-2); }
  .ga__item:nth-child(3) .ga__mark { background: var(--g-3); }
  .ga__item:nth-child(4) .ga__mark { background: var(--g-4); }
  .ga__label { flex: 1; }
  .ga__chev { flex: none; width: 18px; height: 18px; transition: transform .3s var(--g-ease); }
  .ga__btn[aria-expanded="true"] .ga__chev { transform: rotate(180deg); }
  .ga__panel { padding: .9rem .2rem 1.2rem 2.6rem; border-bottom: 1px solid #dfe5e9; }
  .ga__panel .g-panel-title { display: none; }
  .ga__hint { display: none; }
}

/* Kontakt (aus Variante 2) ---------------------------------------------- */
.contact { background: var(--dark); color: #e7eaed; padding: 110px 0 96px; font-size: 17px; line-height: 1.7; }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.contact__title { margin: 0 0 22px; color: #fff; font-size: 35px; font-weight: 700; line-height: 1.2; }
.contact__firm { margin-bottom: 26px; color: #fff; font-weight: 700; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list a {
  display: flex; align-items: center; gap: 18px; padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .1); line-height: 1.45;
}
.contact__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(139, 197, 63, .55);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.contact__icon svg { width: 19px; height: 19px; fill: var(--green); transition: fill .3s; }
.contact__list a:hover .contact__icon { background: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.contact__list a:hover .contact__icon svg { fill: var(--dark); }
.contact__list a:hover span:last-child { color: #fff; }
.contact :focus-visible { outline-color: var(--green); }

.map { margin: 0; }
.map__link { position: relative; display: block; overflow: hidden; border-radius: 16px; text-decoration: none; }
.map__link img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease); }
.map__link:hover img { transform: scale(1.03); }
.map__pin {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(139, 197, 63, .3);
}
.map__pin::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map__cta {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--dark); font-size: 15px; font-weight: 700;
  transition: transform .35s var(--ease);
}
.map__cta svg { width: 16px; height: 16px; }
.map__link:hover .map__cta { transform: translateY(-2px); }
.map figcaption { margin-top: 10px; font-size: 13px; color: #9aa3ad; }

/* Footer ---------------------------------------------------------------- */
/* Gleicher Ton wie der Kontakt, nur durch eine feine Linie getrennt */
.footer { background: var(--dark); color: #9aa3ad; font-size: 14px; padding: 0 0 28px; }
.footer__inner { position: relative; display: flex; gap: 40px; align-items: center; padding-top: 28px; }
.footer__inner::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: rgba(255, 255, 255, .12); }
.legal + .footer .footer__inner::before { display: none; }
.footer__inner p { margin: 0; }
.footer a { color: #9aa3ad; text-decoration: none; }
.footer a:hover, .footer a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Unterseiten: Impressum, Datenschutz, 404 ------------------------------ */
.page-head { background: var(--dark); padding: 34px 0; }
.page-head a { display: inline-block; }
.page-head img { width: 300px; max-width: 70vw; }
.legal { padding: 64px 0 88px; }
body:has(> .legal) { min-height: 100vh; display: flex; flex-direction: column; }
.legal { flex: 1; }
.legal__body { font-size: 16px; }
.legal__body > * { max-width: 760px; }
.legal h1 { margin: 0 0 32px; color: var(--green-text); font-size: 35px; font-weight: 700; line-height: 1.2; }
.legal h2 { margin: 2.2em 0 .6em; color: var(--heading); font-size: 21px; font-weight: 700; line-height: 1.3; }
.legal h3 { margin: 1.6em 0 .4em; color: var(--heading); font-size: 17px; font-weight: 700; }
.legal ul { margin: 0 0 1em; padding-left: 20px; }
.legal a { color: #4a7615; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--heading); }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal__stand { margin-top: 2.4em; color: var(--text); font-size: 14px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 20px; border-radius: 999px; background: var(--green); color: #1d2b12; font-weight: 700; text-decoration: none; transition: background-color .3s; }
.legal .back:hover { background: #9fd35a; color: #1d2b12; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .person { grid-template-columns: 200px 1fr; gap: 32px; }
  .person__img { width: 200px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  /* Handy: Das Bild wird hinter dem Text deutlich abgedunkelt, damit die
     weisse Schrift auch über den hellen Bildstellen gut lesbar bleibt. */
  .hero {
    min-height: 0; padding: 56px 0 84px;
    background:
      linear-gradient(180deg, rgba(28, 33, 40, .5) 0%, rgba(28, 33, 40, .74) 36%, rgba(28, 33, 40, .82) 100%),
      url("img/hero-1200.webp") 72% 40% / cover no-repeat;
  }
  .hero__logo img { width: min(300px, 82vw); }
  .hero__claim { font-size: 19px; line-height: 1.65; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  .section { padding: 44px 0 52px; }
  .h2, .contact__title, .legal h1 { font-size: 28px; }
  .services { margin-top: 32px; }
  .person { grid-template-columns: 1fr; gap: 20px; }
  .person__img { width: 100%; max-width: 420px; }
  .contact { padding: 64px 0; font-size: 16px; }
  .map__cta { right: 12px; bottom: 12px; padding: 8px 14px; font-size: 14px; }
  .legal { padding: 44px 0 64px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__inner::before { left: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ga__panel { animation: none !important; }
  .map__pin::after { animation: none; }
  .map__link img, .contact__icon, .contact__icon svg, .ga__btn, .ga__chev { transition: none; }
}
