/* Design tokens measured from the original site capture */
:root {
  --blue: #124785;
  --dark: #353535;
  --body-bg: #494949;
  --box-bg: #f2f2f2;
  --text: #515151;
  --muted: #646464;
  --tagline: #818286;
  --crumb: #5d5d5d;
  --font: Verdana, Geneva, sans-serif;
  --size-body: 11.76px;
  --size-nav: 11.2px;
  --size-side: 10.08px;
  --size-h2: 15.288px;
  --page-w: 890px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-width: 900px;
  padding: 50px 0 34px;
  background-color: var(--body-bg);
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0 1px, rgba(0,0,0,0) 1px 3px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, rgba(255,255,255,0) 1px 3px);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--text);
}

/* solid band across the very top, like the original */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: var(--dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: #fff;
  color: var(--blue);
  padding: 4px 8px;
  z-index: 10;
}
.skip-link:focus { left: 4px; top: 4px; }

/* ---------------------------------------------------------------- page box */
.page {
  width: var(--page-w);
  margin: 0 auto;
  background: #ffffff;
}

/* ------------------------------------------------------------------ header */
.site-head { position: relative; padding: 8.96px 10px 0; }

/* The original keeps the h1 lettering in near-white over the header art. */
.site-title {
  position: absolute;
  left: 10px;
  top: 11px;
  width: 174px;
  height: 128px;
  margin: 0;
  font-size: 22.4px;
  font-weight: 400;
  line-height: 28px;
}
.site-title a {
  position: absolute;
  left: 0;
  top: 100px;
  display: block;
  height: 28px;
  color: #ffffff;
  text-decoration: none;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 115px;
  padding: 3px 0 0;
}

.logo { flex: none; display: flex; align-items: center; gap: 16px; }
.logo svg { display: block; }
.dimu-logo {
  display: block;
  width: 176px;
  height: 96px;
  background: url('/assets/dimu-logo.png') center / contain no-repeat;
}
.brand-line a { color: inherit; text-decoration: none; }

.brand-contact {
  text-align: right;
  padding-top: 22px;
  line-height: 1.45;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #353535;
}
.brand-line {
  font-size: 11.76px;
  color: #3b66a7;
}

.sub-title {
  margin: -116px 0 0;
  padding: 0;
  height: 146px;
  display: flex;
  align-items: flex-end;
  font-size: 16.8px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--tagline);
}

/* ------------------------------------------------------------- top nav bar */
.main-nav {
  margin-top: 24.192px;
  height: 36px;
  background: var(--blue);
  display: flex;
  align-items: center;
}

#indexedsearch { margin: 0 0 0 8px; flex: none; }
#indexedsearch fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--size-nav);
}
.search-glass { flex: none; }
#inputText {
  width: 114px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid #c9c9c9;
  font-family: var(--font);
  font-size: var(--size-nav);
  color: var(--text);
}
#inputButton { width: 20px; height: 20px; display: block; cursor: pointer; }

.main-nav ul {
  margin: 0;
  padding: 0 0 0 6px;
  list-style: none;
  display: flex;
}
.main-nav a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  color: #ffffff;
  font-size: var(--size-nav);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.12); }
.main-nav a.selected, .main-nav a.selected:hover { background: var(--dark); }

/* hamburger button, only shown on small screens */
.nav-toggle {
  display: none;
  margin-left: auto;
  margin-right: 8px;
  border: 0;
  background: none;
  padding: 8px 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
}

/* ------------------------------------------------------------------- main */
.main { padding: 18px 20px 0; }
.main::after { content: ''; display: block; clear: both; }
.main-home {
  padding: 30px 20px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.breadcrumb {
  margin: 0 0 18px;
  font-size: var(--size-side);
  color: var(--crumb);
}
.breadcrumb a { color: var(--crumb); text-decoration: none; }
.breadcrumb strong { font-weight: 700; }

.main h2 {
  margin: 12px 0 15.288px;
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.main h2:first-of-type { margin-top: 0; }
.main h1.csc-like-h2 {
  margin: 12px 0 15.288px;
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.main p { margin: 0 0 11.2px; }

.main ul.dots {
  margin: 0 0 11.2px;
  padding-left: 40px;
}
.main ul.dots li { line-height: 18px; }

/* home */
.home-content { flex: 0 0 606px; }
.home-content p:first-child strong { color: var(--dark); }

.hero {
  position: relative;
  display: block;
  width: 600px;
  height: 400px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #26221c;
}
.hero img {
  display: block;
  width: 600px;
  height: 400px;
}

/* sidebar boxes */
.sidebar { width: 177px; margin-top: 18px; flex: none; }
.box { margin-bottom: 22px; }
.box > h3 {
  margin: 0;
  padding: 8px 11.2px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11.592px;
  font-weight: 700;
  line-height: 1.45;
}
.box-content {
  padding: 10.08px 11.2px;
  background: var(--box-bg);
  border: 1px solid #d9d9d9;
  border-top: 0;
  font-size: var(--size-side);
  line-height: 18px;
  color: var(--text);
}
.box-content.box-plain { border-top: 1px solid #d9d9d9; }
.box-content > :last-child { margin-bottom: 0; }
.box-content p { margin: 0 0 10px; }
.box-content ul {
  margin: 0;
  padding-left: 20px;
}
.box-content li { line-height: 18px; }
.box-content li a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.box-content li a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- sub pages */
.float-left { float: left; margin: 0 10px 10px 0; display: block; }
.info-grid {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-grid > .zoom { flex: 0 0 404px; }
.info-grid > .zoom img { display: block; }
.main-info .breadcrumb { margin-bottom: 24.192px; }
.main-info .img-row { margin-top: 18px; }
.img-row {
  clear: left;
  display: flex;
  gap: 10px;
  margin-top: 11px;
}
.img-row img { display: block; }

/* produkte */
.main-produkte { position: relative; padding-bottom: 34px; }
.subnav {
  float: left;
  width: 190px;
  margin-left: -10px;
  background: var(--box-bg);
}
.subnav ul { margin: 0; padding: 6px 0; list-style: none; }
.subnav a {
  display: block;
  padding: 6px 20px;
  font-size: var(--size-nav);
  line-height: 13px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid #ffffff;
}
.subnav li:last-child a { border-bottom: 0; }
.subnav a:hover { background: #e9e9e9; }

.produkte-content { margin-left: 219px; width: 651px; }
.main-produkte h2 { margin-top: 12px; }
.main-produkte h2:first-of-type { margin-top: 0; }
.main-produkte h1.csc-like-h2 { margin-top: 6px; }

.prod-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.prod-row img { display: block; }
.prod-cap {
  width: 200px;
  margin-top: 4px;
  font-size: 10.584px;
  line-height: 14px;
  color: var(--text);
}
.prod-row ul.push {
  margin: 0;
  padding-left: 18px;
  width: 441px;
}
.prod-row ul.push li { line-height: 18px; }

.panel {
  clear: both;
  margin-top: 20px;
  padding: 11.2px 11.2px 28px;
  background: var(--box-bg);
}
.panel > h2 { margin-top: 0; }
.acc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.acc-item { flex: 0 1 calc((100% - 20px) / 3); min-width: 0; }
.acc-item img { display: block; width: 100%; max-width: 155px; height: auto; margin: 0 auto; }
.acc-item .prod-cap { width: 155px; max-width: 100%; margin-left: auto; margin-right: auto; }

.downloads-row { display: flex; gap: 6px; align-items: flex-start; }
.downloads-row img { display: block; margin: 0 5px 0 0; }
.downloads-info { flex: 1; }
.file-line { display: flex; justify-content: space-between; margin: 0 0 4px; }
.file-line a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--size-body);
}
.file-line a:hover { text-decoration: underline; }
.file-line .size { color: var(--text); font-size: var(--size-body); }
.downloads-info p { margin: 0 0 4px; }

.bookmarks { margin-top: 30px; margin-bottom: 35px; font-size: var(--size-side); }

/* vorteile */
.center-img { display: block; margin: 0 auto; }
.compare {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--text);
}
.compare th, .compare td {
  border: 1px solid #e5e5e5;
  padding: 6px 11px;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.compare thead th { background: #e5e5e5; }
.compare thead th:first-child { background: #ffffff; border-top: 0; border-left: 0; }
.compare td.rowlabel { background: var(--box-bg); width: 107px; }

/* search results */
.search-hits { margin: 11.2px 0; padding-left: 0; list-style: none; }
.search-hits li { margin-bottom: 11.2px; line-height: 18px; }
.search-hits a { color: var(--blue); font-weight: 700; }
.hit-snippet { color: var(--muted); }
.hit-count { color: var(--muted); }
.hit-path { font-size: var(--size-side); color: #999999; text-transform: uppercase; }

/* videos page */
.video-tile {
  position: relative;
  display: block;
  width: 404px;
  max-width: 100%;
  margin-top: 12px;
}
.video-tile img { display: block; width: 100%; height: auto; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.video-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 11.2px;
  background: rgba(18, 71, 133, 0.85);
  color: #fff;
  font-size: var(--size-nav);
}

/* picture zoom viewer */
a.zoom { cursor: zoom-in; }
.block-center { display: block; width: 617px; margin: 0 auto; }
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.zoom-overlay img {
  max-width: 98vw;
  max-height: 98vh;
  width: auto;
  height: auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  background: #fff;
}
.zoom-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* videos page */
.main-videos { display: flex; gap: 41px; padding: 18px 20px 0; align-items: flex-start; }
.main-videos .home-content { flex: 0 0 606px; }
.yt-video {
  display: block;
  width: 606px;
  max-width: 100%;
  height: 341px;
  border: 0;
  margin: 15.288px 0 24.192px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.videos-sidebar { width: 212px; flex: none; margin-top: 28px; }
.vbox {
  background: #e5e5e5;
  padding: 13px 12px;
  margin-bottom: 16px;
  font-size: var(--size-body);
  color: var(--text);
}
.vbox h3 { margin: 0 0 8px; font-size: 12.88px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.vbox ul.dots { margin: 8px 0 0; padding-left: 18px; }
.vbox ul.dots li { line-height: 18px; }
.vbox a.zoom { display: block; margin: 6px 0; }
.vbox a.zoom img { display: block; }

/* sicherheit page */
.safety-intro { overflow: hidden; }
.safety-intro p { width: 350px; }
.safety-img { float: right; margin: 6px 0 10px 15px; display: block; }
.safety-items { margin-top: 20px; }
.safety-item { overflow: hidden; padding: 13px 15px 20px; }
.safety-item:nth-child(odd) { background: #cccccc; }
.safety-item + .safety-item { margin-top: 30px; }
.safety-item h3 {
  margin: 0 0 13px;
  font-size: 13.524px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.safety-item p { margin: 0; }

/* impressum page */
.main-impressum { position: relative; }
.impressum-side { min-height: 100%; position: absolute; left: -10px; top: 18px; bottom: 0; float: none; margin-right: 0; }
.impressum-content { margin-left: 237px; width: 369px; }
.impressum-content p { margin: 0 0 11.2px; }
.impressum-content a { color: var(--blue); text-decoration: none; }
.impressum-content a:hover { text-decoration: underline; }
.kv { display: flex; gap: 12px; }
.kv span:first-child { flex: 0 0 51px; }

/* ------------------------------------------------------------------ footer */
.site-foot {
  margin: 12px 17px 0;
  border-top: 2px solid var(--blue);
  padding-top: 20px;
}
.site-foot h2 {
  margin: 0 0 14px;
  font-size: 14.56px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}
.site-foot h2 a { color: var(--muted); text-decoration: none; }
.site-foot p {
  margin: 11.2px 0 0;
  font-size: var(--size-nav);
  line-height: 18px;
  color: var(--muted);
}
.align-center { text-align: center; }

/* social icons below the page box */
.social-row {
  width: var(--page-w);
  margin: 11.2px auto 0;
  display: flex;
  gap: 10px;
}
.social-item {
  position: relative;
  width: 64px;
  height: 64px;
  display: block;
}
.social-item > a { display: block; text-decoration: none; }
.social-item img { display: block; width: 64px; height: 64px; border-radius: 50%; }
.social-cap {
  position: absolute;
  top: 50px;
  left: 0;
  width: 64px;
  text-align: center;
  font-size: 9.8px;
  line-height: 11px;
  color: var(--muted);
}

/* ------------------------------------------------------- responsive layer */
@media (max-width: 700px) {
  body {
    min-width: 0;
    padding: 30px 5px 34px;
  }
  .page { width: auto; margin: 0 auto; max-width: var(--page-w); }

  .brand-row { height: auto; flex-direction: column; gap: 6px; }
  .site-head { overflow: hidden; }
  .site-title { top: 2px; height: 26px; }
  .site-title a { position: static; height: auto; clip-path: inset(50%); }
  .logo { width: 100%; }
  .logo svg { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 390px; height: auto; }
  .dimu-logo { flex: 0 0 92px; height: 50px; }
  .brand-contact { padding-top: 6px; width: 100%; text-align: left; }
  .sub-title { margin-top: 0; height: auto; display: block; padding-bottom: 8px; }
  .site-foot p br { display: none; }

  .main-nav { margin-top: 14px; height: auto; min-height: 36px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav ul { display: none; width: 100%; flex-direction: column; padding: 0; }
  .main-nav.open ul { display: flex; }
  .main-nav.open { padding-bottom: 6px; }
  .main-nav ul a { height: 40px; font-size: 13px; }

  .main { padding: 18px 15px 0; }
  .main-home {
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
  }
  .home-content { flex: 1 1 auto; width: auto; }
  .sidebar { width: auto; margin-top: 14px; }
  .box { max-width: 420px; }

  .hero { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 2; }
  .hero img { width: 100%; height: 100%; object-fit: cover; }

  img { max-width: 100%; height: auto; }

  .subnav { float: none; width: auto; max-width: 320px; margin-left: 0; margin-bottom: 18px; }
  .impressum-side { position: static; min-height: 0; }
  .impressum-content { margin-left: 0; width: auto; }
  .produkte-content { margin-left: 0; width: auto; }
  .main-videos { flex-direction: column; gap: 10px; }
  .main-videos .home-content { flex: 1 1 auto; width: auto; }
  .videos-sidebar { width: auto; margin-top: 10px; }
  .yt-video { width: 100%; height: auto; }
  .safety-intro p { width: auto; }
  .safety-img { max-width: 42%; height: auto; }
  .prod-row { flex-wrap: wrap; }
  .prod-row ul.push { width: auto; flex: 1 1 280px; }
  .acc-row { flex-wrap: wrap; }
  .acc-item { flex: 0 0 155px; width: 155px; }
  .acc-item img { width: 155px; }
  .acc-item .prod-cap { width: 155px; }
  .panel { padding: 11.2px 10px; }

  .block-center { width: auto; max-width: 617px; }
  .table-scroll { overflow-x: auto; }
  .compare { min-width: 620px; }

  .img-row { flex-wrap: wrap; }
  .img-row img { width: 100%; height: auto; }
  .img-row a { flex: 1 1 220px; max-width: 275px; }

  .site-foot { margin: 12px 12px 0; }
  .social-row { width: auto; margin-left: 5px; }
}

@media (max-width: 560px) {
  .float-left { float: none; margin: 0 0 11.2px; width: 100%; max-width: 404px; }
  .info-grid { flex-direction: column; }
  .info-grid > .zoom { flex: 1 1 auto; max-width: 404px; }
  .sub-title { font-size: 14.56px; }
}
