/*
  X INTERNETDIENSTE – Marken-Overrides & eigene Bausteine.
  Wird NACH style.css geladen (gewinnt gegen Template-Regeln).
  Ziel: Template-Look erhalten, Marke einbringen, eigene Sektionen ergänzen.
*/

/* ---------- Barrierefreiheit & Motion ---------- */
:focus-visible {
  outline: var(--focus-outline-width, 2px) solid var(--brand-teal-dark);
  outline-offset: var(--focus-outline-offset, 3px);
}
/* Der Skip-Link wird jetzt in site.css gestaltet.
   Grund: brand.css wird von der Startseite nicht geladen – dort stand der Link
   dadurch ungestylt und sichtbar oben auf der Seite. site.css laedt jede Seite. */
/* Hinweis: Hier stand eine pauschale prefers-reduced-motion-Regel, die saemtliche
   Transitions abgeschaltet hat (transition-duration: 0.001ms !important auf *).
   Da die Unterseiten brand.css laden, die Startseite aber nicht, fehlte dadurch
   ausschliesslich dort die Slide-in-Animation des Off-canvas-Panels.
   Das Template selbst kennt diese Sperre nicht – daher entfernt. */

/* ---------- Marken-Akzente ---------- */
.text-accent { color: var(--brand-teal-dark); }
.rte a { color: var(--brand-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.rte a:hover { color: var(--brand-navy); }

/* ---------- Wiederverwendbare Sektions-Hülle ---------- */
.x-section { padding: 88px 0; }
.x-section--tight { padding: 56px 0; }
.x-section--navy { background: var(--brand-navy); color: rgba(255,255,255,.86); }
.x-section--navy h1, .x-section--navy h2, .x-section--navy h3, .x-section--navy .heading { color: #fff; }
.x-section--muted { background: #f6f8f9; }

.x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading--family);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-teal-dark);
  margin-bottom: 14px;
}
.x-section--navy .x-eyebrow { color: var(--brand-teal); }
.x-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.x-lead { font-size: 18px; line-height: 1.7; color: var(--brand-slate); }
.x-section--navy .x-lead { color: rgba(255,255,255,.78); }

/* ---------- Karten-Raster (Leistungen / Features) ---------- */
.x-cards { display: grid; gap: 24px; }
.x-cards--3 { grid-template-columns: repeat(3, 1fr); }
.x-cards--4 { grid-template-columns: repeat(4, 1fr); }
.x-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991px) { .x-cards--3, .x-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .x-cards { grid-template-columns: 1fr; } }

.x-card {
  background: #fff;
  border: 1px solid var(--color-border, rgba(14,21,40,.12));
  border-radius: 18px;
  padding: 32px 28px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.x-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14,21,40,.10);
  border-color: var(--brand-teal);
}
.x-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(23,228,194,.14);
  color: var(--brand-teal-dark);
  margin-bottom: 20px;
}
.x-card__icon img, .x-card__icon svg { width: 28px; height: 28px; }
.x-card__num {
  font-family: var(--font-heading--family);
  font-weight: 700;
  color: var(--brand-teal);
  font-size: 20px;
  margin-bottom: 12px;
}
.x-card h3, .x-card .heading { font-size: 21px; margin-bottom: 12px; }
.x-card p { color: var(--brand-slate); font-size: 16px; line-height: 1.65; margin: 0 0 18px; }
.x-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.x-card__link:hover { color: var(--brand-teal-dark); }
.x-card__link::after { content: "→"; transition: transform .2s ease; }
.x-card__link:hover::after { transform: translateX(4px); }

/* ---------- Feature-/Vorteilsliste ---------- */
.x-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.x-checklist li { position: relative; padding-left: 34px; line-height: 1.6; }
.x-checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e1528' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- CTA-Band ---------- */
.x-cta {
  background: linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 56px;
  text-align: center;
}
.x-cta h2 { color: #fff; margin-bottom: 14px; }
.x-cta p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto 28px; font-size: 18px; }
.x-cta .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 575px) { .x-cta { padding: 40px 24px; } }

/* ---------- Trust / Zertifizierungen ---------- */
.x-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: center; }
.x-trust img { height: 84px; width: auto; }

/* ---------- Bild-Handling (nie verzerren) ---------- */
.x-media-cover { object-fit: cover; width: 100%; height: 100%; display: block; }

/* ---------- Footer-Verfeinerung ---------- */
.x-footer { background: var(--brand-navy); color: rgba(255,255,255,.72); }
.x-footer a { color: rgba(255,255,255,.72); }
.x-footer a:hover { color: var(--brand-teal); }
.x-footer h4 { color: #fff; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }

/* Header-Farben stehen vollstaendig in site.css (gilt fuer Start- und Unterseiten).
   Die frueheren Regeln hier hatten hoehere Spezifitaet und haben den Scroll-Zustand
   ueberschrieben – dadurch blieben die Menuepunkte dunkel auf dunklem Grund. */

/* ---------- Aktiver Navigationszustand (Fallback für Desktop+Mobil) ---------- */
.header-menu .menu-link.active,
.header-menu .menu-link-main.active { color: var(--brand-teal-dark); }

/* ---------- Page-Banner / Breadcrumb ---------- */
.x-page-banner {
  background: #f6f8f9;
  padding: 44px 0;
  border-bottom: 1px solid rgba(14,21,40,.06);
}
.x-page-banner__title { font-size: var(--font-h2--size); margin: 10px 0 0; }
.x-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 14px; color: var(--brand-slate); }
.x-breadcrumb li { display: inline-flex; align-items: center; }
.x-breadcrumb li:not(:first-child)::before { content: "/"; margin-right: 8px; color: rgba(14,21,40,.35); }
.x-breadcrumb a { color: var(--brand-slate); }
.x-breadcrumb a:hover { color: var(--brand-teal-dark); }
.x-breadcrumb [aria-current="page"] { color: var(--brand-navy); font-weight: 600; }

/* ---------- Footer-Layout ---------- */
.x-footer { padding: 72px 0 28px; }
.x-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.x-footer__wordmark {
  font-family: var(--font-heading--family);
  font-weight: 700; font-size: 22px; color: #fff;
  display: inline-block; margin-bottom: 18px; letter-spacing: .02em;
}
.x-footer__wordmark span { color: var(--brand-teal); }
.x-footer__about { max-width: 340px; line-height: 1.7; margin-bottom: 22px; }
.x-footer__social a {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.x-footer__social a:hover { background: var(--brand-teal); color: var(--brand-navy); border-color: var(--brand-teal); }
.x-footer__col ul li { margin-bottom: 12px; }
.x-footer__contact address { font-style: normal; line-height: 1.9; }
.x-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 14px;
}
.x-footer__legal { display: flex; gap: 20px; margin: 0; }
@media (max-width: 991px) { .x-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
  .x-footer__top { grid-template-columns: 1fr; }
  .x-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hero (Startseite) ---------- */
.x-hero { position: relative; min-height: 640px; display: grid; align-items: center; color: #fff; overflow: hidden; }
.x-hero__media { position: absolute; inset: 0; z-index: 0; }
.x-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.x-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,21,40,.93) 0%, rgba(14,21,40,.80) 45%, rgba(14,21,40,.66) 100%);
}
.x-hero__inner { position: relative; z-index: 2; padding: 96px 0; }
.x-hero .x-eyebrow { color: var(--brand-teal); }
.x-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; margin: 0 0 20px; max-width: 18ch; }
.x-hero p { color: rgba(255,255,255,.85); font-size: 19px; line-height: 1.6; max-width: 56ch; margin: 0 0 32px; }
.x-hero .buttons { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 767px) { .x-hero { min-height: 520px; } .x-hero__inner { padding: 64px 0; } }

/* ---------- Zentrierte Sektions-Überschrift ---------- */
.x-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.x-section-head .x-eyebrow { justify-content: center; }
.x-section-head h2 { font-size: var(--font-h2--size); margin: 0 0 14px; }

/* ---------- Zwei-Spalten-Block (Intro / FlowAssist) ---------- */
.x-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.x-two-col__media img { width: 100%; height: auto; border-radius: 18px; display: block; }
.x-two-col h2 { font-size: var(--font-h2--size); margin: 0 0 18px; }
@media (max-width: 991px) { .x-two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Karte mit Medien (Artikel / Portfolio) ---------- */
.x-card--media { padding: 0; overflow: hidden; }
.x-card--media .x-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.x-card--media .x-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.x-card--media:hover .x-card__media img { transform: scale(1.05); }
.x-card--media .x-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.x-card__meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--brand-slate); margin-bottom: 10px; }
.x-card__tag { color: var(--brand-teal-dark); font-weight: 600; }
.x-card__square { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #f6f8f9; padding: 24px; }
.x-card__square img { max-width: 82%; max-height: 82%; width: auto; height: auto; object-fit: contain; }

/* ---------- FlowAssist-Teaser ---------- */
.x-flowassist .x-badge {
  display: inline-block; padding: 6px 14px; border-radius: 40px;
  background: rgba(23,228,194,.16); color: var(--brand-teal);
  font-weight: 600; font-size: 13px; letter-spacing: .04em; margin-bottom: 18px;
}

/* ---------- Leistungs-Detailseite ---------- */
.rte > p { line-height: 1.8; margin: 0 0 20px; color: var(--brand-slate); font-size: 17px; }
.rte > h2 { font-size: 28px; margin: 44px 0 18px; }
.rte > .x-lead { color: var(--brand-navy); font-size: 20px; font-weight: 500; line-height: 1.6; }
.rte > .x-checklist { margin: 8px 0 8px; }
.x-detail-media { border-radius: 18px; overflow: hidden; margin: 10px 0 34px; }
.x-detail-media img { width: 100%; height: auto; display: block; }
.x-cards--tight { gap: 16px; }
.x-card--sm { padding: 24px; }
.x-card--sm h3 { font-size: 18px; margin-bottom: 8px; }
.x-card--sm p { font-size: 15px; margin: 0; }

/* Sidebar */
.x-sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.x-sidebar-widget { background: #fff; border: 1px solid var(--color-border); border-radius: 18px; padding: 28px; }
.x-sidebar-widget h3 { font-size: 18px; margin: 0 0 18px; }
.x-service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.x-service-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--brand-navy); font-weight: 500; }
.x-service-list a::after { content: "→"; color: var(--brand-teal-dark); opacity: 0; transition: opacity .2s; }
.x-service-list a:hover { background: #f6f8f9; }
.x-service-list a:hover::after, .x-service-list a[aria-current]::after { opacity: 1; }
.x-service-list a[aria-current] { background: rgba(23,228,194,.12); color: var(--brand-teal-dark); }
.x-sidebar-contact { background: var(--brand-navy); }
.x-sidebar-contact h3 { color: #fff; }
.x-sidebar-contact p { color: rgba(255,255,255,.8); font-size: 15px; }
.x-sidebar-contact .button { width: 100%; margin-top: 12px; }
@media (max-width: 991px) { .x-sidebar { position: static; margin-top: 44px; } }

/* Akkordeon (Prozess / FAQ) – eigenständig, arbeitet mit dem faq-accordion-Element */
.x-accordion { border-top: 1px solid var(--color-border); margin: 12px 0 6px; }
.x-accordion .accordion-block { border-bottom: 1px solid var(--color-border); }
.x-accordion .accordion-opener { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; cursor: pointer; }
.x-accordion .accordion-opener h2, .x-accordion .accordion-opener h3 { font-size: 19px; margin: 0; }
.x-accordion .heading-index { display: flex; align-items: baseline; gap: 12px; }
.x-accordion .heading-index span { color: var(--brand-teal-dark); font-weight: 700; font-size: 18px; }
.x-accordion .accordion-opener .svg-wrapper { flex-shrink: 0; transition: transform .3s ease; color: var(--brand-slate); display: inline-flex; }
.x-accordion .accordion-block.active .accordion-opener .svg-wrapper { transform: rotate(180deg); color: var(--brand-teal-dark); }
.x-accordion .accordion-content { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.x-accordion .accordion-block.active .accordion-content { max-height: 1500px; }
.x-accordion .accordion-content-inner { padding: 0 2px 24px; color: var(--brand-slate); line-height: 1.75; }

/* ---------- Kontaktseite ---------- */
.x-contact-info { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.x-contact-info li { display: flex; gap: 16px; align-items: flex-start; line-height: 1.6; }
.x-contact-info__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(23,228,194,.14); display: grid; place-items: center; }
.x-contact-info a { color: var(--brand-navy); }
.x-contact-info a:hover { color: var(--brand-teal-dark); }

.x-map { border-radius: 16px; overflow: hidden; background: #f6f8f9; border: 1px solid var(--color-border); min-height: 220px; display: flex; }
.x-map__consent { padding: 24px; text-align: center; margin: auto; }
.x-map__consent p { color: var(--brand-slate); font-size: 14px; margin-bottom: 14px; }
.x-map__link { margin-top: 12px; font-size: 13px; }
.x-map iframe { display: block; }

.x-form-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 36px; }
@media (max-width: 575px) { .x-form-wrap { padding: 24px; } }
.x-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 575px) { .x-form-grid { grid-template-columns: 1fr; } }
/* Formularfelder, Checkbox, Fehler- und Statusmeldungen: siehe site.css
   (dort websiteweit definiert, damit Startseite und Unterseiten identisch aussehen) */
.field-consent { flex-direction: column; }
.form-button { margin-top: 8px; }
.x-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.button.is-loading { opacity: .7; pointer-events: none; }

/* ---------- FlowAssist-Panel (statt Platzhalterbild) ---------- */
.x-fa-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.x-fa-chip {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 15px 18px; display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 500; font-size: 15px;
}
.x-fa-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-teal); flex-shrink: 0; }
@media (max-width: 575px) { .x-fa-panel { grid-template-columns: 1fr; } }

/* ---------- Mobiler Kopfbereich ----------
   Hier stand ein eigener Hamburger, der die Kopfzeilenschalter des Templates
   per display:none verdraengt hat. Weil die Startseite diese Datei gar nicht
   laedt, sahen Startseite und Unterseiten mobil unterschiedlich aus: dort
   Suche und Menueschalter, hier ein einzelner alter Hamburger. Beides ist
   entfernt, der Header des Templates gilt jetzt ueberall.
   Geblieben ist nur die Regel, ohne die die Off-canvas-Nav
   (position:fixed, translateX(100%)) waagerecht scrollen laesst. */
@media (max-width: 991.98px) {
  html, body { overflow-x: hidden; }
}
