/* robo1.at – Sergey Vasilyev, Roboterprogrammierung
   Farben angelehnt an VASMA: Blau #1B4F8A, Orange #F5A623 */

:root {
  --blue: #1B4F8A;
  --blue-dark: #0F2E52;
  --navy: #0B1B2E;
  --orange: #F5A623;
  --orange-dark: #D98B0B;
  --text: #1E2833;
  --muted: #56616E;
  --line: #DDE3EA;
  --bg-soft: #F3F6F9;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(11,27,46,.08);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; }
p + p { margin-top: .9em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #DCE4EE; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.section-dark .lead { color: #B9C6D6; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .5em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; color: var(--navy); line-height: 1.15; }
.brand strong { display: block; font-size: 1.15rem; font-weight: 800; }
.brand span { font-size: .78rem; color: var(--muted); }
.brand:hover { color: var(--navy); }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-list a { display: block; white-space: nowrap; padding: 8px 10px; font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none; border-radius: 6px; }
.nav-list a:hover, .nav-list a.active { color: var(--blue); background: var(--bg-soft); }
.nav-list a.nav-cta { background: var(--orange); color: var(--navy); }
.nav-list a.nav-cta:hover { background: var(--orange-dark); color: var(--navy); }
.hamburger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dark); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,46,.94) 0%, rgba(11,27,46,.82) 55%, rgba(11,27,46,.55) 100%); }
.hero .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero p.lead { color: #D3DDE8; margin-top: 18px; }
.hero-small .container { padding-top: 60px; padding-bottom: 60px; }
.breadcrumb { font-size: .85rem; color: #AFC0D3; margin-bottom: 14px; }
.breadcrumb a { color: #D3DDE8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--white); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--blue); font-weight: 800; }
.stat span { font-size: .9rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 3/1; object-fit: cover; width: 100%; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); }
.card-link { margin-top: auto; padding-top: 14px; font-weight: 700; text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(11,27,46,.14); color: inherit; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Lists */
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B2E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Fact box (GEO: kurze, zitierfähige Fakten) */
.facts { border-left: 4px solid var(--orange); background: var(--bg-soft); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0 0 10px; color: var(--muted); }
.facts dd:last-child { margin-bottom: 0; }

/* Process */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; position: relative; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; color: var(--navy); }
.steps span { font-size: .9rem; color: var(--muted); }

/* Logos */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Icons (Anwendungen) */
.apps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.apps figure { text-align: center; font-size: .85rem; font-weight: 600; color: var(--navy); }
.apps img { width: 100%; max-width: 110px; margin: 0 auto 6px; aspect-ratio: 1; object-fit: contain; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Projects */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; padding: 44px 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag { font-size: .78rem; font-weight: 700; background: var(--bg-soft); color: var(--blue); padding: 4px 10px; border-radius: 20px; }
.project-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.project-imgs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.project-imgs img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: var(--white); border-radius: var(--radius); padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin-bottom: .2em; }
.cta p { color: #D3DDE8; max-width: 640px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 3px; }
form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
form input, form select, form textarea { width: 100%; padding: 11px 12px; border: 1px solid #C5CED8; border-radius: 6px; font: inherit; font-size: 1rem; }
form textarea { min-height: 140px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .85rem; color: var(--muted); }

/* Legal pages */
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal table td { padding: 4px 18px 4px 0; vertical-align: top; }

/* Footer */
.site-footer { background: var(--navy); color: #AFC0D3; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #D3DDE8; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .apps { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hamburger { display: block; }
  .nav-list { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
  .nav-list.open { display: flex; }
  .split, .project, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.75rem; }
  .section { padding: 52px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .gallery, .footer-grid, form .row { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 30px 22px; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
}
