/*
 * EURODRILL Base Styles
 * Shared classes used by multiple widgets. Per-widget CSS lives in
 * assets/css/widgets/{slug}.css and is loaded on demand via get_style_depends().
 */

/* ── Fonts werden in class-assets.php nur geladen, wenn die WOFF2-Dateien existieren.
   Fehlt eine Datei, greift Google Fonts — keine 404s aus dieser Datei. ───────── */

/* ── Site scrollbar ──────────────────────────────────────────────────────────── */
/* Nur Standard-Properties: ::-webkit-scrollbar erzwingt unter Windows die
   klassische Leiste MIT Pfeil-Buttons, die sich nicht zuverlässig ausblenden. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ed-ink) var(--ed-surface-2);
  /* Platz der Leiste bleibt reserviert, auch wenn der Inhalt kürzer wird
     (z. B. Kategoriewechsel im News-Archiv). Sonst springt die Seite seitlich. */
  scrollbar-gutter: stable;
}

/* ── Reset within widgets ────────────────────────────────────────────────────── */
.ed-section *,
.ed-section *::before,
.ed-section *::after { box-sizing: border-box; }

/* ── Section backgrounds ─────────────────────────────────────────────────────── */
.ed-section      { width: 100%; }
.ed-bg-white     { background: var(--ed-white); }
.ed-bg-gray      { background: var(--ed-surface-1); }
.ed-bg-navy      { background: var(--ed-navy); }

/* ── Section padding (Vorlage, nicht Elementor) ──────────────────────────────── */
.ed-pad-none { padding: 0; }
.ed-pad-sm   { padding: var(--ed-pad-sm-v) var(--ed-pad-h); }
.ed-pad-md   { padding: var(--ed-pad-md-v) var(--ed-pad-h); }
.ed-pad-lg   { padding: var(--ed-pad-lg-v) var(--ed-pad-h); }

/* Aufeinanderfolgende Widgets mit gleichem Hintergrund: oberes Padding nicht doppeln
   (z. B. Section Intro + Kennzahlen auf der Home) */
.elementor-widget:has(.ed-bg-white) + .elementor-widget:has(.ed-bg-white) .ed-section,
.elementor-widget:has(.ed-bg-gray)  + .elementor-widget:has(.ed-bg-gray)  .ed-section,
.elementor-widget:has(.ed-bg-navy)  + .elementor-widget:has(.ed-bg-navy)  .ed-section {
  padding-top: 0;
}

/* Elementor-Widget-Abstand nicht zusätzlich pflegen */
.elementor-widget[class*="elementor-widget-ed-"] {
  width: 100%;
}
.elementor-widget[class*="elementor-widget-ed-"] > .elementor-widget-container {
  padding: 0 !important;
}

/* Elementor-Kit färbt ALLE button:hover/:focus pink — Widget-Buttons davon ausnehmen */
.elementor-widget[class*="elementor-widget-ed-"] button,
.ed-video-hero button,
.ed-site-header button,
.ed-site-rail button,
#ed-search-overlay button,
#ed-contact-close {
  appearance: none;
  -webkit-appearance: none;
}
.elementor-widget[class*="elementor-widget-ed-"] button:hover,
.elementor-widget[class*="elementor-widget-ed-"] button:focus,
.elementor-widget[class*="elementor-widget-ed-"] button:focus-visible,
.elementor-widget[class*="elementor-widget-ed-"] button:active,
.ed-video-hero button:hover,
.ed-video-hero button:focus,
.ed-video-hero button:focus-visible,
.ed-video-hero button:active,
.ed-site-header button:hover,
.ed-site-header button:focus,
.ed-site-header button:active,
.ed-site-rail button:hover,
.ed-site-rail button:focus,
.ed-site-rail button:active,
#ed-search-overlay button:hover,
#ed-search-overlay button:focus,
#ed-search-overlay button:focus-visible,
#ed-search-overlay button:active,
#ed-contact-close:hover,
#ed-contact-close:focus,
#ed-contact-close:focus-visible,
#ed-contact-close:active {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Boxed-Container mit Eurodrill-Section: vollflächig, Padding sitzt auf .ed-section */
.e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-ed-"] .ed-section),
.e-con:has(> .elementor-widget[class*="elementor-widget-ed-"] .ed-section) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-block-start: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
}
.e-con-boxed:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-ed-"] .ed-section) > .e-con-inner {
  max-width: none;
  width: 100%;
  padding: 0 !important;
}

/* ── Container ───────────────────────────────────────────────────────────────── */
.ed-container {
  max-width: var(--ed-max-w);
  width: 100%;
  margin-inline: auto;
}

/* ── Eyebrow / section label ─────────────────────────────────────────────────── */
.ed-eyebrow-wrap {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(36px, 5vh, 60px);
}
.ed-eyebrow {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  white-space: nowrap;
  text-transform: uppercase;
}
.ed-hairline {
  flex: 1;
  height: 1px;
  background: var(--ed-line-1);
  display: block;
}

/* Roter Kurzstrich vor dem Label (Karriere-Hero, Kategorie-Header, …) */
.ed-eyebrow-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.ed-eyebrow-bar .ed-eyebrow {
  letter-spacing: .24em;
}
.ed-accent-bar {
  display: inline-block;
  width: 20px;
  height: 3px;
  background: var(--ed-red);
  flex-shrink: 0;
}
.ed-bg-gray  .ed-hairline { background: var(--ed-line-2); }
.ed-bg-navy  .ed-hairline { background: rgba(255,255,255,.15); }
.ed-bg-navy  .ed-eyebrow  { color: var(--ed-sky); }

/* ── Headings ────────────────────────────────────────────────────────────────── */
.ed-headline {
  font-family: var(--ed-font-expanded);
  font-weight: 800;
  font-stretch: expanded;
  font-size: clamp(28px, 4vw, 62px);
  line-height: 1.03;
  letter-spacing: -.015em;
  color: var(--ed-deep);
  margin: 0;
  text-transform: uppercase;
}
.ed-bg-navy .ed-headline { color: var(--ed-white); }

.ed-lead {
  font: 400 18px/1.78 var(--ed-font-sans);
  color: var(--ed-text);
  margin: 0;
}
.ed-bg-navy .ed-lead { color: rgba(255,255,255,.85); }

/* ── Mono utility ────────────────────────────────────────────────────────────── */
.mono { font-family: var(--ed-font-mono); }
.ed-unit-kw { text-transform: none; }

/* ── Hatch overlay ───────────────────────────────────────────────────────────── */
.ed-section { position: relative; overflow: hidden; }
.ed-hatch {
  position: absolute;
  left: 0; top: 0;
  width: 170px; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(62,134,196,.85) 0 1.5px,
    transparent           1.5px 8px
  );
  opacity: .10;
}

/* ── Scroll-reveal ───────────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--ed-dur-slow) var(--ed-ease),
    transform var(--ed-dur-slow) var(--ed-ease);
}
[data-reveal].ed-revealed,
.elementor-editor-active [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* ── tlink (arrow link) ──────────────────────────────────────────────────────── */
.ed-tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 700 14px/1 var(--ed-font-sans);
  letter-spacing: .1em;
  color: var(--ed-ink);
  text-transform: uppercase;
}
.ed-tlink-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ed-link);
  transition: transform var(--ed-dur-fast) var(--ed-ease), color var(--ed-dur-fast);
}
.ed-tlink-arrow::after { content: '→'; font-size: 15px; }
.ed-tlink:hover .ed-tlink-arrow { transform: translateX(6px); color: var(--ed-red); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.ed-btn {
  display: inline-block;
  text-decoration: none;
  font: 700 13px/1 var(--ed-font-sans);
  letter-spacing: .12em;
  padding: 17px 32px;
  text-transform: uppercase;
  transition: background var(--ed-dur-fast), color var(--ed-dur-fast), border-color var(--ed-dur-fast);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.ed-btn-primary {
  background: var(--ed-blue);
  border-color: var(--ed-blue);
  color: var(--ed-white);
}
.ed-btn-primary:hover {
  background: #3578b0;
  border-color: #3578b0;
  color: var(--ed-white);
}
.ed-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--ed-white);
}
.ed-btn-outline:hover {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-white);
}
.ed-btn-dark {
  background: var(--ed-blue);
  border-color: var(--ed-blue);
  color: var(--ed-white);
}
.ed-btn-dark:hover {
  background: #3578b0;
  border-color: #3578b0;
}

/* ── Download button (Light – Outline-Stil) ──────────────────────────────────── */
.ed-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1.5px solid var(--ed-line-1);
  text-decoration: none;
  transition: border-color var(--ed-dur-fast), background var(--ed-dur-fast);
}
.ed-dl-btn:hover { border-color: var(--ed-blue); background: var(--ed-surface-1); }
.ed-dl-btn-icon { font-size: 22px; color: var(--ed-blue); flex-shrink: 0; }
.ed-dl-btn-text .ed-dl-title {
  font: 700 13px/1 var(--ed-font-sans);
  letter-spacing: .1em;
  color: var(--ed-ink);
  text-transform: uppercase;
  display: block;
}
.ed-dl-btn-text .ed-dl-sub {
  font: 500 11px/1 var(--ed-font-mono);
  letter-spacing: .1em;
  color: var(--ed-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

/* ── Download button (Hellblau, wie der Datenblatt-Button der Produkte) ──────── */
.ed-dl-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ed-blue);
  color: #fff;
  border: 1.5px solid var(--ed-blue);
  text-decoration: none;
  padding: 19px 28px;
  transition: background var(--ed-dur-fast), border-color var(--ed-dur-fast), color var(--ed-dur-fast);
}
.ed-dl-btn-dark:hover,
.ed-dl-btn-dark:focus {
  background: #3578b0;
  border-color: #3578b0;
  color: #fff !important;
}
.ed-dl-btn-dark__label {
  display: block;
  font: 700 13px/1.3 var(--ed-font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.ed-dl-btn-dark:hover .ed-dl-btn-dark__label,
.ed-dl-btn-dark:focus .ed-dl-btn-dark__label {
  color: #fff;
}
.ed-dl-btn-dark__sub {
  display: block;
  font: 500 11px/1 var(--ed-font-mono);
  color: rgba(255, 255, 255, .80);
  letter-spacing: .1em;
  margin-top: 4px;
}
.ed-dl-btn-dark:hover .ed-dl-btn-dark__sub,
.ed-dl-btn-dark:focus .ed-dl-btn-dark__sub {
  color: rgba(255, 255, 255, .80);
}
.ed-dl-btn-dark__arrow {
  font-size: 20px;
  color: #fff;
  transition: transform var(--ed-dur-fast), color var(--ed-dur-fast);
}
.ed-dl-btn-dark:hover .ed-dl-btn-dark__arrow,
.ed-dl-btn-dark:focus .ed-dl-btn-dark__arrow {
  transform: translateY(3px);
  color: #fff;
}

/* ── Footer-Links ────────────────────────────────────────────────────────────── */
/* Design: color #fff/.66, hover: #fff + padding-left: 5px */
.ed-footer-link {
  color: rgba(255,255,255,.66);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.ed-footer-link:hover { color: #fff; padding-left: 5px; }

/* ── Section Rule (LABEL ─────────────) shared helper ────────────────────────── */
.ed-section-rule {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(24px, 3vh, 36px);
}
.ed-section-rule .mono,
.ed-section-rule span:first-child {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ed-muted);
  white-space: nowrap;
}
.ed-section-rule__line {
  flex: 1;
  height: 1px;
  background: var(--ed-line-2);
}
.ed-bg-white .ed-section-rule__line { background: var(--ed-line-1); }
.ed-bg-gray  .ed-section-rule__line { background: var(--ed-line-2); }

/* Theme-Reset (Hello) setzt Tabellen auf Zebrastreifen, graue Vollrahmen
   und 15px-Abstand. In den Produkt-Tabellen gilt die Vorlage. */
.ed-section table {
  margin: 0;
  font-size: inherit;
  background: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}
.ed-section table td,
.ed-section table th {
  border: 0;
  vertical-align: middle;
}
.ed-section table tbody > tr:nth-child(odd) > td,
.ed-section table tbody > tr:nth-child(odd) > th,
.ed-section table tbody > tr:nth-child(2n+1) > td,
.ed-section table tbody > tr:nth-child(2n+1) > th,
.ed-section table tbody tr:hover > td,
.ed-section table tbody tr:hover > th {
  background-color: transparent;
}
.ed-section .ed-kennwerte-table td,
.ed-section .ed-tbwrap tbody td,
.ed-section .ed-tbwrap tbody th,
.ed-section .ed-tbwrap thead th {
  line-height: 1.4;
}
.ed-section .ed-kennwerte-table td,
.ed-section .ed-tbwrap tbody td,
.ed-section .ed-tbwrap tbody th {
  border-top: 1px solid var(--ed-line-1);
  background-color: var(--ed-white);
}
.ed-section .ed-tbwrap thead th {
  border-top: 0;
  background-color: var(--ed-surface-1);
}
/* Hello-Reset: border-block-start auf der ersten Kopfzeile, spezifischer als border-top */
.ed-section table thead:first-child > tr:first-child > th,
.ed-section table thead:first-child > tr:first-child > td {
  border-block-start: 0;
  border-top: 0;
}

/* ── Responsive helpers ──────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .ed-split-grid { grid-template-columns: 1fr !important; }
  .ed-stat-grid  { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  .ed-prod-grid  { grid-template-columns: 1fr !important; }
}
