@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   m²ingenieure — Modern Redesign
   Professional, clean, engineering-focused
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #0a7abf;
  --blue-light: #00b3ff;
  --blue-dark: #064a73;
  --orange: #e85d04;
  --orange-light: #f48c06;
  --ink: #1a1a2e;
  --ink-muted: #555b6e;
  --ink-faint: #8b90a0;
  --surface: #ffffff;
  --surface-warm: #f7f8fa;
  --surface-dark: #0f1729;
  --surface-dark-elevated: #162032;
  --border: #e2e5ec;
  --border-dark: #2a3348;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Container ────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Header ───────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-header .accent {
  font-weight: 700;
  color: var(--blue);
}

.section-header__line {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-header__line--light {
  background: var(--blue-light);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__brand img {
  height: 55px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,23,41,.88) 0%, rgba(10,122,191,.65) 100%),
    url('/img/kran.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  max-width: 720px;
  margin-left: 8%;
}

.hero__line {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -.02em;
}

.hero__spinner {
  font-weight: 700;
  color: var(--blue-light);
  display: inline-block;
  min-width: 180px;
}

.hero__divider {
  width: 80px;
  height: 3px;
  background: var(--blue-light);
  margin: 24px 0;
  border-radius: 2px;
}

.hero .btn {
  margin-top: 16px;
  padding: 14px 32px;
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* ── Services ─────────────────────────────────────────────── */

.services {
  padding: 100px 0;
  background: var(--surface);
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
  justify-content: center;
}

.service-card {
  flex: 1 1 300px;
  max-width: 380px;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--blue);
  border-top-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--blue);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--blue);
  color: #fff;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-card p {
  font-size: .95rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.services__cta {
  text-align: center;
}


/* ── Stats ────────────────────────────────────────────────── */

.stats {
  padding: 80px 0;
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,179,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.stats .section-header h2 {
  color: #fff;
}

.stats .section-header h2 .accent {
  color: var(--blue-light);
}
.stats .section-header h2 .stats__brand {
  text-transform: none;
  font-weight: 700;
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}


.stat__prefix {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--blue-light);
}
.stat__unit {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--blue-light);
  margin-left: 4px;
}

.stat__label {
  font-size: .9rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Team ─────────────────────────────────────────────────── */

.team {
  padding: 100px 0;
  background: var(--surface-warm);
}

.team-member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 64px;
  box-shadow: var(--shadow-sm);
}

.team-member__portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.team-member__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin-bottom: 24px;
  font-style: italic;
}

.team-member__quote strong {
  color: var(--ink);
  font-style: normal;
}

.team-member__degree {
  display: block;
  font-size: .85rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.team-member__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.team-member__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.team-member__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--blue);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--blue-dark);
}

/* ── Experience Timeline (horizontal) ─────────────────────── */

.exp {
  margin-bottom: 64px;
  overflow: hidden;
}

.exp__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.exp__header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp__header-icon--blue {
  background: var(--blue);
  color: #fff;
}

.exp__header-icon--orange {
  background: var(--orange);
  color: #fff;
}

.exp__header-text {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.exp__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.exp__track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.exp__track--blue::before {
  background: color-mix(in srgb, var(--blue) 30%, transparent);
}

.exp__track--orange::before {
  background: color-mix(in srgb, var(--orange) 30%, transparent);
}

.exp__step {
  position: relative;
  padding: 0 12px 32px;
  z-index: 1;
}

.exp__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--surface);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.exp__track--blue .exp__dot {
  border-color: var(--blue);
}

.exp__track--orange .exp__dot {
  border-color: var(--orange);
}

.exp__step:hover .exp__dot {
  background: var(--blue);
  transform: scale(1.3);
}

.exp__track--orange .exp__step:hover .exp__dot {
  background: var(--orange);
}

.exp__step--current .exp__dot {
  width: 16px;
  height: 16px;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent);
}

.exp__track--orange .exp__step--current .exp__dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent);
}

.exp__year {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.exp__track--orange .exp__year {
  color: var(--orange);
}

.exp__role {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}

.exp__company {
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.exp__step--current .exp__role {
  color: var(--blue);
}

.exp__step--current .exp__company {
  color: var(--blue);
  font-weight: 600;
}

.exp__track--orange .exp__step--current .exp__role,
.exp__track--orange .exp__step--current .exp__company {
  color: var(--orange);
}

/* ── References ───────────────────────────────────────────── */

.references {
  padding: 100px 0;
  background: var(--surface);
}

.references__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.reference-logo {
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: .6;
  filter: grayscale(100%);
  transition: all var(--transition);
}

.reference-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.reference-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.references__cta {
  text-align: center;
}

/* ── Partner ──────────────────────────────────────────────── */

.partner {
  padding: 60px 0 80px;
  background: var(--surface-warm);
}

.partner__logo {
  display: flex;
  justify-content: center;
  padding: 32px;
  transition: transform var(--transition);
}

.partner__logo:hover {
  transform: scale(1.03);
}

.partner__logo img {
  max-height: 60px;
}

/* ── Contact ──────────────────────────────────────────────── */

.contact {
  padding: 100px 0;
  background: var(--surface-dark);
  color: #fff;
}

.contact .section-header h2 {
  color: #fff;
}

.contact .section-header h2 .accent {
  color: var(--blue-light);
}

.contact__inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact__info {
  text-align: center;
  margin-bottom: 40px;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  transition: color var(--transition);
}

.contact__phone:hover {
  color: var(--blue-light);
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #fff;
  background: var(--surface-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--blue-light);
}

.form-input::placeholder {
  color: rgba(255,255,255,.3);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b90a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  position: relative;
}

.footer__top {
  position: absolute;
  top: -20px;
  right: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.footer__top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.footer__text {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-muted);
  padding: 16px 0;
}

.footer__text a {
  color: var(--blue);
  font-weight: 500;
}

.footer__credit {
  text-align: right;
  font-size: .75rem;
  color: var(--ink-faint);
  margin-top: -12px;
}

/* ── Notification ─────────────────────────────────────────── */

.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #10b981;
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--transition);
}

.notification button:hover {
  opacity: 1;
}

/* ── Scroll Reveal ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 24px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.open .nav__cta {
    display: inline-flex;
    position: absolute;
    top: calc(64px + 24px + 5 * (32px + 16px));
    left: 32px;
  }

  .hero__content {
    margin-left: 0;
    padding: 60px 24px;
  }

  .hero {
    min-height: 70vh;
  }

  .team-member {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .team-member__portrait {
    max-width: 240px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

}

@media (max-width: 600px) {
  .services__grid {
    flex-direction: column;
    align-items: center;
  }

  .hero__line {
    font-size: 1.8rem;
  }

  .references__grid {
    gap: 16px;
  }

  .reference-logo {
    width: 120px;
    height: 60px;
  }
}


/* ── Subpage Hero ─────────────────────────────────────────── */

.subpage-hero {
  position: relative;
  padding: 80px 0 48px;
  background: linear-gradient(135deg, rgba(15,23,41,.92) 0%, rgba(10,122,191,.85) 100%),
              url('/img/kran.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #fff;
}

.subpage-hero .accent {
  font-weight: 700;
  color: var(--blue-light);
}

.subpage-hero .section-header__line {
  margin: 0 auto;
  width: 80px;
  height: 3px;
  background: var(--blue-light);
  border: none;
}

/* ── Reference Cards (full page) ──────────────────────────── */

.references--full {
  padding: 80px 0;
  background: var(--surface);
}

.references__grid--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.reference-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.reference-card__carousel {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--dark);
}

.reference-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}

.reference-card__img.active {
  opacity: 1;
}

.reference-card__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

.carousel-btn {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.carousel-btn:hover {
  background: rgba(255,255,255,.4);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .2s ease;
}

.carousel-dot.active {
  background: #fff;
}

.reference-card__info {
  padding: 20px;
  text-align: center;
}

.reference-card__info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.reference-card__info p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

/* ── Impressum ────────────────────────────────────────────── */

.impressum {
  padding: 80px 0;
  background: var(--surface);
}

.impressum__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.impressum__card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.impressum__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 12px;
}

.impressum__card h3:first-child {
  margin-top: 0;
}

.impressum__card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin: 20px 0 8px;
}

.impressum__card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}

.impressum__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}

.impressum__contact a {
  color: var(--blue);
}

.impressum__source {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 24px;
}

/* ── Responsive additions ─────────────────────────────────── */

@media (max-width: 900px) {
  .impressum__grid {
    grid-template-columns: 1fr;
  }

  .references__grid--full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

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

@media (max-width: 600px) {
  .subpage-hero {
    padding: 64px 0 32px;
  }

  .references__grid--full {
    grid-template-columns: 1fr;
  }

  .reference-card__carousel {
    height: 180px;
  }

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