/* ============================================================
   ITM GmbH – Website Stylesheet
   Modern, responsive, brand-aligned
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --clr-red:       #E30613;
  --clr-red-dark:  #B8000F;
  --clr-red-light: #FF3347;
  --clr-dark:      #909499;
  --clr-charcoal:  #9FA3A8;
  --clr-gray:      #F4F4F6;
  --clr-gray-mid:  #E8E8EC;
  --clr-text:      #333333;
  --clr-text-muted:#666666;
  --clr-white:     #FFFFFF;

  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --radius:        10px;
  --radius-lg:     18px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.14);

  --max-w:         1200px;
  --section-py:    96px;
  --transition:    0.25s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-py);
}

.section--gray { background: var(--clr-gray); }
.section--dark { background: var(--clr-dark); }

.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 12px;
}

.section__tag--light { color: var(--clr-red); }

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--clr-dark);
}

.section__title--light { color: var(--clr-white); }

.section__lead {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 620px;
  margin-bottom: 52px;
}

.section__lead--light { color: rgba(255,255,255,.85); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-red);
  color: var(--clr-white);
}
.btn--primary:hover {
  background: var(--clr-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,6,19,.3);
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.1);
}

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

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--clr-gray-mid);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-itm {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--clr-red);
  letter-spacing: -.03em;
  font-style: italic;
  line-height: 1;
}

.logo-itm--sm {
  font-size: 1.25rem;
}

.nav__logo-img {
  height: 42px;
  width: auto;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  background: #8A8E93;
  padding: 4px 8px;
  border-radius: 6px;
}

.logo-text {
  font-size: .7rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  max-width: 160px;
  line-height: 1.3;
}

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

.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover { color: var(--clr-red); background: rgba(227,6,19,.06); }

.nav__link--cta {
  background: var(--clr-red);
  color: var(--clr-white);
  border-radius: 50px;
  padding: 8px 20px;
}
.nav__link--cta:hover {
  background: var(--clr-red-dark);
  color: var(--clr-white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1.5%, 1%); }
  100% { transform: scale(1)    translate(0, 0); }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/itm-background.png') center center / cover no-repeat;
  filter: brightness(0.55) saturate(0.75);
  animation: kenburns 20s ease-in-out infinite;
  will-change: transform;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 14, 26, 0.75) 0%,
    rgba(10, 14, 26, 0.50) 50%,
    rgba(10, 14, 26, 0.25) 100%
  );
}

.hero__bg--old::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(227,6,19,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(227,6,19,.08) 0%, transparent 50%);
}


.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 120px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100svh - 72px);
}

.hero__text {
  max-width: 640px;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual {
  position: relative;
}

.hero__visual-img {
  width: 100%;
  max-width: 520px;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(227,6,19,0.2);
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(227,6,19,0.08) 0%, transparent 60%),
              linear-gradient(to left, transparent 60%, rgba(110,114,120,0.4) 100%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clr-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.5); }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 24px;
}

.hero__accent { color: var(--clr-red); }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.05);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-inline: 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.stat:last-child { border-right: none; }

.hero__stats-inner--single {
  grid-template-columns: 1fr;
  max-width: 220px;
}

.stat__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--clr-red);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(227,6,19,0.5), 0 2px 8px rgba(0,0,0,0.4);
}

.stat__label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  font-weight: 500;
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__milestones {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--clr-red);
  padding-left: 24px;
}

.milestone {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  position: relative;
}

.milestone::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-red);
  border: 3px solid var(--clr-white);
  box-shadow: 0 0 0 2px var(--clr-red);
}

.milestone:last-child { padding-bottom: 0; }

.milestone__year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-red);
  letter-spacing: .08em;
}

.milestone__event {
  font-size: .95rem;
  font-weight: 500;
  color: var(--clr-dark);
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__card {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__card--red {
  background: linear-gradient(135deg, var(--clr-red), #9B0210);
  color: var(--clr-white);
}

.about__card--red svg {
  width: 40px;
  height: 40px;
}

.about__card--red strong {
  font-size: 1rem;
  font-weight: 700;
}

.about__card--red p {
  font-size: .85rem;
  opacity: .8;
}

.about__location {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--clr-gray);
  border-radius: var(--radius-lg);
}

.about__location svg {
  width: 28px;
  height: 28px;
  color: var(--clr-red);
  flex-shrink: 0;
}

.about__location div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__location strong {
  font-size: .95rem;
  color: var(--clr-dark);
}

.about__location span {
  font-size: .85rem;
  color: var(--clr-text-muted);
}

/* ---------- MARKETS ---------- */
.markets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1152px;
}

.market-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.market-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.market-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(227,6,19,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-red);
}

.market-card__icon svg { width: 26px; height: 26px; }

.market-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-dark);
}

.market-card p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ---------- TECHNOLOGY ---------- */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1152px;
}

.tech-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tech-card__header {
  margin-bottom: 12px;
}

.tech-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(227,6,19,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-red);
}

.tech-card__icon svg { width: 26px; height: 26px; stroke: var(--clr-red); }

.tech-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-dark);
}

.tech-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-card__list li {
  font-size: .9rem;
  color: var(--clr-text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.tech-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
}

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service {
  background: #9FA3A8;
  padding: 48px 36px;
  transition: background var(--transition);
}

.service:hover { background: #AFAEB3; }

.service__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-red);
  opacity: .7;
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.service h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.service ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service ul li {
  font-size: .875rem;
  color: rgba(255,255,255,.9);
  padding-left: 16px;
  position: relative;
}

.service ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-red);
}

/* ---------- PARTNERS ---------- */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners__marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partners__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  gap: 0;
}

.partners__track:hover {
  animation-play-state: paused;
}

.partner-logo {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-mid);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 110px;
  min-width: 180px;
  margin: 0 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.partner-logo:hover {
  border-color: var(--clr-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.partner-logo__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -.01em;
}

.partner-logo__name--red { color: var(--clr-red); }

.partner-logo__sub {
  font-size: .7rem;
  color: var(--clr-text-muted);
  font-style: italic;
}

.partner-logo__img {
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.partner-logo:hover .partner-logo__img {
  filter: grayscale(0%);
}

/* ---------- TEAM ---------- */
.team__departments {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 48px;
  align-items: start;
}

.department__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 20px;
}

.team__members {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 90px;
}

.team-member__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-red), #9B0210);
  color: var(--clr-white);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-member span {
  font-size: .78rem;
  color: var(--clr-text-muted);
  line-height: 1.3;
}

/* ---------- CONTACT ---------- */
.contact__grid {
  display: flex;
  justify-content: flex-start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 320px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__icon {
  width: 52px;
  height: 52px;
  background: rgba(227,6,19,.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-red);
}

.contact__icon svg { width: 24px; height: 24px; }

.contact__item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__item strong {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
}

.contact__item span,
.contact__item a {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  line-height: 1.5;
}

.contact__item a:hover { color: var(--clr-red); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form__group input,
.form__group select,
.form__group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--clr-white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(255,255,255,.25); }

.form__group select option { background: var(--clr-charcoal); color: var(--clr-white); }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--clr-red);
  background: rgba(255,255,255,.1);
}

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

/* ---------- FOOTER ---------- */
.footer {
  background: #8A8E93;
  padding-block: 48px 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer__brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--clr-red); }

.footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 24px;
}

/* ---------- STANDORT ---------- */
.standort__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.standort__map-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 2-Klick Consent Box */
.map-consent {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  background: var(--clr-gray);
  border: 1px solid var(--clr-gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 320px;
  padding: 32px;
}

.map-consent__inner svg {
  width: 48px;
  height: 48px;
  color: var(--clr-red);
  opacity: 0.7;
}

.map-consent__inner p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.map-consent__privacy {
  font-size: .78rem;
  color: var(--clr-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-consent__privacy:hover { color: var(--clr-red); }

.standort__map {
  width: 100%;
  height: 460px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.standort__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 460px;
}

.standort__address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--clr-gray);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.standort__address svg {
  width: 20px;
  height: 20px;
  color: var(--clr-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.standort__address div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.standort__address strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
}

.standort__address span {
  font-size: .85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.standort__pe {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .standort__grid { grid-template-columns: 1fr; }
  .standort__map { height: 280px; }
  .map-consent { height: 280px; }
  .map-consent__inner {
    padding: 20px 16px;
    gap: 10px;
  }
  .map-consent__inner svg {
    width: 32px;
    height: 32px;
  }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-red);
  color: var(--clr-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--clr-red-dark);
  transform: translateY(-2px);
}

.back-to-top svg { width: 20px; height: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .markets__grid,
  .tech__grid { grid-template-columns: repeat(2, 1fr); }

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

  .about__grid { grid-template-columns: 1fr; gap: 48px; }

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

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  /* backdrop-filter entfernen damit position:fixed Menü korrekt gegen Viewport positioniert wird */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.97);
  }

  .hero {
    min-height: 100svh;
    overflow-x: hidden;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 60px 32px;
    min-height: auto;
  }

  .hero__text {
    width: 100%;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero__title span {
    white-space: normal;
  }

  .hero__badge {
    font-size: .75rem;
    padding: 6px 16px;
    letter-spacing: .04em;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__visual { display: none; }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-evenly;
    padding: 16px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.open { transform: translateX(0); }

  .nav__menu > li {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .nav__link {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav__link--cta {
    text-align: center;
    justify-content: center;
  }

  .nav__toggle { display: flex; }

  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .logo-text { display: none; }

  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }

  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }

  .markets__grid,
  .tech__grid { grid-template-columns: 1fr 1fr; }

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

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero__badge {
    font-size: .7rem;
    padding: 5px 14px;
    max-width: 100%;
  }

  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }

  .markets__grid,
  .tech__grid { grid-template-columns: 1fr; }

  .partner-logo { min-width: 150px; padding: 20px 20px; }

  /* Modal auf Mobile */
  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal__box {
    padding: 28px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 90vh;
    max-height: 90dvh;
  }

  .modal__close {
    top: 14px;
    right: 14px;
  }

  .modal__title {
    font-size: 1.3rem;
    padding-right: 44px;
  }

  /* AGB Tabs auf Mobile */
  .agb-tabs {
    gap: 6px;
  }

  .agb-tab {
    padding: 6px 12px;
    font-size: .78rem;
  }

  /* Footer Legal auf Mobile */
  .footer__legal {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ---------- FOOTER LEGAL ---------- */
.footer__legal {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

.footer__legal-link {
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-family: var(--font);
  padding: 0;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}

.footer__legal-link:hover {
  color: var(--clr-red);
  text-decoration-color: var(--clr-red);
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  padding: 0;
}

.footer__linkedin svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer__linkedin:hover {
  color: #0A66C2;
}

/* ---------- MODALS ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.modal.open .modal__overlay { opacity: 1; }

.modal__box {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.open .modal__box {
  transform: translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover { background: var(--clr-red); color: white; }
.modal__close svg { width: 16px; height: 16px; }

.modal__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--clr-red);
}

.modal__note {
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.modal__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin: 24px 0 8px;
}

.modal__content h3:first-of-type { margin-top: 0; }

.modal__content p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.modal__content a {
  color: var(--clr-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal-delay="300"] { transition-delay: .3s; }

/* ---------- AGB TABS ---------- */
.agb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.agb-tab {
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--clr-gray-mid);
  border-radius: 20px;
  background: var(--clr-white);
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.agb-tab:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
}

.agb-tab--active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: var(--clr-white);
}

.agb-pane { display: none; }
.agb-pane--active { display: block; }

.agb-doc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-red);
}

.agb-section {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 20px 0 8px;
}

.agb-para {
  font-size: .82rem !important;
  line-height: 1.65 !important;
  color: var(--clr-text-muted) !important;
  margin-bottom: 8px;
}
