  :root {
    --rot: #e30613;
    --rot-dunkel: #b8050f;
    --grau: #85878a;
    --text: #24262a;
    --text-hell: #5c5f66;
    --flaeche: #f5f6f7;
    --weiss: #ffffff;
    --rand: #e4e6e9;
    --radius: 14px;
    --max: 1120px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--weiss);
    line-height: 1.6;
  }

  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

  h1, h2, h3 { line-height: 1.2; font-weight: 700; }

  section { padding: 88px 0; }

  .kicker {
    display: inline-block;
    color: var(--rot);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
  .section-intro { color: var(--text-hell); max-width: 640px; font-size: 1.06rem; }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rand);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
  }

  .logo { display: flex; align-items: center; text-decoration: none; }
  .logo img { height: 50px; width: auto; display: block; }

  nav ul { display: flex; gap: 32px; list-style: none; }
  nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  nav a:hover { color: var(--rot); border-color: var(--rot); }
  nav a.aktiv { color: var(--rot); border-color: var(--rot); }

  .nav-cta {
    background: var(--rot);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 999px;
    border: none !important;
    transition: background 0.15s;
  }
  .nav-cta:hover { background: var(--rot-dunkel); }

  .lang-switch { color: var(--text-hell) !important; }
  .lang-switch:hover { color: var(--rot) !important; }

  .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  @media (max-width: 900px) {
    .burger { display: flex; }
    nav {
      display: none;
      position: absolute;
      top: 76px;
      left: 0;
      right: 0;
      background: var(--weiss);
      border-bottom: 1px solid var(--rand);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    nav.offen { display: block; }
    nav ul {
      flex-direction: column;
      gap: 0;
      padding: 8px 24px 20px;
    }
    nav a {
      display: block;
      padding: 13px 0;
      font-size: 1.05rem;
      border-bottom: none;
    }
    .nav-cta {
      display: inline-block;
      margin-top: 10px;
      text-align: center;
    }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 96px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  }
  .hero .wrap { position: relative; z-index: 2; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(36, 38, 42, 0.13) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(760px 480px at 80% 45%, #000 15%, transparent 72%);
    mask-image: radial-gradient(760px 480px at 80% 45%, #000 15%, transparent 72%);
  }
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
  }
  .blob-rot {
    width: 430px;
    height: 430px;
    background: rgba(227, 6, 19, 0.14);
    top: -140px;
    right: -90px;
    animation: schweben 14s ease-in-out infinite alternate;
  }
  .blob-grau {
    width: 380px;
    height: 380px;
    background: rgba(133, 135, 138, 0.16);
    bottom: -160px;
    left: -110px;
    animation: schweben 18s ease-in-out infinite alternate-reverse;
  }
  @keyframes schweben {
    from { transform: translate(0, 0); }
    to { transform: translate(45px, 30px); }
  }
  .hero-deko {
    position: absolute;
    right: -70px;
    bottom: -60px;
    height: 115%;
    width: auto;
    z-index: 1;
    pointer-events: none;
  }
  /* Unterseiten (Geschichte, Team, Jobs) haben unterschiedlich lange Überschriften,
     wodurch .hero unterschiedlich hoch wird. Feste Höhe hält das Wasserzeichen
     auf allen drei Seiten gleich groß, unabhängig vom Umbruch der Überschrift. */
  .hero-seite .hero-deko {
    height: 450px;
  }
  @media (max-width: 900px) {
    .hero-deko { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .blob-rot, .blob-grau { animation: none; }
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    max-width: 780px;
    letter-spacing: -0.02em;
  }
  .hero h1 em { font-style: normal; color: var(--rot); }

  /* Breiter als die Standard-780px, damit die längste Unterseiten-Überschrift
     ("Werden Sie Teil unseres Teams.") einzeilig bleibt wie bei Geschichte/Team. */
  .hero-seite h1 {
    max-width: 1000px;
  }

  .hero p {
    margin: 24px 0 36px;
    font-size: 1.15rem;
    color: var(--text-hell);
    max-width: 620px;
  }

  .btn-reihe { display: flex; gap: 16px; flex-wrap: wrap; }

  .btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-primaer { background: var(--rot); color: #fff; }
  .btn-primaer:hover { background: var(--rot-dunkel); }
  .btn-sekundaer { border: 2px solid var(--rand); color: var(--text); }
  .btn-sekundaer:hover { border-color: var(--rot); color: var(--rot); }

  /* ---------- USP-Leiste ---------- */
  .usps { padding: 0 0 88px; }
  .usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .usp {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 28px 26px;
  }
  .usp .zahl {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rot);
    margin-bottom: 6px;
    height: 31px;
    display: flex;
    align-items: center;
  }
  .usp .zahl svg {
    width: 30px;
    height: 30px;
    stroke: var(--rot);
  }
  .usp h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .usp p { color: var(--text-hell); font-size: 0.95rem; }

  /* ---------- Leistungen ---------- */
  .leistungen {
    background:
      radial-gradient(720px 400px at 100% 0%, rgba(227, 6, 19, 0.05), transparent 60%),
      var(--flaeche);
  }
  .leistung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 44px;
  }
  .leistung {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
  }
  .leistung .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(227, 6, 19, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
  }
  .leistung .icon svg { width: 28px; height: 28px; stroke: var(--rot); }
  .leistung h3 { font-size: 1.4rem; margin-bottom: 12px; }
  .leistung > p { color: var(--text-hell); margin-bottom: 20px; }
  .leistung ul { list-style: none; margin-top: auto; }
  .leistung li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text);
    font-size: 0.98rem;
    border-top: 1px solid var(--flaeche);
  }
  .leistung li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rot);
  }
  .leistung .mehr-link {
    display: none; /* zum Wiedereinblenden entfernen */
    margin-top: 22px;
    align-self: flex-start;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--rot);
    text-decoration: none;
  }
  .leistung .mehr-link::after { content: " →"; }
  .leistung .mehr-link:hover { text-decoration: underline; }
  .detail-karte {
    max-width: 860px;
    margin-top: 44px;
  }
  .detail-karte li a { color: var(--rot); }

  /* ---------- Referenzen (Slider) ---------- */
  .referenz-slider { position: relative; margin-top: 44px; }
  .referenz-spur {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    scrollbar-width: none;
  }
  .referenz-spur::-webkit-scrollbar { display: none; }
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--weiss);
    border: 1px solid var(--rand);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: var(--text);
  }
  .slider-btn svg { width: 20px; height: 20px; stroke: currentColor; }
  .slider-btn:hover { border-color: var(--rot); color: var(--rot); }
  .slider-btn.zurueck { left: -14px; }
  .slider-btn.weiter { right: -14px; }
  .referenz {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    background: var(--weiss);
    transition: border-color 0.15s, transform 0.15s;
  }
  .referenz:hover { border-color: var(--rot); transform: translateY(-3px); }
  .referenz img {
    display: block;
    height: 46px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 16px;
    filter: grayscale(1) opacity(0.72);
    transition: filter 0.2s;
  }
  .referenz:hover img { filter: none; }
  .referenz span {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-hell);
  }

  /* ---------- Partner ---------- */
  .partner {
    background:
      radial-gradient(720px 400px at 0% 100%, rgba(227, 6, 19, 0.05), transparent 60%),
      var(--flaeche);
  }
  .partner-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 44px;
  }
  .partner-badge {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 36px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
  }
  .partner-badge img {
    height: 40px;
    max-width: 70%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.72);
    transition: filter 0.2s;
  }
  .partner-badge:hover img { filter: none; }
  .partner-spacer {
    background: none;
    border: none;
    pointer-events: none;
  }

  /* ---------- Geschichte ---------- */
  .zeitleiste {
    margin-top: 44px;
    position: relative;
    padding-left: 30px;
  }
  .zeitleiste::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--rand);
  }
  .meilenstein {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 14px 0;
  }

  .galerie {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    margin-top: 56px;
  }
  .galerie figure {
    margin: 0;
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .galerie .haupt img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
  }
  .galerie-spalte { display: grid; gap: 24px; }
  .galerie-spalte figure { flex-direction: row; align-items: center; }
  .galerie-spalte img {
    width: 150px;
    flex: 0 0 150px;
    align-self: stretch;
    object-fit: cover;
    object-position: top;
    display: block;
  }
  .galerie figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-hell);
  }
  .galerie figcaption strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
  }
  .galerie .haupt figcaption { border-top: 1px solid var(--rand); }
  @media (max-width: 900px) {
    .galerie { grid-template-columns: 1fr; }
    .galerie .haupt img { min-height: 0; max-height: 420px; }
  }
  .meilenstein::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rot);
    border: 3px solid var(--weiss);
    box-shadow: 0 0 0 2px var(--rot);
  }
  .meilenstein .jahr {
    font-weight: 800;
    color: var(--rot);
    font-size: 1.1rem;
    line-height: 1.9;
  }
  .meilenstein p { color: var(--text-hell); }
  .meilenstein p strong { color: var(--text); }

  /* ---------- Team ---------- */
  .team {
    background:
      radial-gradient(820px 440px at 100% 100%, rgba(227, 6, 19, 0.045), transparent 60%),
      var(--flaeche);
  }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
    margin-top: 44px;
  }
  .person {
    perspective: 1000px;
    height: 280px;
    text-align: center;
    outline: none;
  }
  .person-innen {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.35, 0, 0.25, 1);
  }
  .person:hover .person-innen,
  .person:focus .person-innen,
  .person:focus-within .person-innen { transform: rotateY(180deg); }
  .person-vorne,
  .person-hinten {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .person-hinten { justify-content: center; }
  .person-vorne {
    padding-top: 32px;
    background: var(--weiss);
    border: 1px solid var(--rand);
  }
  .person-hinten {
    background: var(--text);
    color: #fff;
    transform: rotateY(180deg);
  }
  .person img,
  .person .avatar-initialen {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    display: block;
    margin: 0 auto 16px;
    flex: 0 0 auto;
  }
  .person .avatar-initialen {
    background: rgba(227, 6, 19, 0.08);
    color: var(--rot);
    font-size: 2rem;
    font-weight: 800;
    line-height: 116px;
  }
  .person h3 { font-size: 1rem; margin-bottom: 4px; }
  .person-vorne p { font-size: 0.85rem; color: var(--text-hell); line-height: 1.4; }
  .person-hinten h3 { margin-bottom: 10px; }
  .person-hinten p { font-size: 0.88rem; margin-top: 6px; }
  .person-hinten a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
  .person-hinten a:hover { color: var(--rot); border-color: var(--rot); }
  .person-hinten .dw { color: rgba(255, 255, 255, 0.75); }
  @media (prefers-reduced-motion: reduce) {
    .person-innen { transition: none; }
  }
  /* Platzhalter-Kacheln sind nur bei voller 5-Spalten-Breite als Lücke gedacht;
     bei weniger Spalten (Tablet/Mobile) würden sie sonst zufällige Lücken erzeugen. */
  @media (max-width: 1100px) {
    .person[aria-hidden="true"],
    .partner-spacer {
      display: none;
    }
  }

  /* ---------- Kontakt ---------- */
  .kontakt-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    margin-top: 44px;
    align-items: start;
  }
  .kontakt-karte {
    background: var(--text);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 38px;
  }
  .kontakt-karte h3 { font-size: 1.3rem; margin-bottom: 24px; }
  .kontakt-zeile {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: baseline;
  }
  .kontakt-zeile:last-child { border-bottom: none; }
  .kontakt-zeile .label {
    flex: 0 0 90px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
  }
  .kontakt-zeile a { color: #fff; text-decoration: none; }
  .kontakt-zeile a:hover { color: var(--rot); }

  .zeiten { color: var(--text-hell); }
  .zeiten table { border-collapse: collapse; margin-top: 12px; }
  .zeiten td { padding: 6px 24px 6px 0; }
  .zeiten td:first-child { font-weight: 600; color: var(--text); }

  /* ---------- Footer ---------- */
  footer {
    background: #1b1d20;
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 32px;
    font-size: 0.92rem;
  }
  .footer-oben {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer-marke { font-weight: 700; color: #fff; letter-spacing: 0.06em; }
  .footer-marke .rot { color: var(--rot); }

  .social { display: flex; gap: 14px; }
  .social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
  }
  .social a:hover { background: var(--rot); border-color: var(--rot); }
  .social svg { width: 18px; height: 18px; fill: #fff; }

  .impressum { margin-top: 28px; }
  .impressum summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    list-style: none;
  }
  .impressum summary::after { content: " +"; color: var(--rot); }
  .impressum[open] summary::after { content: " –"; }
  .impressum-inhalt {
    margin-top: 18px;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 64px;
    line-height: 1.8;
  }
  @media (max-width: 700px) {
    .impressum-inhalt { grid-template-columns: 1fr; }
  }
  .impressum a { color: #fff; }
  .impressum-daten { display: grid; gap: 2px; align-content: start; }
  .impressum-zeile {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
  }
  .impressum-zeile .label { color: rgba(255, 255, 255, 0.45); }
  .impressum-breit { grid-column: 1 / -1; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

  .footer-unten {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
  }
  .footer-unten a { color: inherit; }
  .footer-unten a:hover { color: #fff; }

  /* ---------- Rechtstext (Datenschutz) ---------- */
  .rechtstext {
    max-width: 860px;
    margin-top: 44px;
    line-height: 1.8;
  }
  .rechtstext h3 { margin: 32px 0 8px; font-size: 1.1rem; }
  .rechtstext p { color: var(--text-hell); }
  .rechtstext a { color: var(--rot); }
  .rechtstext .stand {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-hell);
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1000px) {
    .referenz { flex-basis: calc((100% - 40px) / 3); }
  }
  @media (max-width: 900px) {
    .usp-grid, .leistung-grid, .kontakt-grid { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .hero { padding: 72px 0 64px; }
  }
  @media (max-width: 720px) {
    .referenz { flex-basis: calc((100% - 20px) / 2); }
  }
  @media (max-width: 480px) {
    .referenz { flex-basis: 78%; }
  }
  @media (max-width: 680px) {
    .logo img { height: 42px; }
  }
