/* =============================================================
   DWE — custom2.css
   Zweite Custom-CSS für paralleles Arbeiten zu zweit.
   Jeder Mitarbeiter editiert eine eigene Datei -> kein
   gegenseitiges Überschreiben.

   WICHTIG — Ladereihenfolge (Kaskade):
     theme.1.css  ->  custom.css  ->  custom2.css
   custom2.css lädt ZULETZT: bei gleicher Spezifität gewinnt
   also, was hier steht. Eingebunden via functions.php
   (wp_enqueue_style 'dwe-custom2', Priorität 100, Cache-Busting
   per filemtime).
   ============================================================= */



.uk-link, .uk-link-text {
   position: relative;
   display: inline-flex;
   gap: 16px;
   align-items: center;
   padding-bottom: 6px;
   text-decoration: none;
   font-size: 20px;
   color: #fff !important;
}

.uk-link:hover, .uk-link-text:hover {
   color: #EDF2ED !important;
}

/* Linie als Pseudo-Element */
.uk-link::after, .uk-link-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.uk-link-text.uk-link-text--light {
   color: #fff !important;
}

/* Dunkle Linie für Links auf hellem Hintergrund */
.uk-link-text.uk-link-text--dark::after {
  background: #0e3f50 !important;
}

.uk-link-text.uk-link-text--dark {
  color: #0e3f50 !important;
}

.uk-link-text:hover.uk-link-text--dark {
  color: #8c9093 !important;
}

.uk-link:hover::after, .uk-link-text:hover::after {
  transform: scaleX(1.1);
}

/* Pfeil */
.uk-link .uk-icon, .uk-link-text .uk-icon {
  transition: transform 0.3s ease;
  min-width: 20px !important;
}

.uk-link:hover .uk-icon, .uk-link-text:hover .uk-icon {
  transform: translateX(4px);
}

@media (max-width: 639px) {
  .uk-link, .uk-link-text {
    font-size: 18px;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}


/* OVERLAY */

.dwe-overlay-invert .uk-overlay-default.uk-position-cover {
  transition: opacity 0.3s ease;
}

.dwe-overlay-invert:hover .uk-overlay-default.uk-position-cover {
  opacity: .5;
}

@media (max-width: 639px) {
  .dwe-overlay-invert .uk-overlay {
    padding: 15px;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
/* R&D-Seite: Overlay-Karten Qualität/Nachweisführung – Mobile */
@media (max-width: 639px) {
    .uk-section-primary .uk-panel[style*="min-height"] {
        min-height: 500px !important;
    }

    .uk-overlay.uk-padding-large {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Strich läuft bis zur Sektionsoberkante hoch (= uk-section-small-top) */
.dwe-liste {
  --dwe-liste-strich-oben: 40px;
}

.dwe-liste .dwe-liste--col2 {
  border-left: 1px solid #1b3a52;
  position: relative;
}

.dwe-liste .dwe-liste--col2::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 100%;
  width: 1px;
  height: calc (var(--dwe-liste-strich-oben) - 6px);
  background: #1b3a52;
  pointer-events: none;
}

.dwe-liste .dwe-liste--panel {
  position: relative;
  border-bottom: 0;
  margin: 0 !important;
}

/* Querlinie hell: startet an der Panel-Kante, läuft 100vw nach rechts raus */
.dwe-liste .dwe-liste--panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120vw;
  height: 1px;
  background: #1b3a52;
  pointer-events: none;
}



.dwe-liste {
  overflow-x: clip; /* kappt den Überhang exakt an der Bildschirmkante */
}

.dwe-liste .dwe-liste--col2--dunkel {
  border-left: 1px solid #0ff;
  position: relative;
}

.dwe-liste .dwe-liste--col2--dunkel::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 100%;
  width: 1px;
  height: calc (var(--dwe-liste-strich-oben) - 60px);
  background: #0ff;
  pointer-events: none;
}

.dwe-liste .dwe-liste--panel--dunkel {
  position: relative;
  border-bottom: 0;
  margin: 0 !important;
}

/* Querlinie: startet an der Panel-Kante, läuft 100vw nach rechts raus */
.dwe-liste .dwe-liste--panel--dunkel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120vw;
  height: 1px;
  background: #0ff;
  pointer-events: none;
}


@media (max-width: 639px) {
  .dwe-liste--col2 {
    padding-top: 0px !important;
  }
}


.dwe-liste {
  overflow-x: clip; /* kappt den Überhang exakt an der Bildschirmkante */
}

.dwe-liste .dwe-liste--col2--dunkel {
  border-left: 1px solid #0ff;
}

.dwe-liste .dwe-liste--panel--dunkel {
  position: relative;
  border-bottom: 0;
  margin: 0 !important;
}

/* Querlinie: startet an der Panel-Kante, läuft 100vw nach rechts raus */
.dwe-liste .dwe-liste--panel--dunkel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120vw;
  height: 1px;
  background: #0ff;
  pointer-events: none;
}


@media (max-width: 639px) {
  .dwe-liste--col2 {
    padding-top: 0px !important;
  }
}

/* Sticky Sektionen: Abstand nach unten beim Scrollen */

.sticky-section--text {
  margin-bottom: 40px !important;
}


/* =====================================================================
 * DATEI-UPLOAD (input[type="file"]) im DWE-Button-Look
 * ===================================================================== */

input[type="file"] {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	max-width: 100%;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}

input[type="file"]::file-selector-button {
	flex: none;
	box-sizing: border-box;
	height: 45px;
	margin: 0;
	padding: 5px 123px 0 24px;
	border: 0;
	background-color: #ffffff;
	color: #003349;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, calc(100% - 13.64px) 100%, 0 100%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='45' viewBox='0 0 67 45'%3E%3Cpath d='M.5 0V45' stroke='%23003349'/%3E%3Cpath d='M19 22.5h18m-6-6 6 6-6 6' fill='none' stroke='%23003349' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 top;
	filter:
		drop-shadow( 1px 0 0 #003349)
		drop-shadow(-1px 0 0 #003349)
		drop-shadow(0  1px 0 #003349)
		drop-shadow(0 -1px 0 #003349);
	transition:
		background-color .45s cubic-bezier(.53, 0, 0, 1),
		color            .45s cubic-bezier(.53, 0, 0, 1);
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:focus-visible::file-selector-button {
	background-color: #003349;
	color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='45' viewBox='0 0 67 45'%3E%3Cpath d='M.5 0V45' stroke='%23ffffff'/%3E%3Cpath d='M19 22.5h18m-6-6 6 6-6 6' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
}

input[type="file"]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (max-width: 640px) {
	input[type="file"] { flex-wrap: wrap; gap: 12px; }
	input[type="file"]::file-selector-button { padding-right: 96px; }
}
