/* Locenti, gemeinsame Styles. Etappe 1: Header, Hero, Kontaktleiste. */

section[id], main[id] { scroll-margin-top: 64px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #F3F4F2;
  box-shadow: 0 1px 0 transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 244, 242, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(31, 67, 57, .08);
}
.header-bar {
  max-width: 1200px; height: 56px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 8px;
}

.logo {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex-shrink: 0;
  color: #1f4339; text-decoration: none;
}
.logo:hover { color: #1f4339; }
.logo-lockup {
  display: inline-flex; align-items: flex-end; gap: 1px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 25px; line-height: .8; letter-spacing: .01em;
}
.logo-mark { height: .72em; width: auto; margin-right: 1px; }
.logo-word { display: none; }
@media (min-width: 370px) { .logo-word { display: inline; } }

.main-nav { display: flex; align-items: center; margin-left: auto; margin-right: -6px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 6px;
  font-size: 14px; font-weight: 500; color: #3c4444; white-space: nowrap;
}
.nav-link:hover { color: #1f4339; }
.nav-link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px;
  border-radius: 2px; background: #2d5e51;
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-link.is-active { color: #1f4339; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link--wide { display: none; }
.header-actions { display: none; }

@media (min-width: 900px) {
  .header-bar { height: 68px; padding: 0 40px; gap: 16px; }
  .logo-lockup { font-size: 32px; }
  .main-nav { margin: 0 auto 0 24px; }
  .nav-link { padding: 0 12px; font-size: 15px; }
  .nav-link::after { left: 12px; right: 12px; bottom: 9px; }
  .nav-link--wide { display: inline-flex; }
  .header-actions { display: flex; align-items: center; gap: 12px; }
}

/* ---------- Sprachwahl ---------- */
.lang { display: inline-flex; align-items: center; }
.lang > a, .lang > span {
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  font-size: 13px; font-weight: 600; color: #3c4444; text-decoration: none;
}
.lang > a::before, .lang > span::before {
  content: ""; position: absolute; inset: 8px 4px; z-index: -1; border-radius: 8px;
  transition: background-color .2s ease;
}
.lang > a:hover::before { background: #E4EBE5; }
.lang > a:hover { color: #1f4339; }
.lang > [aria-current] { color: #fff; }
.lang > [aria-current]::before { background: #1f4339; }

.lang--on-dark > a, .lang--on-dark > span { color: rgba(255, 255, 255, .78); }
.lang--on-dark > a:hover { color: #fff; }
.lang--on-dark > a:hover::before { background: rgba(255, 255, 255, .12); }
.lang--on-dark > [aria-current] { color: #1f4339; }
.lang--on-dark > [aria-current]::before { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.btn--sm { min-height: 44px; padding: 0 18px; border-radius: 10px; }
.btn--primary { background: #2d5e51; color: #fff; }
.btn--primary:hover { background: #1f4339; color: #fff; }
.btn--light { background: #fff; color: #1f4339; }
.btn--light:hover { background: #e6eee7; color: #1f4339; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Hero ---------- */
.hero-wrap { padding: 8px 8px 0; }
.hero {
  position: relative; overflow: hidden; border-radius: 24px; color: #b7cdb9;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .07), transparent 55%),
    linear-gradient(160deg, #2d5e51 0%, #1f4339 100%);
}
.hero-mark {
  position: absolute; right: -6%; bottom: -8%; width: 72%; max-width: 640px;
  color: #fff; opacity: .07; pointer-events: none;
}
@media (min-width: 900px) { .hero-mark { right: -3%; bottom: -14%; width: 52%; } }
.hero-grid {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 28px 16px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "demo" "lead" "actions";
}
.hero-title {
  grid-area: title; margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 36px; line-height: 1.02; letter-spacing: -.025em; color: #fff; text-wrap: balance;
}
.hero-demo { grid-area: demo; margin-top: 24px; width: 100%; max-width: 520px; }
.hero-lead {
  grid-area: lead; margin: 32px 0 0; max-width: 520px;
  font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); text-wrap: pretty;
}
.hero-actions { grid-area: actions; margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 359px) {
  .hero-grid { padding: 24px 16px 32px; }
  .hero-title { font-size: 34px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 600px) {
  .hero-wrap { padding: 16px 16px 0; }
  .hero-grid { padding: 48px 40px 56px; }
  .hero-title { font-size: 56px; }
}
@media (min-width: 900px) {
  .hero-wrap { padding: 24px 24px 0; }
  .hero-grid {
    padding: 88px 40px 96px; column-gap: clamp(48px, 6vw, 88px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". demo" "title demo" "lead demo" "actions demo" ". demo";
  }
  .hero-demo { margin-top: 0; align-self: center; }
  .hero-lead { margin-top: 28px; font-size: 20px; }
  .hero-actions { margin-top: 32px; }
}

/* ---------- Karussell ---------- */
.carousel-track {
  --bleed: 16px;
  display: flex; gap: calc(var(--bleed) * 2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); scrollbar-width: none;
  margin: 0 calc(var(--bleed) * -1) -20px; padding: 4px var(--bleed) 36px;
}
@media (min-width: 600px) { .carousel-track { --bleed: 32px; } }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.carousel-btn {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  transition: background-color .2s ease;
}
.carousel-btn:hover { background: rgba(255, 255, 255, .18); }
.carousel-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.carousel-dots { display: flex; gap: 8px; padding: 0 10px; }
.carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .3); transition: background-color .3s ease;
}
.carousel-dots span.is-current { background: #fff; }

/* ---------- Kontaktleiste (nur Handy) ---------- */
.contact-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 4px 4px 6px; border-radius: 16px;
  background: rgba(22, 48, 42, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.contact-bar.is-visible {
  transform: none; visibility: visible;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.contact-bar__mail {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: #fff; color: #1f4339; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.contact-bar__mail:hover { background: #e6eee7; color: #1f4339; }
@media (max-width: 359px) {
  .contact-bar { left: 8px; right: 8px; }
  .contact-bar__mail { padding: 0 12px; }
  .contact-bar__mail svg { display: none; }
}
@media (min-width: 900px) { .contact-bar { display: none; } }


/* ---------- Inhalt: Raster, Typografie (15/17/20/28/40/56), Abstände ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 64px; }
.section--last { padding-bottom: 64px; }
.h2 {
  margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 28px; line-height: 1.1; letter-spacing: -.02em; color: #1E2424; text-wrap: balance;
}
.h3 {
  margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.2; letter-spacing: -.01em; color: #1f4339; text-wrap: balance;
}
.lead, .text { margin: 0; font-size: 17px; line-height: 1.6; color: #565D5D; max-width: 60ch; text-wrap: pretty; }
.small { margin: 0; font-size: 15px; line-height: 1.55; color: #565D5D; max-width: 60ch; }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 760px; }
@media (min-width: 600px) { .container { padding: 0 32px; } }
@media (min-width: 900px) {
  .container { padding: 0 40px; }
  .section { padding-top: 120px; }
  .section--last { padding-bottom: 120px; }
  .h2 { font-size: 40px; line-height: 1.05; }
  .h3--lg { font-size: 28px; }
  .section-head { margin-bottom: 64px; }
  .section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
}

/* Ablauf: Zeitleiste, auf dem Handy vertikal */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-step { position: relative; padding: 0 0 28px 34px; display: grid; gap: 4px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  box-sizing: border-box; border: 2px solid #2d5e51; background: #F3F4F2;
}
.timeline-step::after { content: ""; position: absolute; left: 6px; top: 25px; bottom: 6px; width: 2px; border-radius: 1px; background: #C8D4CB; }
.timeline-step:last-child::before { background: #2d5e51; }
.timeline-step:last-child::after { display: none; }
@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .timeline-step { padding: 34px 0 0; }
  .timeline-step::before { top: 0; }
  .timeline-step::after { top: 6px; left: 24px; right: -24px; bottom: auto; width: auto; height: 2px; }
}

/* Funktionen */
.feature-grid { display: grid; gap: 16px; }
.feature { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.feature--dark { background: #16302a; color: #fff; }
.feature--dark .h3 { color: #fff; }
.feature--dark .text { color: rgba(255, 255, 255, .75); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.checklist li { position: relative; padding-left: 18px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #2d5e51; }
.activity { list-style: none; margin: auto 0 0; padding: 6px 18px; border: 1px solid #E3E6E4; border-radius: 14px; }
.activity li {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid #EDEFEE; font-size: 15px; color: #3c4444;
}
.activity li:last-child { border-bottom: 0; font-weight: 600; color: #1f4339; }
.activity-time { color: #646B6B; font-weight: 400; font-variant-numeric: tabular-nums; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #b7cdb9; }
.activity li:last-child .activity-dot { background: #2d5e51; }
.case-list {
  list-style: none; margin: auto 0 0; padding: 0; overflow: hidden; font-size: 15px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
}
.case-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.case-list li:last-child { border-bottom: 0; }
.case-no { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: rgba(255, 255, 255, .62); }
.case-name { line-height: 1.35; }
.pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--busy { background: rgba(252, 211, 77, .16); color: #fcd34d; }
.pill--open { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); }
.pill--done { background: rgba(74, 222, 128, .16); color: #86efac; }
.mini-grid { display: grid; gap: 16px; margin-top: 16px; }
.mini { background: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; }
@media (min-width: 600px) {
  .feature { padding: 40px; }
  .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .mini-grid { gap: 20px; margin-top: 20px; }
}

/* Branchen: auf dem Handy Akkordeon, ab 900 px Karten */
.industries { border-top: 1px solid #D5DBD8; }
.industry { border-bottom: 1px solid #D5DBD8; }
.industry-summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px 0; min-height: 44px;
}
.industry-summary::-webkit-details-marker { display: none; }
.industry-summary:focus-visible { outline: 2px solid #2d5e51; outline-offset: 4px; border-radius: 8px; }
.industry-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.2; color: #1f4339; }
.industry-examples { grid-column: 1; font-size: 15px; line-height: 1.45; color: #565D5D; }
.industry-chevron {
  grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #fff; color: #1f4339;
  transition: transform .25s ease;
}
.industry[open] .industry-chevron { transform: rotate(180deg); }
.industry-case { margin: 0; padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: #3c4a45; max-width: 60ch; }
@media (min-width: 900px) {
  .industries { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .industry { border: 0; background: #fff; border-radius: 20px; padding: 32px; }
  .industry-summary { padding: 0 0 16px; cursor: default; min-height: 0; }
  .industry-chevron { display: none; }
  .industry-case { padding: 0; font-size: 15px; line-height: 1.6; }
}

/* Über uns */
.about { background: #E4EBE5; border-radius: 24px; padding: 32px 20px; display: grid; gap: 40px; }
.about .h2, .about .h3 { color: #1f4339; }
.about .text, .about .small { color: #3c4a45; }
.about-main { display: grid; gap: 20px; align-content: start; }
.place-card {
  position: relative; overflow: hidden; max-width: 440px; margin-top: 4px;
  background: #1f4339; color: #fff; border-radius: 16px; padding: 24px 26px; display: grid; gap: 8px;
}
.place-mark { position: absolute; right: -18px; bottom: -22px; width: 150px; color: #fff; opacity: .06; }
.place-name { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.1; }
.place-text { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.points { display: grid; align-content: center; }
.point { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid #C8D4CB; }
.point:first-child { padding-top: 0; }
.point:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 600px) { .about { padding: 56px 48px; } }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding: 72px 56px; }
  .point:first-child { padding-top: 24px; }
  .point:last-child { border-bottom: 1px solid #C8D4CB; padding-bottom: 24px; }
}

/* Kontakt */
.contact { display: grid; gap: 32px; }
.contact-intro { display: grid; gap: 16px; align-content: start; }
.contact-card {
  background: #1f4339; color: #fff; border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.contact-card .h3 { color: #fff; }
.contact-card p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.contact-card .btn { margin-top: 8px; }
.contact-mark { width: 48px; color: #b7cdb9; margin-bottom: 4px; }
.contact-mail {
  display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; color: #fff;
}
.contact-mail:hover { color: #e6eee7; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .contact-card { padding: 48px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #16302a; color: #b7cdb9; font-size: 15px; }
.footer-bar { max-width: 1200px; margin: 0 auto; padding: 40px 16px 48px; display: grid; gap: 20px; }
.footer-brand { margin: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.footer-logo { font-size: 30px; color: #fff; }
.footer-logo .logo-mark { color: #b7cdb9; }
.footer-tagline { color: #b7cdb9; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-left: -4px; }
.footer-links > a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.footer-links > a:hover { color: #fff; }
.footer-copy { margin: 0; color: #b7cdb9; }
@media (min-width: 600px) { .footer-bar { padding: 48px 32px; } }
@media (min-width: 900px) {
  .footer-bar { padding: 48px 40px; grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; row-gap: 24px; }
  .footer-links { justify-content: flex-end; margin-left: 0; margin-right: -4px; }
  .footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(183, 205, 185, .16); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav-link::after, .contact-bar, .contact-bar.is-visible, .carousel-dots span, .industry-chevron { transition: none; }
}
