/* RR-3D.de static website v1 */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #121923;
  --muted: #5d6b7b;
  --line: #dce4ef;
  --blue: #0b74ff;
  --blue-dark: #004fc7;
  --dark: #0d141c;
  --dark-2: #17212a;
  --shadow: 0 24px 70px rgba(11, 20, 32, .12);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, .82);
  border-bottom: 1px solid rgba(220, 228, 239, .8);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  width: 188px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 10px 14px;
  color: #2d3a49;
  font-weight: 650;
  font-size: 15px;
  border-radius: 999px;
}
.main-nav a:hover { background: #edf3fb; color: var(--ink); }
.nav-cta {
  background: var(--ink) !important;
  color: white !important;
  box-shadow: 0 10px 24px rgba(18, 25, 35, .14);
}
.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 20px;
}

.hero {
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(11,116,255,.22), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .72fr);
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 {
  font-size: clamp(44px, 6.2vw, 76px);
  letter-spacing: -0.055em;
  max-width: 820px;
}
h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 760px;
  margin: 26px 0 0;
}
.hero-actions, .contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
}
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 16px 35px rgba(11, 116, 255, .26);
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.trust-row span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #3c4a59;
  font-weight: 700;
  font-size: 14px;
}
.hero-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.98)),
    radial-gradient(circle at 80% 10%, rgba(11,116,255,.22), transparent 45%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-logo {
  width: min(320px, 100%);
  margin: 0 auto 20px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spec-grid div {
  background: #f3f7fc;
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  padding: 16px;
}
.spec-grid strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: .12em;
}
.spec-grid span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--dark);
}

.section {
  padding: 88px 0;
}
.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.cards {
  display: grid;
  gap: 18px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card, .mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 36px rgba(11, 20, 32, .06);
}
.card.accent {
  border-color: rgba(11,116,255,.38);
  box-shadow: 0 20px 60px rgba(11,116,255,.12);
}
.card p, .mini-card p {
  color: var(--muted);
}
.card ul {
  padding-left: 18px;
  margin: 18px 0 0;
  color: #354454;
}
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eef5ff;
  color: var(--blue);
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
}

.split-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 54px;
  align-items: start;
}
.split p { color: var(--muted); font-size: 18px; }
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 900;
  color: var(--blue);
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}
.timeline-item > span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: white;
  font-weight: 900;
}
.timeline-item p { margin: 8px 0 0; font-size: 16px; }

.dark {
  background: radial-gradient(circle at 85% 10%, rgba(11,116,255,.30), transparent 35%), var(--dark);
  color: #fff;
}
.dark .section-head p:not(.eyebrow) { color: #aebdcb; }
.mini-card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.mini-card p { color: #bdc8d6; }

.quality-grid {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 54px;
  align-items: center;
}
.quality-grid p { color: var(--muted); font-size: 18px; }
.quality-list {
  display: grid;
  gap: 12px;
}
.quality-list div {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.quality-list strong {
  color: var(--blue);
  font-size: 22px;
}
.quality-list span { font-weight: 750; }

.cta-section {
  padding: 32px 0 92px;
}
.cta-card {
  background:
    linear-gradient(135deg, rgba(13,20,28,.96), rgba(23,33,42,.94)),
    radial-gradient(circle at 90% 0%, rgba(11,116,255,.38), transparent 40%);
  color: #fff;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 64px);
  box-shadow: var(--shadow);
}
.cta-card h2 { max-width: 860px; }
.cta-card p:not(.eyebrow) {
  color: #bfccd9;
  max-width: 780px;
  font-size: 18px;
}
.cta-card .btn.secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.small-note {
  font-size: 14px !important;
  margin-top: 20px;
}
.site-footer {
  padding: 34px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 18px;
  color: #3d4a59;
  font-weight: 700;
}
.footer-links a:hover { color: var(--blue); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .hero-grid, .split, .quality-grid { grid-template-columns: 1fr; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 56px; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .brand-logo { width: 152px; }
  .cards.three, .cards.four, .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  h1 { font-size: 42px; }
}


/* v1.2 image showcase */
.hero-showcase {
  display: grid;
  gap: 16px;
}
.hero-main-shot,
.hero-thumb-grid figure,
.project-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(11, 20, 32, .08);
}
.hero-main-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-main-shot figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.hero-main-shot figcaption strong {
  font-size: 18px;
}
.hero-main-shot figcaption span {
  color: var(--muted);
  font-size: 15px;
}
.hero-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-thumb-grid figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.hero-thumb-grid figure figcaption {
  padding: 12px 14px 14px;
  font-weight: 800;
  font-size: 14px;
  color: #263240;
}
.case-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card-large {
  grid-column: span 2;
}
.project-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f5f7fb;
}
.project-card-large .project-image {
  height: 340px;
}
.project-image-contain {
  object-fit: contain;
  padding: 16px;
}
.project-body {
  padding: 22px;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}
.project-body p {
  color: var(--muted);
  margin: 12px 0 0;
}
@media (max-width: 940px) {
  .hero-thumb-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card-large {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  .hero-thumb-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card-large {
    grid-column: span 1;
  }
  .hero-thumb-grid figure img,
  .project-image,
  .project-card-large .project-image {
    height: 220px;
  }
}


/* v1.3 image showcase */
.hero-showcase{display:grid;gap:16px}
.hero-main-shot,.hero-thumb-grid figure,.project-card{margin:0;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 14px 40px rgba(11,20,32,.08)}
.hero-main-shot img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hero-main-shot figcaption{display:grid;gap:6px;padding:18px 20px 20px;background:linear-gradient(180deg,#fff,#f8fbff)}
.hero-main-shot figcaption strong{font-size:18px}.hero-main-shot figcaption span{color:var(--muted);font-size:15px}
.hero-thumb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hero-thumb-grid figure img{width:100%;height:150px;object-fit:cover}
.hero-thumb-grid figure figcaption{padding:12px 14px 14px;font-weight:800;font-size:14px;color:#263240}
.case-section{background:#fff;border-block:1px solid var(--line)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.project-card-large{grid-column:span 2}.project-image{width:100%;height:260px;object-fit:cover;background:#f5f7fb}
.project-card-large .project-image{height:340px}.project-image-contain{object-fit:contain;padding:16px}
.project-body{padding:22px}.project-tag{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#eef5ff;color:var(--blue);font-weight:800;font-size:13px;margin-bottom:14px}
.project-body p{color:var(--muted);margin:12px 0 0}
@media (max-width:940px){.hero-thumb-grid,.project-grid{grid-template-columns:1fr 1fr}.project-card-large{grid-column:span 2}}
@media (max-width:620px){.hero-thumb-grid,.project-grid{grid-template-columns:1fr}.project-card-large{grid-column:span 1}.hero-thumb-grid figure img,.project-image,.project-card-large .project-image{height:220px}}


/* v1.5 legal typography */
.legal-page .legal-section {
  padding: 58px 0 82px;
}
.legal-container {
  max-width: 920px;
}
.legal-page h1 {
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.legal-page .lead {
  font-size: 18px;
  max-width: 760px;
  margin-top: 16px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  margin-top: 30px;
  box-shadow: 0 10px 36px rgba(11, 20, 32, .06);
}
.legal-card h2 {
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 32px 0 10px;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p,
.legal-card li {
  font-size: 16px;
  line-height: 1.72;
  color: #354454;
}
.legal-card p {
  margin: 0 0 14px;
}
.legal-card ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}
.legal-card a {
  color: var(--blue);
  font-weight: 700;
}
@media (max-width: 620px) {
  .legal-page .legal-section {
    padding-top: 38px;
  }
  .legal-card {
    border-radius: 18px;
    padding: 22px;
  }
}


/* v1.6 profile and image choice */
.capability-showcase {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(11, 20, 32, .06);
}
.capability-visual {
  margin: 0;
  background: radial-gradient(circle at 55% 20%, rgba(11,116,255,.10), transparent 55%);
  border-radius: 22px;
  min-height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.capability-visual img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 8px;
}
.capability-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.profile-section {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.profile-grid {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 54px;
  align-items: start;
}
.profile-grid p {
  color: var(--muted);
  font-size: 18px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 36px rgba(11,20,32,.06);
}
.profile-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.profile-list div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid #e2eaf5;
}
.profile-list strong {
  color: var(--ink);
}
.profile-list span {
  color: var(--muted);
}
@media (max-width: 940px) {
  .capability-showcase,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.8 contact form */
.contact-card {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 34px;
  align-items: start;
}
.contact-intro p:not(.eyebrow) {
  color: #bfccd9;
  font-size: 18px;
}
.contact-form {
  display: grid;
  gap: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form label span,
.contact-form .file-box > span {
  font-weight: 800;
  color: #fff;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(11,116,255,.35);
  border-color: rgba(11,116,255,.8);
}
.file-box {
  border: 1px dashed rgba(255,255,255,.34);
  border-radius: 18px;
  padding: 16px;
}
.file-box small,
.privacy-check span {
  color: #d6e0ea;
  font-size: 14px;
  line-height: 1.55;
}
.privacy-check {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px !important;
}
.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.privacy-check a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 940px) {
  .contact-card,
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.9 SEO/security/email */
.mail-human {
  font-weight: 800;
  color: var(--ink);
}
.legal-card .mail-human {
  color: #243142;
}
.legal-mail-button {
  width: auto;
  cursor: pointer;
}
.contact-form .mail-action {
  cursor: pointer;
}



/* v2.0 portfolio redesign + darkmode */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --ink: #101722;
  --muted: #5c6877;
  --line: #d8e1ec;
  --blue: #0b74ff;
  --blue-dark: #004fc7;
  --cyan: #21d4fd;
  --dark: #0d141c;
  --dark-2: #17212a;
  --shadow: 0 24px 70px rgba(11, 20, 32, .12);
  --card-shadow: 0 12px 42px rgba(11, 20, 32, .08);
  --hero-grid: rgba(11, 116, 255, .07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071019;
    --surface: #0d1722;
    --surface-2: #111f2c;
    --ink: #edf6ff;
    --muted: #a8b7c8;
    --line: rgba(180, 210, 238, .16);
    --blue: #5aa2ff;
    --blue-dark: #1c6ff0;
    --cyan: #45e1ff;
    --dark: #050a10;
    --dark-2: #0c1520;
    --shadow: 0 26px 80px rgba(0, 0, 0, .42);
    --card-shadow: 0 16px 48px rgba(0, 0, 0, .32);
    --hero-grid: rgba(90, 162, 255, .08);
  }
}
html[data-theme="dark"] {
  --bg: #071019;
  --surface: #0d1722;
  --surface-2: #111f2c;
  --ink: #edf6ff;
  --muted: #a8b7c8;
  --line: rgba(180, 210, 238, .16);
  --blue: #5aa2ff;
  --blue-dark: #1c6ff0;
  --cyan: #45e1ff;
  --dark: #050a10;
  --dark-2: #0c1520;
  --shadow: 0 26px 80px rgba(0, 0, 0, .42);
  --card-shadow: 0 16px 48px rgba(0, 0, 0, .32);
  --hero-grid: rgba(90, 162, 255, .08);
}
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"],
html[data-effective-theme="dark"] {
  color-scheme: dark;
}
body {
  background:
    radial-gradient(circle at 85% 0%, rgba(11,116,255,.16), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--ink);
}
.site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
}
.main-nav a {
  color: var(--muted);
}
.main-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-cta {
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink), var(--blue) 24%)) !important;
  color: var(--bg) !important;
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11,20,32,.08);
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.theme-toggle-icon {
  font-size: 17px;
}
.hero {
  padding: 76px 0 84px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.58), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  align-items: start;
}
.hero-copy {
  padding-top: 18px;
}
h1 {
  letter-spacing: -0.062em;
}
.lead {
  color: var(--muted);
}
.engineering-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.engineering-strip div {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.engineering-strip strong {
  display: block;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .12em;
}
.engineering-strip span {
  display: block;
  color: var(--ink);
  font-weight: 850;
  margin-top: 5px;
  line-height: 1.25;
}
.hero-showcase {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface), transparent 5%), color-mix(in srgb, var(--surface-2), transparent 12%));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.hero-main-shot,
.hero-thumb-grid figure,
.project-card,
.card,
.mini-card,
.profile-card,
.tool-card,
.legal-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--card-shadow);
}
.hero-main-shot figcaption {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.hero-main-shot figcaption span,
.card p,
.mini-card p,
.project-body p,
.profile-grid p,
.profile-list span,
.quality-grid p,
.legal-card p,
.legal-card li,
.capability-copy p:not(.eyebrow) {
  color: var(--muted);
}
.hero-thumb-grid figure figcaption,
.spec-grid span,
.profile-list strong,
.project-body h3 {
  color: var(--ink);
}
.trust-row span {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.btn.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.section {
  position: relative;
}
.split-section,
.case-section,
.profile-section,
.toolchain-section {
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 28rem),
    var(--surface);
  border-block-color: var(--line);
}
.cards.three .card {
  min-height: 100%;
}
.card,
.project-card,
.profile-card,
.tool-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover,
.project-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
}
.icon,
.project-tag {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}
.capability-showcase {
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 24rem),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: var(--line);
}
.capability-visual {
  background: radial-gradient(circle at 55% 20%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 55%);
}
.profile-list div,
.spec-grid div,
.timeline-item,
.quality-list div {
  background: var(--surface-2);
  border-color: var(--line);
}
.timeline-item > span {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
}
.dark {
  background:
    radial-gradient(circle at 85% 10%, rgba(11,116,255,.30), transparent 35%),
    linear-gradient(135deg, #08121d, #101923);
}
.toolchain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.tool-card > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}
.tool-card p {
  color: var(--muted);
}
.cta-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(33,212,253,.18), transparent 38%),
    linear-gradient(135deg, #07111c, #111f2d);
}
.contact-form {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.site-footer {
  background: var(--surface);
  border-top-color: var(--line);
}
.footer-links {
  color: var(--muted);
}
.legal-page {
  background: var(--bg);
}
.legal-card a {
  color: var(--blue);
}
.mail-human {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .toolchain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 940px) {
  .main-nav {
    background: var(--surface);
    border-color: var(--line);
  }
  .engineering-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-toggle {
    justify-content: center;
  }
}
@media (max-width: 620px) {
  .engineering-strip,
  .toolchain-grid {
    grid-template-columns: 1fr;
  }
  .theme-toggle-text {
    display: none;
  }
}



/* v2.1 logo contrast + legal readability */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15, 28, 44, .12);
  border-radius: 20px;
  padding: 7px 12px;
  box-shadow: 0 12px 28px rgba(8, 16, 28, .12);
}
.brand-logo {
  filter: none !important;
}
html[data-theme="dark"] .brand,
html[data-effective-theme="dark"] .brand {
  background: rgba(255,255,255,.97);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 16px 38px rgba(0,0,0,.35), 0 0 0 1px rgba(90,162,255,.10);
}
html[data-theme="dark"] .hero-main-shot figcaption,
html[data-effective-theme="dark"] .hero-main-shot figcaption {
  background: linear-gradient(180deg, #101b28, #0d1722);
}
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea,
html[data-effective-theme="dark"] .contact-form input,
html[data-effective-theme="dark"] .contact-form select,
html[data-effective-theme="dark"] .contact-form textarea {
  background: #f7fbff;
  color: #101722;
  border-color: rgba(255,255,255,.32);
}
html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder,
html[data-effective-theme="dark"] .contact-form input::placeholder,
html[data-effective-theme="dark"] .contact-form textarea::placeholder {
  color: #536170;
}
html[data-theme="dark"] .btn.secondary,
html[data-effective-theme="dark"] .btn.secondary {
  background: #132235;
  border-color: rgba(180,210,238,.22);
  color: #edf6ff;
}
html[data-theme="dark"] .cta-card .btn.secondary,
html[data-effective-theme="dark"] .cta-card .btn.secondary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #ffffff;
}
html[data-theme="dark"] .project-image,
html[data-effective-theme="dark"] .project-image {
  background: #0b1520;
}
html[data-theme="dark"] .project-image-contain,
html[data-effective-theme="dark"] .project-image-contain {
  background: radial-gradient(circle at 50% 22%, rgba(90,162,255,.12), transparent 55%), #0b1520;
}
html[data-theme="dark"] .legal-card,
html[data-effective-theme="dark"] .legal-card {
  background: #0d1722;
}
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-card li,
html[data-effective-theme="dark"] .legal-card p,
html[data-effective-theme="dark"] .legal-card li {
  color: #c2d0df;
}
html[data-theme="dark"] .legal-card h2,
html[data-effective-theme="dark"] .legal-card h2 {
  color: #f0f7ff;
}
.mail-link {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mail-link:hover {
  color: var(--cyan);
}
@media (max-width: 620px) {
  .brand {
    padding: 6px 9px;
    border-radius: 16px;
  }
}


/* v2.2 logo fade + on-site optimization polish */
.brand {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 28% 50%, rgba(255,255,255,.98), rgba(255,255,255,.86) 46%, rgba(255,255,255,.42) 72%, rgba(255,255,255,.10) 100%);
  border: 1px solid rgba(15, 28, 44, .08);
  border-radius: 22px;
  padding: 7px 14px;
  box-shadow:
    0 14px 32px rgba(8, 16, 28, .10),
    inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}
.brand::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.68) 48%, rgba(255,255,255,0) 92%),
    radial-gradient(circle at 8% 50%, rgba(90,162,255,.18), transparent 56%);
  opacity: .92;
  pointer-events: none;
}
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events: none;
}
html[data-theme="dark"] .brand,
html[data-effective-theme="dark"] .brand {
  background:
    radial-gradient(circle at 28% 50%, rgba(255,255,255,.98), rgba(255,255,255,.86) 46%, rgba(255,255,255,.34) 74%, rgba(255,255,255,.08) 100%);
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 18px 42px rgba(0,0,0,.34),
    0 0 42px rgba(90,162,255,.10),
    inset 0 1px 0 rgba(255,255,255,.68);
}
html[data-theme="dark"] .brand::before,
html[data-effective-theme="dark"] .brand::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.70) 48%, rgba(255,255,255,0) 92%),
    radial-gradient(circle at 8% 50%, rgba(90,162,255,.26), transparent 58%);
}
.brand-logo {
  position: relative;
  z-index: 1;
}
.capability-copy h3,
.tool-card h3,
.profile-card h3,
.project-body h3 {
  color: var(--ink);
}
html[data-theme="dark"] .capability-copy h3,
html[data-theme="dark"] .tool-card h3,
html[data-theme="dark"] .profile-card h3,
html[data-theme="dark"] .project-body h3,
html[data-effective-theme="dark"] .capability-copy h3,
html[data-effective-theme="dark"] .tool-card h3,
html[data-effective-theme="dark"] .profile-card h3,
html[data-effective-theme="dark"] .project-body h3 {
  color: #f3f8ff;
}
html[data-theme="dark"] .eyebrow,
html[data-effective-theme="dark"] .eyebrow {
  color: #72b6ff;
}
html[data-theme="dark"] .trust-row span,
html[data-effective-theme="dark"] .trust-row span {
  color: #c7d5e5;
}



/* v2.3 mobile optimization */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video,
canvas,
svg {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font-size: 16px; /* verhindert iOS-Zoom bei Formularfeldern */
}
.site-header {
  min-height: 72px;
}
.nav-wrap {
  min-height: 72px;
}
.brand {
  flex-shrink: 0;
}
.main-nav a,
.theme-toggle,
.nav-toggle,
.btn {
  min-height: 44px;
}
.project-image,
.hero-main-shot img,
.hero-thumb-grid figure img {
  object-position: center;
}
.contact-form input[type="file"] {
  min-width: 0;
  overflow-wrap: anywhere;
}
.legal-card,
.contact-form,
.project-card,
.profile-card,
.tool-card,
.card {
  min-width: 0;
}
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .86fr);
    gap: 34px;
  }
  .main-nav {
    gap: 4px;
  }
  .main-nav a {
    padding-inline: 10px;
  }
}
@media (max-width: 940px) {
  .site-header {
    position: sticky;
  }
  .nav-wrap {
    min-height: 68px;
  }
  .brand-logo {
    width: 142px;
  }
  .brand {
    padding: 6px 10px;
    border-radius: 16px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    padding: 0;
  }
  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a,
  .main-nav .theme-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }
  .hero {
    padding: 46px 0 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy {
    padding-top: 0;
  }
  h1 {
    font-size: clamp(38px, 11vw, 56px);
    letter-spacing: -0.052em;
  }
  h2 {
    font-size: clamp(29px, 8vw, 42px);
    letter-spacing: -0.038em;
  }
  .lead {
    font-size: 18px;
  }
  .hero-showcase {
    border-radius: 26px;
    padding: 12px;
  }
  .hero-main-shot img {
    aspect-ratio: 16 / 11;
  }
  .hero-thumb-grid figure img {
    height: 135px;
  }
  .section {
    padding: 64px 0;
  }
  .profile-grid,
  .quality-grid,
  .split,
  .contact-card,
  .capability-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card-large {
    grid-column: span 2;
  }
  .contact-card {
    padding: clamp(24px, 5vw, 38px);
  }
  .contact-form {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  .hero-actions,
  .contact-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn,
  .form-actions .btn,
  .contact-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
  .trust-row {
    gap: 8px;
  }
  .trust-row span {
    font-size: 13px;
    padding: 7px 10px;
  }
  .engineering-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cards.three,
  .cards.four,
  .toolchain-grid,
  .project-grid,
  .hero-thumb-grid {
    grid-template-columns: 1fr;
  }
  .project-card-large {
    grid-column: span 1;
  }
  .project-image,
  .project-card-large .project-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .project-image-contain {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 14px;
  }
  .hero-thumb-grid figure img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .timeline-item {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }
  .timeline-item > span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .quality-list div {
    align-items: flex-start;
  }
  .legal-container {
    width: min(var(--max), calc(100% - 24px));
  }
  .legal-card {
    padding: 20px;
    border-radius: 18px;
  }
  .legal-card h2 {
    font-size: 22px;
  }
  .legal-card p,
  .legal-card li {
    font-size: 15.5px;
    line-height: 1.68;
  }
}
@media (max-width: 420px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }
  .brand-logo {
    width: 124px;
  }
  .brand {
    padding: 5px 8px;
    border-radius: 14px;
  }
  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .11em;
  }
  .lead {
    font-size: 17px;
  }
  .hero {
    padding-top: 34px;
  }
  .hero-showcase,
  .hero-main-shot,
  .hero-thumb-grid figure,
  .project-card,
  .card,
  .profile-card,
  .tool-card,
  .legal-card,
  .contact-form {
    border-radius: 18px;
  }
  .hero-main-shot figcaption,
  .project-body {
    padding: 16px;
  }
  .card,
  .mini-card,
  .profile-card,
  .tool-card {
    padding: 22px;
  }
  .engineering-strip {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .file-box small,
  .privacy-check span,
  .small-note {
    font-size: 13.5px !important;
  }
  .footer-links {
    gap: 12px;
  }
}



/* v2.5 releasefix accessibility/performance polish */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
html[data-theme="dark"] .mail-link,
html[data-effective-theme="dark"] .mail-link,
html[data-theme="dark"] .legal-card a,
html[data-effective-theme="dark"] .legal-card a {
  color: #8ec2ff;
}
.legal-card a[href^="mailto:"] {
  word-break: break-word;
}
img[width][height] {
  height: auto;
}
.hero-main-shot img {
  height: auto;
}
@media (max-width: 420px) {
  .hero-main-shot img,
  .project-image {
    max-height: 360px;
  }
}
