/* ==========================================================================
   Hilgert Design – Redesign für hilgert.de
   Wird vom Plugin "hilgert-design" nach dem Typhoon-Theme geladen.
   Das Theme selbst bleibt unverändert.
   Aufbau: 1 Tokens · 2 Basis · 3 Kopfzeile · 4 Hero · 5 Buttons · 6 Abschnitte
           7 Karten · 8 Unterseiten · 9 Kontaktband · 10 Fußzeile · 11 Bewegung
   ========================================================================== */

/* ---------- 1. Tokens ------------------------------------------------------ */
:root {
  --hg-blue: #1b66c9;          /* UI-Blau, Weiß darauf 5,5:1 */
  --hg-logo-blue: #0e4d8f;     /* Blau des Logos */
  --hg-red: #ed1c24;           /* Rot des Logos: nur Punkte, Linien, Zeichen */
  --hg-red-ink: #c8101a;       /* Rot für Flächen mit weißem Text (5,9:1) */
  --hg-red-light: #ff6b70;     /* Rot auf dunklem Grund (6,7:1) */
  --hg-cyan: #5aa9f0;
  --hg-violet: #0e4d8f;
  --hg-navy-950: #060b1a;
  --hg-navy-900: #0a1226;
  --hg-navy-800: #0f1b36;
  --hg-line: rgba(148, 163, 184, .18);

  /* CI: Schrift (selbst gehostet, keine externen Schriftdienste) */
  --hg-font: 'Inter var', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* CI: Unternehmensfarben. Hell = auf dunklem Grund, ink = auf hellem Grund (WCAG AA) */
  --hg-brand-distribution: #5aa9f0;
  --hg-brand-distribution-ink: #0e4d8f;
  --hg-brand-configuration: #ed1c24;
  --hg-brand-configuration-ink: #c8101a;
  --hg-accent: var(--hg-blue);
  --hg-radius: 1.25rem;
  --hg-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 34px -14px rgba(15, 23, 42, .2);
  --hg-glow: 0 0 0 1px rgba(27, 102, 201, .4), 0 22px 50px -18px rgba(27, 102, 201, .5);

  --color-gray-50: #f6f8fc;
  --color-gray-100: #edf1f8;
  --color-gray-200: #dfe5f0;
  --color-gray-300: #c6cfdf;
  --color-gray-400: #94a0b8;
  --color-gray-500: #667391;
  --color-gray-600: #4b5878;
  --color-gray-700: #36425f;
  --color-gray-800: #0f1b36;
  --color-gray-900: #0a1226;
  --color-gray-950: #060b1a;
}

/* ---------- 2. Basis ------------------------------------------------------- */
html { scroll-behavior: smooth; }
h1, h2, h3 { text-wrap: balance; }
body { letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(27, 102, 201, .3); }
:focus-visible { outline: 2px solid var(--hg-cyan); outline-offset: 3px; border-radius: 6px; }

.hg-eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #bcd2ff;
  background: rgba(27, 102, 201, .16);
  border: 1px solid rgba(124, 160, 255, .35);
}

.hg-eyebrow::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .55rem;
  border-radius: 50%; background: var(--hg-red); vertical-align: .08em;
}

/* ---------- 3. Kopfzeile --------------------------------------------------- */
header.absolute,
header.fixed {
  background: rgba(10, 18, 38, .55) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  box-shadow: none !important;
  color: #e6ecf8 !important;
}
header.scrolled { background: rgba(10, 18, 38, .85) !important; }
header .header-nav li { font-weight: 500; }
header .header-nav li > a:hover { color: var(--hg-cyan); }
header .header-nav li.font-semibold { border-color: var(--hg-red); }
/* "Kontakt" als Button (nur Desktop-Menü) */
header .header-nav li:has(a[href$="/kontakt"]) { border-bottom-color: transparent !important; align-items: center; }
header .header-nav li:has(a[href$="/kontakt"]) > div { height: auto; }
header .header-nav li a[href$="/kontakt"] {
  height: auto; margin-block: auto; padding: .5rem 1.1rem; border-radius: 999px; color: #fff !important;
  justify-content: center; background: var(--hg-red-ink);
  box-shadow: 0 8px 22px -10px rgba(237, 28, 36, .8);
}
header .header-nav li a[href$="/kontakt"]:hover { filter: brightness(1.12); color: #fff !important; }
header ul[class*="absolute"] {
  border-radius: 14px !important;
  border: 1px solid var(--hg-line) !important;
  background: rgba(10, 18, 38, .97) !important;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55) !important;
  overflow: hidden;
}

/* ---------- 4. Hero -------------------------------------------------------- */
.hg-hero { isolation: isolate; min-height: min(92vh, 56rem); display: flex; align-items: center; }
.hg-hero > div.absolute.inset-0.bg-cover {
  background-image:
    radial-gradient(60rem 36rem at 12% 15%, rgba(27, 102, 201, .38), transparent 60%),
    radial-gradient(40rem 26rem at 95% 90%, rgba(237, 28, 36, .14), transparent 60%),
    linear-gradient(105deg, rgba(6, 11, 26, .95) 0%, rgba(8, 20, 48, .8) 50%, rgba(10, 30, 70, .45) 100%) !important;
}
.hg-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 20%, transparent 75%);
}
.hg-hero__inner { width: 100%; padding-top: 9rem; padding-bottom: 5rem; }
.hg-hero__layout { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .hg-hero__layout--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}
.hg-hero__text { max-width: 42rem; }
.hg-hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff 15%, #cfe4ff 60%, #8cc0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hg-hero__title span { -webkit-text-fill-color: transparent; }
.hg-hero__lead { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: #c9d5ec; }
.hg-hero--compact { min-height: 0; }
.hg-hero--compact .hg-hero__inner { padding-top: 9rem; padding-bottom: 4.5rem; }
.hg-hero--compact .hg-hero__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hg-hero__buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hg-hero__aside video,
.hg-hero__aside img {
  width: 100%; height: auto; display: block;
  border-radius: var(--hg-radius);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1);
}
.hg-hero__aside .my-12 { margin: 0; border-radius: var(--hg-radius); }
.hg-hero__aside { color: #c9d5ec; }

/* ---------- 5. Buttons ----------------------------------------------------- */
.hg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hg-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hg-blue), var(--hg-violet));
  box-shadow: 0 12px 30px -10px rgba(27, 102, 201, .75);
}
.hg-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(27, 102, 201, .9); }
.hg-btn--ghost {
  color: #e6ecf8 !important;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .28);
}
.hg-btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- 6. Abschnitte -------------------------------------------------- */
[id] + div[class*="py-8"] { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.magic-content h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.magic-content .text-center h2::after {
  content: ""; display: block; width: 3.5rem; height: 4px; margin: 1.1rem auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--hg-blue), var(--hg-cyan));
}
.magic-content h3 { margin-top: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.magic-content strong { font-weight: 650; }
.magic-content .prose, .magic-content p { line-height: 1.75; }
.magic-content > div > div:not(.text-center):not(.grid) { max-width: 60rem; margin-inline: auto; }

/* Flächen der Startseite im Wechsel */
#unternehmen + div { background: var(--color-gray-50); }
.dark #unternehmen + div { background: var(--hg-navy-900); }
#zusammenspiel + div {
  background:
    radial-gradient(50rem 26rem at 10% 100%, rgba(237, 28, 36, .12), transparent 60%),
    radial-gradient(40rem 22rem at 95% 0%, rgba(90, 169, 240, .12), transparent 60%),
    var(--hg-navy-950);
  color: #d6e0f5;
}
#zusammenspiel + div h2, #zusammenspiel + div h3 { color: #fff; }

#aktuelles + div { background: var(--color-gray-50); }
.dark #aktuelles + div { background: var(--hg-navy-900); }
.hg-post__date { margin-bottom: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hg-blue); }
.dark .hg-post__date { color: #7fb0ff; }
.hg-post .hg-card__title { font-size: 1.3rem; }
.hg-more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* News-Übersicht (Blog-Karten des Themes) */
.blog-item { border-radius: var(--hg-radius) !important; border: 1px solid var(--color-gray-200); box-shadow: var(--hg-shadow) !important; transition: transform .25s ease, box-shadow .25s ease; }
.dark .blog-item { border-color: var(--hg-line); box-shadow: none !important; }
.blog-item h1, .blog-item h2, .blog-item .prose h1, .blog-item .prose h2 { margin: .75rem 0 .25rem; font-size: 1.05rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.blog-item:hover { transform: translateY(-4px); box-shadow: var(--hg-glow) !important; }

/* ---------- 7. Karten ------------------------------------------------------ */
/* Raster hier statt über Tailwind-Klassen (Tailwind kompiliert nur genutzte Klassen) */
.hg-cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .hg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Genau zwei Karten (z. B. die beiden Unternehmen): zwei breite Spalten */
@media (min-width: 1024px) { .hg-cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hg-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--hg-radius);
  background: #fff; border: 1px solid var(--color-gray-200); box-shadow: var(--hg-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dark .hg-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border-color: var(--hg-line); box-shadow: none;
}
.hg-card:hover { transform: translateY(-6px); border-color: rgba(27, 102, 201, .55); box-shadow: var(--hg-glow); }
.hg-card__icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.25rem;
  border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--hg-blue), var(--hg-cyan));
  box-shadow: 0 10px 24px -10px rgba(27, 102, 201, .8);
}
.hg-card .hg-card__title { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--color-gray-900); }
.dark .hg-card .hg-card__title { color: #fff; }
.hg-card__text { font-size: .98rem; max-width: none; margin: 0; }
.hg-card__text p { margin: 0; }
.hg-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; line-height: 1.6; }
.hg-card__link {
  margin-top: auto; padding-top: 1.4rem; font-weight: 600; font-size: .95rem; text-decoration: none;
  color: var(--hg-blue);
}
.dark .hg-card__link { color: #7fb0ff; }
.hg-card__link span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.hg-card:hover .hg-card__link span[aria-hidden] { transform: translateX(5px); }
.hg-card__stretch { position: absolute; inset: 0; }

/* Firmenseiten (Template hg-company): Gruppen und Produktkarten */
.hg-company { padding-block: clamp(3rem, 6vw, 5.5rem); background: #fff; }
.dark .hg-company { background: var(--hg-navy-900); }
.hg-company > div { width: 100%; max-width: 80rem; margin-inline: auto; }
.hg-company__intro { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.hg-company__intro h2 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--color-gray-900); }
.dark .hg-company__intro h2 { color: #fff; }
.hg-company__intro p { margin: 0; font-size: 1.15rem; }
.brand-distribution .hg-company .hg-company__intro h2::before, .brand-configuration .hg-company .hg-company__intro h2::before { display: none; }
.hg-group { margin-top: 3rem; }
.hg-group__title {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hg-accent);
}
.hg-group__title::after { content: ""; flex: 1; height: 1px; background: var(--color-gray-200); }
.dark .hg-group__title::after { background: var(--hg-line); }
.brand-distribution .hg-group__title { color: var(--hg-brand-distribution-ink); }
.dark.brand-distribution .hg-group__title, .dark .brand-distribution .hg-group__title { color: var(--hg-brand-distribution); }
.hg-card__kicker { margin-bottom: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hg-blue); }
.dark .hg-card__kicker { color: #8cc0ff; }
.hg-company__note { margin: 2.5rem 0 0; font-size: .85rem; color: var(--color-gray-500); text-align: center; }
.hg-company__more { margin-top: 3rem; }
/* genau vier Karten: 2 Spalten, ab breiten Bildschirmen 4 Spalten */
@media (min-width: 1024px) { .hg-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hg-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 8. Unterseiten ------------------------------------------------- */
.prose { max-width: 64rem; margin-inline: auto; --tw-prose-body: var(--color-gray-600); }
.hg-card .prose, .grid .prose { max-width: none; margin-inline: 0; }
.dark .prose { --tw-prose-body: #b4c0da; }
.prose { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: var(--color-gray-900); }
.dark .prose h1, .dark .prose h2, .dark .prose h3 { color: #fff; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.prose h1, .prose h2 { letter-spacing: -.03em; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.prose a { text-underline-offset: 3px; }
.prose ul > li::marker { color: var(--hg-blue); }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border: 1px solid var(--color-gray-200); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow);
}
.dark .prose table { border-color: var(--hg-line); box-shadow: none; }
.prose thead th {
  padding: 1rem 1.25rem; text-align: left; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; border: 0;
  background: linear-gradient(135deg, var(--hg-navy-800), #12457f);
}
.prose tbody td { padding: 1rem 1.25rem; border-top: 1px solid var(--color-gray-200); vertical-align: top; }
.dark .prose tbody td { border-color: var(--hg-line); }
.prose tbody tr:nth-child(even) td { background: rgba(27, 102, 201, .04); }
.prose tbody tr:hover td { background: rgba(27, 102, 201, .09); }
.prose blockquote {
  border-left: 4px solid var(--hg-blue); border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
  background: rgba(27, 102, 201, .06); padding: 1rem 1.5rem; font-style: normal;
}

/* ---------- 8b. Zwei Unternehmen & Schritte --------------------------------- */
.hg-duo { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hg-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hg-duo__card {
  display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 1.5rem; background: #fff; border: 1px solid var(--color-gray-200); box-shadow: var(--hg-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dark .hg-duo__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border-color: var(--hg-line); box-shadow: none;
}
.hg-duo__card:hover { transform: translateY(-6px); border-color: rgba(27, 102, 201, .55); box-shadow: var(--hg-glow); }
.hg-duo__head { display: flex; align-items: center; gap: 1rem; }
.hg-duo__head .hg-card__icon { margin: 0; flex: none; }
.hg-duo .hg-duo__name { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--color-gray-900); }
.dark .hg-duo .hg-duo__name { color: #fff; }
.hg-duo__role { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--hg-blue); }
.dark .hg-duo__role { color: #7fb0ff; }
.hg-duo__text { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.hg-duo__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hg-duo__points li { position: relative; padding-left: 1.75rem; }
.hg-duo__points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--hg-blue), var(--hg-cyan));
}
.hg-duo__link { align-self: flex-start; margin-top: auto; }

/* Je Unternehmen eine eigene Akzentfarbe: 1. Karte = distribution, 2. Karte = configuration */
.hg-duo__card { border-top: 4px solid var(--hg-accent); }
.hg-duo__card:nth-child(1) { --hg-accent: var(--hg-brand-distribution); }
.hg-duo__card:nth-child(2) { --hg-accent: var(--hg-brand-configuration); }
.hg-duo__card:nth-child(1) .hg-card__icon { background: linear-gradient(135deg, #0e4d8f, var(--hg-brand-distribution)); }
.hg-duo__card:nth-child(2) .hg-card__icon { background: linear-gradient(135deg, #a50f16, #ed1c24); }
.hg-duo__card:nth-child(1) .hg-duo__role { color: var(--hg-brand-distribution-ink); }
.hg-duo__card:nth-child(2) .hg-duo__role { color: var(--hg-brand-configuration-ink); }
.dark .hg-duo__card:nth-child(1) .hg-duo__role { color: var(--hg-brand-distribution); }
.dark .hg-duo__card:nth-child(2) .hg-duo__role { color: var(--hg-red-light); }
.hg-duo__card:nth-child(1) .hg-duo__points li::before { background: var(--hg-brand-distribution); }
.hg-duo__card:nth-child(2) .hg-duo__points li::before { background: var(--hg-brand-configuration); }
.hg-duo__card:hover { border-color: var(--hg-accent); }

/* Firmenseiten: body_classes brand-distribution / brand-configuration */
.brand-distribution { --hg-accent: var(--hg-brand-distribution); }
.brand-configuration { --hg-accent: var(--hg-brand-configuration); }
.brand-distribution .hg-hero .hg-eyebrow, .brand-configuration .hg-hero .hg-eyebrow { border-color: var(--hg-accent); color: #fff; }
.brand-distribution .prose ul > li::marker, .brand-configuration .prose ul > li::marker { color: var(--hg-accent); }
.brand-distribution .prose h2::before, .brand-configuration .prose h2::before {
  content: ""; display: block; width: 3rem; height: 4px; margin-bottom: .9rem; border-radius: 4px; background: var(--hg-accent);
}
.magic-content .hg-duo + *, .magic-content .text-center p { margin-inline: auto; }

.hg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: none; }
@media (min-width: 900px) { .hg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hg-steps__item {
  position: relative; padding: 2rem; border-radius: var(--hg-radius);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hg-line);
}
.hg-steps__num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem;
  border-radius: 50%; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--hg-blue), var(--hg-violet));
}
.hg-steps h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.hg-steps p { margin: 0; color: #c3cfe8; }

/* ---------- 8c. Kontaktseite & Werbeband in News ----------------------------- */
.hg-contact { padding-block: clamp(3rem, 6vw, 5rem); background: var(--color-gray-50); }
.dark .hg-contact { background: var(--hg-navy-900); }
.hg-contact > div { width: 100%; max-width: 80rem; margin-inline: auto; }
.hg-contact__layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .hg-contact__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.hg-contact__info, .hg-contact__form {
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.5rem; background: #fff;
  border: 1px solid var(--color-gray-200); box-shadow: var(--hg-shadow);
}
.dark .hg-contact__info, .dark .hg-contact__form { background: rgba(255, 255, 255, .04); border-color: var(--hg-line); box-shadow: none; }
.hg-contact__info h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hg-contact__companies { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.25rem; }
.hg-contact__companies li { display: grid; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--hg-blue); }
.hg-contact__role { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hg-blue); }
.dark .hg-contact__role { color: #7fb0ff; }
.hg-contact__line { display: flex; gap: .75rem; align-items: flex-start; margin: .6rem 0 0; }
.hg-contact__line a { color: inherit; text-decoration: none; }
.hg-contact__line a:hover { color: var(--hg-blue); }
.hg-contact__form form label { font-weight: 600; }
.hg-contact__form .form-input, .hg-contact__form .form-textarea, .hg-contact__form .form-select {
  width: 100%; border-radius: .75rem; padding: .8rem 1rem;
}
.hg-contact__form .form-field { margin-bottom: 1.25rem; }
.hg-contact__form button[type="submit"], .hg-contact__form .button {
  padding: .95rem 1.8rem; border: 0; border-radius: 999px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--hg-blue), var(--hg-violet)); box-shadow: 0 12px 30px -10px rgba(27, 102, 201, .75);
}

.hg-promo { padding-top: clamp(3rem, 6vw, 4.5rem); background: #fff; }
.dark .hg-promo { background: var(--hg-navy-950); }
.hg-promo__box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--hg-radius);
  background: var(--color-gray-50); border: 1px solid var(--color-gray-200); border-left: 5px solid var(--hg-blue);
}
.dark .hg-promo__box { background: rgba(255, 255, 255, .04); border-color: var(--hg-line); border-left-color: var(--hg-blue); }
.hg-promo__box p { margin: 0; max-width: 40rem; font-size: 1.1rem; font-weight: 500; }
.hg-promo .hg-eyebrow { color: var(--hg-blue); background: rgba(27, 102, 201, .1); border-color: rgba(27, 102, 201, .3); }
.hg-promo__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.hg-cta { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- 9. Kontaktband -------------------------------------------------- */
.hg-cta { padding-block: clamp(3rem, 6vw, 5rem); background: #fff; }
.dark .hg-cta { background: var(--hg-navy-950); }
.hg-cta__box {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 1.75rem; color: #fff;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(90, 169, 240, .4), transparent 60%),
    linear-gradient(120deg, #0e4d8f, #1b66c9);
  box-shadow: 0 30px 70px -30px rgba(27, 102, 201, .7);
}
.hg-cta__box h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hg-cta__box h2::after { display: none; }
.hg-cta__box p { margin: .6rem 0 0; max-width: 36rem; color: #dbe5ff; }
.hg-cta .hg-eyebrow { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.hg-cta .hg-btn--primary { background: #fff; color: var(--hg-navy-900) !important; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }

/* ---------- 10. Fußzeile ---------------------------------------------------- */
.hg-footer { position: relative; background: var(--hg-navy-950); color: #94a3c4; padding-block: 4rem 2rem; }
.hg-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--hg-blue), var(--hg-cyan), transparent);
}
.hg-footer__cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hg-footer__cols { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.hg-footer__brand .site-logo { height: 2rem; }
.hg-footer__brand p { margin-top: 1rem; max-width: 18rem; }
.hg-footer h3 { margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e6ecf8; }
.hg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.hg-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.hg-footer a:hover { color: var(--hg-cyan); }
.hg-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hg-line);
}
.hg-footer .theme-chooser { border-radius: 999px !important; background: rgba(255, 255, 255, .04); border-color: var(--hg-line) !important; }

/* ---------- 11. Bewegung ---------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .magic-content > div > *, .hg-cards > * {
      animation: hg-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    @keyframes hg-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 768px) {
  .hg-hero { min-height: auto; }
  .hg-hero__inner { padding-top: 7rem; padding-bottom: 3rem; }
  .hg-card { padding: 1.5rem; }
}

/* Pakete mit Bausteinen (configuration) */
.hg-card__parts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--color-gray-200); }
.dark .hg-card__parts { border-top-color: var(--hg-line); }
.hg-card__parts li { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--color-gray-200); }
.dark .hg-card__parts li { border-bottom-color: var(--hg-line); }
.hg-card__parts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hg-card__parts strong { font-size: .95rem; color: var(--color-gray-900); }
.dark .hg-card__parts strong { color: #fff; }
.hg-card__parts span { font-size: .85rem; }
.hg-card__parts li { position: relative; padding-left: 1.4rem; }
.hg-card__parts li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--hg-accent); }
.hg-card__parts li:last-child::before { top: .4rem; }
.hg-card__parts li:first-child:last-child::before { top: .4rem; }
/* Kategorie und Gruppentitel in der Farbe des Unternehmens */
.brand-configuration .hg-card__kicker, .brand-configuration .hg-group__title { color: var(--hg-brand-configuration-ink); }
.dark .brand-configuration .hg-card__kicker, .dark .brand-configuration .hg-group__title { color: var(--hg-red-light); }
.brand-distribution .hg-card__kicker { color: var(--hg-brand-distribution-ink); }
.dark .brand-distribution .hg-card__kicker { color: var(--hg-brand-distribution); }

/* configuration: vier Pakete mit langen Listen in zwei Spalten statt vier */
@media (min-width: 1280px) {
  .brand-configuration .hg-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menü: bei mittleren Breiten kompakter, damit alle Punkte und der Sprachumschalter Platz haben */
header .header-nav li { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  header .header-nav li { margin-left: .15rem; font-size: .8rem; }
  header .header-nav li a.px-3, header .header-nav li > div > a { padding-inline: .5rem; }
  header .header-nav ul.flex { margin-right: .75rem; }
  header .site-logo { height: 1.6rem; }
  header .header-nav li a[href$="/kontakt"] { padding: .45rem .9rem; }
}

/* ---------- Detailseite eines Pakets (Template hg-package) ---------------- */
.hg-package { padding-block: clamp(3rem, 6vw, 5rem); background: #fff; }
.dark .hg-package { background: var(--hg-navy-900); }
.hg-package > div { width: 100%; max-width: 64rem; margin-inline: auto; }
.hg-package__lead { margin: 0 0 1rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.6; color: var(--color-gray-900); }
.dark .hg-package__lead { color: #e6ecf8; }
.hg-package__h {
  margin: 3.25rem 0 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--color-gray-900);
}
.dark .hg-package__h { color: #fff; }
.hg-package__h::before { content: ""; display: block; width: 3rem; height: 4px; margin-bottom: .8rem; border-radius: 4px; background: var(--hg-accent); }
.hg-cards--two { grid-template-columns: 1fr; }
@media (min-width: 768px) { .hg-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hg-cards--two .hg-card { padding: 1.5rem; }
.hg-cards--two .hg-card__title { margin-bottom: .5rem; }

.hg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hg-list li { position: relative; padding-left: 1.9rem; font-size: 1.05rem; line-height: 1.6; }
.hg-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--hg-accent); }

.hg-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: hgstep; }
.hg-flow li {
  counter-increment: hgstep; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem; border-radius: var(--hg-radius); border: 1px solid var(--color-gray-200); background: var(--color-gray-50);
}
.dark .hg-flow li { border-color: var(--hg-line); background: rgba(255, 255, 255, .04); }
.hg-flow li::before {
  content: counter(hgstep); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-weight: 800; color: #fff; background: var(--hg-red-ink);
}
.hg-flow strong { display: block; margin-bottom: .2rem; font-size: 1.1rem; color: var(--color-gray-900); }
.dark .hg-flow strong { color: #fff; }
.hg-flow p { margin: 0; }

.hg-faq { display: grid; gap: .75rem; }
.hg-faq details { border: 1px solid var(--color-gray-200); border-radius: 1rem; background: var(--color-gray-50); padding: 0 1.25rem; }
.dark .hg-faq details { border-color: var(--hg-line); background: rgba(255, 255, 255, .04); }
.hg-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 700; color: var(--color-gray-900); }
.dark .hg-faq summary { color: #fff; }
.hg-faq summary::-webkit-details-marker { display: none; }
.hg-faq summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1; color: var(--hg-accent); }
.hg-faq details[open] summary::after { content: "–"; }
.hg-faq details p { margin: 0 0 1.1rem; }
.hg-package__back { margin: 3rem 0 0; }
.hg-package__back a { font-weight: 600; text-decoration: none; color: var(--hg-blue); }
.dark .hg-package__back a { color: #8cc0ff; }

.hg-package__cta { margin: 2.5rem 0 0; }
