/* ROTHER GmbH – rother-elektronik.de
   Design angelehnt an profikoffershop.de (Silber, Rot #e2000b, Archivo, Glas-Panels) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --red: #e2000b;
  --red-dark: #b80009;
  --ink: #2a2b2e;
  --ink-dim: #55585e;
  --ink-faint: #80838a;
  --heading: #141517;
  --line: #d3d6db;
  --line-strong: #a9adb4;
  --bg: #eef0f3;
  --raise: rgba(255, 255, 255, .82);
  --glass: rgba(255, 255, 255, .72);
  --maxw: 1280px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; color: var(--heading); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ---------- Hintergrund-Video (läuft immer, fixiert hinter dem Inhalt) ---------- */
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #1d3550 url("../images/hintergrund-poster.jpg") center / cover no-repeat; }
.site-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(248, 249, 251, .62) 0%, rgba(214, 218, 224, .50) 45%, rgba(246, 247, 249, .62) 100%);
}
.site-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 45%, rgba(220, 224, 230, .2) 50%, rgba(255, 255, 255, .35) 55%, transparent 70%) 0 0 / 250% 100%;
  animation: silver-shimmer 12s ease-in-out infinite;
}
@keyframes silver-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
.site-nav.scrolled { background: rgba(255, 255, 255, .88); box-shadow: 0 6px 24px rgba(42, 43, 46, .12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
@media (min-width: 640px) { .nav-inner { height: 100px; } }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 130px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); }
@media (min-width: 640px) { .brand img { width: 170px; } }
.nav-links { display: none; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 16px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(42, 43, 46, .85);
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"], .nav-links > li.active > a { color: var(--red); }
.nav-links svg { width: 12px; height: 12px; }
.btn-nav { margin-left: 16px; padding: 9px 20px; background: var(--red); color: #fff !important; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background .2s; }
.btn-nav:hover { background: var(--red-dark); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .75); box-shadow: 0 2px 8px rgba(42, 43, 46, .08); }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink-dim); text-decoration: none; transition: background .2s, color .2s; }
.lang-switch a svg { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex-shrink: 0; }
.lang-switch a.active { background: var(--red); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--red); background: #fff; }
@media (max-width: 380px) { .lang-switch a { padding: 7px 8px; } .lang-switch a span { display: none; } }
.block.note p { font-size: 14px; color: var(--ink-faint); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 380px; padding: 10px 0; margin: 0; list-style: none;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-top: 2px solid var(--red);
  box-shadow: 0 18px 40px rgba(42, 43, 46, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 20px; font-size: 14px; color: var(--ink-dim); }
.dropdown a:hover, .dropdown a[aria-current="page"] { color: var(--red); background: rgba(226, 0, 11, .05); }
.menu-toggle { display: inline-flex; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .nav-links { display: flex; } .menu-toggle { display: none; } }

.mobile-menu { display: none; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); max-height: calc(100vh - 84px); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > .container > ul > li > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; font-size: 15px; color: var(--ink); }
.mobile-menu .sub a { display: block; padding: 9px 0 9px 16px; font-size: 14px; color: var(--ink-dim); border-bottom: 1px dashed var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--red) !important; }
.mobile-menu .btn { margin: 18px 0 22px; width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Bausteine ---------- */
.panel {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  padding: 40px 20px;
}
@media (min-width: 640px) { .panel { padding: 48px; } }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--red); flex-shrink: 0; }
.kicker span { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.lead { font-size: 1.15rem; color: var(--ink-dim); max-width: 46rem; }
.red { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: #fff; border: 1px solid var(--red); transition: background .2s, border-color .2s, color .2s; cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: rgba(211, 214, 219, .35); color: var(--ink); border-color: var(--line-strong); }
.btn-row { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }
.cta-center { text-align: center; margin: 8px 0; }

/* Hero (Startseite) */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; right: 0; width: 60%; height: 60%; opacity: .35; background: radial-gradient(ellipse at 80% 20%, rgba(226, 0, 11, .25), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 0, 11, .4), transparent); }
.hero .container { position: relative; padding-top: 150px; padding-bottom: 90px; width: 100%; }
@media (min-width: 640px) { .hero .container { padding-top: 190px; padding-bottom: 120px; } }
.hero-card { max-width: 48rem; margin: 0 auto; text-align: center; padding-top: 110px; padding-bottom: 110px; }
@media (min-width: 640px) { .hero-card { padding-top: 180px; padding-bottom: 180px; } }
.hero-card { margin-top: 38px; }
@media (min-width: 640px) { .hero-card { margin-top: 44px; } }
.hero-card .kicker { justify-content: center; }
.hero-card .btn-row { justify-content: center; align-items: center; }
.hero-card .kicker::before { width: 48px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 24px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 36px; }

/* Abschnitte */
.section { padding: 56px 0; }
@media (min-width: 640px) { .section { padding: 80px 0; } }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split img { width: 100%; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(42, 43, 46, .15); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-dim); }
.check-list li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--red); flex-shrink: 0; }

/* Produkt-Karten */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--raise); border: 1px solid var(--line); color: inherit; transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: rgba(226, 0, 11, .45); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(42, 43, 46, .14); color: inherit; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px 26px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: 1; }
.card h3 { font-size: 1.08rem; font-weight: 600; margin: 0; transition: color .2s; }
.card:hover h3 { color: var(--red); }
.card-arrow { width: 20px; height: 20px; color: var(--ink-faint); flex-shrink: 0; transition: transform .2s, color .2s; }
.card:hover .card-arrow { color: var(--red); transform: translateX(4px); }

/* ---------- Unterseiten ---------- */
.page { padding: 140px 0 72px; }
@media (min-width: 640px) { .page { padding: 176px 0 88px; } }
.page .panel { max-width: 1040px; margin: 0 auto; }
.page.narrow .panel { max-width: 820px; }
.page h1 { overflow-wrap: anywhere; font-size: clamp(1.65rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 32px; }
.content { color: var(--ink-dim); }
.content .block { margin-bottom: 36px; }
.content .block:last-child { margin-bottom: 0; }
.content h2 { font-size: 1.3rem; font-weight: 650; margin: 0 0 14px; }
.content h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.content b, .content strong { color: var(--heading); font-weight: 600; }
.content a:not(.btn):not(.card):not(.lb) { text-decoration: underline; text-underline-offset: 2px; }
.content ul { padding-left: 1.2em; }
.content ul li::marker { color: var(--red); }
.legal .block > div + div { margin-top: 0; }
.legal h2 { font-size: 1.12rem; }

figure.fig { margin: 0; }
figure.fig img { width: 100%; max-height: 560px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 8px; }
figure.fig figcaption { margin-top: 10px; font-size: .95rem; color: var(--ink-dim); }
figure.fig.right { max-width: 420px; }
figure.fig.fit { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
figure.fig.fit img { width: auto; max-width: 100%; height: auto; max-height: 560px; }
@media (min-width: 760px) { figure.fig.right { float: right; margin: 0 0 18px 28px; width: 45%; } }
.block::after { content: ""; display: table; clear: both; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: rgba(255, 255, 255, .85); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: rgba(226, 0, 11, .06); color: var(--heading); font-weight: 600; border-bottom: 2px solid var(--red); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(238, 240, 243, .5); }
.table-wrap td.pic { background: #fff !important; }
.table-wrap td.pic img { max-height: 240px; width: auto; margin: 0 auto; }

a.lb { display: block; cursor: zoom-in; text-decoration: none; }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .cc-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 0 !important; }

.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none !important; }
.pager .next { margin-left: auto; }

/* Slider (Systemkoffer) */
.slider { position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.slider-track { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; aspect-ratio: 16 / 9; position: relative; margin: 0; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.slide figcaption { position: absolute; left: 0; bottom: 0; background: rgba(20, 21, 23, .72); color: #fff; padding: 8px 16px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); cursor: pointer; font-size: 22px; line-height: 1; }
.slider-btn:hover { background: var(--red); color: #fff; }
.slider-btn.prev { left: 12px; } .slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border: 0; padding: 0; background: rgba(42, 43, 46, .3); cursor: pointer; }
.slider-dots button.active { background: var(--red); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(20, 21, 23, .88); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--raise); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.footer-grid { display: grid; gap: 40px; padding: 64px 0 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-logo { width: 230px; margin-bottom: 22px; }
.site-footer p, .site-footer li, .site-footer a { font-size: 14px; color: var(--ink-dim); }
.site-footer a:hover { color: var(--red); }
.site-footer h4 { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { margin-top: 56px; padding: 28px 0 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p, .footer-bottom a { font-size: 12px; color: var(--ink-faint); margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .site-bg::after { animation: none; }
  .slider-track, .card, .card-img img { transition: none; }
}
@media print {
  .site-bg, .site-nav, .site-footer, #cc-overlay { display: none !important; }
  .page { padding-top: 0; }
  .panel { box-shadow: none; background: #fff; }
}
