:root {
  --blue: #00487d;
  --blue-medium: #0066b3;
  --blue-soft: #eaf3f8;
  --orange: #f56b23;
  --ink: #263746;
  --text: #505050;
  --muted: #6f7d88;
  --line: #dce5ea;
  --soft: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(24, 57, 79, 0.10);
  --radius: 18px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-medium);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4.6vw, 4.05rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 620;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  font-weight: 650;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--soft);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--blue-medium);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-kicker-light {
  color: #b7daf1;
}

.section-intro {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #00487d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 720;
}

.brand-text span {
  margin-top: 4px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 7px;
  color: #f2f2f2;
  font-size: 0.9rem;
  font-weight: 620;
}

.site-nav a:hover {
  color: var(--white);
  background: var(--blue-medium);
  text-decoration: none;
}

.site-nav .nav-contact {
  margin-left: 6px;
  color: var(--white);
  background: transparent;
}

.site-nav .nav-contact:hover {
  color: var(--white);
  background: var(--blue-medium);
}

.site-nav .nav-intranet {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: transparent;
}

.site-nav .nav-intranet:hover {
  border-color: var(--white);
  color: var(--blue);
  background: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 9px 12px;
  color: var(--white);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-toggle-icon {
  font-size: 1.25rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #102d42;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(9, 33, 50, 0.96) 0%,
      rgba(9, 33, 50, 0.87) 42%,
      rgba(9, 33, 50, 0.42) 74%,
      rgba(9, 33, 50, 0.20) 100%
    ),
    url("../images/leistungen.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-copy {
  max-width: 700px;
}

.hero .eyebrow {
  margin-bottom: 15px;
  color: #a8d0eb;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #e4edf3;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue-medium);
}

.button-primary:hover {
  color: var(--white);
  background: #0878ce;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.quote-band {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quote-inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.quote-inner blockquote,
.quote-inner p {
  margin: 0;
}

.quote-inner blockquote {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 560;
}

.quote-inner p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 20px;
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 25px rgba(33, 63, 83, 0.05);
}

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

.card-body {
  padding: 22px;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 650;
}

/* Expertise */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.expertise-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.expertise-card img {
  width: 100%;
  height: 100%;
  min-height: 195px;
  object-fit: cover;
}

.expertise-card > div {
  padding: 22px 20px 20px 0;
}

.expertise-number {
  margin-bottom: 28px;
  color: var(--blue-medium);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.small-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Work model */

.work-model {
  background: linear-gradient(180deg, #eef5f9 0%, #f8fafb 100%);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.split-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.split-copy p {
  max-width: 700px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid #cadbe5;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  font-weight: 650;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 60px;
  align-items: center;
}

.about-statement {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workshop-box {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 46px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.workshop-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.workshop-box h3 {
  font-size: 1.45rem;
}

/* Contact */

.contact-section {
  padding: 72px 0;
  color: #dbeaf4;
  background: var(--blue);
}

.contact-section h2 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 670px;
  color: #dbeaf4;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.button-light {
  color: var(--blue);
  background: var(--white);
}

.button-light:hover {
  color: var(--blue);
  background: #edf6fb;
}

.contact-phone {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-phone:hover {
  color: var(--white);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #e7f2f9;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 6px;
  color: var(--white);
}

.contact-card a {
  margin-top: 8px;
  color: var(--white);
  font-weight: 650;
}

/* Footer */

.site-footer {
  padding: 24px 0;
  color: #8093a0;
  background: #0e2738;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: #c3d0d8;
  font-size: 0.84rem;
}

.footer-nav a:hover {
  color: var(--white);
}

/* Responsive */

@media (max-width: 980px) {
  .section {
    padding: 56px 0;
  }

  .section-heading,
  .split-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  }

  .service-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 48px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #00487d;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav .nav-contact,
  .site-nav .nav-intranet {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    min-height: 520px;
  }

  .hero-image {
    background:
      linear-gradient(
        90deg,
        rgba(9, 33, 50, 0.96) 0%,
        rgba(9, 33, 50, 0.88) 65%,
        rgba(9, 33, 50, 0.58) 100%
      ),
      url("../images/leistungen.jpg") center / cover no-repeat;
  }

  .quote-inner {
    flex-direction: column;
    gap: 4px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .workshop-box {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand-text strong {
    max-width: 210px;
  }

  .brand-text span {
    font-size: 0.68rem;
  }

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

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section {
    padding: 56px 0;
  }

  .service-card {
    display: block;
  }

  .service-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .expertise-card {
    grid-template-columns: 1fr;
  }

  .expertise-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .expertise-card > div {
    padding: 0 22px 24px;
  }

  .expertise-number {
    margin: 18px 0 10px;
  }

  .workshop-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .contact-section {
    padding: 58px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

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

  .button {
    transition: none;
  }
}

/* --------------------------------------------------
 * Legal pages: Impressum / Disclaimer
 * -------------------------------------------------- */

.legal-page {
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h1,
.legal-content h2 {
  margin-top: 0;
}

.legal-content h2:not(:first-child) {
  margin-top: 42px;
}

.legal-content h4 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.legal-content .paragraph {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .legal-page {
    padding: 40px 0 54px;
  }
}
