/* HLK-Control – statische Webseite
   Farben und Schrift entsprechen dem bisherigen Joomla-Template (Helix Ultimate) */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #136dc3;
  --primary-light: #6c99dd;
  --primary-dark: #3d5a80;
  --dark: #293241;
  --darker: #1f2733;
  --text: #252525;
  --muted: #6b6b6b;
  --border: #e5e7eb;
  --bg-soft: #f2f4f7;
  --container: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus { color: var(--primary-light); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 400; color: var(--primary); }
h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); overflow-wrap: anywhere; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 16px; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.15em; flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top-Bar ---------- */
.top-bar { background: var(--primary); color: #fff; font-size: 12px; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }
.top-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.top-bar li { margin: 0; }
.top-bar a { color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.top-bar a:hover { color: #d7e6f7; }
.social .icon { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .top-bar__inner { justify-content: center; }
  .top-bar .social { display: none; }
  .top-contact { flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 4px 0; }
}

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { height: 74px; width: auto; }
.main-nav { display: none; margin-left: auto; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; }
.main-nav > .menu { display: flex; align-items: stretch; }
.main-nav > .menu > li { position: relative; }
.main-nav > .menu > li > a {
  display: flex; align-items: center; gap: 6px; height: 84px; padding: 0 15px;
  color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: .2px;
}
.main-nav > .menu > li.has-sub > a::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.main-nav > .menu > li:hover > a { color: var(--primary-dark); }
.main-nav > .menu > li.active > a { background: var(--primary); color: #fff; }
.main-nav .menu ul {
  position: absolute; top: 100%; right: 0; min-width: 260px; background: #fff; padding: 5px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); border-top: 3px solid var(--primary);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.main-nav .menu ul ul { top: -5px; right: 100%; }
.main-nav .menu li:hover > ul, .main-nav .menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-nav .menu ul li { position: relative; }
.main-nav .menu ul a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 14px; color: var(--primary); }
.main-nav .menu ul li.has-sub > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.main-nav .menu ul a:hover, .main-nav .menu ul li.active > a { background: var(--primary); color: #fff; }

.burger { background: none; border: 0; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: .2s; }

/* Offcanvas (mobil) */
.offcanvas { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.offcanvas[aria-hidden="false"] { visibility: visible; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: .25s; }
.offcanvas__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: #fff;
  padding: 60px 24px 24px; overflow-y: auto; transform: translateX(100%); transition: .25s;
}
.offcanvas[aria-hidden="false"] .offcanvas__backdrop { opacity: 1; }
.offcanvas[aria-hidden="false"] .offcanvas__panel { transform: none; }
.offcanvas__x { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 32px; line-height: 1; color: var(--muted); cursor: pointer; }
.menu--mobile a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 15px; }
.menu--mobile > li > a { text-transform: uppercase; color: var(--primary); }
.menu--mobile li.active > a { color: var(--primary); font-weight: 600; }
.menu--mobile ul { padding-left: 16px; display: none; }
.menu--mobile li.is-open > ul, .menu--mobile li.active > ul, .menu--mobile li:has(.active) > ul { display: block; }
.menu--mobile ul a { font-size: 14px; }
.menu--mobile li.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
.menu--mobile li.has-sub > a::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-right: 6px; transition: transform .2s;
}
.menu--mobile li.is-open > a::after { transform: rotate(-135deg); }

@media (min-width: 992px) {
  .main-nav { display: block; }
  .logo img { height: 95px; }
  .site-header__inner { min-height: 100px; }
  .main-nav > .menu > li > a { height: 100px; }
}

/* ---------- Titelbalken + Breadcrumb ---------- */
.page-title { background: var(--primary); color: #fff; padding: 34px 0 60px; text-align: center; }
.page-title h1 { color: #fff; font-size: clamp(1.25rem, 5vw, 1.9rem); overflow-wrap: anywhere; text-transform: uppercase; margin: 0; letter-spacing: .5px; }
.breadcrumb { background: #fff; border-radius: 6px; padding: 12px 16px; margin: -36px 0 0; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: relative; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li { margin: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #bbb; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Inhalt allgemein ---------- */
.section { padding: 50px 0; }
.section--soft { background: var(--bg-soft); }
.section-divider { width: 160px; height: 3px; background: var(--primary); margin: 0 auto; }
.page-heading { text-transform: uppercase; font-size: 1.75rem; margin-bottom: 1.2em; }
.grid { display: grid; gap: 30px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.figure { margin: 0 0 20px; }
.figure img { width: 100%; border-radius: var(--radius); }
.lead { font-size: 1.05rem; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; padding: 10px 22px; border: 0; border-radius: var(--radius);
  font: inherit; font-size: 14px; cursor: pointer; transition: background .2s;
}
.btn:hover, .btn:focus { background: var(--primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

/* ---------- Slider (Startseite) ---------- */
.slider { position: relative; overflow: hidden; background: var(--dark); height: clamp(260px, 32vw, 610px); }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s;
  display: flex; align-items: center;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide__caption { max-width: 60%; margin-left: 5%; color: #fff; text-shadow: 2px 2px 4px #000; }
.slide__caption h2 { color: #fff; font-size: clamp(1.1rem, 2.6vw, 2.4rem); margin: 0 0 .3em; text-transform: uppercase; }
.slide__caption p { font-size: clamp(.9rem, 1.6vw, 1.4rem); margin: 0; font-style: italic; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(19,109,195,.85); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.slider__arrow .icon { width: 22px; height: 22px; }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.slider__dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider__dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider__dots button.is-active { background: var(--primary); }
@media (max-width: 600px) { .slide__caption { max-width: 80%; } .slider__arrow { display: none; } }

/* ---------- Leistungs-Kacheln (01–04) ---------- */
.features { padding: 70px 0 40px; }
.feature { position: relative; padding-top: 10px; }
.feature__num {
  position: absolute; top: -10px; right: 0; font-size: 6rem; line-height: 1; color: #eef0f3; font-weight: 700; z-index: 0; user-select: none;
}
.feature__icon {
  position: relative; z-index: 1; width: 90px; height: 90px; border: 2px solid var(--primary); border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 26px; background: #fff;
}
.feature__icon img { width: 52px; height: 52px; }
.feature h3 { position: relative; z-index: 1; font-size: 1.15rem; }
.feature p { position: relative; z-index: 1; color: var(--muted); font-size: 14px; }

/* ---------- Dienstleistungs-Karten ---------- */
.services { padding: 40px 0 60px; }
.services h2 { text-transform: uppercase; margin-bottom: 40px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.card__kicker { color: var(--primary); font-size: 13px; margin-bottom: 10px; display: block; }
.card__img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card p { color: var(--muted); font-size: 14px; }
.card__more { font-size: 14px; }
.card__more::after { content: " \2192"; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list .icon { color: var(--primary); width: 18px; height: 18px; margin-top: 4px; }
.contact-box { padding: 24px; border-radius: 6px; }
.form-card { background: #fff; padding: 24px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.form-card h3, .info-col h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: #d00; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid #d8dbe0; border-radius: var(--radius); font: inherit; font-size: 14px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(19,109,195,.35); border-color: var(--primary); }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { font-size: 14px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.field--check input { margin-top: 4px; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; gap: 20px; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); background: var(--bg-soft); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.form-status { font-size: 14px; margin-top: 12px; }
.form-status.is-error { color: #c00; }
.form-status.is-ok { color: #1a7f37; }
.map { margin-top: 40px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 20px; }
.map.is-loaded { padding: 0; display: block; }
.map iframe { width: 100%; height: 450px; border: 0; display: block; }
.map p { max-width: 520px; color: var(--muted); font-size: 14px; }

/* ---------- Team ---------- */
.team-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px 22px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.team-card__quote { font-size: 14px; color: var(--muted); min-height: 5.5em; }
.team-card__photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 10px auto 16px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.team-card__name { font-size: 1.15rem; color: var(--text); margin-bottom: 2px; }
.team-card__role { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; }
.tabs__nav li { margin: 0; }
.tabs__nav button {
  background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius); padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer;
}
.tabs__nav button[aria-selected="true"] { background: var(--primary); color: #fff; }
.tab-panel[hidden] { display: none; }

/* ---------- Referenzen ---------- */
.ref-row { display: grid; gap: 30px; align-items: start; margin-bottom: 40px; }
@media (min-width: 768px) { .ref-row { grid-template-columns: 1fr 1fr; } .ref-row--flip .ref-row__img { order: 2; } }
.ref-row__img img { border-radius: var(--radius); }
img.figure { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.ref-meta { font-size: 14px; color: var(--muted); }
.ref-meta p { margin: 0; }
.note { font-size: 14px; color: var(--muted); }

/* ---------- Impressum ---------- */
.def-table { border-collapse: collapse; width: 100%; max-width: 720px; }
.def-table th, .def-table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); font-weight: 400; }
.def-table th { color: var(--muted); width: 40%; }

/* ---------- Text-Seiten ---------- */
.prose { max-width: 860px; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose strong { font-weight: 600; }
.prose ul { padding-left: 1.4em; }
.prose a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfd5de; font-size: 14px; margin-top: 60px; }
.footer-grid { display: grid; gap: 40px; padding-block: 60px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; } }
.footer-title { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding-bottom: 10px; margin-bottom: 20px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: rgba(255,255,255,.15); }
.footer-title::before { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--primary); z-index: 1; }
.site-footer a { color: #cfd5de; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list .icon { color: var(--primary); }
.hours td { padding: 2px 24px 2px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--primary-light); }
.footer-links a:hover { color: #fff; }
.copyright { background: var(--darker); padding: 14px 0; font-size: 13px; color: #9aa3b0; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: .25s; z-index: 40;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-dark); color: #fff; }
.to-top .icon { width: 22px; height: 22px; }
