* { box-sizing: border-box; }

:root {
  --red: #d8001f;
  --red-dark: #a90018;
  --black: #090909;
  --grey: #f2f3f5;
  --text: #181818;
  --muted: #666;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(12px);
}

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

.logo { display: grid; line-height: 1.1; }

.logo span {
  color: var(--red);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo small {
  color: var(--black);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

nav {
  display: flex;
  gap: 26px;
  font-weight: 700;
  font-size: 14px;
}

nav a:hover { color: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(216,0,31,0.35), transparent 30%),
    linear-gradient(135deg, #050505 0%, #161616 48%, #d8001f 160%);
}

.small-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.2;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .eyebrow { color: #ff6d7d; }

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: -3px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -2px;
}

h3 { font-size: 24px; }

.lead {
  max-width: 690px;
  color: #e5e5e5;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
}

.primary { background: var(--red); color: var(--white); }
.primary:hover, button:hover { background: var(--red-dark); }
.secondary { background: var(--white); color: var(--black); }

.hero-card {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 32px;
  padding: 34px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  backdrop-filter: blur(20px);
}

.card-label {
  display: inline-block;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--red);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
}

.intro, .services, .contact, .legal { padding: 95px 0; }
.subpage .legal { padding-top: 60px; }
.intro { background: var(--grey); }

.intro-grid, .contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.intro p:last-child, .contact p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}

.section-heading.light { color: var(--white); }
.section-heading.light p { color: #ddd; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 360px;
  border: 1px solid #e8e8e8;
  border-radius: 30px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.1);
}

.number {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.service-card p, .service-card li { color: var(--muted); }
.service-card ul { margin: 22px 0 0; padding-left: 18px; }
.service-card li { margin-bottom: 9px; }

.dark-card { background: var(--black); color: var(--white); }
.dark-card p { color: #ddd; }

.clients {
  padding: 95px 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,0,31,0.3), transparent 24%),
    var(--black);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.client-logo-card {
  min-height: 104px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.13);
}

.client-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.05;
  filter: grayscale(1);
}

.client-logo-card:nth-child(3n+1) .client-logo-text { text-transform: uppercase; letter-spacing: 0.8px; }
.client-logo-card:nth-child(3n+2) .client-logo-text { font-style: italic; }
.client-logo-card:nth-child(3n+3) .client-logo-text { border-left: 4px solid var(--red); padding-left: 10px; }

.logo-note {
  margin-top: 22px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  text-align: center;
}

.contact { background: var(--grey); }

.contact-box {
  margin-top: 34px;
  border-left: 5px solid var(--red);
  border-radius: 18px;
  background: var(--white);
  padding: 24px;
}

.protect-intro {
  font-size: 15px !important;
  margin-bottom: 20px;
}

.reveal-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.reveal-button {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--black);
  color: white;
  font-size: 14px;
}

.protected-value {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: #f4f4f4;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.protected-value a {
  color: var(--red);
  font-weight: 900;
}

.contact-form {
  border-radius: 32px;
  background: var(--white);
  padding: 34px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.09);
}

label {
  display: block;
  margin-bottom: 18px;
  font-weight: 900;
}

input, textarea, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 14px;
  font: inherit;
  background: white;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(216,0,31,0.2);
  border-color: var(--red);
}

.checkbox {
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.hidden-field { display: none; }

button {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
}

.legal-card {
  border-radius: 30px;
  background: var(--grey);
  padding: 34px;
}

.legal-card p, .legal-card li { color: var(--muted); }
.legal-card h2 { margin-top: 30px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card hr { margin: 42px 0; border: 0; border-top: 1px solid #d8d8d8; }

.footer {
  background: var(--black);
  color: var(--white);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #ff6d7d;
  font-weight: 900;
}

@media (max-width: 900px) {
  nav { display: none; }
  .hero-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .client-logo-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0; }
}

@media (max-width: 620px) {
  h1 { font-size: 44px; letter-spacing: -2px; }
  .service-grid, .client-logo-grid { grid-template-columns: 1fr; }
  .hero-actions, .footer-inner { flex-direction: column; }
  .button { width: 100%; }
  .reveal-row { grid-template-columns: 1fr; }
  .button, .reveal-button { width: 100%; }
}


.icon-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.icon-reveal-button {
  width: 100%;
  min-height: 112px;
  border-radius: 22px;
  background: var(--black);
  color: white;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.icon-reveal-button:hover {
  background: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(216,0,31,0.22);
}

.icon-reveal-button:disabled {
  background: var(--red);
  cursor: default;
  opacity: 0.9;
}

.icon-circle {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: white;
}

.icon-reveal-button strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.icon-reveal-button small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.74);
  font-weight: 700;
}

.revealed-contact-values {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 620px) {
  .icon-reveal-grid {
    grid-template-columns: 1fr;
  }
}



/* Subtle reveal buttons */

.icon-reveal-grid {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.icon-reveal-button {
  width: auto;
  min-height: 46px;
  border-radius: 14px;
  padding: 8px 14px;
  gap: 10px;
  background: white;
  color: var(--black);
  border: 1px solid #dddddd;
  box-shadow: none;
}

.icon-reveal-button:hover {
  background: #fafafa;
  border-color: var(--red);
  color: var(--red);
  transform: none;
  box-shadow: none;
}

.icon-reveal-button:disabled {
  background: #fafafa;
  color: var(--red);
  border-color: rgba(216,0,31,0.25);
}

.icon-circle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: rgba(216,0,31,0.08);
  color: var(--red);
}

.icon-reveal-button strong {
  font-size: 13px;
  font-weight: 800;
}

.icon-reveal-button small {
  display: none;
}

.revealed-contact-values {
  margin-top: 12px;
}

.protected-value {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

@media (max-width: 620px) {
  .icon-reveal-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* Fixed: small contact values revealed directly inside the buttons */

.icon-reveal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.icon-reveal-button {
  width: auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  gap: 9px;
  background: white;
  color: var(--black);
  border: 1px solid #dddddd;
  box-shadow: none;
}

.icon-reveal-button:hover {
  background: #fafafa;
  border-color: var(--red);
  color: var(--red);
  transform: none;
  box-shadow: none;
}

.icon-reveal-button.is-revealed {
  border-color: rgba(216,0,31,0.28);
  background: #fffafa;
}

.icon-circle {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: rgba(216,0,31,0.08);
  color: var(--red);
}

.button-secret-text {
  display: inline-flex;
  align-items: center;
  min-width: 82px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.button-secret-text .revealed-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.button-secret-text .revealed-link:hover {
  text-decoration: underline;
}

.revealed-contact-values {
  display: none;
}

@media (max-width: 620px) {
  .icon-reveal-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .icon-reveal-button {
    max-width: 100%;
  }

  .button-secret-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Language switch */
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  padding: 4px;
  background: #fff;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  color: #222;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch .active-lang {
  background: var(--red);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-right {
    gap: 10px;
  }

  .language-switch {
    margin-left: auto;
  }
}


/* DSX update: reduce the title inside the dark hero card */
.hero-card h2 {
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.22 !important;
}


/* Protected reveal buttons on imprint pages */
.imprint-protected-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


/* Competence section */
.competence-section {
  padding: 95px 0;
  background: #ffffff;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.competence-card {
  min-height: 84px;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.competence-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,0,31,0.35);
  background: #fff;
}

@media (max-width: 900px) {
  .competence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* Linked client logo tiles */
a.client-logo-card {
  text-decoration: none;
  color: inherit;
}

a.client-logo-card:focus-visible {
  outline: 3px solid rgba(216,0,31,0.75);
  outline-offset: 4px;
}


/* Footer legal link should not be bold */
.footer a {
  font-weight: 400 !important;
}


/* Team page */
.team-hero {
  padding: 120px 0 70px;
  background: linear-gradient(135deg, #111 0%, #2a2a2a 55%, #d8001f 100%);
  color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 42px;
}

.team-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.08);
}

.team-image-placeholder {
  height: 240px;
  background: linear-gradient(135deg, #f2f2f2, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-content {
  padding: 26px;
}

.team-content h3 {
  margin-bottom: 6px;
}

.team-role {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 14px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.team-tags span {
  border-radius: 999px;
  background: #f5f5f5;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.team-cta {
  padding: 100px 0;
}

.team-cta-card {
  background: #111;
  color: #fff;
  border-radius: 34px;
  padding: 48px;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .team-cta-card {
    padding: 32px;
  }
}


/* Team member language badges */
.team-language-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.team-language-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(216,0,31,0.08);
  color: #222;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}


/* Compact flag-only language badges */
.team-language-badges span {
  min-width: 40px;
  min-height: 40px;
  justify-content: center;
  padding: 0;
  font-size: 20px;
}


/* Graphic SVG flag icons */
.team-language-badges span {
  width: 44px;
  height: 34px;
  min-width: 44px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.flag-icon {
  display: block;
  width: 44px;
  height: 28px;
  border-radius: 5px;
}


/* Round language flag buttons */
.team-language-badges span {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9d9d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.flag-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  display: block;
}


/* Horizontal technology logo strip */
.technology-strip {
  background: #fff;
  border-bottom: 1px solid #ececec;
  overflow: hidden;
  padding: 22px 0;
}

.technology-track {
  width: 100%;
  overflow: hidden;
}

.technology-row {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: dsx-scroll-logos 42s linear infinite;
}

.technology-strip:hover .technology-row {
  animation-play-state: paused;
}

.tech-logo {
  min-width: max-content;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fafafa;
  color: #222;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.tech-logo:nth-child(5n+1) {
  color: var(--red);
}

.tech-logo:nth-child(5n+3) {
  background: #111;
  color: #fff;
  border-color: #111;
}

@keyframes dsx-scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .technology-row {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 0 5%;
  }
}

@media (max-width: 620px) {
  .technology-strip {
    padding: 16px 0;
  }

  .tech-logo {
    padding: 9px 16px;
    font-size: 13px;
  }
}


/* Cookie consent */
.cookie-consent {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background: rgba(9,9,9,0.94);
  color: #fff;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-consent-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.cookie-consent-copy p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-warning {
  margin-top: 10px !important;
  color: #ffb3bd !important;
  font-weight: 800;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.14);
}

.cookie-btn-primary {
  background: var(--red);
  border-color: var(--red);
}

.cookie-btn-primary:hover {
  background: var(--red-dark);
}

.cookie-btn-danger {
  color: #ffb3bd;
}

.cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 820px) {
  .cookie-consent {
    inset: auto 14px 14px 14px;
  }

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

  .cookie-consent-actions {
    justify-content: flex-start;
  }

  .cookie-btn {
    width: 100%;
  }
}


/* German service layout fix */
.service-grid {
  align-items: stretch;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.service-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-card ul {
  margin-top: auto;
  padding-top: 22px;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card h3 {
    font-size: 22px;
    line-height: 1.18;
  }
}
