/* Montserrat v31, lokal gehostet (latin, normal) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

:root {
  --hof-green: #00fb00;
  --hof-green-2: #00fb00;
  --hof-green-deep: #32633f;
  --hof-forest: #1f2d24;
  --hof-forest-2: #293c30;
  --hof-ink: #111713;
  --hof-black: #070a08;
  --hof-sage: #d6dfd4;
  --hof-sage-2: #edf1ed;
  --hof-white: #ffffff;
  --hof-muted: #7e7e7e;
  --hof-gray: #7e7e7e;
  --hof-border: rgba(255, 255, 255, .12);
  --hof-radius: 28px;
  --hof-shadow: 0 26px 70px rgba(3, 10, 6, .20);
  --hof-font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --hof-font-copy: "Montserrat", "Segoe UI", Arial, sans-serif;
  --bs-body-font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hof-site {
  margin: 0;
  background: var(--hof-white);
  color: var(--hof-ink);
  font-family: var(--hof-font-copy);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--hof-green-deep); }

h1, h2, h3, h4, h5, h6,
.hof-eyebrow,
.hof-nav-list,
.hof-service-nav {
  font-family: var(--hof-font);
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
  line-height: .98;
}

h1 { font-size: clamp(3.1rem, 7.5vw, 7.6rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.7rem); }
h3 { font-size: clamp(1.55rem, 2.8vw, 2.6rem); }

::selection { background: var(--hof-green); color: var(--hof-black); }

.hof-skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .65rem 1rem;
  background: var(--hof-green);
  color: var(--hof-black);
  border-radius: 0 0 .6rem .6rem;
  font-weight: 700;
}
.hof-skip-link:focus { top: 0; }

/* Header / Navigation */
.hof-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(27, 40, 32, .96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.hof-header.is-scrolled {
  background: rgba(22, 33, 26, .985);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.hof-navbar { min-height: 92px; padding-block: .55rem; }
.hof-brand img { width: min(236px, 44vw); height: auto; display: block; }
.hof-nav-wrap { min-width: 0; }
.hof-nav-list,
.hof-nav-list ul,
.hof-service-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hof-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 1vw, 1.15rem);
}
.hof-nav-list > li { position: relative; }
.hof-nav-list > li > a {
  display: block;
  padding: .75rem .7rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.hof-nav-list > li > a::before {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .46rem;
  height: 2px;
  background: var(--hof-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.hof-nav-list > li:hover > a::before,
.hof-nav-list > li.menu-current > a::before,
.hof-nav-list > li.menu-parent > a::before { transform: scaleX(1); }
.hof-nav-list li.menu-current > a { color: var(--hof-green-2); }
.hof-nav-list li.menu-expand > a { padding-right: 1.55rem; }
.hof-nav-list li.menu-expand > a::after {
  content: "";
  position: absolute;
  right: .62rem;
  top: 50%;
  width: .42rem;
  height: .42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.hof-submenu {
  position: absolute;
  top: calc(100% - .2rem);
  left: 0;
  z-index: 20;
  min-width: 260px;
  padding: .55rem;
  background: #213229;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 22px 48px rgba(0,0,0,.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.hof-nav-list li:hover > .hof-submenu,
.hof-nav-list li:focus-within > .hof-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hof-submenu a {
  display: block;
  padding: .65rem .8rem;
  color: #f4f7f4;
  font-family: var(--hof-font);
  font-size: .87rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 8px;
}
.hof-submenu a:hover,
.hof-submenu .menu-current > a { background: rgba(0,251,0,.12); color: var(--hof-green-2); }
.hof-submenu .hof-submenu { top: 0; left: 100%; border-radius: 12px; }

.hof-nav-toggle {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: .65rem .72rem;
}
.hof-nav-toggle:focus { box-shadow: 0 0 0 .22rem rgba(0,251,0,.25); }
.hof-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.hof-language #langmenu { float: none; margin: 0; padding: 0; min-height: 0; white-space: nowrap; }
.hof-language #langmenu img {
  width: 25px;
  height: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px;
  opacity: .72;
  transition: opacity .2s ease, transform .2s ease;
}
.hof-language #langmenu a + a { margin-left: .4rem; }
.hof-language #langmenu a.current img { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(0,251,0,.55); }
.hof-language #langmenu a:hover img { opacity: 1; }

/* Hero */
.hof-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22% 30%, rgba(66, 136, 83, .34), transparent 34rem),
    linear-gradient(135deg, #263b2d 0%, #17231c 58%, #0b100d 100%);
}
.hof-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5vw;
  right: -5vw;
  bottom: -70px;
  height: 150px;
  background: #fff;
  transform: rotate(-4.2deg);
  transform-origin: center;
}
.hof-hero-fallback { min-height: clamp(430px, 67vh, 720px); }
.min-vh-50 { min-height: 50vh; }
.hof-hero h1 { max-width: 100%; margin: 0 0 1.35rem; }
.hof-hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
}
.hof-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.1rem;
  color: var(--hof-green-2);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hof-eyebrow::before { content: ""; width: 42px; height: 2px; background: currentColor; }
.hof-hero-industrial {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/industrial-machine-lines.svg');
  background-repeat: no-repeat;
  background-size: min(1000px, 76vw) auto;
  background-position: right -8vw center;
  opacity: .72;
  pointer-events: none;
}
.hof-hero-custom { padding: clamp(2.5rem, 4vw, 4.5rem) 0 clamp(5rem, 9vw, 9rem); }
.hof-hero-custom > .container-xxl { min-height: 360px; display: flex; align-items: center; }

/* Main content */
.hof-content { padding: 0; }
/* Die vertikalen Abstaende gehoeren den einzelnen Inhaltsabschnitten, nicht dem Sammelblock. */
.hof-extra {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--hof-sage-2);
  overflow: hidden;
}
.hof-extra::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/industrial-grid.svg') center/cover no-repeat;
  opacity: .35;
  pointer-events: none;
}
.hof-extra > .container-xxl { position: relative; }

.hof-panel {
  padding: clamp(1.7rem, 3.5vw, 3.4rem);
  background: var(--hof-sage);
  border-radius: var(--hof-radius);
  box-shadow: var(--hof-shadow);
}
.hof-panel-dark { background: var(--hof-forest); color: #fff; }
.hof-panel-dark a { color: var(--hof-green-2); }

.hof-intro { max-width: 960px; font-size: clamp(1.08rem, 1.55vw, 1.35rem); }
.hof-lead { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; }
.hof-rule { width: 180px; max-width: 40%; height: 3px; background: var(--hof-green-deep); border: 0; opacity: 1; }

/* Generic imagery: angled/rounded language from the screen design */
.hof-image-frame,
.onebyone-image {
  border-radius: 24px;
  box-shadow: var(--hof-shadow);
}
.hof-image-frame { overflow: hidden; }
.hof-image-frame img { width: 100%; display: block; }
.hof-image-tilt-left { transform: rotate(-2deg); }
.hof-image-tilt-right { transform: rotate(2deg); }

/* Buttons */
.hof-btn-primary,
.hof-btn-light,
.hof-site .btn-primary {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-y: .8rem;
  --bs-btn-padding-x: 1.25rem;
  font-family: var(--hof-font);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hof-btn-primary,
.hof-site .btn-primary {
  background: var(--hof-green);
  color: var(--hof-black);
  border-color: var(--hof-green);
}
.hof-btn-primary:hover,
.hof-site .btn-primary:hover { background: #4cff5f; border-color: #4cff5f; color: #061008; }
.hof-btn-light { background: #f4f7f4; color: var(--hof-forest); border-color: #f4f7f4; }
.hof-btn-light:hover,
.hof-btn-light:focus-visible { background: #fff; border-color: #fff; color: #203229; }

/* CTA */
.hof-cta-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0;
  background:
    linear-gradient(rgba(10,16,12,.78), rgba(10,16,12,.88)),
    url('../img/machine-hero.svg') center/cover no-repeat;
  color: #fff;
}
.hof-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: rgba(17,28,21,.72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--hof-radius);
  backdrop-filter: blur(8px);
}
.hof-cta h2 { max-width: 15ch; font-size: clamp(2rem, 3.2vw, 3.5rem); }
.hof-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }

/* UL 508A helper */
.page-ul-508a .hof-content h2,
.page-ul508a .hof-content h2 { color: var(--hof-forest); }
.hof-ul508a-box {
  padding: clamp(1.5rem,3vw,2.5rem);
  border-left: 5px solid var(--hof-green);
  background: var(--hof-sage-2);
  border-radius: 0 20px 20px 0;
}

/* Footer */
.hof-footer { padding: 3.2rem 0 1.5rem; background: var(--hof-forest); color: rgba(255,255,255,.74); }
.hof-footer a { color: inherit; text-decoration: none; }
.hof-footer a:hover { color: var(--hof-green-2); }
.hof-footer-logo img { width: min(220px, 70vw); }
.hof-footer-copy { font-size: .92rem; }
.hof-footer-copy strong { color: #fff; }
.hof-service-nav ul { display: grid; gap: .35rem; }
.hof-service-nav a { font-size: .9rem; font-weight: 800; text-transform: uppercase; }
.hof-service-nav ul ul { display: none; }
.hof-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
  color: rgba(255,255,255,.52);
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Focus */
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--hof-green);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .hof-navbar { min-height: 78px; }
  .navbar-collapse { padding: 1rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.08); }
  .hof-nav-list { display: block; }
  .hof-nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .hof-nav-list > li > a { padding: .9rem .2rem; font-size: 1rem; }
  .hof-nav-list > li > a::before,
  .hof-nav-list li.menu-expand > a::after { display: none; }
  .hof-submenu,
  .hof-submenu .hof-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 .8rem 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  li.is-submenu-open > .hof-submenu { display: block; }
  .hof-submenu a { padding: .55rem .55rem; }
  .hof-submenu-toggle {
    position: absolute;
    right: 0;
    top: .42rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
  }
  .hof-submenu-toggle::before,
  .hof-submenu-toggle::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    top: 20px;
    height: 2px;
    background: currentColor;
  }
  .hof-submenu-toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
  li.is-submenu-open > .hof-submenu-toggle::after { transform: rotate(0deg); }
  .hof-language { padding-top: .2rem; }
}

@media (max-width: 767.98px) {
  h1 { font-size: clamp(2.6rem, 14vw, 4.4rem); }
  .hof-hero::after { bottom: -110px; }
  .hof-hero-industrial { background-size: 920px auto; background-position: 18% 50%; opacity: .42; }
  .hof-cta { align-items: flex-start; flex-direction: column; }
  .hof-cta-actions { justify-content: flex-start; }
  .hof-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==============================================
   HOF-Automation | Home-Abschnitte v1
   ============================================== */

.hof-home-section {
    position: relative;
}

.hof-home-section h2 {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.hof-home-section h3 {
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.hof-home-section .lead {
    font-weight: 500;
    line-height: 1.7;
}

.hof-home-section p {
    line-height: 1.8;
}

/* Kompetenzbox */
.hof-info-panel {
    background: #eaf1ec;
    color: #1c2b21;
    border-radius: 1.5rem;
}

.hof-info-panel h3,
.hof-feature-aside h3 {
    color: #1c2b21;
}

/* Checkliste */
.hof-check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.hof-check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.hof-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    background: #00fb00;
    border-radius: 50%;
}

/* Leistungskacheln */
.hof-service-card {
    display: flex;
    flex-direction: column;
    background: #eaf1ec;
    border: 1px solid #dbe7de;
    border-radius: 1.35rem;
    color: #1c2b21;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.hof-service-card h3 {
    color: #1c2b21;
    margin-top: 1.5rem;
}

.hof-service-card p {
    flex-grow: 1;
}

.hof-card-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #477452;
}

.hof-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #145b25;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.hof-card-link:hover {
    color: #123d1c;
}

.hof-service-card:hover {
    transform: translateY(-4px);
    border-color: #00b900;
    box-shadow: 0 15px 35px rgb(0 0 0 / 0.12);
}

/* Textlinks */
.hof-text-link {
    color: #16712a;
    font-weight: 600;
    text-underline-offset: 0.25em;
}

.hof-text-link:hover {
    color: #104c1d;
}

/* Retrofit-Schwerpunkt */
.hof-feature-panel {
    background: #203229;
    color: #ffffff;
    border-radius: 1.75rem;
}

.hof-feature-panel h2,
.hof-feature-panel .lead {
    color: #ffffff;
}

.hof-feature-aside {
    background: #eaf1ec;
    color: #1c2b21;
    border-radius: 1.25rem;
}

/* UL 508A */
.hof-ul-panel {
    background: #203229;
    color: #ffffff;
    border-radius: 1.5rem;
}

.hof-ul-mark {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: #00fb00;
}

/* Projektteaser */
.hof-project-panel {
    background: #eaf1ec;
    color: #1c2b21;
    border-radius: 1.5rem;
}

.hof-project-panel h2 {
    color: #1c2b21;
}

/* Tastaturbedienung */
.hof-home-section a:focus-visible {
    outline: 3px solid #008c20;
    outline-offset: 4px;
}

.hof-feature-panel a:focus-visible,
.hof-ul-panel a:focus-visible {
    outline-color: #00fb00;
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .hof-service-card {
        transition: none;
    }

    .hof-service-card:hover {
        transform: none;
    }
}

/* ==============================================
   HOF | Inhaltsabschnitte + OneByOne Hero, v0.3
   ============================================== */

/* Das erste Intro schliesst kompakter an den schraegen Hero an. */
.hof-content .onebyone-section-21 {
  padding-block: clamp(2.5rem, 4.8vw, 4.75rem);
}
.hof-content .onebyone-section-21 .onebyone-row {
  align-items: center !important;
}
.hof-content .onebyone-section-21 .onebyone-headline {
  font-size: clamp(1.8rem, 2.65vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: 1.25rem;
}
.hof-content .onebyone-section-21 .onebyone-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hof-content .onebyone-section-21 p { line-height: 1.75; }
.hof-content .onebyone-section-21 .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
}

/* Neuer OneByOne-Heromodus: volles Fenster, schrager Abschluss bleibt
   am ORIGINALEN .hof-hero::after, keine zweite clip-path-Kante. */
.hof-hero-custom:has(.onebyone-hero-bg) {
  padding: 0;
  clip-path: none;
  background: #17251c;
}
.hof-hero-custom:has(.onebyone-hero-bg) .hof-hero-industrial { display: none; }
.hof-hero-custom:has(.onebyone-hero-bg) > .container-xxl {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.hof-hero-custom .onebyone-hero-bg {
  width: 100%;
  min-height: clamp(490px, 44vw, 690px);
  margin: 0;
  background-size: cover;
  background-position: center center;
}
.hof-hero-custom .onebyone-hero-inner {
  width: min(100% - 3rem, 1320px);
  margin-inline: auto;
  padding-block: clamp(4rem, 6vw, 6rem) clamp(7rem, 9vw, 9rem);
}
.hof-hero-custom .onebyone-hero-headline {
  max-width: 22ch;
  font-size: clamp(2.05rem, 3.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  hyphens: none;
}
.hof-hero-custom .onebyone-hero-text { max-width: 690px; }
.hof-hero-custom .onebyone-hero-text .hof-btn-light,
.hof-hero-custom .onebyone-hero-text .hof-btn-light:hover,
.hof-hero-custom .onebyone-hero-text .hof-btn-light:focus {
  color: #203229;
}
.hof-hero-custom:has(.onebyone-hero-bg)::after {
  z-index: 2;
  pointer-events: none;
}

/* Wiederverwendbarer vollflaechiger Abschnitt im Members-Gruppen-Header.
   Keine weiteren WBCE-Bloecke erforderlich. */
.hof-services-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 6vw, 6rem);
  color: #fff;
}
.hof-services-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #203229;
}
.hof-services-section h2,
.hof-services-section h3 { color: #fff; }

@media (max-width: 767.98px) {
  .hof-hero-custom .onebyone-hero-inner {
    width: min(100% - 2.25rem, 1320px);
    padding-block: 3.5rem 7rem;
  }
  .hof-hero-custom .onebyone-hero-headline {
    font-size: clamp(1.95rem, 7vw, 3rem);
  }
}



/* ======================================
   HOF | Members Leistungskacheln
   ====================================== */

.hof-services-section {
    position: relative;
    isolation: isolate;
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    color: #fff;
}

.hof-services-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #203229;
}

.hof-services-intro {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.hof-services-intro h2 {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.13;
    margin-bottom: 1.25rem;
}

.hof-services-intro .lead {
    color: #d9e5db;
    font-weight: 400;
    line-height: 1.65;
}

.hof-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.hof-service-tile {
    min-width: 0;
    margin: 0;
    background: #eef2ee;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.hof-service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.hof-service-tile-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #203229;
    text-decoration: none;
}

.hof-service-tile-link:hover {
    color: #203229;
}

.hof-service-tile-image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #d5dfd6;
}

.hof-service-tile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.hof-service-tile:hover img {
    transform: scale(1.045);
}

.hof-service-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem;
}

.hof-service-tile h3 {
    color: #203229;
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    margin-bottom: .85rem;
}

.hof-service-tile p {
    flex: 1;
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.hof-service-tile-more {
    color: #145a24;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hof-service-tile-link:focus-visible {
    outline: 3px solid #008d24;
    outline-offset: -5px;
}

@media (max-width: 991.98px) {
    .hof-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hof-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hof-service-tile,
    .hof-service-tile-image img {
        transition: none;
    }

    .hof-service-tile:hover,
    .hof-service-tile:hover img {
        transform: none;
    }
}


/* ======================================
   HOF | Abschnitt 04 – Modernisierung
   ====================================== */

.hof-content .onebyone-section-23 {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3.5rem, 6vw, 6rem);
}

.hof-content .onebyone-section-23::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #edf1ed;
}

.onebyone-section-23 .onebyone-row {
    align-items: center !important;
}

.onebyone-section-23 .onebyone-headline {
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.onebyone-section-23 .onebyone-col-1 .onebyone-image {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 18px;
    transform: none;
}

.onebyone-section-23 .hof-eyebrow {
    font-size: .8rem;
    margin-bottom: 1.5rem;
}

.onebyone-section-23 .lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.65;
}

.onebyone-section-23 p {
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .hof-content .onebyone-section-23 {
        padding-block: 3.5rem;
    }
}


/* ======================================
   HOF | Startseite – UL 508A
   Section-ID 24
   ====================================== */

.hof-content .onebyone-section-24 {
    padding-block: clamp(3.5rem, 6vw, 6rem);
}

.onebyone-section-24 .onebyone-row {
    align-items: center !important;
}

.onebyone-section-24 .onebyone-headline-1 {
    color: #32633f;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.065em;
    margin-bottom: 1.5rem;
}

.onebyone-section-24 .hof-eyebrow {
    margin-bottom: 1.5rem;
}

.onebyone-section-24 .lead {
    color: #203229;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 700;
    line-height: 1.4;
}

.onebyone-section-24 .onebyone-col-2 .onebyone-image {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    transform: none;
}

.onebyone-section-24 p {
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .hof-content .onebyone-section-24 {
        padding-block: 3.5rem;
    }

    .onebyone-section-24 .onebyone-headline-1 {
        font-size: clamp(3.5rem, 12vw, 5rem);
    }
}


/* HOF – Projektübersicht und Startseiten-Teaser */

.hof-projects-overview,
.hof-projects-teaser {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.hof-projects-heading {
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.hof-projects-heading h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1.1;
}

.hof-projects-lead {
  font-size: 1.15rem;
}

.hof-projects-grid,
.hof-projects-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hof-project-card {
  background: #edf1ed;
  border-radius: 18px;
  overflow: hidden;
}

.hof-project-card-image,
.hof-project-teaser-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hof-project-card-image img,
.hof-project-teaser-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hof-project-card-content,
.hof-project-teaser-content {
  padding: 1.5rem;
}

.hof-project-card-content h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  text-transform: none;
}

.hof-project-category,
.hof-project-teaser-content > span {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Startseite: dunkler Fullwidth-Bereich */

.hof-projects-teaser {
  color: #fff;
}

.hof-projects-teaser::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #203229;
}

.hof-projects-teaser-heading {
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.hof-projects-teaser-heading h2 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.15;
}

.hof-project-teaser-card {
  min-width: 0;
  background: #304538;
  border-radius: 18px;
  overflow: hidden;
}

.hof-project-teaser-content h3 {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.3;
  text-transform: none;
}

.hof-project-teaser-content p {
  color: #d9e5db;
  font-size: .9rem;
}

.hof-project-teaser-content > span {
  color: #00fb00;
}

.hof-projects-teaser-action {
  margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
  .hof-projects-grid,
  .hof-projects-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hof-projects-grid,
  .hof-projects-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* HOF projects: full-width output outside .hof-content / .container-xxl */
.hof-projects-auto { background:#203229; color:#fff; padding:clamp(3.5rem,6vw,6rem) 0; }
.hof-projects-auto .hof-projects-teaser-heading { max-width:820px; margin-bottom:2.4rem; }
.hof-projects-auto .hof-projects-teaser-heading h2 { color:#fff; font-size:clamp(2rem,3.4vw,3.6rem); line-height:1.12; }
.hof-projects-auto .hof-projects-teaser-heading > p:last-child { color:#d6e1d8; }
.hof-projects-auto .hof-projects-teaser-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.4rem; }
.hof-projects-auto .hof-project-teaser-card { min-width:0; background:#304538; border-radius:18px; overflow:hidden; }
.hof-projects-auto .hof-project-teaser-link { display:block; color:inherit; text-decoration:none; height:100%; }
.hof-projects-auto .hof-project-teaser-link:hover { color:#fff; }
.hof-projects-auto .hof-project-teaser-image { aspect-ratio:4/3; background:#1b2b21; overflow:hidden; }
.hof-projects-auto .hof-project-teaser-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.hof-projects-auto .hof-project-teaser-link:hover img { transform:scale(1.035); }
.hof-projects-auto .hof-project-teaser-content { padding:1.4rem; }
.hof-projects-auto .hof-project-teaser-content > span { color:#00fb00; font-size:.75rem; font-weight:700; text-transform:uppercase; }
.hof-projects-auto .hof-project-teaser-content h3 { color:#fff; font-size:1.25rem; line-height:1.3; text-transform:none; margin:.55rem 0 .8rem; }
.hof-projects-auto .hof-project-teaser-content p { color:#dae4dc; font-size:.9rem; line-height:1.65; }
.hof-projects-auto .hof-project-teaser-more { color:#00fb00; font-size:.85rem; }
.hof-projects-auto .hof-projects-teaser-action { margin-top:2rem; }
@media (max-width:991.98px) { .hof-projects-auto .hof-projects-teaser-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:575.98px) { .hof-projects-auto .hof-projects-teaser-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .hof-projects-auto .hof-project-teaser-image img { transition:none; } }


/* HOF Automation | Ueber uns | PID 4 | Layout v2
   Ersetzt die ALTE hof-about-pid4.css aus dem Baukasten.
   Wird NACH theme.css und wbce-modules.css geladen oder am ENDE der theme.css eingebunden.
   Keine neuen WBCE-Abschnitte erforderlich.
*/

body.page-ueber-uns .hof-content {
  padding-block: 0;
  min-height: 0;
}
body.page-ueber-uns .hof-content > .container-xxl {
  padding-block: 0;
}
body.page-ueber-uns .hof-content > .container-xxl > * + * {
  margin-top: 0;
}

/* Gemeinsame Bild/Text-Abschnitte: normale Textbreite, weniger Leeraum */
body.page-ueber-uns .hof-content .onebyone-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.75rem, 6vw, 6.5rem);
}
body.page-ueber-uns .hof-content .onebyone-row {
  align-items: center !important;
}
body.page-ueber-uns .hof-content .onebyone-headline {
  max-width: 19ch;
  margin-bottom: 1.25rem;
  font-size: clamp(1.95rem, 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  hyphens: auto;
}
body.page-ueber-uns .hof-content .onebyone-text {
  font-size: clamp(.98rem, 1.05vw, 1.075rem);
  line-height: 1.75;
}
body.page-ueber-uns .hof-content .onebyone-text p {
  margin-bottom: 1.05rem;
}
body.page-ueber-uns .hof-content .onebyone-text .lead {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 600;
  line-height: 1.55;
}
body.page-ueber-uns .hof-content .onebyone-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  transform: none !important;
}
body.page-ueber-uns .hof-about-kicker {
  color: #32633f;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Abschnitt 02: Profil | bewusst weiss */
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-profil"]) {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

/* Abschnitt 03: Geschichte | HINTERGRUND UEBER VOLLE BREITE */
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-standort"])::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #edf1ed;
}

/* Abschnitt 04: Team | dunkel, ebenfalls vollbreit */
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"]) {
  color: #f5f8f5;
}
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"])::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #203229;
}
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"]) .onebyone-headline,
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"]) .onebyone-text,
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"]) .onebyone-text .lead {
  color: #fff;
}
body.page-ueber-uns .hof-content .onebyone-section:has(img[src*="hof-about-team"]) .hof-about-kicker {
  color: #00fb00;
}

/* Abschnitt 05: Werte | 3 Karten statt langer Textliste */
body.page-ueber-uns .hof-content .onebyone-section:has(.hof-about-values) {
  padding-block: clamp(3.75rem, 5.5vw, 5.75rem);
}
body.page-ueber-uns .hof-content .onebyone-section:has(.hof-about-values) .onebyone-row {
  display: block;
  margin: 0;
}
body.page-ueber-uns .hof-content .onebyone-section:has(.hof-about-values) .onebyone-col {
  width: 100%;
  max-width: 100%;
  padding: 0;
}
body.page-ueber-uns .hof-content .onebyone-section:has(.hof-about-values) .onebyone-headline {
  max-width: none;
  margin-bottom: 2rem;
}
body.page-ueber-uns .hof-about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 1.5rem;
}
body.page-ueber-uns .hof-about-values > div {
  min-width: 0;
  background: #edf1ed;
  border-top: 3px solid #00fb00;
  border-radius: 16px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
body.page-ueber-uns .hof-about-values h3 {
  margin: 0 0 .85rem;
  font-size: clamp(1.13rem, 1.55vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}
body.page-ueber-uns .hof-about-values p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
}

/* Hero: bestehende Fullwidth-Technik und schräge Kante beibehalten */
body.page-ueber-uns .hof-hero-custom .onebyone-hero-headline {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.1vw, 4.5rem);
  overflow-wrap: normal;
}

@media (max-width: 991.98px) {
  body.page-ueber-uns .hof-about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-ueber-uns .hof-content .onebyone-headline { max-width: none; }
}
@media (max-width: 767.98px) {
  body.page-ueber-uns .hof-content .onebyone-section { padding-block: 3.25rem; }
  body.page-ueber-uns .hof-about-values { grid-template-columns: 1fr; }
  body.page-ueber-uns .hof-content .onebyone-row { --bs-gutter-y: 1.5rem; }
}


/* HOF – Wiederverwendbare Inhaltsbänder v1.0 */
.hof-band { position: relative; padding-block: clamp(3rem, 5.2vw, 5.5rem); }
.hof-band--white { background: #fff; color: #111713; }
.hof-band--sage { background: #edf1ed; color: #17251c; }
.hof-band--dark { background: #203229; color: #fff; }
.hof-band > .container-xxl { position: relative; }
/* Module selbst erhalten keine zweite, unsichtbare Außenfläche. */
.hof-band .onebyone-section,
.hof-band .hof-services-section,
.hof-band .hof-projects-overview,
.hof-band .hof-projects-teaser { padding-block: 0; }
.hof-band .hof-services-section::before,
.hof-band .hof-projects-teaser::before,
.hof-band .onebyone-section-23::before { content: none; }
.hof-band .onebyone-row { align-items: center !important; }
.hof-band .onebyone-headline,
.hof-band .onebyone-global-headline { font-size: clamp(1.9rem, 3.1vw, 3.35rem); line-height: 1.13; max-width: 20ch; margin-bottom: 1.1rem; overflow-wrap: normal; hyphens: auto; }
.hof-band .onebyone-image { max-height: 480px; object-fit: cover; }
.hof-band .onebyone-text { font-size: clamp(.98rem, 1vw, 1.06rem); line-height: 1.7; }
.hof-band .onebyone-text .lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; }
.hof-band--dark :is(h2,h3,h4,.onebyone-headline,.onebyone-global-headline,.mgroup-name) { color: #fff; }
.hof-band--dark .onebyone-text :is(p,li) { color: rgba(255,255,255,.87); }
.hof-band--dark .hof-eyebrow { color: #00fb00; }
/* Die universellen Abstände ersetzen Seiten-ID-basierte Margins. */
.hof-band .onebyone-section-21,
.hof-band .onebyone-section-23,
.hof-band .onebyone-section-24 { padding-block: 0; }
/* Helle Kacheln bleiben im dunklen Leistungen-Band gut lesbar. */
.hof-band--dark .hof-service-tile :is(h3,p),
.hof-band--dark .hof-service-tile a { color: #203229; }
.hof-band--dark .hof-service-tile .hof-service-tile-more { color: #145a24; }
.hof-band--dark .hof-services-intro .lead { color: #d9e5db; }
/* Der Werte-Abschnitt darf als Dreierreihe gestaltet werden. */
.hof-values-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem; }
.hof-values-grid > * { background: #edf1ed;padding:1.65rem;border-radius:16px;border-top:3px solid #00fb00; }
@media(max-width:991.98px){ .hof-values-grid{grid-template-columns:1fr;} }


/* HOF reusable content components v1: no Page IDs, works in any WBCE band */
.hof-benefits-intro{max-width:780px;margin-bottom:clamp(1.5rem,3vw,2.5rem)}
.hof-benefits-intro h2{max-width:24ch}
.hof-benefits-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2vw,1.5rem)}
.hof-benefit-card{background:#f3f6f3;color:#17251c;border-radius:12px;border-top:3px solid #00fb00;padding:clamp(1.4rem,2.8vw,2rem);min-width:0;height:100%;display:flex;flex-direction:column}
.hof-benefit-card h3{font-size:clamp(1.15rem,1.6vw,1.45rem);line-height:1.2;color:#17251c;margin:0 0 .8rem}
.hof-benefit-card p{font-size:1rem;line-height:1.65;color:#34473b;margin:0}
.hof-band--dark .hof-benefit-card h3{color:#17251c}
.hof-band--dark .hof-benefit-card p{color:#34473b}
.hof-process-lead{max-width:780px;margin-bottom:1.5rem}
.hof-process-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.75rem 0 0}
.hof-process-step{padding:1.4rem 1.5rem;border:1px solid #dbe4dd;border-top:3px solid #00d700;border-radius:12px;background:#f4f7f4}
.hof-process-step .hof-process-num{display:block;font-weight:800;font-size:.85rem;letter-spacing:.07em;color:#24733a;margin-bottom:.5rem}
.hof-process-step h3{font-size:clamp(1.15rem,1.7vw,1.4rem);line-height:1.2;margin:0 0 .65rem;color:#17251c}
.hof-process-step p{font-size:.98rem;line-height:1.65;margin:0;color:#34473b}
@media(max-width:991.98px){.hof-benefits-grid,.hof-process-grid{grid-template-columns:1fr}}

/* HOF – Projektübersicht */

.hof-projects-overview .hof-project-card {
    background: #2b4033;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.hof-projects-overview .hof-project-card-image {
    background: #17271e;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hof-projects-overview .hof-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hof-projects-overview .hof-project-card-content {
    background: #2b4033;
    color: #fff;
    padding: 22px;
}

.hof-projects-overview .hof-project-card-content h2,
.hof-projects-overview .hof-project-card-content p {
    color: inherit;
}

.hof-projects-overview .hof-project-category {
    color: #00fb00 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.onebyone-headline {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}


/* HOF – Überschriften in einspaltigen OneByOne-Abschnitten */

.onebyone[data-onebyone-layout="12-0"] .onebyone-headline {
    max-width: none;
    width: 100%;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* HOF – Google Maps mit Klickfreigabe */

.hof-map {
    width: 100%;
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: #203229;
}

.hof-map-placeholder {
    min-height: 380px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg, #14231a, #2b4433);
}

.hof-map-placeholder > div {
    max-width: 340px;
}

.hof-map-title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.hof-map-placeholder p {
    color: #e0e9e2;
}

.hof-map-placeholder .btn {
    margin-top: 16px;
}

.hof-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

@media (max-width: 767px) {
    .hof-map,
    .hof-map-placeholder {
        min-height: 320px;
    }

    .hof-map iframe {
        height: 350px;
    }
}

.hof-cta h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 0.96;
  max-width: 11ch;
}

/* ==========================================================
   HOF-AUTOMATION – TIMELINE / UNTERNEHMENSGESCHICHTE
   WBCE Members | PID 4
   ========================================================== */

.hof-timeline {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

/* Einleitung */

.hof-timeline-intro {
  max-width: 820px;
  margin-bottom: 56px;
}

.hof-timeline-intro h2 {
  max-width: 780px;
  margin: 0 0 20px;
  color: #fff;
}

.hof-timeline-intro .lead {
  max-width: 720px;
  margin: 0;
  color: #d3dfd6;
}

/* Gesamter Zeitstrahl:
   Die Linie wird nur EINMAL erzeugt. */

.hof-timeline-list {
  --timeline-year-width: 100px;
  --timeline-gap: 28px;
  --timeline-marker-size: 12px;

  position: relative;
  width: 100%;
  padding: 0;
}

.hof-timeline-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 9px;
  bottom: 9px;

  /* Mitte der Marker-Spalte */
  left: calc(
    var(--timeline-year-width) +
    var(--timeline-gap) +
    var(--timeline-marker-size) / 2
  );

  width: 2px;
  background: rgba(0, 251, 0, 0.38);
}

/* Ein Meilenstein */

.hof-timeline-item {
  display: grid;
  grid-template-columns:
    var(--timeline-year-width)
    var(--timeline-marker-size)
    minmax(0, 1fr);

  column-gap: var(--timeline-gap);
  align-items: start;

  position: relative;
  padding: 0 0 48px;
  margin: 0;
}

.hof-timeline-item:last-child {
  padding-bottom: 0;
}

/* Marker-Spalte */

.hof-timeline-marker {
  grid-column: 2;
  grid-row: 1;

  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  width: var(--timeline-marker-size);
  height: 32px;
  margin: 0;
}

/* Alte Verbindungslinien deaktivieren */

.hof-timeline-marker::before,
.hof-timeline-marker::after {
  content: none !important;
  display: none !important;
}

/* Ein einzelner Punkt */

.hof-timeline-marker span {
  display: block;
  flex: 0 0 auto;

  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  margin: 5px 0 0;

  border: 2px solid #00fb00;
  border-radius: 50%;

  background: #203229;
  box-shadow: 0 0 0 4px #203229;
}

/* Inhalte:
   display: contents ermöglicht eine saubere
   gemeinsame Grid-Struktur für Jahr und Text. */

.hof-timeline-content {
  display: contents;
}

/* Jahreszahl links */

.hof-timeline-year {
  grid-column: 1;
  grid-row: 1;

  margin: 0;
  padding: 0;

  color: #00fb00;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: right;

  white-space: nowrap;
}

/* Überschrift rechts */

.hof-timeline-heading {
  grid-column: 3;
  grid-row: 1;

  margin: 0 0 12px;
  padding: 0;

  color: #fff;
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  font-weight: 750;
  line-height: 1.3;

  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* Beschreibung rechts unterhalb der Überschrift */

.hof-timeline-text {
  grid-column: 3;
  grid-row: 2;

  max-width: 760px;
  min-width: 0;

  margin: 0;
  padding: 0;

  color: #d4dfd7;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.hof-timeline-text p {
  margin: 0 0 12px;
}

.hof-timeline-text p:last-child {
  margin-bottom: 0;
}

.hof-timeline-text strong {
  color: #fff;
  font-weight: 650;
}

.hof-timeline-text a {
  color: #00fb00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hof-timeline-text a:hover,
.hof-timeline-text a:focus-visible {
  color: #fff;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

  .hof-timeline-intro {
    margin-bottom: 44px;
  }

  .hof-timeline-list {
    --timeline-year-width: 80px;
    --timeline-gap: 22px;
  }

  .hof-timeline-item {
    padding-bottom: 40px;
  }

  .hof-timeline-heading {
    font-size: 1.2rem;
  }

  .hof-timeline-text {
    font-size: 0.96rem;
  }
}

/* ==========================================================
   SMARTPHONE
   ========================================================== */

@media (max-width: 575.98px) {

  .hof-timeline-intro {
    margin-bottom: 36px;
  }

  .hof-timeline-list {
    --timeline-year-width: 0px;
    --timeline-gap: 18px;
    --timeline-marker-size: 12px;
  }

  .hof-timeline-list::before {
    left: 6px;
  }

  .hof-timeline-item {
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 18px;
    padding-bottom: 36px;
  }

  .hof-timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .hof-timeline-year {
    grid-column: 2;
    grid-row: 1;

    margin: 0 0 7px;
    font-size: 1.45rem;
    text-align: left;
  }

  .hof-timeline-heading {
    grid-column: 2;
    grid-row: 2;

    margin: 0 0 10px;
    font-size: 1.13rem;
    line-height: 1.3;
  }

  .hof-timeline-text {
    grid-column: 2;
    grid-row: 3;

    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hof-timeline-marker span {
    margin-top: 6px;
  }
}


/* Sprachflaggen – Flat Design */
.hof-language #langmenu a {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hof-language #langmenu img {
  width: 29px;
  height: auto;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: .53 !important;
  transition: opacity .2s ease;
}

.hof-language #langmenu a.current img,
.hof-language #langmenu a:hover img {
  opacity: 1 !important;
}

/* PID 11 UL 508A – ergänzende Inhalte | 15.10.2026 */
/* Zertifikat in Block 1: ganz darstellen, nicht anschneiden */
.page-ul-508a .onebyone-section-39 .onebyone-image-2 {
  display: block;
  width: 100%;
  max-width: 430px;
  max-height: 580px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 6px;
}

/* Die vier zusätzlichen Kernvorteile innerhalb des Members-Headers */
.page-ul-508a .hof-ul-reasons {
  margin: clamp(1.8rem, 3vw, 2.8rem) 0;
}
.page-ul-508a .hof-ul-reasons > h3 {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  color: #fff;
  margin: 0 0 1.2rem;
}
.page-ul-508a .hof-ul-reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.page-ul-508a .hof-ul-reason {
  padding: 1.2rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid #00fb00;
}
.page-ul-508a .hof-ul-reason strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: .65rem;
}
.page-ul-508a .hof-ul-reason p {
  color: #d6e4d9;
  font-size: .94rem;
  line-height: 1.6;
  margin: 0;
}

/* Zehn Vorteile im unteren Block 10 */
.page-ul-508a .hof-ul-overview {
  margin-top: clamp(3rem, 5vw, 5rem);
}
.page-ul-508a .hof-ul-overview-head {
  max-width: 800px;
  margin-bottom: 1.6rem;
}
.page-ul-508a .hof-ul-overview-head h2 {
  margin: 0 0 .8rem;
  color: #203229;
  font-size: clamp(1.8rem, 2.8vw, 2.75rem);
}
.page-ul-508a .hof-ul-overview-head > p:last-child {
  color: #44564a;
}
.page-ul-508a .hof-ul-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.page-ul-508a .hof-ul-advantage {
  min-width: 0;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid #dbe5dd;
  border-top: 3px solid #00d700;
  border-radius: 12px;
  background: #edf1ed;
}
.page-ul-508a .hof-ul-advantage-num {
  display: inline-block;
  color: #206d36;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin-bottom: .6rem;
}
.page-ul-508a .hof-ul-advantage h3 {
  color: #203229;
  margin: 0 0 .55rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}
.page-ul-508a .hof-ul-advantage p {
  color: #435548;
  margin: 0;
  font-size: .96rem;
  line-height: 1.6;
}
.page-ul-508a .hof-ul-overview-note {
  font-size: .88rem;
  color: #516557;
  margin: 1.2rem 0 0;
}

/* Individuelle CTA aus WBCE-Block 4 */
.page-ul-508a .hof-cta.hof-ul-cta h2 {
  max-width: 22ch;
  line-height: 1.05;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}
.page-ul-508a .hof-ul-cta-copy { max-width: 650px; }
.page-ul-508a .hof-ul-cta-lead {
  color: #d5e1d8;
  line-height: 1.65;
  margin: 1rem 0 0;
  font-size: 1rem;
}
.page-ul-508a .hof-ul-cta .hof-cta-actions { flex: 0 0 auto; }

@media (max-width: 1199.98px) {
  .page-ul-508a .hof-ul-reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-ul-508a .hof-ul-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-ul-508a .hof-cta.hof-ul-cta { flex-direction: column; align-items: flex-start; }
  .page-ul-508a .hof-ul-cta .hof-cta-actions { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .page-ul-508a .hof-ul-reasons-grid,
  .page-ul-508a .hof-ul-overview-grid { grid-template-columns: 1fr; }
  .page-ul-508a .hof-ul-cta .hof-cta-actions { width: 100%; flex-direction: column; }
  .page-ul-508a .hof-ul-cta .hof-cta-actions .btn { width: 100%; text-align: center; }
}


/* =====================================================
   PID 11 – UL 508A
   Drei Members-Kacheln im dunkelgrünen Bereich
   ===================================================== */

.page-ul-508a .hof-benefits-section {
  width: 100%;
  max-width: 100%;
}

/* Kachelraster */
.page-ul-508a .hof-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-top: 32px;
  align-items: stretch;
}

/* Einzelne Kacheln */
.page-ul-508a .hof-benefits-grid .hof-benefit-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 28px;
  background: #edf1ed;
  border: 1px solid #d5dfd7;
  border-top: 3px solid #00fb00;
  border-radius: 12px;
  box-shadow: none;
}

/* Überschrift */
.page-ul-508a .hof-benefits-grid .hof-benefit-card h3 {
  color: #203229;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: none;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Beschreibung */
.page-ul-508a .hof-benefits-grid .hof-benefit-card p {
  color: #405347;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Tablet: 2 Spalten */
@media (max-width: 991.98px) {
  .page-ul-508a .hof-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Smartphone: 1 Spalte */
@media (max-width: 575.98px) {
  .page-ul-508a .hof-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .page-ul-508a .hof-benefits-grid .hof-benefit-card {
    padding: 24px;
  }
}

/* PID 18 – Gesetzliche Gewährleistung */

.page-gesetzliche-gewaehrleistung-hof-automation
.hof-legal-notice {
  max-width: 420px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5dd;
  border-radius: 8px;
}

.page-gesetzliche-gewaehrleistung-hof-automation
.hof-legal-notice img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.page-gesetzliche-gewaehrleistung-hof-automation
.hof-legal-notice a:hover img {
  opacity: .94;
}

@media (max-width: 991.98px) {
  .page-gesetzliche-gewaehrleistung-hof-automation
  .hof-legal-notice {
    max-width: 480px;
  }
}

.page-gesetzliche-gewaehrleistung-hof-automation
.hof-cta-section {
  display: none;
}

/* HOF – Responsive Überschriften ohne Überlauf */

.hof-site h1,
.hof-site h2 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

/* Große OneByOne-Überschriften */
.hof-site .onebyone-headline {
  font-size: clamp(1.75rem, 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* Ab Desktop: möglichst keine Silbentrennung */
@media (min-width: 1200px) {
  .hof-site h1,
  .hof-site h2 {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* ==========================================================
   HOF-AUTOMATION – RECHTLICHE SEITEN
   PID 16 Impressum
   PID 17 Datenschutz
   PID 18 Gesetzliche Gewährleistung
   ========================================================== */

/* Inhalt auf eine angenehme Lesebreite begrenzen */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band .container-xxl {
  max-width: 1050px;
}

/* Alle Überschriften nur innerhalb der Rechtstexte */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h1,
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h2,
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h3,
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h4 {
  color: #203229;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* H1 – Titel aus dem Rechtstext */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
}

/* H2 – Hauptabschnitte */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 750;
  margin: 2.2rem 0 0.85rem;
}

/* H3 – Unterabschnitte */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 700;
  margin: 1.65rem 0 0.65rem;
}

/* H4 – Detailüberschriften */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.3rem 0 0.5rem;
}

/* Fließtext und Aufzählungen */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band :is(p, li) {
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

/* Sehr lange URLs dürfen umbrechen */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-band a {
  overflow-wrap: anywhere;
}

/* Kein Werbe-CTA auf Rechtstextseiten */
.hof-site:is(
  .page-impressum-eat-hof-gmbh-hof-automation,
  .page-datenschutzerklaerung-hof-automation,
  .page-gesetzliche-gewaehrleistung-hof-automation
) .hof-cta-section {
  display: none;
}