/* =========================================================
   AUSBAU PLUS — Custom Theme (Bold / Editorial / Rot-Weiß-Grau)
   Baut auf Bootstrap 5 auf. CMS-Editierbare Textblöcke sind
   im HTML mit <!-- CMS: ... --> markiert.
   ========================================================= */

:root {
  --ap-red: #e2001a;
  --ap-red-dark: #af0014;
  --ap-dark: #545353;
  --ap-dark-2: #1c1c1f;
  --ap-paper: #f6f4f1;
  --ap-gray-mid: #6b6f76;
  --ap-gray-border: #e7e4df;
  --bs-primary: var(--ap-red);
  --bs-primary-rgb: 226, 0, 26;
  --light: #ffffff;
  --primary:#dedede;
  --gray:#dedede;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ap-dark);
  background: #fff;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .headline {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { color: var(--ap-red); }
a:hover { color: var(--ap-red-dark); }

.text-red { color: var(--ap-red) !important; }
.bg-red { background-color: var(--ap-red) !important; }
.bg-dark-ap { background-color: var(--ap-dark) !important; }
.bg-paper { background-color: var(--ap-paper) !important; }

/* ---------- Rotate utilities (kein Bootstrap-Standard, eigene Ergänzung) ---------- */
/* rotate-l-* = gegen den Uhrzeigersinn, rotate-r-* = im Uhrzeigersinn */
.rotate-l-1 { transform: rotate(-1deg); }
.rotate-l-2 { transform: rotate(-2deg); }
.rotate-l-3 { transform: rotate(-3deg); }
.rotate-l-4 { transform: rotate(-4deg); }
.rotate-l-5 { transform: rotate(-5deg); }
.rotate-r-1 { transform: rotate(1deg); }
.rotate-r-2 { transform: rotate(2deg); }
.rotate-r-3 { transform: rotate(3deg); }
.rotate-r-4 { transform: rotate(4deg); }
.rotate-r-5 { transform: rotate(5deg); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .9s cubic-bezier(.16,.84,.44,1), transform .9s cubic-bezier(.16,.84,.44,1);
  will-change: transform, opacity;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }
[data-reveal-delay="4"] { transition-delay: .48s; }
[data-reveal-delay="5"] { transition-delay: .6s; }

/* ---------- Buttons ---------- */
.btn-red {
  background-color: var(--ap-red);
  border-color: var(--ap-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.95rem 2.2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color .25s ease, transform .2s ease;
}
.btn-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ap-dark);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.65,0,.35,1);
  z-index: -1;
}
.btn-red:hover::before { transform: translateX(0); }
.btn-red:hover { color: #fff; transform: translateY(-2px); }

.btn-outline-light-ap {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.95rem 2.2rem;
  border-radius: 0;
  transition: all .25s ease;
}
.btn-outline-light-ap:hover {
  background: #fff;
  color: var(--ap-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark-ap {
  background: transparent;
  border: 1px solid var(--ap-dark);
  color: var(--ap-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
  border-radius: 0;
  transition: all .2s ease;
}
.btn-outline-dark-ap:hover { background: var(--ap-dark); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-ap {
  background: transparent;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  transition: box-shadow .3s ease, padding .3s ease, background-color .3s ease;
}
.navbar-ap.is-scrolled {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.navbar-ap .navbar-brand img { height: 42px; width: auto; }
.navbar-ap .navbar-brand {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.navbar-ap .navbar-brand.nav-logo-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar-ap:not(.is-scrolled) .navbar-toggler-icon {
  filter: invert(1);
}
.navbar-ap .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ap-dark);
  padding: 0.5rem 1rem !important;
}
.navbar-ap:not(.is-scrolled) .nav-link,
.navbar-ap:not(.is-scrolled) .navbar-phone { color: #fff; }
.navbar-ap .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .1rem;
  height: 2px;
  background: var(--ap-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar-ap .nav-link:hover::after,
.navbar-ap .nav-link.active::after { transform: scaleX(1); }
.navbar-ap .nav-link:hover,
.navbar-ap .nav-link.active { color: var(--ap-red) !important; }
.navbar-ap .dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  border-radius: 0;
  margin-top: .75rem;
}
.navbar-ap .dropdown-item {
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
}
.navbar-ap .dropdown-item:hover { background: var(--ap-paper); color: var(--ap-red); }
.navbar-phone {
  font-weight: 700;
  color: var(--ap-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color .3s ease;
}
.navbar-phone i { color: var(--ap-red); }

/* ---------- Hero ---------- */
.hero-ap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ap-dark);
  padding-top: 8rem;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  inset: -8% -8%;
  background: url("../img/hof.jpg") center 55% / cover no-repeat;
  will-change: transform;
}
.placeholder-badge {
  position: absolute;
  top: 6.5rem;
  right: clamp(1rem, 5vw, 5rem);
  z-index: 3;
  background: rgba(18,18,20,.72);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .5rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  backdrop-filter: blur(3px);
}
.placeholder-badge i { color: var(--ap-red); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,.35) 35%, rgba(10,11,12,.92) 100%);
}
.hero-ap .container, .hero-ap .container-xxl { position: relative; z-index: 2; padding-bottom: 6.5rem; }
.hero-logo {
  display: block;
  width: clamp(240px, 70vw, 420px);
  height: auto;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1) .15s, transform .8s cubic-bezier(.16,.84,.44,1) .15s;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
.hero-logo.is-in { opacity: 1; transform: translateY(0); }
.hero-ap .eyebrow {
  color: var(--ap-red);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.hero-ap .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ap-red); display: inline-block; }
.hero-ap h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  line-height: 0.98;
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.hero-ap h1 span { color: var(--ap-red); font-family: "Poppins", "Inter", sans-serif; font-style: italic; font-weight: 600; }
.hero-ap p.lead {
  color: rgba(255,255,255,.82);
  max-width: 560px;
  font-size: 1.1rem;
}
.hero-stat-card {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 8rem;
  z-index: 3;
  max-width: 230px;
}
.hero-stat-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  background: #e2001a8c;
  z-index: -1;
  animation: heroStatSquareBend 7s ease-in-out infinite;
}





@keyframes heroStatSquareBend {
  0%   { transform: rotate(-4deg) skew(-4deg, 1deg); border-radius: 4px 22px 4px 22px; }
  33%  { transform: rotate(2deg) skew(3deg, -2deg) translate(-4px, 3px); border-radius: 26px 4px 26px 4px; }
  66%  { transform: rotate(-2deg) skew(-2deg, -1deg) translate(3px, -3px); border-radius: 4px 30px 4px 30px; }
  100% { transform: rotate(-4deg) skew(-4deg, 1deg); border-radius: 4px 22px 4px 22px; }
}
.hero-stat-card-inner {
position: relative;
  background: #fff;
  padding: 1.75rem 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.9);
  animation: heroStatFloat 4.5s ease-in-out infinite;
  text-align: center;
  border-radius: 20px;
}
@keyframes heroStatFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
.hero-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ap-paper);
  color: var(--ap-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto .85rem;
}
.hero-stat-card .stat-value {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--ap-red);
  line-height: 1;
}
.hero-stat-card .stat-value .unit { color: var(--ap-red); }
.hero-stat-card .stat-label {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ap-gray-mid);
  font-weight: 600;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 1.4rem;
  z-index: 3;
  animation: apBounce 2s infinite;
}
@keyframes apBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 767.98px) {
  .hero-ap { min-height: 75vh; padding-top: 6rem; }
  .hero-ap .container, .hero-ap .container-xxl { padding-bottom: 3rem; }
}




/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--ap-red);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  padding: 0 2rem;
}
.marquee-track span i { font-size: .5rem; margin-right: 2rem; opacity: .8; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section basics ---------- */
.section-ap { padding: 7rem 0; position: relative; }
@media (max-width: 767.98px) { .section-ap { padding: 4rem 0; } }

.section-title { position: relative; }
.section-title .ghost-text {
  position: absolute;
  top: -3.2rem;
  left: -.2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: var(--ap-dark);
  opacity: .04;
  letter-spacing: -.03em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.section-title .kicker {
  position: relative;
  color: var(--ap-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}
.section-title h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0.4rem;
  line-height: 1.05;
}
.divider-red {
  width: 56px;
  height: 4px;
  background: var(--ap-red);
  border-radius: 0;
}

/* ---------- Stats counter ---------- */
.stats-strip { border-top: 1px solid var(--ap-gray-border); border-bottom: 1px solid var(--ap-gray-border); }
.stat-block { padding: 3rem 1rem; text-align: center; border-right: 1px solid var(--ap-gray-border); }
.stat-block:last-child { border-right: none; }
.stat-block .stat-value {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--ap-dark);
  line-height: 1;
}
.stat-block .stat-value .unit { color: var(--ap-red); }
.stat-block .stat-caption {
  margin-top: .6rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ap-gray-mid);
  font-weight: 600;
}

/* ---------- Über uns (asymmetric) ---------- */
.about-media { position: relative; }
@media (min-width: 992px) {
  .about-media-col {
    position: sticky;
    top: 6.5rem;
    align-self: flex-start;
  }
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-media .about-media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-media .about-media-tag {
  position: absolute;
  left: 16.5rem;
  bottom: 3rem;
  background: var(--ap-red);
  color: #fff;
  padding: 1.25rem 1.75rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-style: italic;
  font-size: 4rem;
  max-width: 632px;
  box-shadow: 0 20px 40px rgba(226,0,26,.25);
  line-height: 1em;
}

.about-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--ap-gray-border);
}
.about-list-item:last-child { border-bottom: 1px solid var(--ap-gray-border); }
.about-list-item .num {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ap-red);
  flex: 0 0 3.2rem;
}
.about-list-item h4 { margin-bottom: .5rem; font-size: 1.2rem; }
.about-list-item p { color: var(--ap-gray-mid); margin-bottom: 0; }

/* ---------- Services bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 1.25rem;
}
.bento-item {
  grid-column: span 3;
  grid-row: span 1;
  position: relative;
  background: var(--ap-dark);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  isolation: isolate;
}
.bento-item:hover { color: #fff; text-decoration: none; }
.bento-item * { text-decoration: none; }
.bento-item.large { grid-column: span 4; grid-row: span 2; }
.bento-item.tall { grid-column: span 2; grid-row: span 2; }
.bento-item.short { grid-row: span 1; }
.bento-item.wide { grid-column: span 6; grid-row: span 1; flex-direction: row; align-items: center; gap: 2rem; justify-content: space-between; }
.bento-item.wide .bento-icon { margin-bottom: 0; flex: 0 0 auto; }
.bento-item.wide h4 { margin-bottom: 0; }
.bento-item.wide p { max-width: 46ch; }
.bento-item .bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform .6s cubic-bezier(.16,.84,.44,1);
  z-index: -2;
}
.bento-item .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,20,.15) 0%, rgba(18,18,20,.92) 100%);
  z-index: -1;
  transition: background .35s ease;
}
.bento-item:hover .bento-bg { transform: scale(1.16); }
.bento-item .bento-icon {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.15rem;
  transition: background-color .25s ease, border-color .25s ease;
}
.bento-item:hover .bento-icon { background: var(--ap-red); border-color: var(--ap-red); }
.bento-item h4 { font-size: 1.35rem; margin-bottom: .5rem; flex: 0 0 auto; }
.bento-item.large h4 { font-size: 1.9rem; }
.bento-item p {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  margin-bottom: 0;
  max-width: 34ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bento-item.large p, .bento-item.tall p { -webkit-line-clamp: 4; }
.bento-item.large p { max-width: 55ch; -webkit-line-clamp: 5; }
.bento-item .bento-link {
  margin-top: .75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.bento-item:hover .bento-link { opacity: 1; transform: translateY(0); }

/* ---------- Short bento tiles: keep large/tall width, fit content in one row ---------- */
.bento-item.short .bento-icon { width: 38px; height: 38px; margin-bottom: .4rem; font-size: 1rem; }
.bento-item.short h4 { font-size: 1.15rem !important; margin-bottom: .25rem; }
.bento-item.short p {
  -webkit-line-clamp: 1 !important;
  max-width: 34ch !important;
  min-height: 1.3em;
}
.bento-item.short .bento-link { margin-top: .4rem; }

@media (max-width: 991.98px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .bento-item, .bento-item.large, .bento-item.tall, .bento-item.wide { grid-column: span 1; grid-row: span 1; }
  .bento-item.wide { flex-direction: column; align-items: flex-start; }
	.navbar-ap {
	  background: #fff !important;
	  box-shadow: 0 4px 18px rgba(0,0,0,.08);
	  padding-top: .7rem;
	  padding-bottom: .7rem;
	}
	.navbar-ap:not(.is-scrolled) .navbar-toggler-icon {
		  filter: invert(100%);
		}
.navbar-ap:not(.is-scrolled) .nav-link, .navbar-ap:not(.is-scrolled) .navbar-phone {
  color: #000 !important;
}
}
@media (max-width: 575.98px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* ---------- Leistungen Detail-Popup ---------- */
.bento-modal .modal-dialog {
  max-width: 90%;
  width: 90%;
}
.bento-modal .modal-content {
  border: none;
  border-radius: 0;
  overflow: hidden;
}
.bento-modal .modal-header {
  background: var(--ap-dark);
  border-bottom: none;
  padding: 1.75rem 1.75rem 1.25rem;
}
.bento-modal .modal-header .btn-close {
  filter: invert(1);
  opacity: .8;
}
.bento-modal .modal-header .btn-close:hover { opacity: 1; }
.bento-modal .modal-hero {
  height: 260px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 767.98px) {
  .bento-modal .modal-hero { height: 180px; }
}
/* Im Modal-Header steht nur das Icon - die Ueberschrift bleibt im Body. */
.bento-modal-title {
  display: flex;
  align-items: center;
}
.bento-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: var(--ap-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.bento-modal .modal-body { padding: 1.75rem; }
/* Ueberschrift aus der Blockdatei - steht ueber dem Text im Body. */
.bento-modal .modal-body h3,
.bento-modal .modal-body h4 {
  color: var(--ap-dark);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .75rem;
  overflow-wrap: break-word;
}
.bento-modal .modal-body p {
  color: var(--ap-gray-mid);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.bento-modal .modal-footer {
  border-top: 1px solid var(--ap-gray-border);
  padding: 1.25rem 1.75rem;
}

/* ---------- Impressum / Datenschutz Popup ---------- */
.legal-modal .modal-header {
  background: var(--ap-dark);
  color: #fff;
  border-bottom: none;
  padding: 1.5rem 1.75rem;
}
.legal-modal .modal-title { font-size: 1.4rem; margin: 0; }
.legal-modal .modal-header .btn-close {
  filter: invert(1);
  opacity: .8;
}
.legal-modal .modal-header .btn-close:hover { opacity: 1; }
.legal-modal .modal-body {
  padding: 1.75rem;
  color: var(--ap-gray-mid);
  line-height: 1.65;
}
.legal-modal .modal-body h1,
.legal-modal .modal-body h2,
.legal-modal .modal-body h3 {
  color: var(--ap-dark);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}
.legal-modal .modal-body h1:first-child,
.legal-modal .modal-body h2:first-child,
.legal-modal .modal-body h3:first-child {
  margin-top: 0;
}
.legal-modal .modal-body p { margin-bottom: 1rem; }
.legal-modal .modal-body strong { color: var(--ap-dark); }
.legal-modal .modal-body hr { margin: 1.25rem 0; border-color: var(--ap-gray-border); }
.legal-modal .modal-body a { word-break: break-word; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--ap-dark-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  background: url("../img/renovierung.jpg") center / cover no-repeat;
  opacity: 0.22;
  transform: scale(1.05);
}
.cta-banner::after {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: var(--ap-red);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .12;
}
.cta-banner .cta-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-banner .lead { color: rgba(255,255,255,.8); }

/* ---------- Problem / Lösung ---------- */
.problem-row { border-top: 1px solid var(--ap-gray-border); }
.problem-line {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--ap-gray-border);
  transition: padding-left .3s ease, background-color .3s ease;
}
.problem-line:hover { padding-left: 1rem; background: var(--ap-paper); }
.problem-line .p-index {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ap-red);
  flex: 0 0 2.5rem;
}
.problem-line h5 { flex: 0 0 auto; width: 40%; margin: 0; font-size: 1.25rem; }
.problem-line p { margin: 0; color: var(--ap-gray-mid); flex: 1; }
@media (max-width: 767.98px) {
  .problem-line { flex-wrap: wrap; gap: .5rem; }
  .problem-line h5 { width: 100%; }
}

/* ---------- Prozess Timeline ---------- */
.timeline-wrap { position: relative; padding-top: 2rem; }
.timeline-line {
  position: absolute;
  top: 3.3rem;
  left: 0; right: 0;
  height: 2px;
  background: var(--ap-gray-border);
}
.timeline-line-fill {
  position: absolute;
  top: 3.3rem;
  left: 0;
  height: 2px;
  background: var(--ap-red);
  width: 0%;
  transition: width 1.4s cubic-bezier(.16,.84,.44,1);
}
.timeline-line-fill.is-visible { width: 100%; }
.process-item { text-align: center; padding: 0 1rem; position: relative; }
.process-item .step-num {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ap-red);
  color: var(--ap-red);
  font-weight: 700;
  font-family: "Poppins", "Inter", sans-serif;
  margin-bottom: 1.25rem;
  transition: background-color .25s ease, color .25s ease;
}
.process-item.is-visible .step-num { background: var(--ap-red); color: #fff; }
.process-item h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.process-item p { color: var(--ap-gray-mid); font-size: 0.9rem; }

/* ---------- Testimonials (editorial) ---------- */
.testimonial-editorial { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial-editorial .quote-mark {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--ap-red);
  opacity: .25;
  font-style: italic;
}
.testimonial-editorial blockquote {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ap-dark);
  margin: -1.5rem 0 2rem;
}
.testimonial-editorial .stars { color: var(--ap-red); letter-spacing: 3px; margin-bottom: 1rem; }
.testimonial-editorial .author-name { font-weight: 700; }
.testimonial-editorial .author-role { color: var(--ap-gray-mid); font-size: 0.85rem; }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ap-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ap-red);
  margin: 0 auto .75rem;
}
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  position: static;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ap-gray-border);
  opacity: 1;
  display: inline-flex;
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  filter: invert(0.2);
  width: 1.1rem; height: 1.1rem;
}
#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover { background: var(--ap-red); border-color: var(--ap-red); }
#testimonialCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next:hover .carousel-control-next-icon { filter: invert(1); }

/* ---------- Warum wir / USP ---------- */
.usp-row { border-top: 1px solid rgba(255,255,255,.12); }
.usp-item {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background-color .3s ease;
}
.usp-item:hover { background: rgba(226,0,26,.08); }
.usp-item:last-child { border-right: none; }
.usp-item i { font-size: 2rem; color: var(--ap-red); margin-bottom: .85rem; display: block; transition: transform .3s ease; }
.usp-item:hover i { transform: translateY(-4px) scale(1.1); }
.usp-item p { color: rgba(255,255,255,.85); font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0; }

/* ---------- Kontakt ---------- */
.contact-info-box {
  background: var(--ap-dark);
  color: #fff;
  padding: 2.75rem;
  height: 100%;
}
.contact-info-box h6, .contact-info-box p, .contact-info-box a { color: #fff; }
.contact-info-box h6 { font-size: clamp(1rem, 0.85rem + 0.5vw, 1.35rem); }
.contact-info-box p { font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem); }
.contact-info-box .info-row { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-info-box .info-row:last-child { margin-bottom: 0; }
.contact-info-box .info-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--ap-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-control, .form-select {
  border-radius: 0;
  border-color: var(--ap-gray-border);
  padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ap-red);
  box-shadow: 0 0 0 0.2rem rgba(226,0,26,.12);
}
.map-embed { filter: grayscale(80%) contrast(1.05); border: none; width: 100%; height: 100%; min-height: 280px; }

/* ---------- Footer ---------- */
.footer-ap { background: var(--ap-dark); color: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.footer-ap a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-ap a:hover { color: #fff; }
.footer-ap h6 { color: #fff; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin-bottom: 1.25rem; }
.footer-ap .footer-logo img { height: 96px;  width: auto;  margin-bottom: 1rem;  filter: brightness(0) invert(1);}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .5rem;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-social a:hover { background: var(--ap-red); border-color: var(--ap-red); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-ghost {
  position: absolute;
  bottom: -3.5rem;
  left: 0; right: 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 13vw, 11rem);
  letter-spacing: -.02em;
  color: rgba(255,255,255,.035);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* Back to top */
.btn-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ap-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.btn-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-top:hover { background: var(--ap-red-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .hero-scroll-cue { animation: none; }
  .hero-logo { animation: none; opacity: 1; transform: none; }
  .hero-stat-card-inner { animation: none; }
  .hero-stat-card::before { animation: none; }
}

.thumb-info .thumb-info-title {
  transition: all 0.3s;
  background: #00000087;
  color: #c9c9c9;
  font-weight: 600;
  left: 0;
  letter-spacing: -.05em;
  position: absolute;
  z-index: 2;
  max-width: 90%;
  font-size: 17px;
  padding: 13px 21px 2px;
  bottom: 13%;
}

.thumb-info .thumb-info-type, .thumb-info .thumb-info-action-icon, .thumb-info-social-icons a, .thumbnail .zoom, .img-thumbnail .zoom, .thumb-info-ribbon {
  background-color: #7d7d7dba;
}