/* ==========================================================================
   OSTMARKETING – Seiten-CSS
   Grundlage: eigener Bootstrap-5-Build (assets/css/bootstrap.min.css) mit den
   Logo-Farben. Hier stehen nur Ergänzungen, die Bootstrap nicht mitbringt.
   Farben: Rot #B90803 / #D71007 (Logo), Anthrazit #26292D, Hellgrau #F3F3F4.
   ========================================================================== */

:root {
  --om-red: #B90803;
  --om-red-bright: #D71007;
  --om-red-dark: #8F0602;
  --om-red-soft: #FBEEED;
  --om-ink: #26292D;
  --om-ink-deep: #1E2124;
  --om-soft: #F3F3F4;
  --om-line: #DADCDF;
  --om-focus: #E0A800;
}

html { scroll-padding-top: 6rem; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

.icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--om-ink); color: #fff; padding: .6rem 1rem; border-radius: 3px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--om-ink-deep); color: #D8DADD; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Header / Navbar ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--om-line); }
.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }
.navbar-brand { padding: 0; }
.navbar-brand img { height: 60px; width: auto; }
.site-header .nav-link { white-space: nowrap; }
@media (min-width: 1200px) {
  .site-header .nav-link { padding-top: 1.35rem; padding-bottom: 1.2rem; border-bottom: 3px solid transparent; }
  .site-header .nav-link.active { border-bottom-color: var(--om-red); }
  .site-header .dropdown-menu { margin-top: 0; border-top: 3px solid var(--om-red); border-radius: 0 0 3px 3px; box-shadow: 0 8px 18px rgba(38, 41, 45, .12); }
  /* Dropdown öffnet zusätzlich bei Mausberührung */
  .site-header .dropdown:hover > .dropdown-menu { display: block; }
}
.navbar-toggler { border-color: #BEC2C7; }
.landing-contact__phone { font-size: 1.2rem; font-weight: 700; color: var(--om-ink); text-decoration: none; }
.landing-contact__phone:hover { color: var(--om-red-dark); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--om-soft); border-bottom: 1px solid var(--om-line); font-size: .875rem; }
.breadcrumb-bar a { color: #595F66; }

/* ---------- Abschnitte ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--om-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: #595F66; font-size: 1.1rem; margin-bottom: 0; }
.measure { max-width: 46rem; }

/* Illustrationen */
.illu { border-radius: 4px; }
.illu-frame { border: 1px solid var(--om-line); border-radius: 4px; overflow: hidden; background: #EEF0F1; }

/* Listen */
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.check-list .icon { color: var(--om-red); margin-top: .25em; }

/* ---------- Slider ---------- */
.hero-slider { background: var(--om-ink); }
.hero-slider .carousel-item { aspect-ratio: 16 / 7; max-height: 640px; }
.hero-slider .carousel-item picture,
.hero-slider .carousel-item img { display: block; width: 100%; height: 100%; }
.hero-slider .carousel-item img { object-fit: cover; object-position: right top; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 8%; }
.slider-pause {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: rgba(30, 33, 36, .65); color: #fff; display: grid; place-items: center;
}
.slider-pause[hidden] { display: none; }
.slider-pause span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-slider.is-paused .slider-pause span {
  width: 0; height: 0; border-right: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .carousel-item { transition: none; }
}

/* ---------- Einstieg Startseite ---------- */
.intro { padding: 3.25rem 0 3.5rem; border-bottom: 1px solid var(--om-line); }
.intro h1 { font-size: 2.6rem; line-height: 1.12; }
.intro__claim {
  display: inline-block; font-weight: 600; color: var(--om-red-dark);
  padding-left: .75rem; border-left: 3px solid var(--om-red); margin-bottom: 1rem;
}
.contact-card { background: var(--om-soft); border: 1px solid var(--om-line); border-top: 4px solid var(--om-red); border-radius: 3px; padding: 1.75rem; }
.contact-card__phone { font-size: 1.5rem; font-weight: 700; }
.contact-card__phone a { color: var(--om-ink); text-decoration: none; }
.contact-card__phone a:hover { color: var(--om-red-dark); }
.contact-card__phone .icon { color: var(--om-red); }

/* Vertrauensleiste */
.trust-strip { background: var(--om-soft); border-bottom: 1px solid var(--om-line); }
.trust-strip li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--om-ink); line-height: 1.3; }
.trust-strip .icon { width: 1.5rem; height: 1.5rem; color: var(--om-red); }

/* ---------- Seitenkopf mit Foto ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 5.5rem 0 4.5rem; background: var(--om-ink);
}
.page-hero picture { position: absolute; inset: 0; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 33, 36, .88) 0%, rgba(30, 33, 36, .72) 45%, rgba(30, 33, 36, .25) 100%);
}
.page-hero .container { z-index: 1; }
.page-hero__title { color: #fff; font-size: 2.4rem; }
.page-hero .lead { color: #F1F2F3; }
.page-hero .btn-outline-light:hover { color: var(--om-ink); }

/* ---------- Leistungskarten ---------- */
.service-card { transition: border-color .15s, box-shadow .15s; }
.service-card .card-img-top { border-bottom: 1px solid var(--om-line); background: #EEF0F1; }
.service-card .card-title a { color: var(--om-ink); text-decoration: none; }
.service-card .card-title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.service-card:hover { border-color: #BEC2C7; box-shadow: 0 6px 16px rgba(38, 41, 45, .08); }
.service-card:hover .card-title a { color: var(--om-red-dark); }
.service-card .more { font-weight: 600; color: var(--om-red-dark); }

/* ---------- Ablauf (echte Reihenfolge) ---------- */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list > li { counter-increment: step; position: relative; padding-left: 3.5rem; margin-bottom: 1.5rem; }
.step-list > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--om-red); color: #fff; font-weight: 700;
}
.step-list > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: -1.4rem; width: 2px; background: #BEC2C7;
}
.step-list h3 { font-size: 1.05rem; margin: .45rem 0 .2rem; }
.step-list p { color: #595F66; margin: 0; }
@media (min-width: 992px) {
  .step-list--row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
  .step-list--row::before { content: ""; position: absolute; top: 1.2rem; left: 1.2rem; right: calc(20% - 2.4rem); height: 2px; background: #BEC2C7; }
  .step-list--row > li { padding-left: 0; padding-top: 3.4rem; margin: 0; }
  .step-list--row > li::after { display: none; }
  .step-list--row > li::before { box-shadow: 0 0 0 5px #fff; }
  .step-list--row h3 { margin-top: 0; }
}

/* ---------- Fotoband ---------- */
.photo-band { position: relative; overflow: hidden; color: #fff; background: var(--om-ink); }
.photo-band picture { position: absolute; inset: 0; }
.photo-band picture img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,33,36,.9) 0%, rgba(30,33,36,.7) 50%, rgba(30,33,36,.2) 100%); }
.photo-band .container { position: relative; z-index: 1; }
.photo-band h2 { color: #fff; }
.place-list li { border: 1px solid rgba(255,255,255,.55); border-radius: 3px; padding: .25rem .75rem; font-size: .95rem; }

/* Fotokacheln */
.photo-tile { position: relative; overflow: hidden; border-radius: 4px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.photo-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .9rem; color: #fff; font-size: .9rem; background: linear-gradient(0deg, rgba(30,33,36,.8), rgba(30,33,36,0)); }

/* ---------- Hinweisbox ---------- */
.note-box { border-left: 4px solid var(--om-red); background: var(--om-red-soft); padding: 1.35rem 1.5rem; border-radius: 0 3px 3px 0; }
.note-box > :last-child { margin-bottom: 0; }

/* ---------- Vergleich ---------- */
.compare-card { border-top: 4px solid var(--om-red); }
.compare-card--alt { border-top-color: var(--om-ink); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--om-red); color: #FFF1F0; padding: 3.5rem 0; }
.cta-band__phone a { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.cta-band__phone a:hover { text-decoration: underline; color: #fff; }

/* ---------- Landingpage ---------- */
.lp-hero { background: var(--om-ink); color: #E8E9EB; padding: 3.5rem 0 3.75rem; position: relative; overflow: hidden; }
.lp-hero picture { position: absolute; inset: 0; opacity: .22; }
.lp-hero picture img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero .container { position: relative; }
.lp-hero h1 { color: #fff; font-size: 2.6rem; line-height: 1.15; }
.lp-hero .check-list { color: #fff; }
.lp-hero .check-list .icon { color: #F27A73; }
.lp-hero__phone a { color: #fff; font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.lp-form { background: #fff; color: #2B2E32; border-radius: 4px; padding: 1.75rem; border-top: 4px solid var(--om-red); }

/* ---------- Personen ---------- */
.person img { border: 1px solid var(--om-line); border-radius: 4px; }

/* ---------- Kontaktdaten ---------- */
.contact-details { background: var(--om-soft); border: 1px solid var(--om-line); border-radius: 4px; padding: 1.75rem; }
.contact-details dt { display: flex; gap: .45rem; align-items: center; color: var(--om-ink); margin-top: 1rem; }
.contact-details dt .icon { color: var(--om-red); }
.contact-details dd { margin: .15rem 0 0 1.6rem; }

/* ---------- Formulare ---------- */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-wrap { background: #fff; border: 1px solid var(--om-line); border-radius: 4px; padding: 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq .accordion-button { font-weight: 600; font-size: 1.05rem; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--om-ink-deep); color: #CDD0D4; font-size: .96rem; }
.site-footer a { color: #E8E9EB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .icon { color: #F27A73; }
.footer-logo { width: 200px; height: auto; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-map { width: 140px; height: auto; flex-shrink: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Danke / 404 ---------- */
.message-page { padding: 5rem 0; }
.message-page__icon { width: 3.5rem; height: 3.5rem; color: var(--om-red); }

@media print {
  .topbar, .site-header nav, .cta-band, .breadcrumb-bar, form, .hero-slider { display: none !important; }
  .site-header { position: static !important; }
  .page-hero, .lp-hero, .site-footer { background: none !important; color: #000 !important; }
  .page-hero::after, .page-hero picture { display: none; }
  .page-hero__title, .lp-hero h1 { color: #000 !important; }
}

/* Bilder mit width/height-Attributen proportional skalieren */
.card-img-top, .illu, .img-fluid { height: auto; }
.rotate-270 { transform: rotate(-90deg); }
.border-start-primary { border-left-color: var(--om-red) !important; }

/* ---------- Referenzen ---------- */
.ref-card__media { background: #EEF0F1; border-bottom: 1px solid var(--om-line); overflow: hidden; }
.ref-card__media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; height: auto; }
.ref-card__media--logo { background: #F6F2EE; }
.ref-card__media--logo img { object-fit: contain; }
.ref-detail { padding: 3.5rem 0; }
.ref-detail:first-child { padding-top: 0; }
.ref-shot { border: 1px solid var(--om-line); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 28px rgba(38, 41, 45, .12); background: #EEF0F1; }
.ref-shot img { width: 100%; height: auto; display: block; }
.ref-shot--logo { background: #F6F2EE; }
.ref-card__media--photo img { object-position: center 55%; }
.person__contact li { display: flex; gap: .4rem; align-items: center; margin-bottom: .25rem; overflow-wrap: anywhere; }
.person__contact .icon { color: var(--om-red); }
.text-primary.flex-shrink-0 > .icon { width: 1.6rem; height: 1.6rem; margin-top: .15rem; }

/* Vertrauensleiste: gleichmäßige Abstände unabhängig von der Textlänge */
.trust-list { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; }
.trust-list li { margin: 0; white-space: nowrap; font-size: .92rem; }
@media (max-width: 1199.98px) {
  .trust-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .trust-list li { white-space: normal; }
}
@media (max-width: 767.98px) { .trust-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; } }

/* ---------- Weitere Kunden: durchlaufendes Namensband ---------- */
.client-section { padding: 3rem 0; border-top: 1px solid var(--om-line); }
.client-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.client-ticker__track { display: flex; width: max-content; animation: om-ticker 45s linear infinite; }
.client-ticker:hover .client-ticker__track,
.client-ticker:focus-within .client-ticker__track { animation-play-state: paused; }
.client-ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.client-ticker__list li {
  display: flex; align-items: center; white-space: nowrap; margin: 0;
  padding: .9rem 2rem; font-size: 1.15rem; font-weight: 600; color: #3A3F45;
}
.client-ticker__list li::after {
  content: ""; width: .45rem; height: .45rem; margin-left: 4rem; transform: rotate(45deg);
  background: var(--om-red); flex-shrink: 0;
}
@keyframes om-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-dur-4  { animation-duration: 20s; } .ticker-dur-5  { animation-duration: 25s; }
.ticker-dur-6  { animation-duration: 30s; } .ticker-dur-7  { animation-duration: 35s; }
.ticker-dur-8  { animation-duration: 40s; } .ticker-dur-9  { animation-duration: 45s; }
.ticker-dur-10 { animation-duration: 50s; } .ticker-dur-11 { animation-duration: 55s; }
.ticker-dur-12 { animation-duration: 60s; }
@media (max-width: 575.98px) {
  .client-ticker__list li { font-size: 1rem; padding: .7rem 1.25rem; }
  .client-ticker__list li::after { margin-left: 2.5rem; }
}
/* Bewegung reduziert: stehende, umbrechende Liste statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .client-ticker { -webkit-mask-image: none; mask-image: none; }
  .client-ticker__track { animation: none; width: auto; justify-content: center; padding: 0 1rem; }
  .client-ticker__list { flex-wrap: wrap; justify-content: center; }
  .client-ticker__list[aria-hidden="true"] { display: none; }
  .client-ticker__list li { padding: .5rem 1rem; }
  .client-ticker__list li::after { display: none; }
}

/* ---------- Einwilligungs-Hinweis (Google Ads) ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: var(--om-ink-deep); color: #E8E9EB; border-top: 3px solid var(--om-red); box-shadow: 0 -6px 18px rgba(0,0,0,.2); }
.consent-banner[hidden] { display: none; }
.consent-banner a { color: #fff; }
.consent-banner .btn { min-width: 8.5rem; }
@media (max-width: 575.98px) { .consent-banner .btn { flex: 1; min-width: 0; } }
