/* Ingenieurbüro Alka – zentrales Designsystem */

:root {
  --brand-900: #073b5c;
  --brand-800: #07527f;
  --brand-700: #07679f;
  --brand-600: #0879ba;
  --brand-100: #dceffa;
  --brand-050: #eff8fd;
  --ink-900: #182733;
  --ink-700: #394b59;
  --ink-500: #62717c;
  --line: #d8e2e9;
  --surface: #ffffff;
  --surface-soft: #f4f8fa;
  --page: #edf3f6;
  --success: #1f7152;

  --font: "Segoe UI", Arial, sans-serif;
  --container: 70rem;
  --content: 58rem;
  --header-height: 6.8rem;
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-lg: 0.375rem;
  --shadow-sm: 0 0.35rem 1.25rem rgba(7, 59, 92, 0.08);
  --shadow: 0 1rem 3rem rgba(7, 59, 92, 0.14);
  --ease: 180ms ease;
  --hero-gradient-horizontal: linear-gradient(90deg, rgba(4, 37, 58, 0.9) 0%, rgba(4, 51, 80, 0.58) 52%, rgba(4, 51, 80, 0.1) 100%);
  --hero-gradient-vertical: linear-gradient(0deg, rgba(4, 37, 58, 0.42), transparent 55%);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

/* Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink-700);
  background: var(--page);
  font: 400 1rem/1.7 var(--font);
  hyphens: auto;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-900);
}

:focus-visible {
  outline: 0.18rem solid var(--brand-600);
  outline-offset: 0.2rem;
}

::selection {
  color: #fff;
  background: var(--brand-700);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--ink-900);
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35em;
}

address {
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  padding: 0.8rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--brand-900);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header und Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 226, 233, 0.9);
  box-shadow: 0 0.2rem 1rem rgba(7, 59, 92, 0.06);
  backdrop-filter: blur(0.8rem);
}

.site-header-inner {
  width: min(var(--container), calc(100% - 2rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  position: relative;
  z-index: 1002;
  flex: 0 0 auto;
  width: clamp(9.5rem, 15vw, 10.25rem);
}

.site-logo img {
  width: 100%;
}

.site-nav > ul,
.submenu,
.footer-col ul,
.footer-contact,
.landing-metrics,
.landing-bullets,
.landing-story-list,
.landing-link-list,
.list-download {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav li {
  margin: 0;
}

.site-nav a,
.submenu-toggle {
  border-radius: var(--radius-sm);
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.82rem;
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--ease), background var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--brand-800);
  background: var(--brand-050);
}

.nav-group {
  display: flex;
  align-items: center;
}

.submenu-toggle {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.submenu-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 0.12rem solid currentColor;
  border-bottom: 0.12rem solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform var(--ease);
}

.submenu-toggle[aria-expanded="true"] .submenu-chevron {
  transform: translateY(0.1rem) rotate(225deg);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  width: 14rem;
  padding: 0.5rem;
  visibility: hidden;
  opacity: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, -0.4rem);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.submenu::before {
  content: "";
  position: absolute;
  inset: -0.75rem 0 auto;
  height: 0.75rem;
}

.submenu a {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  text-transform: none;
}

.has-submenu:hover .submenu,
.has-submenu.submenu-open .submenu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

/* Seitenrahmen */
#site-main {
  width: 100%;
  padding-bottom: var(--space-7);
}

#site-main > article,
.landing-inner,
.landing-cta-grid,
.tuev-zertifikat {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

#site-main > article {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-5);
}

#site-main > article > section:not(.grauer_kasten, .white_box),
#site-main > article > div:not(.content-grid, .project-grid, .values-grid, .team-grid, .benefits-grid, .sub-grid, .related-links, .leistungen-cta, .note-box, .location-grid) {
  min-width: 0;
}

/* Innenbereich-Hero */
.page-hero-frame {
  --hero-image: none;
  --hero-position: center;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(14rem, 32vw, 24rem);
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: end;
  background-color: var(--brand-900);
  background-image:
    var(--hero-gradient-horizontal),
    var(--hero-gradient-vertical),
    var(--hero-image);
  background-position: center, center, var(--hero-position);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  border-radius: 0;
  box-shadow: none;
}

#fehler404 .page-hero-frame,
#datenschutz .page-hero-frame,
#impressum .page-hero-frame,
#leistungen .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_infrastruktur_2026.jpg");
}

#abwasser .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_abwasser_2026.jpg");
}

#gas_biogas .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_biogas_2026.jpg");
}

#gis .page-hero-frame {
  --hero-image: url("../img/headerbilder/gis_planung.jpg");
}

#karriere .page-hero-frame {
  --hero-image: url("../img/headerbilder/karriere_ausbildung.jpg");
}

#kontakt .page-hero-frame {
  --hero-image: url("../img/headerbilder/empfang.jpg");
}

#projekte .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_infrastruktur_2026.jpg");
}

#strassenbau .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_strassenbau_2026.jpg");
}

#ueber-uns .page-hero-frame {
  --hero-image: url("../img/headerbilder/buero_gebaeude.jpg");
}

#vermessung .page-hero-frame {
  --hero-image: url("../img/headerbilder/vermessung_leica.jpg");
}

#wasser .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_wasser_2026.jpg");
}

#windenergie .page-hero-frame {
  --hero-image: url("../img/headerbilder/hero_windenergie_2026.jpg");
}

.page-hero-frame::after,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -18rem 55%;
  z-index: -1;
  width: 38rem;
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.page-hero-title {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vw, 3.75rem);
}

.page-hero-frame--with-intro .page-hero-title {
  padding-bottom: clamp(7rem, 10vw, 8rem);
}

.page-hero-title h1 {
  max-width: 48rem;
  margin: 0;
  padding-top: 0.5em;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  hyphens: auto;
  overflow-wrap: break-word;
  text-shadow: 0 0.12rem 1.2rem rgba(0, 0, 0, 0.25);
}

/* Gemeinsame Inhaltsbausteine */
.page-intro,
.services-intro {
  position: relative;
  z-index: 2;
  width: min(48rem, calc(100% - 3rem));
  max-width: none;
  margin: -6.5rem 0 0 auto;
}

.page-intro,
.services-intro,
.landing-hero-card {
  padding: 1.8rem 2rem;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-intro p,
.services-intro p {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  line-height: 1.55;
}

.page-intro .eyebrow {
  display: block;
}

.page-intro + *,
.services-intro + * {
  margin-top: 1.5rem;
}

.highlight {
  color: var(--brand-700);
  font-style: normal;
  font-weight: 650;
}

.page-intro .highlight {
  hyphens: none;
}

.content-grid,
.sub-grid,
.services-grid,
.values-grid,
.team-grid,
.project-grid,
.benefits-grid,
.location-grid {
  display: grid;
  gap: var(--space-4);
}

.content-grid,
.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.white_box,
.grauer_kasten,
.content-grid > section,
.content-grid > div {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grauer_kasten {
  background: var(--surface-soft);
}

.standard_padding {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.halbe_breite {
  width: auto;
}

.white_box h2,
.grauer_kasten h2,
.content-grid h2 {
  color: var(--brand-800);
}

.white_box img,
.grauer_kasten img,
.content-grid img {
  width: 100%;
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
}

.section-photo {
  width: 100%;
  max-height: 26rem;
  margin: 0 0 var(--space-4);
  object-fit: cover;
  border-radius: var(--radius);
}

.section-photo--tall {
  max-height: 34rem;
  object-position: center 28%;
}

/* Wasser: kompakte Bildmodule statt vollbreiter Fließtextbilder */
.water-supply-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

.water-supply-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.water-media {
  overflow: hidden;
}

.water-media img,
.white_box .water-media img,
.content-grid .water-media img {
  width: 100%;
  height: 7.5rem;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.72) contrast(0.96);
  opacity: 0.88;
}

.water-media--supply img {
  aspect-ratio: auto;
}

.water-card-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-3);
}

.water-card-lead p {
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.2rem;
  color: var(--ink-500);
  background: var(--brand-050);
  border-left: 0.25rem solid var(--brand-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.related-links a {
  padding: 0.3rem 0.6rem;
  font-weight: 650;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.eingerueckt {
  margin-left: 1rem;
}

.lak_table .first {
  width: 5rem;
  color: var(--brand-800);
  font-weight: 700;
}

/* Buttons und Handlungsaufforderungen */
.btn-primary,
.landing-btn,
.service-card-link,
.contact-actions a {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: var(--brand-700);
  border: 1px solid var(--brand-700);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-primary:hover,
.landing-btn:hover,
.service-card-link:hover,
.contact-actions a:hover {
  color: #fff;
  background: var(--brand-900);
  border-color: var(--brand-900);
  transform: translateY(-0.1rem);
}

.landing-btn-secondary {
  color: var(--brand-900);
  background: #fff;
  border-color: var(--line);
}

.landing-btn-secondary:hover {
  color: var(--brand-900);
  background: var(--brand-100);
  border-color: var(--brand-100);
}

.leistungen-cta {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: #fff;
  background: linear-gradient(130deg, var(--brand-900), var(--brand-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.leistungen-cta h2,
.leistungen-cta p {
  color: #fff;
}

.leistungen-cta .btn-primary {
  color: var(--brand-900);
  background: #fff;
  border-color: #fff;
}

/* Leistungen */
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 6.5rem 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card-accent {
  padding: 1.4rem 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-900), var(--brand-600));
}

.service-card-accent h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.service-card-abbr {
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
  opacity: 0.72;
}

.services-grid > .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.service-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-card-body p {
  flex: 1;
}

.service-card-link {
  min-height: auto;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.leistungen-card {
  padding: 1rem;
  color: var(--brand-900);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
}

/* Über uns */
.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.team-card,
.benefit-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.value-card h3,
.team-card h3,
.benefit-card h3 {
  color: var(--brand-800);
}

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  position: relative;
  padding-left: 6.2rem;
}

.team-avatar {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 3.7rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 750;
  background: var(--brand-700);
  border-radius: 50%;
}

.team-role {
  display: block;
  margin: -0.35rem 0 0.75rem;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 4.1rem;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-4);
  margin: 0;
  padding: 0 0 var(--space-4);
}

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

.timeline-date {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 0.35rem 0.55rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  background: var(--brand-700);
  border-radius: var(--radius-sm);
}

/* Projekte */
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-card-header {
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  color: #fff;
  background: var(--brand-800);
}

.project-tag {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-year {
  opacity: 0.75;
}

.project-card-body {
  padding: 1.35rem;
}

.project-card-body h3 {
  color: var(--brand-800);
}

.project-location {
  margin-top: var(--space-3);
  color: var(--ink-500);
  font-size: 0.9rem;
}

.note-box {
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: baseline;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
}

.note-box a {
  font-weight: 700;
}

/* Karriere */
.career-section,
.career-apply {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  scroll-margin-top: calc(var(--header-height) + 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.career-section-header {
  display: flex;
  gap: var(--space-5);
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.career-section-header > div {
  max-width: 46rem;
}

.career-section-header p,
.career-culture-copy > p {
  margin-bottom: 0;
}

.career-section-header .btn-primary {
  flex: 0 0 auto;
}

.career-culture {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  gap: var(--space-5);
  align-items: start;
}

#karriere .benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-4);
  margin-top: var(--space-4);
}

#karriere .benefit-card {
  padding: var(--space-3) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

#karriere .benefit-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

#karriere .benefit-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.55;
}

.karriere-fotos {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
}

.karriere-fotos .section-photo {
  height: 11rem;
  margin: 0;
  filter: saturate(0.82) contrast(0.97);
}

.section-heading {
  margin-top: var(--space-5);
}

.list-download {
  display: grid;
  gap: var(--space-2);
}

.job-toggle {
  width: 100%;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  color: var(--brand-900);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.job-toggle:hover,
.job-toggle[aria-expanded="true"] {
  color: var(--brand-800);
  background: var(--brand-050);
  border-color: var(--brand-100);
}

.job-toggle-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  column-gap: 0.45rem;
  align-items: center;
}

.job-toggle-main::before {
  content: "+";
  grid-row: 1 / 3;
  grid-column: 1;
  font-size: 1.3rem;
  font-weight: 400;
}

.job-toggle[aria-expanded="true"] .job-toggle-main::before {
  content: "–";
}

.job-toggle-main strong,
.job-toggle-main small {
  grid-column: 2;
}

.job-toggle-main strong {
  font-size: 1rem;
  line-height: 1.4;
  hyphens: none;
}

.job-toggle-main small {
  margin-top: 0.1rem;
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.4;
}

.job-toggle .size {
  padding: 0.2rem 0.5rem;
  color: var(--brand-800);
  white-space: nowrap;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
}

.job_description {
  padding: var(--space-4);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.quali_untertitel {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: 0.4rem 0.6rem;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.job-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.job-details-grid h3 {
  color: var(--brand-800);
  font-size: 1.15rem;
}

.job-details-grid p {
  margin-bottom: var(--space-2);
}

.pdf_link {
  display: inline-block;
  margin-top: var(--space-3);
  font-weight: 700;
}

.career-apply {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  gap: var(--space-5);
  align-items: center;
  background: var(--brand-050);
  border-color: var(--brand-100);
}

.career-apply > div > p {
  max-width: 44rem;
}

.career-apply address {
  padding: var(--space-4);
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--line);
}

.career-privacy {
  margin: var(--space-3) 0 0;
  color: var(--ink-500);
  font-size: 0.86rem;
}

/* Kontakt */
.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.eyebrow,
.landing-kicker,
.landing-service-tag {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.location-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.location-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.location-grid figcaption {
  padding: 0.8rem 1rem;
  color: var(--ink-500);
  font-size: 0.9rem;
}

/* Startseite */
.landing-shell {
  overflow: hidden;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  color: #fff;
  background-color: var(--brand-900);
  background-image:
    var(--hero-gradient-horizontal),
    var(--hero-gradient-vertical),
    url("../img/headerbilder/hero_infrastruktur_2026.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.landing-hero-grid,
.landing-process-grid,
.landing-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.landing-kicker {
  padding: 0.35rem 0.6rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

.landing-copy h1 {
  color: #fff;
}

.landing-copy h1 {
  max-width: 13ch;
}

.landing-lead {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.landing-hero .landing-btn-primary {
  color: var(--brand-900);
  background: #fff;
  border-color: #fff;
}

.landing-hero .landing-btn-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.landing-metrics li {
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.landing-metrics strong,
.landing-metrics span {
  display: block;
}

.landing-metrics span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

.landing-hero-card {
  color: var(--ink-900);
}

.landing-hero-card h2 {
  padding: .5em .5em .5em 0;
  color: var(--brand-900);
  border-bottom: 1px solid var(--brand-800);
}

.landing-hero-card p,
.landing-bullets {
  color: var(--ink-700);
}

.landing-bullets {
  display: grid;
  gap: 0.8rem;
}

.landing-bullets li {
  position: relative;
  margin: 0;
  padding-left: 1.2rem;
}

.landing-bullets li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.45rem;
  aspect-ratio: 1;
  background: var(--brand-700);
  border-radius: 0;
}

.landing-section {
  padding-block: var(--space-7);
}

.landing-section + .landing-section {
  border-top: 1px solid var(--line);
}

.landing-section--photo {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--container)) / 2));
  background:
    linear-gradient(rgba(244, 248, 250, 0.93), rgba(244, 248, 250, 0.93)),
    url("../img/buero_planung.jpg") center / cover;
  background-attachment: fixed;
}

.landing-section-header {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
}

.landing-section-header > div {
  max-width: 48rem;
}

.landing-section-header p {
  color: var(--ink-500);
  font-size: 1.06rem;
}

.landing-highlight-grid,
.landing-service-grid,
.landing-steps {
  display: grid;
  gap: var(--space-4);
}

.landing-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-highlight-card,
.landing-service-card,
.landing-step,
.landing-story,
.landing-cta-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.landing-highlight-card strong,
.landing-highlight-card span,
.landing-step strong {
  display: block;
}

.landing-highlight-card strong,
.landing-step strong {
  margin-bottom: 0.4rem;
  color: var(--brand-800);
  font-size: 1.12rem;
}

.landing-highlight-card span {
  color: var(--ink-500);
}

.landing-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-service-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}

.landing-service-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--shadow);
}

.landing-service-card p {
  flex: 1;
}

.landing-service-card > a {
  align-self: start;
  font-weight: 700;
  text-decoration: none;
}

.landing-process-grid {
  align-items: stretch;
}

.landing-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-step small {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-700);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-story {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-900), var(--brand-700));
  border: 0;
}

.landing-story h3 {
  color: #fff;
}

.landing-story-list {
  display: grid;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.82);
}

.landing-cta-grid {
  padding-bottom: var(--space-7);
  align-items: stretch;
}

.landing-cta-main {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  border: 0;
}

.landing-cta-main h2 {
  color: #fff;
}

.landing-cta-main .landing-btn-primary {
  color: var(--brand-900);
  background: #fff;
  border-color: #fff;
}

.landing-link-list {
  display: grid;
  gap: 0.35rem;
}

.landing-link-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.65rem 0;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* Footer */
.tuev-zertifikat {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tuev-zertifikat img {
  width: 100%;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-900);
}

.footer-inner {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.footer-grid {
  padding: var(--space-6) 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: var(--space-6);
}

.footer-brand {
  display: block;
  margin-bottom: var(--space-2);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-col h3 {
  margin: 0 0 var(--space-2);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col h3:not(:first-child) {
  margin-top: var(--space-4);
}

.footer-col li {
  margin: 0 0 0.3rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact {
  margin-top: var(--space-3);
}

.footer-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.35rem 0.6rem;
  color: #fff;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

.footer-bottom {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: var(--space-3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.76);
}

/* Responsive Navigation */
@media (max-width: 63.999rem) {
  .site-logo {
    width: 9.5rem;
  }

  .site-header-inner {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .nav-toggle {
    position: relative;
    z-index: 1002;
    min-width: 6.2rem;
    height: 2.8rem;
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: var(--brand-900);
    font-weight: 700;
    background: var(--brand-050);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    width: 1.25rem;
    height: 0.12rem;
    display: block;
    background: currentColor;
    transition: transform var(--ease), opacity var(--ease);
  }

  .nav-toggle-icon {
    position: relative;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-icon::before {
    top: -0.38rem;
  }

  .nav-toggle-icon::after {
    top: 0.38rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(23rem, 88vw);
    height: 100dvh;
    padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    overflow-y: auto;
    visibility: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform 240ms ease, visibility 240ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .site-nav > ul {
    display: grid;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
    font-size: 0.92rem;
  }

  .nav-group > a {
    flex: 1;
  }

  .submenu-toggle {
    width: 2.8rem;
    height: 2.8rem;
    background: var(--brand-050);
  }

  .submenu {
    position: static;
    width: 100%;
    max-height: 0;
    margin: 0.2rem 0 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 1;
    background: var(--surface-soft);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: none;
    transform: none;
    transition: max-height 260ms ease, visibility 260ms ease, padding 260ms ease;
  }

  .has-submenu:hover .submenu {
    max-height: 0;
    visibility: hidden;
    transform: none;
  }

  .has-submenu.submenu-open .submenu {
    max-height: 32rem;
    padding: 0.4rem;
    visibility: visible;
    transform: none;
  }

  .submenu::before {
    content: none;
  }

  .submenu a {
    padding: 0.62rem 0.75rem;
    font-size: 0.88rem;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    padding: 0;
    visibility: hidden;
    display: block;
    opacity: 0;
    background: rgba(4, 37, 58, 0.62);
    border: 0;
    backdrop-filter: blur(0.15rem);
    transition: opacity var(--ease), visibility var(--ease);
  }

  .site-nav.is-open ~ .nav-backdrop {
    visibility: visible;
    opacity: 1;
  }
}

/* Responsive Inhalte */
@media (max-width: 60rem) {
  .values-grid,
  .landing-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero-grid,
  .landing-process-grid,
  .landing-cta-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-card {
    max-width: 44rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47rem) {
  :root {
    --space-7: 3.25rem;
  }

  #site-main > article,
  .landing-inner,
  .landing-cta-grid,
  .tuev-zertifikat {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .page-hero-frame {
    min-height: 15rem;
    background-position: center, center, center 0;
    background-size: cover, cover, auto 30rem;
  }

  .page-intro,
  .services-intro {
    width: calc(100% - 1rem);
    margin-top: -4rem;
  }

  .page-intro,
  .services-intro,
  .landing-hero-card {
    padding: 1.4rem;
  }

  .page-hero-title {
    width: min(var(--container), calc(100% - 1.25rem));
    padding-block: 1.35rem;
  }

  .page-hero-frame--with-intro .page-hero-title {
    padding-bottom: 4.5rem;
  }

  .content-grid,
  .sub-grid,
  .services-grid,
  .team-grid,
  .project-grid,
  .location-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .water-supply-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: 5.5rem 1fr;
  }

  .leistungen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    width: 100%;
  }

  .career-section,
  .career-apply {
    padding: 1.25rem;
  }

  .career-section-header,
  .career-culture,
  .career-apply,
  .job-details-grid {
    grid-template-columns: 1fr;
  }

  .career-section-header {
    display: grid;
    gap: var(--space-3);
    align-items: start;
  }

  .career-section-header .btn-primary {
    justify-self: start;
  }

  #karriere .benefits-grid {
    grid-template-columns: 1fr;
  }

  .job-toggle {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .job-toggle .size {
    justify-self: start;
  }

  .karriere-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .karriere-fotos .section-photo {
    height: 8rem;
  }

  .landing-hero {
    padding: var(--space-6) 0;
  }

  .landing-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .landing-metrics,
  .landing-highlight-grid,
  .landing-service-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-section-header {
    align-items: start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    padding: var(--space-3) 0;
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }

  .tuev-zertifikat {
    grid-template-columns: 5rem 1fr;
  }
}

@media (max-width: 33rem) {
  .site-logo {
    width: 9rem;
  }

  .nav-toggle-text {
    display: none;
  }

  .nav-toggle {
    min-width: 2.8rem;
    padding: 0 0.72rem;
  }

  .team-card {
    padding-left: var(--space-4);
    padding-top: 5.8rem;
  }

  .timeline::before {
    left: 0.8rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-left: 2rem;
  }

  .timeline-date {
    justify-self: start;
  }

  .job-toggle {
    grid-template-columns: 1fr;
  }

  .job-toggle .size {
    justify-self: start;
  }

  .tuev-zertifikat {
    grid-template-columns: 1fr;
  }

  .tuev-zertifikat img {
    width: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .tuev-zertifikat,
  .landing-actions,
  .leistungen-cta,
  .nav-backdrop {
    display: none !important;
  }

  body,
  #site-main,
  #site-main > article {
    display: block;
    color: #000;
    background: #fff;
  }

  .page-hero-frame {
    min-height: 0;
    margin: 0 0 1rem;
  }

  .page-hero-frame {
    background: none !important;
  }

  .page-hero-frame::after {
    display: none;
  }

  .page-hero-title {
    padding: 0;
  }

  .page-hero-title h1 {
    color: #000;
    text-shadow: none;
  }

  a {
    color: #000;
  }
}
