/* ==========================================================================
   Elektroinstallation Torsten Robbi – Main stylesheet
   Mobile first: base styles target small screens, media queries scale up.
   Loaded after Bootstrap 5.3 (self-hosted) and fonts.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (fonts & colours derived from the company logo)
   -------------------------------------------------------------------------- */
:root {
  /* Fonts (self-hosted, see fonts.css) */
  --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Brand colours – logo blue (#4486DA) and logo red (#F82800) */
  --color-primary: #1f5baa;          /* darkened logo blue – AA on white */
  --color-primary-hover: #174a8c;
  --color-primary-logo: #4486da;     /* original logo blue – decorative use */
  --color-primary-light: #9cc2f2;    /* light blue – text on dark backgrounds */
  --color-primary-tint: #e8f0fb;

  --color-accent: #f82800;           /* original logo red – decorative use */
  --color-accent-strong: #c21f00;    /* darkened logo red – AA with white text */
  --color-accent-hover: #a31a00;

  --color-navy: #0e2240;
  --color-navy-deep: #0b1b33;

  /* Neutrals */
  --color-text: #1e2633;
  --color-muted: #5a6575;
  --color-bg: #ffffff;
  --color-bg-light: #f3f6fa;
  --color-border: #dde3ec;
  --color-white: #ffffff;

  /* Shape & motion */
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(14, 34, 64, 0.06), 0 2px 8px rgba(14, 34, 64, 0.05);
  --shadow-md: 0 6px 24px rgba(14, 34, 64, 0.1);
  --shadow-lg: 0 18px 48px rgba(14, 34, 64, 0.16);
  --transition: 180ms ease;
  --header-height: 4.25rem;
  --section-space: 3.5rem;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-bg);
  --bs-link-color: var(--color-primary);
  --bs-link-color-rgb: 31, 91, 170;
  --bs-link-hover-color: var(--color-primary-hover);
  --bs-link-hover-color-rgb: 23, 74, 140;
  --bs-border-color: var(--color-border);
  --bs-focus-ring-color: rgba(31, 91, 170, 0.35);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto; /* long German compound words */
}

h1 { font-size: clamp(1.875rem, 1.4rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; height: auto; }

::selection { background: var(--color-primary); color: var(--color-white); }

:focus-visible {
  outline: 3px solid var(--color-primary-logo);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: -0.25em;
}

/* Skip link – visible on keyboard focus only */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--font-heading);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-lg {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-size: 1.05rem;
}

.btn-accent {
  --bs-btn-color: var(--color-white);
  --bs-btn-bg: var(--color-accent-strong);
  --bs-btn-border-color: var(--color-accent-strong);
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-hover-bg: var(--color-accent-hover);
  --bs-btn-hover-border-color: var(--color-accent-hover);
  --bs-btn-active-color: var(--color-white);
  --bs-btn-active-bg: var(--color-accent-hover);
  --bs-btn-active-border-color: var(--color-accent-hover);
  --bs-btn-focus-shadow-rgb: 194, 31, 0;
  box-shadow: 0 6px 18px rgba(194, 31, 0, 0.25);
}

.btn-primary {
  --bs-btn-color: var(--color-white);
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-active-color: var(--color-white);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-focus-shadow-rgb: 31, 91, 170;
}

.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-color: var(--color-white);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-focus-shadow-rgb: 31, 91, 170;
}

.btn-outline-light {
  --bs-btn-color: var(--color-white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.6);
  --bs-btn-hover-color: var(--color-navy);
  --bs-btn-hover-bg: var(--color-white);
  --bs-btn-hover-border-color: var(--color-white);
  --bs-btn-active-color: var(--color-navy);
  --bs-btn-active-bg: var(--color-white);
  --bs-btn-active-border-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header::before {
  /* thin brand bar: logo red into logo blue */
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 30%, var(--color-primary-logo) 30%, var(--color-primary-logo) 100%);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .navbar {
  --bs-navbar-padding-y: 0.5rem;
  min-height: var(--header-height);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  padding: 0;
  text-decoration: none;
}
.navbar-brand img {
  width: auto;
  height: 3rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-heading);
}
.brand-text__kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.brand-text__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon,
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn-icon:hover,
.navbar-toggler:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.btn-icon--accent {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: var(--color-white);
}
.btn-icon--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .icon-close { display: none; }
.navbar-toggler[aria-expanded='true'] .icon-open { display: none; }
.navbar-toggler[aria-expanded='true'] .icon-close { display: inline-block; }

.site-header .navbar-collapse {
  /* mobile dropdown panel */
  margin-top: 0.5rem;
}
.site-header .navbar-nav {
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--color-border);
}
.site-header .nav-link {
  position: relative;
  padding: 0.8rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: var(--color-primary);
}
.site-header .nav-link[aria-current='page'] {
  color: var(--color-accent-strong);
}
.site-header .nav-link[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 4px;
  height: 1.25rem;
  transform: translateY(-50%);
  background: var(--color-accent);
  border-radius: 2px;
}
.header-cta {
  margin-bottom: 1rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Hero / page header
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 3rem 0 4.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.3);
}
.hero::before {
  /* navy overlay with a hint of logo blue */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(11, 27, 51, 0.96) 0%, rgba(14, 34, 64, 0.88) 55%, rgba(31, 91, 170, 0.7) 100%);
}
.hero::after {
  /* diagonal red "lightning" stripe – echoes the arrow in the logo */
  content: '';
  position: absolute;
  z-index: -1;
  right: -3.5rem;
  bottom: -2rem;
  width: 5rem;
  height: 140%;
  background: linear-gradient(180deg, rgba(248, 40, 0, 0) 0%, rgba(248, 40, 0, 0.9) 100%);
  transform: skewX(-24deg);
  opacity: 0.55;
}

.hero__inner { position: relative; }

.hero h1,
.hero .hero__title {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.hero__title-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--color-primary-light);
}
.hero__lead {
  font-size: 1.075rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}
.hero__actions .btn { flex: 1 1 100%; }
.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__contact li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__contact .icon { color: var(--color-primary-light); }
.hero__contact a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
}
.hero__contact a:hover { text-decoration: underline; color: var(--color-white); }

.hero__visual {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin-left: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

/* Sub-page header (smaller hero) */
.hero--page { padding: 2.25rem 0 3.5rem; }
.hero--page h1 { margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb-nav .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.55);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.breadcrumb-nav a {
  color: var(--color-primary-light);
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item::before { content: '›'; }

/* Eyebrow label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.eyebrow--light { color: var(--color-primary-light); }
.eyebrow--light::before { background: var(--color-accent); }

/* --------------------------------------------------------------------------
   6. Sections & layout helpers
   -------------------------------------------------------------------------- */
.section { padding: var(--section-space) 0; }
.section--light { background: var(--color-bg-light); }
.section--tight-top { padding-top: 1.5rem; }

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-title { margin-bottom: 1rem; }
.lead-text {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.text-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.text-signature .icon { color: var(--color-accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { transition: transform var(--transition); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Media compositions (slanted cut-out images from the original site)
   -------------------------------------------------------------------------- */
.media-slant {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}
.media-slant::before {
  /* blue diagonal panel behind the image */
  content: '';
  position: absolute;
  inset: 8% 6% 0 22%;
  background: linear-gradient(150deg, var(--color-primary-tint) 0%, #d3e3f7 100%);
  clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%);
  border-radius: var(--radius);
}
.media-slant::after {
  /* red accent stripe */
  content: '';
  position: absolute;
  right: 14%;
  top: 0;
  width: 0.6rem;
  height: 45%;
  background: var(--color-accent);
  transform: skewX(-18deg);
  border-radius: 2px;
}
.media-slant img {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: 22rem;
  filter: drop-shadow(0 16px 32px rgba(14, 34, 64, 0.22));
}

.media-frame {
  position: relative;
  margin: 0;
}
.media-frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.media-frame::before {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
  width: 40%;
  height: 50%;
  z-index: -1;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
}
.media-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.media-frame figcaption a { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   8. Facts strip
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.fact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-white);
}
.fact__icon .icon { width: 1.5rem; height: 1.5rem; }
.fact__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}
.fact__text {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.925rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c9d6e8;
}
.service-card:hover::after { transform: scaleY(1); }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.service-card__icon .icon { width: 1.6rem; height: 1.6rem; }
.service-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  hyphens: manual;
}

/* --------------------------------------------------------------------------
   10. Reference logos
   -------------------------------------------------------------------------- */
.ref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ref-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ref-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ref-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ref-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 9rem;
  padding: 1.5rem;
}
.ref-card__logo img {
  width: auto;
  max-width: 100%;
  max-height: 5.5rem;
  object-fit: contain;
}
.ref-card figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.4;
}
.ref-grid--compact .ref-card__logo {
  min-height: 6rem;
  padding: 1rem;
}
.ref-grid--compact .ref-card__logo img { max-height: 3.5rem; }

/* --------------------------------------------------------------------------
   11. About page: timeline, team, quote
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary-logo));
}
.timeline li {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
}
.timeline__year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent-strong);
  line-height: 1.3;
}
.timeline__text {
  display: block;
  color: var(--color-text);
}

.info-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.info-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p:last-child,
.info-card ul:last-child { margin-bottom: 0; }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.9rem;
  border: solid var(--color-accent-strong);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.quote-block {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
}
.quote-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
}
.quote-block__icon .icon { width: 1.75rem; height: 1.75rem; }
.quote-block p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   12. Call-to-action band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 0;
  color: var(--color-white);
  background: var(--color-navy);
}
.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  transform: skewX(-20deg);
  opacity: 0.55;
}
.cta-band::after {
  content: '';
  display: none;
  position: absolute;
  z-index: -1;
  top: -20%;
  right: 46%;
  width: 0.75rem;
  height: 140%;
  background: var(--color-accent);
  transform: skewX(-20deg);
  opacity: 0.85;
}
.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255, 255, 255, 0.85); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-band__actions .btn { flex: 1 1 100%; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  padding: 1.75rem 1.5rem;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -3rem;
  bottom: -3rem;
  width: 8rem;
  height: 14rem;
  background: var(--color-accent);
  transform: skewX(-20deg);
  opacity: 0.8;
}
.contact-card h2,
.contact-card h3 {
  color: var(--color-white);
}
.contact-card h2 { font-size: 1.4rem; }
.contact-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary-light);
}
.contact-list__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}
.contact-list a,
.contact-list address {
  margin: 0;
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Light variant (on white backgrounds) */
.contact-card--light {
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.contact-card--light::after { opacity: 0.12; }
.contact-card--light h2,
.contact-card--light h3 { color: var(--color-navy); }
.contact-card--light .contact-list__icon {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.contact-card--light .contact-list__label { color: var(--color-muted); }
.contact-card--light .contact-list a,
.contact-card--light .contact-list address { color: var(--color-navy); }
.contact-card--light .contact-list a:hover { color: var(--color-primary); }

/* Form */
.form-card {
  height: 100%;
  padding: 1.75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 1.4rem; }
.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--color-navy);
}
.form-control {
  padding: 0.75rem 0.9rem;
  border-color: #c9d3e1;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-light);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.form-control:focus {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 91, 170, 0.2);
}
.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 91, 170, 0.2);
}
.form-text-required {
  font-size: 0.85rem;
  color: var(--color-muted);
}
.required-mark { color: var(--color-accent-strong); }

/* Honeypot field: hidden from humans, still in the DOM for bots */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   14. Legal pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 50rem;
  margin: 0 auto;
}
.legal h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.35rem;
}
.legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.legal address { margin-bottom: 1rem; }
.legal a { overflow-wrap: anywhere; }
.legal-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.legal-card p:last-child,
.legal-card address:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  background: var(--color-navy-deep);
  font-size: 0.95rem;
}
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 30%, var(--color-primary-logo) 30%, var(--color-primary-logo) 100%);
}
.footer-main { padding: 3rem 0 2rem; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.footer-brand__logo {
  display: inline-flex;
  padding: 0.4rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}
.footer-brand__logo img { width: auto; height: 4rem; }
.footer-brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-white);
}
.footer-brand__name small {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-primary-light);
}
.footer-heading {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-list a[aria-current='page'] { color: var(--color-white); font-weight: 600; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.footer-contact .icon {
  margin-top: 0.2rem;
  color: var(--color-accent);
}
.footer-contact address { margin: 0; }
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-bottom a:hover { color: var(--color-white); }
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   16. Scroll-to-top button
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-accent-strong);
  box-shadow: 0 8px 24px rgba(14, 34, 64, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--color-accent-hover); }
.scroll-top .icon { width: 1.4rem; height: 1.4rem; }

/* --------------------------------------------------------------------------
   17. 404 page
   -------------------------------------------------------------------------- */
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   18. Responsive – small tablets and up (≥ 576px)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .hero__actions .btn,
  .cta-band__actions .btn { flex: 0 1 auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-block { padding: 2.5rem; }
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive – tablets and up (≥ 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --section-space: 4.5rem;
    --header-height: 4.75rem;
  }
  .navbar-brand img { height: 3.5rem; }
  .brand-text__name { font-size: 1.15rem; }
  .hero { padding: 4rem 0 6rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%); }
  .hero--page { padding: 3rem 0 4.75rem; }
  .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-card,
  .form-card { padding: 2.25rem; }
}

/* --------------------------------------------------------------------------
   20. Responsive – desktop (≥ 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  :root {
    --section-space: 5.5rem;
    --header-height: 5.25rem;
  }

  /* Desktop navigation */
  .site-header .navbar-collapse { margin-top: 0; }
  .site-header .navbar-nav {
    gap: 0.25rem;
    padding: 0;
    border-top: 0;
  }
  .site-header .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem;
    border-bottom: 0;
  }
  .site-header .nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }
  .site-header .nav-link:hover::after,
  .site-header .nav-link[aria-current='page']::after { transform: scaleX(1); }
  .site-header .nav-link[aria-current='page']::before { display: none; }
  .header-cta {
    width: auto;
    margin: 0 0 0 1rem;
  }

  .hero { padding: 5rem 0 7rem; }
  .hero--home { padding: 4.5rem 0 7.5rem; }
  .hero--page { padding: 3.75rem 0 5.5rem; }
  .hero::after { right: 8%; width: 11rem; }

  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card--stacked {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .ref-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .media-slant img { max-height: 28rem; }

  .cta-band { padding: 4.5rem 0; }
  .cta-band::after { display: block; }
  .cta-band__actions { justify-content: flex-end; }

  .contact-card--sticky {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }

  .footer-main { padding: 4rem 0 2.5rem; }
}

/* --------------------------------------------------------------------------
   21. Large desktop (≥ 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .site-header .nav-link { padding: 0.5rem 1rem !important; }
  .site-header .nav-link::after { left: 1rem; right: 1rem; }
  .hero__visual { max-width: 21rem; }
}

/* --------------------------------------------------------------------------
   22. Accessibility – reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .scroll-top,
  .cta-band,
  .hero__media,
  .contact-form { display: none !important; }
  .hero {
    clip-path: none;
    color: #000;
    background: none;
    padding: 1rem 0;
  }
  .hero::before,
  .hero::after { display: none; }
  .hero h1 { color: #000; }
  a { color: #000; text-decoration: underline; }
}
