﻿/*
Theme Name: PED-B Relaunch
Theme URI: https://ped-b.de/
Author: PED-B GmbH & Co. KG
Description: Schlankes WordPress-Theme fuer PED-B GmbH & Co. KG mit DHDCalc Tool.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: pedb-relaunch
*/

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --text: #18212b;
  --muted: #5d6b7a;
  --line: #d7e0e8;
  --accent: #00a651;
  --accent-2: #008a45;
  --accent-soft: #e7f7ee;
  --ink: #0c1720;
  --shadow: 0 16px 44px rgba(15, 32, 47, 0.12);
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(215, 224, 232, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 82px;
  max-height: 80px;
  height: auto;
}

.header-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 38px;
  border: 1px solid rgba(0, 166, 81, 0.28);
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--accent-soft);
}

.header-info strong {
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  background: var(--accent-2);
  font-size: 12px;
}

.header-info span {
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-dropdown > button,
.button,
.nav-toggle {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.nav-dropdown > button:hover,
.button:hover,
.nav-toggle:hover {
  border-color: rgba(0, 166, 81, 0.28);
  background: var(--accent-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  display: none;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(244, 246, 248, 0.97) 0%, rgba(244, 246, 248, 0.9) 45%, rgba(244, 246, 248, 0.42) 100%),
    url("assets/hero-diagnostics.png") center / cover no-repeat;
}

.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  background: var(--surface);
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.service-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(215, 224, 232, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 22, 24, 0.97), rgba(0, 86, 53, 0.9)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
  color: #e9f2f8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-visual::before,
.service-visual::after {
  content: "";
  position: absolute;
  inset: 82px;
  border: 1px solid rgba(205, 231, 247, 0.22);
  border-radius: 50%;
}

.service-visual::after {
  inset: 142px;
}

.service-visual-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  padding: 18px;
  border: 1px solid rgba(205, 231, 247, 0.38);
  border-radius: 50%;
  background: rgba(8, 16, 24, 0.86);
  transform: translate(-50%, -50%);
  text-align: center;
}

.service-visual-center strong {
  font-size: 30px;
}

.service-visual-center span {
  color: #a8c6d8;
  font-size: 13px;
}

.service-orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 5px;
  width: 178px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(205, 231, 247, 0.28);
  border-radius: 8px;
  background: rgba(244, 246, 248, 0.08);
  backdrop-filter: blur(10px);
  color: #e9f2f8;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-orbit:hover {
  border-color: rgba(0, 166, 81, 0.82);
  background: rgba(0, 166, 81, 0.16);
  transform: translateY(-2px);
}

.service-orbit span {
  color: #5ee08d;
  font-weight: 800;
}

.service-orbit strong {
  font-size: 18px;
}

.service-orbit small {
  color: #d7f6e4;
  line-height: 1.35;
}

.orbit-obd { left: 50%; top: 26px; transform: translateX(-50%); }
.orbit-dev { right: 24px; top: 155px; }
.orbit-package { right: 66px; bottom: 36px; }
.orbit-data { left: 66px; bottom: 36px; }
.orbit-doc { left: 24px; top: 155px; }

.section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 64px);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head-action {
  grid-template-columns: minmax(0, 820px) auto;
  align-items: start;
  justify-content: space-between;
  max-width: none;
  gap: 18px;
}

.back-top {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 166, 81, 0.28);
  border-radius: 999px;
  color: var(--accent-2);
  background: var(--accent-soft);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.back-top:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}



#leistungen {
  padding-bottom: clamp(18px, 2.2vw, 32px);
}

#leistung-obd {
  padding-top: clamp(18px, 2.2vw, 32px);
}

.services-title {
  margin-bottom: 0;
}

.services-title .eyebrow {
  color: var(--text);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  text-transform: none;
}

.section-head > p:not(.eyebrow),
.reference-section > p,
.split-content p,
.check-list {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-band div {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
}

.metric {
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
}

.split-section {
  background: var(--surface);
}

.detail-section {
  scroll-margin-top: 84px;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 34px;
  align-items: start;
}

.split-content > div {
  display: grid;
  gap: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px 22px 22px 42px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-2);
}

.reference-section,
.legal-page {
  background: var(--surface);
}

.reference-note {
  max-width: 1040px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.logo-slider {
  position: relative;
  max-width: 100%;
  margin-top: 30px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: logo-slide 46s linear infinite;
}

.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 224px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 32, 47, 0.08);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.logo-card:hover {
  border-color: rgba(0, 166, 81, 0.56);
  box-shadow: 0 16px 34px rgba(0, 86, 53, 0.12);
  transform: translateY(-2px);
}

.logo-card img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.logo-card img.logo-wide {
  width: 76px;
  height: 34px;
}

.logo-card span {
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
}

@keyframes logo-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tool-page {
  min-height: calc(100vh - 88px);
  padding-top: 20px;
  background:
    linear-gradient(90deg, rgba(234, 240, 245, 0.96) 0%, rgba(234, 240, 245, 0.88) 48%, rgba(234, 240, 245, 0.38) 100%),
    url("assets/hero-diagnostics.png") center / cover no-repeat;
}

.tool-page .section-head {
  gap: 5px;
  margin-bottom: 12px;
}

.tool-page h1 {
  font-size: clamp(24px, 3vw, 36px);
}

.tool-page .section-head > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.45;
}

.tool-frame {
  display: block;
  width: 100%;
  min-height: 850px;
  border: 0;
  border-radius: 8px;
  background: #f4f7fb;
}

.inline-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(0, 166, 81, 0.24);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-2);
}

.inline-tool-link div {
  display: grid;
  gap: 4px;
}

.inline-tool-link span {
  color: var(--muted);
}

.reference-section > p {
  max-width: 900px;
}

.legal-page {
  min-height: calc(100vh - 88px);
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 900px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-content h2 {
  margin-top: 14px;
  color: var(--text);
  font-size: 22px;
}

.legal-content a {
  color: var(--accent);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
}

.contact-section .eyebrow {
  color: #5ee08d;
}

.contact-section address {
  font-style: normal;
  line-height: 1.8;
}

.contact-section a {
  color: #d7f6e4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: #081018;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cde7f7;
}

@media (max-width: 1060px) {
  .hero,
  .split-content,
  .contact-section {
    grid-template-columns: 1fr;
  }`r`n
  .service-visual {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
  }

  .service-visual::before,
  .service-visual::after {
    display: none;
  }

  .service-visual-center,
  .service-orbit,
  .orbit-obd,
  .orbit-dev,
  .orbit-package,
  .orbit-data,
  .orbit-doc {
    position: static;
    transform: none;
  }

  .service-visual-center {
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    min-height: 92px;
    border-radius: 8px;
  }

  .service-orbit {
    width: auto;
    min-height: 118px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
    height: auto;
    min-height: 88px;
  }

  .header-info {
    margin-right: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 4px 0 0 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .service-visual,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .inline-tool-link {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head-action {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .back-top {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .logo-card {
    width: 190px;
  }

  .tool-frame {
    min-height: 980px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }

  .logo-slider {
    overflow-x: auto;
    mask-image: none;
  }
}

