:root {
  --ink: #102a43;
  --ink-2: #173b5b;
  --red: #b3313e;
  --red-dark: #872532;
  --paper: #f4f6f7;
  --white: #ffffff;
  --steel: #dce4e9;
  --muted: #5b6b79;
  --line: rgba(16, 42, 67, .14);
  --shadow: 0 24px 70px rgba(16, 42, 67, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 850px; font-size: clamp(2.7rem, 6.4vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { max-width: 720px; margin-top: 22px; color: #dce7ef; font-size: clamp(1.06rem, 2vw, 1.32rem); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.section-head > p:last-child { color: var(--muted); font-size: 1.06rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(16,42,67,.94); backdrop-filter: blur(16px); color: #fff; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 74px; height: auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: .08em; }
.brand-copy span { margin-top: 6px; color: #b9c8d4; font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: #d9e3ea; font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: #fff; }
.menu-button { display: none; margin-left: auto; padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; background: transparent; font: inherit; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: var(--red-dark); }
.button-light { color: var(--ink); background: #fff; }
.button-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.header-cta { min-height: 42px; padding-inline: 15px; }
.portal-mobile { display: none; }

.hero { position: relative; min-height: 750px; overflow: hidden; color: #fff; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,45,.98) 0%, rgba(9,28,45,.90) 48%, rgba(9,28,45,.35) 78%, rgba(9,28,45,.62) 100%), url("rws-robotik-hintergrund_2.png") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; right: -8%; bottom: -35%; width: 48vw; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.hero-inner { position: relative; z-index: 1; min-height: 750px; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 130px; }
.hero h1 span { color: #e35b66; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { position: absolute; bottom: 40px; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.hero-meta div { padding: 20px 24px 0 0; color: #c6d2db; }
.hero-meta strong { display: block; margin-bottom: 3px; color: #fff; font-size: 1.1rem; }

.alert-strip { background: var(--red); color: #fff; }
.alert-inner { min-height: 88px; display: flex; align-items: center; gap: 30px; }
.alert-inner strong { font-size: 1.25rem; }
.alert-inner p { color: #ffe4e6; }
.alert-inner .button { margin-left: auto; flex: none; }

section { padding: 112px 0; }
.hero { padding: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 330px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(16,42,67,.05); }
.service-number { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 68px; border-radius: 50%; color: var(--red); background: #f9e7e9; font-weight: 900; }
.service-card p { margin-top: 14px; color: var(--muted); }
.service-card a { margin-top: auto; padding-top: 28px; color: var(--red); font-weight: 800; text-decoration: none; }

.dark-section { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.dark-section .eyebrow { color: #ef7780; }
.dark-section .section-head > p:last-child { color: #bdcad4; }
.expertise-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.image-panel { min-height: 500px; position: relative; overflow: hidden; border-radius: var(--radius); background: #0d2235 url("rws-robotik-hintergrund_2.png") center/cover no-repeat; }
.image-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6,20,33,.9)); }
.image-caption { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; }
.image-caption span { display: block; color: #c4d1db; }
.proof-panel { display: grid; gap: 18px; }
.proof { padding: 31px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.proof strong { display: block; margin-bottom: 7px; font-size: 1.35rem; }
.proof p { color: #bdcad4; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 28px 26px 28px 0; border-top: 2px solid var(--steel); }
.step:not(:last-child)::after { content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px; border-top: 2px solid var(--steel); border-right: 2px solid var(--steel); transform: rotate(45deg); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 30px; color: var(--red); font-weight: 900; }
.step p { margin-top: 10px; color: var(--muted); font-size: .95rem; }

.contact-section { padding-top: 0; }
.contact-box { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 28px; color: #fff; background: var(--red); box-shadow: var(--shadow); }
.contact-copy { padding: clamp(40px, 6vw, 76px); }
.contact-copy .eyebrow { color: #ffd2d6; }
.contact-copy p { max-width: 600px; margin-top: 20px; color: #ffe5e7; font-size: 1.08rem; }
.contact-copy .hero-actions { margin-top: 30px; }
.contact-data { display: grid; align-content: center; gap: 24px; padding: clamp(36px, 5vw, 64px); background: #912936; }
.contact-data div { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-data div:last-child { border-bottom: 0; }
.contact-data span { display: block; margin-bottom: 5px; color: #f3b9bf; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-data a { font-size: 1.12rem; font-weight: 750; text-decoration: none; }

.site-footer { padding: 54px 0 32px; color: #bcc9d3; background: #0b2235; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 42px; }
.footer-grid h3 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-grid p, .footer-grid a { margin-top: 11px; color: #bcc9d3; text-decoration: none; }
.footer-links { display: grid; justify-items: start; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

.subhero { padding: 86px 0 74px; color: #fff; background: linear-gradient(120deg, #102a43, #173f60); }
.subhero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.subhero p:last-child { max-width: 720px; margin-top: 20px; color: #cad6de; font-size: 1.12rem; }
.content { padding: 72px 0 110px; }
.legal { max-width: 860px; }
.legal h2 { margin: 48px 0 15px; font-size: 1.65rem; }
.legal h3 { margin: 28px 0 10px; font-size: 1.12rem; letter-spacing: -.01em; }
.legal p, .legal li { color: #3f5364; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--red); }
.legal .notice { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--red); background: #fff; }
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.location-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.location-card .tag { display: inline-block; margin-bottom: 40px; padding: 6px 10px; border-radius: 99px; color: var(--red); background: #f9e7e9; font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.location-card p { margin-top: 14px; color: var(--muted); }
.location-card .button { margin-top: 28px; }

@media (max-width: 860px) {
  .shell { width: min(100% - 28px, 720px); }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; margin: 0; padding: 22px; flex-direction: column; align-items: stretch; background: var(--ink); }
  .nav.open { display: flex; }
  .nav a { padding: 7px; }
  .nav .portal-mobile { display: block; color: #fff; background: var(--red); border-radius: 8px; text-align: center; }
  .header-cta { display: none; }
  .section-head, .expertise-grid, .contact-box, .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-number { margin-bottom: 36px; }
  .process { grid-template-columns: 1fr 1fr; gap: 12px 22px; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta div { display: none; }
  .hero-meta div:first-child, .hero-meta div:nth-child(2) { display: block; }
  .alert-inner { padding-block: 20px; align-items: flex-start; flex-direction: column; }
  .alert-inner .button { margin-left: 0; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  .hero, .hero-inner { min-height: 700px; }
  .hero-inner { padding-top: 72px; }
  section { padding: 82px 0; }
  .section-head { gap: 22px; }
  .process { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
