/* ==========================================================================
   WEYERGANS CORPORATE DESIGN SYSTEM (CD-Manual V)
   - Primärfarben: Weyergans Blau (Pantone 661 / #003399), Weyergans Grau (Pantone 817 / #999999), Reinweiß
   - Typografie: Headlines in Neue Helvetica Thin 35, Fließtext in Rotis Sans Serif 45
   - Proportion: Headline zu Copy idealerweise 5:1
   - Schlüsselelement: Aufrechte Weyergans-Wabe (Spitzen oben & unten) mit grauem Rahmen
   - Bildwelt: Hoher Weißanteil, medizinisches Licht, Überstrahlungen ins Helle
   ========================================================================== */

:root {
  --wg-blue: #003399;         /* CMYK 100/72/0/6 / Pantone 661 */
  --wg-gray: #999999;         /* CMYK 0/0/0/40 / Pantone 817 */
  --wg-text-gray: #595959;    /* 65% Schwarz für Fließtext */
  --wg-white: #ffffff;
  --wg-bg-light: #f8fafc;
  --wg-line: #e2e8f0;
  --font-headline: "Helvetica Neue Thin", "HelveticaNeue-Thin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-copy: "Rotis Sans Serif", "RotisSansSerif", "Segoe UI", Candara, Bitstream Vera Sans, DejaVu Sans, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--wg-white);
  color: var(--wg-text-gray);
  font-family: var(--font-copy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 200;
  color: var(--wg-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  margin-bottom: 0.4em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
  letter-spacing: 0.03em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--wg-text-gray);
}

.subline {
  font-family: var(--font-headline);
  color: var(--wg-blue);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  display: inline-block;
  font-weight: 300;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--wg-text-gray);
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-light {
  background-color: var(--wg-bg-light);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wg-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-container img {
  display: block;
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--wg-line);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1px;
  background: var(--wg-blue);
  content: "";
  transition: transform 0.2s ease;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--wg-text-gray);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--wg-blue);
}

.nav-menu a.btn {
  color: var(--wg-white);
}

.nav-menu a.btn:hover {
  color: var(--wg-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wg-blue);
  color: var(--wg-white);
  border: 1px solid var(--wg-blue);
  padding: 6px 10px;
  font-family: var(--font-headline);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--wg-blue);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--wg-gray);
  color: var(--wg-blue);
}

.btn-secondary:hover {
  border-color: var(--wg-blue);
  background-color: var(--wg-blue);
  color: var(--wg-white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 65%, #f0f4f9 100%);
  overflow: hidden;
  min-height: 580px;
  padding: 60px 0;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hero-text ul {
  list-style: none;
  margin: 25px 0 35px 0;
}

.hero-text li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--wg-text-gray);
  font-size: 0.95rem;
}

.hero-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: var(--wg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-box {
  position: relative;
  width: 100%;
  height: 480px;
  border: 1px solid var(--wg-line);
  background: #f1f5f9;
  overflow: hidden;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Überstrahlung nach CD */
.hero-img-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, transparent 40%);
  pointer-events: none;
}

/* Aufrechte Weyergans-Text-Wabe */
.honeycomb-badge {
  position: absolute;
  bottom: 25px;
  left: 20px;
  z-index: 3;
  width: 130px;
  height: 150px;
  background: var(--wg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(0, 51, 153, 0.25);
}

.honeycomb-badge span.time {
  font-family: var(--font-headline);
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--wg-white);
  line-height: 1;
}

.honeycomb-badge span.desc {
  font-size: 0.72rem;
  color: var(--wg-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  line-height: 1.2;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.photo-box {
  position: relative;
  width: 100%;
  height: 440px;
  border: 1px solid var(--wg-line);
  overflow: hidden;
  background: #f8fafc;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-block {
  border-left: 2px solid var(--wg-blue);
  padding: 10px 0 10px 24px;
  margin: 30px 0 15px 0;
  font-style: italic;
  color: var(--wg-blue);
  font-size: 1.15rem;
  line-height: 1.5;
}

.annotation {
  font-size: 0.78rem;
  color: var(--wg-gray);
  line-height: 1.4;
}

/* Prozess-Raster */
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 45px;
}

ol.process-row {
  list-style: none;
}

.process-step {
  border-top: 1px solid var(--wg-gray);
  padding-top: 18px;
}

.process-num {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  color: var(--wg-blue);
  font-weight: 200;
  display: block;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Waben-Grid für die 5 diagnostischen Werte */
.honeycomb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.honeycomb-card {
  position: relative;
  background: var(--wg-white);
  border: 1px solid var(--wg-line);
  padding: 35px 20px 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.honeycomb-card:hover {
  border-color: var(--wg-blue);
  transform: translateY(-4px);
}

.wabe-icon-wrapper {
  width: 55px;
  height: 64px;
  background-color: var(--wg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.wabe-icon-wrapper span {
  font-family: var(--font-headline);
  color: var(--wg-white);
  font-size: 1.1rem;
  font-weight: 300;
}

.honeycomb-card h4 {
  font-family: var(--font-headline);
  color: var(--wg-blue);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.honeycomb-card p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.report-box {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--wg-line);
  overflow: hidden;
  padding: 20px;
}

.report-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 51, 153, 0.08));
}

/* Vier-Säulen-Konzept (Quadriga-Grafik) */
.quadriga-figure {
  margin: 40px 0;
  border: 1px solid var(--wg-line);
  background: var(--wg-white);
  overflow: hidden;
}

.quadriga-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hilfsklassen (ersetzen frühere Inline-Styles) */
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-block {
  width: 100%;
}

.spaced-top {
  margin-top: 60px;
}

.spaced-y {
  margin: 40px 0;
}

.photo-box--compact {
  height: 350px;
}

.photo-box--tall {
  height: 380px;
}

.contact-details {
  margin-top: 30px;
}

.contact-details a,
.footer address a,
.footer-link {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover,
.footer address a:hover,
.footer-link:hover {
  color: var(--wg-blue);
}

/* Geräte-Galerie nach CD */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.device-card {
  background: var(--wg-white);
  border: 1px solid var(--wg-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 51, 153, 0.08);
  border-color: var(--wg-blue);
}

.device-card.featured {
  grid-column: span 2;
}

.device-img-box {
  width: 100%;
  height: 250px;
  background: #edf2f7;
  overflow: hidden;
  position: relative;
}

.device-card.featured .device-img-box {
  height: 330px;
}

.device-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-content {
  padding: 24px;
}

.device-content h3 a {
  color: inherit;
  text-decoration: none;
}

.device-content h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.device-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-headline);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wg-blue);
  border-bottom: 1px solid var(--wg-gray);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.device-link:hover {
  border-color: var(--wg-blue);
}

.device-content .subline {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

/* Downloads */
.download-list {
  list-style: none;
  max-width: 900px;
  margin-top: 45px;
  border-top: 1px solid var(--wg-line);
}

.download-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--wg-line);
}

.download-type {
  width: 48px;
  height: 56px;
  background: var(--wg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wg-white);
  font-family: var(--font-headline);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.download-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.download-text p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.download-meta {
  font-size: 0.75rem;
  color: var(--wg-gray);
  letter-spacing: 0.03em;
}

.download-item .btn {
  padding: 10px 18px;
  font-size: 0.75rem;
}

/* Angebot / Early Bird */
.offer {
  text-align: center;
}

.offer .lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.pricecard {
  position: relative;
  max-width: 560px;
  margin: 50px auto 0;
  padding: 60px 40px 45px;
  background: var(--wg-white);
  border: 1px solid var(--wg-line);
  border-top: 3px solid var(--wg-blue);
  box-shadow: 0 12px 30px rgba(0, 51, 153, 0.08);
}

.pricecard-badge {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 88px;
  background: var(--wg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
  color: var(--wg-white);
  font-family: var(--font-headline);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-headline);
  font-weight: 200;
  color: var(--wg-blue);
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
  margin-bottom: 18px;
}

.price small {
  font-size: 0.32em;
  color: var(--wg-text-gray);
  letter-spacing: 0.05em;
}

.price-note {
  margin-bottom: 6px;
}

.price-note s {
  color: var(--wg-gray);
}

.price-alt {
  font-size: 0.9rem;
  color: var(--wg-gray);
  margin-bottom: 30px;
}

.pricecard .btn-group {
  justify-content: center;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact-cta {
  border: 1px solid var(--wg-line);
  background: var(--wg-bg-light);
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-cta h3 {
  margin-bottom: 12px;
}

.contact-cta p {
  margin-bottom: 28px;
}

/* Markenzeichen ® klein und hochgestellt */
.reg {
  font-size: 0.5em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.85em;
  margin-left: 0.05em;
  letter-spacing: 0;
}

body.nav-locked {
  overflow: hidden;
}

/* Sprachwechsler */
.header-inner nav {
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 24px;
  border: 1px solid var(--wg-line);
}

.lang-switch a {
  display: block;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--wg-text-gray);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--wg-blue);
}

.lang-switch a[aria-current="true"] {
  background: var(--wg-blue);
  color: var(--wg-white);
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--wg-line);
  padding: 60px 0 40px 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer h5 {
  font-family: var(--font-headline);
  color: var(--wg-blue);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer address {
  font-style: normal;
  line-height: 1.6;
}

.footer-meta {
  border-top: 1px solid var(--wg-line);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--wg-gray);
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }
  .lang-switch {
    margin-left: 12px;
  }
  /* Off-Canvas-Menü, klappt von links aus (fixed bezieht sich wegen backdrop-filter auf den Header) */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: min(320px, 85vw);
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--wg-white);
    border-right: 1px solid var(--wg-line);
    box-shadow: 8px 0 30px rgba(0, 51, 153, 0.08);
    padding: 10px 30px 25px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 2;
  }
  .nav-open .nav-menu {
    transform: translateX(0);
    visibility: visible;
  }
  .header::after {
    content: "";
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: calc(100vh - 80px);
    background: rgba(0, 31, 92, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  .nav-open::after {
    opacity: 1;
  }
  .nav-menu li a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--wg-line);
  }
  .nav-menu li .btn {
    margin-top: 15px;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .honeycomb-grid, .process-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .device-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-grid, .grid-2col, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .honeycomb-grid, .process-row {
    grid-template-columns: 1fr;
  }
  .download-item {
    grid-template-columns: auto 1fr;
  }
  .download-item .btn {
    grid-column: 2;
    justify-self: start;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .device-card.featured {
    grid-column: span 1;
  }
  .logo-container img {
    height: 42px;
  }
  .hero-img-box {
    height: 380px;
  }
  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }
  .section {
    padding: 60px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
