/* Fliesenerleben® — custom styles (Bootstrap 5 companion) */

:root {
  --fe-green: #7a9b31;
  --fe-green-dark: #627a28;
  --fe-green-soft: rgba(122, 155, 49, 0.12);
  --fe-text: #3d3d3d;
  --fe-muted: #6b6b6b;
  --fe-footer: #2f3230;
  --fe-font: "Montserrat", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fe-font);
  color: var(--fe-text);
  background-color: #fff;
}

/* Scroll reveal animations */
.fe-animate {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--fe-delay, 0ms);
  will-change: opacity, transform;
}

.fe-animate[data-fe-anim="fade-up"] {
  transform: translate3d(0, 16px, 0);
}

.fe-animate[data-fe-anim="fade-right"] {
  transform: translate3d(-18px, 0, 0);
}

.fe-animate[data-fe-anim="fade-left"] {
  transform: translate3d(18px, 0, 0);
}

.fe-animate[data-fe-anim="zoom-in"] {
  transform: translate3d(0, 10px, 0) scale(0.985);
}

.fe-animate.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fe-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.text-fe-green {
  color: var(--fe-green) !important;
}

.bg-fe-green {
  background-color: var(--fe-green) !important;
}

.btn-fe-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--fe-green);
  --bs-btn-border-color: var(--fe-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--fe-green-dark);
  --bs-btn-hover-border-color: var(--fe-green-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--fe-green-dark);
  --bs-btn-active-border-color: var(--fe-green-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  box-shadow: 0 10px 20px rgba(122, 155, 49, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}

.btn-fe-outline {
  --bs-btn-color: var(--fe-green);
  --bs-btn-border-color: var(--fe-green);
  --bs-btn-hover-bg: var(--fe-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--fe-green);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn-fe-primary:hover,
.btn-fe-outline:hover {
  transform: translateY(-1px);
}

.btn-fe-primary:active,
.btn-fe-outline:active {
  transform: translateY(0);
}

.btn-fe-outline {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.btn-fe-outline:hover {
  box-shadow: 0 12px 22px rgba(122, 155, 49, 0.18);
}

.btn-fe-primary.btn-sm,
.btn-fe-outline.btn-sm {
  padding: 0.5rem 0.9rem;
  border-radius: 0.8rem;
}

.btn-fe-primary.btn-lg,
.btn-fe-outline.btn-lg {
  padding: 0.9rem 1.25rem;
  border-radius: 1rem;
}

.btn-fe-primary i,
.btn-fe-outline i {
  font-size: 1.05em;
}

/* Header */
.fe-header {
  z-index: 1030; /* align with Bootstrap sticky elements */
}

.fe-topstrip {
  background: linear-gradient(90deg, #1f2321, #2f3230);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-topbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.fe-toppill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.fe-toppill:hover {
  color: #fff;
  background: rgba(122, 155, 49, 0.18);
  border-color: rgba(122, 155, 49, 0.35);
  transform: translateY(-1px);
}

.fe-navbar .fe-toppill {
  background: rgba(122, 155, 49, 0.1);
  border-color: rgba(122, 155, 49, 0.35);
  color: var(--fe-green-dark);
}

.fe-navbar .fe-toppill:hover {
  background: rgba(122, 155, 49, 0.16);
  border-color: rgba(122, 155, 49, 0.5);
  color: var(--fe-green-dark);
}

.fe-topnote {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.fe-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/*
 * Desktop nav CTAs + open collapse on lg+: theme-controlled display so we don’t depend on
 * Bootstrap utility load order (fixes “visible in Customizer, blank on frontend”).
 */
.fe-navbar .navbar-collapse.align-items-lg-center {
  gap: 0.35rem;
}

.fe-navbar-desktop-cta {
  display: none;
}

@media (min-width: 992px) {
  .fe-navbar.navbar-expand-lg #feNav.navbar-collapse.collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .fe-navbar-desktop-cta {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
}

/* Sticky only for main nav (not top strip) */
.fe-nav-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1035; /* above slick arrows/dots */
}

.fe-navbar .navbar-brand img {
  height: 44px;
  width: auto;
}

.fe-toggler {
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0.65rem;
}

.fe-navbar .nav-link {
  color: var(--fe-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.55rem 0.9rem !important;
  transition: color 0.2s ease;
  position: relative;
  border-radius: 999px;
}

.fe-navbar .nav-link:hover,
.fe-navbar .nav-link:focus {
  color: var(--fe-green);
  background: rgba(122, 155, 49, 0.08);
}

.fe-navbar .nav-link.active {
  color: var(--fe-green);
  background: rgba(122, 155, 49, 0.12);
}

.fe-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--fe-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
  opacity: 0.6;
}

.fe-navbar .nav-link:hover::after,
.fe-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Hero */
.fe-hero {
  position: relative;
  min-height: clamp(460px, 74vh, 820px);
  background-color: #e8e8e6;
  overflow: hidden;
}

/* Inner pages: single slide (no Slick) */
.fe-hero.fe-hero--inner > .fe-hero-slide {
  min-height: clamp(460px, 74vh, 820px);
}

.fe-hero-slider,
.fe-hero-slide {
  min-height: clamp(460px, 74vh, 820px);
}

.fe-hero-slider.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.fe-hero-slide {
  position: relative;
}

.fe-hero-slider .slick-list,
.fe-hero-slider .slick-track {
  height: 100%;
}

.fe-hero-slider .slick-slide,
.fe-hero-slider .slick-slide > div {
  height: 100%;
}

.fe-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.fe-hero:hover .fe-hero__bg {
  transform: scale(1.03);
}

.fe-hero .container.position-relative {
  min-height: clamp(460px, 74vh, 820px);
}

.fe-hero .fe-hero-row {
  min-height: clamp(460px, 74vh, 820px);
}

.fe-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.32) 55%,
      rgba(0, 0, 0, 0.46) 100%
    ),
    radial-gradient(
      900px 480px at 70% 35%,
      rgba(122, 155, 49, 0.12) 0%,
      rgba(122, 155, 49, 0) 65%
    );
}

.fe-hero .container.position-relative {
  z-index: 2;
}

/* Hero layout (premium, clean) */
.fe-hero-shell {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(5px);
  border-radius: 1.4rem;
  padding: clamp(0.95rem, 1.6vw, 1.35rem);
  max-width: 740px;
  margin-left: auto;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1199.98px) {
  .fe-hero-shell {
    max-width: 100%;
  }
}

.fe-hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(1.65rem, 2.25vw, 2.35rem);
  color: #ffffff;
  margin: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.fe-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.98rem;
  max-width: 44rem;
  margin-bottom: 0;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.fe-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(35, 37, 36, 0.92);
  font-weight: 800;
  font-size: 0.85rem;
}

.fe-hero-pill--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.fe-hero-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.fe-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 0.95rem;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.fe-hero-list li {
  display: flex;
  align-items: flex-start;
}

.fe-hero-list i {
  color: #d7ff7a;
  margin-right: 0.55rem;
  margin-top: 0.1rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.fe-hero-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 0.95rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.fe-hero-card__kicker {
  color: var(--fe-green-dark);
  font-weight: 900;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fe-hero-card__title {
  font-weight: 900;
  color: #232524;
  font-size: 1rem;
}

.fe-hero-card__foot {
  display: grid;
  gap: 0.5rem;
  color: rgba(45, 47, 45, 0.75);
  font-weight: 650;
  font-size: 0.92rem;
}

.fe-hero-card .btn {
  justify-content: center;
}

.fe-hero-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.fe-hero-mini i {
  color: var(--fe-green);
}

/* Slick controls (Hero) */
.fe-hero .slick-dots {
  bottom: 18px;
}

.fe-hero .slick-dots li button:before {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}

.fe-hero .slick-dots li.slick-active button:before {
  color: rgba(215, 255, 122, 0.95);
}

.fe-slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.fe-slick-arrow:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(215, 255, 122, 0.45);
}

.fe-slick-prev {
  left: 14px;
}

.fe-slick-next {
  right: 14px;
}

@media (max-width: 991.98px) {
  .fe-slick-arrow {
    display: none !important;
  }
}

/* Intro / trust strip */
.fe-strip {
  border-left: 4px solid var(--fe-green);
  padding-left: 1.25rem;
  background: linear-gradient(90deg, var(--fe-green-soft), transparent);
}

/* Intro (modern USP block) */
.fe-intro {
  background: linear-gradient(180deg, rgba(122, 155, 49, 0.07), transparent 60%);
}

.fe-intro__copy {
  padding-right: 0;
}

.fe-intro__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(35, 37, 36, 0.75);
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fe-intro__panel {
  border-left: 4px solid var(--fe-green);
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1.1rem;
  padding: 1.15rem 1.15rem;
}

.fe-usp-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.1rem;
  padding: 1.05rem 1.05rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.fe-usp-card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 0.9rem;
  background: rgba(122, 155, 49, 0.14);
  border: 1px solid rgba(122, 155, 49, 0.22);
  color: var(--fe-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.fe-usp-card--wide .fe-usp-card__icon {
  margin-bottom: 0;
}

.fe-usp-card p {
  color: rgba(35, 37, 36, 0.72);
  font-size: 0.95rem;
}

.fe-usp-card--wide {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.fe-intro__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(122, 155, 49, 0.35);
  background: rgba(122, 155, 49, 0.08);
}

.fe-intro__mini-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: rgba(35, 37, 36, 0.75);
  font-size: 0.95rem;
}

.fe-intro__mini-item i {
  color: var(--fe-green);
}

@media (max-width: 991.98px) {
  .fe-intro__panel {
    padding: 1rem;
  }
}

/* Qualität (modern media + bullets) */
.fe-quality__media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.14);
}

.fe-quality__media img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.fe-quality__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.fe-quality__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 800;
  color: rgba(35, 37, 36, 0.9);
}

.fe-quality__badge i {
  color: var(--fe-green);
}

.fe-quality__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.fe-quality__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(35, 37, 36, 0.78);
  font-weight: 650;
}

.fe-quality__list i {
  color: var(--fe-green);
  margin-top: 0.08rem;
}

/* Bad (modern media + bullets) */
.fe-bath__media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.12);
}

.fe-bath__media img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.fe-bath__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.fe-bath__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 800;
  color: rgba(35, 37, 36, 0.9);
}

.fe-bath__badge i {
  color: var(--fe-green);
}

.fe-bath__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.fe-bath__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(35, 37, 36, 0.78);
  font-weight: 650;
}

.fe-bath__list i {
  color: var(--fe-green);
  margin-top: 0.08rem;
}

/* Region (modern media + bullets) */
.fe-region__media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.12);
}

.fe-region__media img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.fe-region__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.fe-region__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 800;
  color: rgba(35, 37, 36, 0.9);
}

.fe-region__badge i {
  color: var(--fe-green);
}

.fe-region__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.fe-region__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(35, 37, 36, 0.78);
  font-weight: 650;
}

.fe-region__list i {
  color: var(--fe-green);
  margin-top: 0.08rem;
}

/* Section typography */
.fe-section-head {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fe-section-lead {
  max-width: 720px;
  color: var(--fe-muted);
}

/* Content images (band sections) */
.fe-band-media {
  width: 100%;
  height: clamp(240px, 32vw, 360px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Service cards */
.fe-service-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.fe-services-overview .fe-service-card__media {
  aspect-ratio: 16 / 10;
}

.fe-services-overview .fe-service-card__media img {
  object-position: center top;
}

.fe-services-overview .fe-service-card {
  display: flex;
  flex-direction: column;
}

.fe-services-overview .fe-service-card__caption {
  position: static;
  margin-top: -1px; /* avoids hairline gap on some browsers */
  background: #fff;
  border-top: 3px solid var(--fe-green);
}

.fe-service-card:hover {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.fe-service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.fe-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.fe-service-card:hover .fe-service-card__media img {
  transform: scale(1.06);
}

.fe-service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 55%
  );
  opacity: 0.85;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fe-service-card:hover .fe-service-card__media::after {
  opacity: 1;
}

.fe-service-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-top: 3px solid var(--fe-green);
}

.fe-service-card__caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fe-service-card__caption p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fe-muted);
}

/* Contact */
.fe-contact-visual {
  min-height: 380px;
  background-size: cover;
  background-position: center bottom;
  box-shadow: inset 0 0 0 999px rgba(47, 50, 48, 0.15);
}

.fe-contact-form .form-control,
.fe-contact-form .form-select {
  border-radius: 0;
  border-color: #cfcfcf;
  padding: 0.65rem 0.85rem;
}

.fe-contact-form .form-control:focus {
  border-color: var(--fe-green);
  box-shadow: 0 0 0 0.2rem var(--fe-green-soft);
}

.fe-captcha-box {
  background: var(--fe-green);
  color: #fff;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.fe-captcha-box input {
  width: 5rem;
  border: none;
  border-radius: 0;
  padding: 0.35rem 0.5rem;
}

/* Footer */
.fe-footer {
  background: var(--fe-footer);
  color: rgba(255, 255, 255, 0.85);
}

.fe-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.fe-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.fe-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.fe-footer__services {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* Utilities */
.fe-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(122, 155, 49, 0.35),
    transparent
  );
}

@media (max-width: 767.98px) {
  .fe-hero {
    background-color: #151816;
  }
  .fe-hero-shell {
    margin-top: 0.75rem;
  }

  /* Mobile hero: show image as top band (not behind content) */
  .fe-hero-slide {
    position: relative;
  }

  .fe-hero__bg {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(280px, 48vh, 440px);
    background-position: center top;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #151816;
    height: 100%;
  }

  .fe-hero__overlay {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(280px, 48vh, 440px);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.35) 70%,
        rgba(0, 0, 0, 0.5) 100%
      ),
      radial-gradient(
        700px 360px at 50% 22%,
        rgba(122, 155, 49, 0.12) 0%,
        rgba(122, 155, 49, 0) 65%
      );
  }

  .fe-hero .container.position-relative {
    padding-top: clamp(100px, 15vh, 440px);
    padding-bottom: 1.25rem;
  }

  /* The markup uses Bootstrap `py-5` on the hero row; reduce it on mobile */
  .fe-hero .fe-hero-row {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .fe-hero-card {
    background: rgba(255, 255, 255, 0.92);
  }

  .fe-navbar .navbar-brand img {
    height: 36px;
  }

  .fe-band-media {
    height: 240px;
  }
}

@media (max-width: 991.98px) {
  .fe-navbar .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.65rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  }

  .fe-navbar .navbar-nav {
    width: 100%;
    gap: 0.25rem !important;
  }

  .fe-navbar .nav-item {
    width: 100%;
  }

  .fe-navbar .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem !important;
  }

  .fe-navbar .nav-link::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Default WordPress pages (Impressum, Datenschutz, etc.) — full-width layout
   Parent Twenty Sixteen uses a floated 70% #primary + sidebar; we remove that
   and align typography with the rest of the Fliesenerleben site.
   -------------------------------------------------------------------------- */

body.page-template-default #content.site-content {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (min-width: 56.875em) {
  body.page-template-default .fe-page-default-primary.content-area {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

body.page-template-default .fe-page-default-primary .entry-header,
body.page-template-default .fe-page-default-primary .entry-content,
body.page-template-default .fe-page-default-primary .entry-summary,
body.page-template-default .fe-page-default-primary .entry-footer,
body.page-template-default .fe-page-default-primary .comments-area,
body.page-template-default .fe-page-default-primary .post-thumbnail {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.fe-page-default-article .post-thumbnail {
  margin-bottom: 1.5rem;
}

.fe-page-default-article .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.fe-page-default-entry {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fe-text);
}

.fe-page-default-entry > *:first-child {
  margin-top: 0;
}

.fe-page-default-entry p {
  margin-bottom: 1rem;
}

.fe-page-default-entry h2,
.fe-page-default-entry h3,
.fe-page-default-entry h4 {
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  color: #232a25;
}

.fe-page-default-entry h2 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.fe-page-default-entry h3 {
  font-size: 1.15rem;
}

.fe-page-default-entry h2:first-child,
.fe-page-default-entry h3:first-child {
  margin-top: 0;
}

.fe-page-default-entry a {
  color: var(--fe-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.fe-page-default-entry a:hover {
  color: var(--fe-green);
}

.fe-page-default-entry ul,
.fe-page-default-entry ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.fe-page-default-entry li {
  margin-bottom: 0.35rem;
}

.fe-page-default-entry blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem 0.75rem 1.1rem;
  border-left: 4px solid var(--fe-green);
  background: var(--fe-green-soft);
  border-radius: 0 0.5rem 0.5rem 0;
}

.fe-page-default-entry img {
  max-width: 100%;
  height: auto;
}

.fe-page-default-entry .alignwide,
.fe-page-default-entry .alignfull {
  margin-left: 0;
  margin-right: 0;
}

.fe-page-default-entry table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fe-page-default-entry th,
.fe-page-default-entry td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.65rem;
}

.fe-page-default-entry th {
  background: rgba(122, 155, 49, 0.12);
  font-weight: 600;
}

.fe-page-default-page-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

body.page-template-default main.site-main.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.fe-page-default-main .comments-area {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   404 — same full-width shell as default pages + centered content block
   -------------------------------------------------------------------------- */

body.error404 #content.site-content {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (min-width: 56.875em) {
  body.error404 .fe-error-primary.content-area {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

body.error404 .fe-error-primary .page-header,
body.error404 .fe-error-primary .page-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.error404 main.site-main.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.fe-error-404-inner {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.fe-error-404-code {
  font-size: clamp(4rem, 14vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fe-green);
  opacity: 0.22;
}

.fe-error-404-search .fe-search-form .input-group {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-radius: 0.85rem;
  overflow: hidden;
}

.fe-error-404-search .fe-search-form .form-control {
  border-color: rgba(0, 0, 0, 0.12);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.fe-error-404-search .fe-search-form .form-control:focus {
  border-color: var(--fe-green);
  box-shadow: none;
}

.fe-error-404 .btn i {
  font-size: 1.05em;
}

/* --------------------------------------------------------------------------
   Search results — full-width shell, cards, pagination
   -------------------------------------------------------------------------- */

body.search #content.site-content {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (min-width: 56.875em) {
  body.search .fe-search-primary.content-area {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

body.search .fe-search-primary .page-header,
body.search .fe-search-primary .page-content,
body.search .fe-search-primary section,
body.search .fe-search-primary article {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.search main.site-main.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.fe-search-refine .fe-search-form .input-group,
.fe-no-results-search .fe-search-form .input-group {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-radius: 0.85rem;
  overflow: hidden;
}

.fe-search-refine .fe-search-form .form-control,
.fe-no-results-search .fe-search-form .form-control {
  border-color: rgba(0, 0, 0, 0.12);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.fe-search-refine .fe-search-form .form-control:focus,
.fe-no-results-search .fe-search-form .form-control:focus {
  border-color: var(--fe-green);
  box-shadow: none;
}

.fe-search-result-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fe-search-result-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

.fe-search-result-card .entry-title a:hover {
  color: var(--fe-green-dark) !important;
}

.fe-search-result-thumb img {
  object-fit: cover;
}

.fe-search-excerpt p {
  margin-bottom: 0.5rem;
}

.fe-search-excerpt p:last-child {
  margin-bottom: 0;
}

.fe-search-result-card .more-link {
  font-weight: 600;
  color: var(--fe-green-dark);
  text-decoration: none;
}

.fe-search-result-card .more-link:hover {
  color: var(--fe-green);
  text-decoration: underline;
}

.fe-search-pagination .navigation.pagination {
  width: 100%;
}

.fe-search-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.fe-search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0 0.55rem;
  border-radius: 0.65rem;
  font-weight: 600;
  color: var(--fe-text);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, color 0.15s ease;
}

.fe-search-pagination a.page-numbers:hover {
  background: var(--fe-green-soft);
  color: var(--fe-green-dark);
}

.fe-search-pagination .page-numbers.current {
  background: var(--fe-green);
  color: #fff;
}

.fe-search-pagination .page-numbers.dots {
  background: transparent;
  min-width: auto;
  padding: 0 0.25rem;
}

.fe-search-pagination a.prev,
.fe-search-pagination a.next {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* --------------------------------------------------------------------------
   Front page — Referenzen grid + modal carousel
   -------------------------------------------------------------------------- */

.fe-references__thumb:focus-visible {
  outline: 3px solid var(--fe-green);
  outline-offset: 4px;
}

.fe-references__thumb-ratio {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fe-references__thumb:hover .fe-references__thumb-ratio,
.fe-references__thumb:focus-visible .fe-references__thumb-ratio {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14) !important;
}

.fe-references-carousel__img {
  max-height: min(72vh, 820px);
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.fe-references-carousel__figure {
  background: rgba(255, 255, 255, 0.92);
}

.fe-references-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--fe-green);
  opacity: 0.35;
}

.fe-references-carousel .carousel-indicators button.active {
  opacity: 1;
}

.fe-references-carousel__ctrl {
  background-color: rgba(47, 50, 48, 0.55);
  background-size: 60%;
}
