/*
 * Wilfatec Downloadcenter – portal.
 * Follows the site's Elementor kit 1:1: colours and fonts come from the kit variables,
 * <button> and .elementor-button get the kit's global button style automatically.
 * Values below mirror /downloadcenter/ (hero, sections) and /kontakt/ (form card).
 */
.wfdc {
	--wfdc-navy: var(--e-global-color-primary, #00163D);
	--wfdc-light: var(--e-global-color-secondary, #EDF2FD);
	--wfdc-accent: var(--e-global-color-accent, #005EFE);
	--wfdc-korn: var(--e-global-color-159e78a, #4186FF);
	--wfdc-hero: #F4F7FE;
	--wfdc-line: rgba(0, 22, 61, .09);
	--wfdc-muted: rgba(0, 22, 61, .7);
	--wfdc-red: #b3261e;
	--wfdc-accent-font: var(--e-global-typography-accent-font-family, "TBJ Interval"), sans-serif;
	color: var(--wfdc-navy);
}
/* Hello Elementor narrows .site-main on non-Elementor pages – the portal uses the full page like Elementor pages. */
body .site-main.wfdc { max-width: none !important; width: auto; margin: 0 !important; padding: 0 0 100px !important; }
.wfdc *, .wfdc *::before, .wfdc *::after { box-sizing: border-box; }
.wfdc a { color: var(--wfdc-navy); }
.wfdc h1, .wfdc h2, .wfdc h3 { color: var(--wfdc-navy); font-weight: 400; margin: 0; }
.wfdc h1 strong, .wfdc h2 strong, .wfdc h3 strong { font-weight: 500; }
.wfdc p strong { font-weight: 400; }

/* Hero – identical to the hero on /downloadcenter/ */
.wfdc-hero { background: var(--wfdc-hero); border-radius: 0 0 50px 50px; padding: 200px 20px 100px; text-align: center; }
.wfdc-hero-inner { max-width: 1024px; margin: 0 auto; }
.wfdc .wfdc-hero h1 { font-size: 64px; line-height: 1.1; }
.wfdc-hero-lead { margin: 30px 0 0; }

/* Content width like the site's boxed containers */
.wfdc-wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.wfdc-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 50px 0 0; }
.wfdc-tabs { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections like the blocks on /downloadcenter/ (heading 25.6px, text 20px/300, divider lines) */
.wfdc-section { padding: 50px 0; }
.wfdc-section + .wfdc-section, .wfdc-downloadcenter { border-top: 1px solid var(--wfdc-line); }
.wfdc-section h2 { font-size: 25.6px; line-height: 1.19; margin-bottom: 20px; }
.wfdc-section h3, .wfdc-upload h3 { font-size: 24px; line-height: 1; margin: 40px 0 20px; }
.wfdc-lead { margin: 0 0 30px; }
.wfdc-hint, .wfdc-small, .wfdc-meta { font-size: 16px; color: var(--wfdc-muted); }
.wfdc-hint { margin: 6px 0 0; }
.wfdc-small { margin: 20px 0 0; }

/* The embedded /downloadcenter/ content: its own hero is replaced by the portal hero */
.wfdc-downloadcenter { margin: 0 -20px; padding-top: 0; }
.wfdc-downloadcenter .elementor > .e-con:first-child:has(h1) { display: none; }

/* Buttons: fallback only (:where = zero specificity) – the Elementor kit button style wins on the site */
:where(.wfdc) .wfdc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--wfdc-accent-font); font-size: 17px; line-height: 1.1; font-weight: 300;
	padding: 6px 15px; border-radius: 50px; border: 1px solid var(--wfdc-navy);
	background: var(--wfdc-navy); color: var(--wfdc-light); text-decoration: none; cursor: pointer; transition: all .3s;
}
:where(.wfdc) .wfdc-btn:hover, :where(.wfdc) .wfdc-btn:focus { background: transparent; color: var(--wfdc-navy); }
.wfdc a.wfdc-btn { text-decoration: none; }
/* Secondary = the kit button's hover look (outline); inverted on hover */
body .wfdc .wfdc-btn--ghost { background: transparent; color: var(--wfdc-navy); border: 1px solid var(--wfdc-navy); border-radius: 50px; }
body .wfdc .wfdc-btn--ghost:hover, body .wfdc .wfdc-btn--ghost:focus { background: var(--wfdc-navy); color: var(--wfdc-light); border-color: var(--wfdc-navy); }
body .wfdc .wfdc-btn--danger { background: transparent; color: var(--wfdc-red); border: 1px solid var(--wfdc-red); border-radius: 50px; }
body .wfdc .wfdc-btn--danger:hover, body .wfdc .wfdc-btn--danger:focus { background: var(--wfdc-red); color: #fff; border-color: var(--wfdc-red); }
body .wfdc .wfdc-btn--block { width: 100%; display: flex; justify-content: center; }
.wfdc .wfdc-btn:focus-visible, .wfdc a:focus-visible, .wfdc-drop:focus-visible { outline: 2px solid var(--wfdc-accent); outline-offset: 2px; }
/* Small text-like buttons must not take the kit's pill style */
body .wfdc button.wfdc-linkbtn, body .wfdc button.wfdc-linkbtn:hover, body .wfdc button.wfdc-linkbtn:focus {
	background: none; border: 0; border-radius: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
body .wfdc button.wfdc-chip-x, body .wfdc button.wfdc-chip-x:hover, body .wfdc button.wfdc-chip-x:focus {
	background: none; border: 0; border-radius: 50%; padding: 0 2px; color: inherit; font-family: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}

/* Form fields – metrics of the Elementor form fields on /kontakt/ */
.wfdc-form { display: grid; gap: 16px; }
.wfdc-field label, .wfdc legend { display: block; font-size: 17px; font-weight: 400; margin-bottom: 6px; }
.wfdc input[type=text], .wfdc input[type=email], .wfdc input[type=password], .wfdc input[type=search], .wfdc input[type=number], .wfdc select, .wfdc textarea {
	width: 100%; min-height: 37px; padding: 4px 12px; border: 1px solid var(--wfdc-line); border-radius: 2px;
	background: #fff; color: #1f2124; font-family: inherit; font-size: 19.2px; font-weight: 300; line-height: 1.5;
}
.wfdc input:focus, .wfdc select:focus, .wfdc textarea:focus { outline: none; border-color: var(--wfdc-accent); box-shadow: 0 0 0 2px rgba(0, 94, 254, .15); }
.wfdc-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; font-size: 18px; }
.wfdc-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wfdc-accent); flex: none; }
.wfdc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wfdc fieldset { border: 0; padding: 0; margin: 0; }
.wfdc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 16px; }

/* Notices */
.wfdc-notice { padding: 14px 20px; border-radius: 20px; margin: 30px 0 0; font-size: 18px; background: var(--wfdc-light); color: var(--wfdc-navy); border-left: 4px solid var(--wfdc-accent); }
.wfdc-notice--error { background: #fdeeee; color: #7a1a14; border-color: var(--wfdc-red); }
.wfdc-notice--success { background: #e9f6ef; color: #145232; border-color: #1d7a46; }

/* Auth / share pages: hero with the blue form card of /kontakt/ */
.wfdc-hero--auth { text-align: left; }
.wfdc-auth-card { max-width: 560px; margin: 0 auto; background: var(--wfdc-korn); border-radius: 25px; padding: 30px; color: #fff; }
.wfdc .wfdc-auth-card h1, .wfdc .wfdc-auth-card .wfdc-share-name { color: #fff; font-size: 34px; line-height: 1; margin: 0 0 20px; }
.wfdc-auth-card .wfdc-eyebrow { font-family: var(--wfdc-accent-font); font-size: 17px; margin: 0 0 12px; color: #fff; opacity: .9; }
.wfdc .wfdc-auth-card .wfdc-lead, .wfdc .wfdc-auth-card .wfdc-hint, .wfdc .wfdc-auth-card .wfdc-small, .wfdc .wfdc-auth-card .wfdc-meta, .wfdc .wfdc-auth-card label, .wfdc .wfdc-auth-card a { color: #fff; }
.wfdc-auth-card .wfdc-hint, .wfdc-auth-card .wfdc-small, .wfdc-auth-card .wfdc-meta { opacity: .9; }
.wfdc-auth-card .wfdc-notice { margin: 0 0 20px; }
.wfdc-auth-card input[type=text], .wfdc-auth-card input[type=email], .wfdc-auth-card input[type=password] { border: 0; }
/* Submit like the contact form's "Senden": white outline on blue */
body .wfdc .wfdc-auth-card .wfdc-btn, body .wfdc .wfdc-auth-card button[type=submit] { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 50px; min-height: 40px; }
body .wfdc .wfdc-auth-card .wfdc-btn:hover, body .wfdc .wfdc-auth-card .wfdc-btn:focus, body .wfdc .wfdc-auth-card button[type=submit]:hover { background: #fff; color: var(--wfdc-korn); border-color: #fff; }
body .wfdc .wfdc-auth-card button.wfdc-linkbtn, body .wfdc .wfdc-auth-card button.wfdc-linkbtn:hover { background: none; border: 0; color: #fff; padding: 0; border-radius: 0; }
.wfdc-auth-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 20px; font-size: 17px; }
.wfdc-pin { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.wfdc-share-file { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; }
.wfdc-auth-card .wfdc-ficon { color: #fff; }
.wfdc-share-name { font-size: 25.6px !important; word-break: break-word; margin: 0 !important; }

/* The site kit decorates every <ul><li> with a chevron bullet (padding-left 1.6rem + ::before).
   That is right for text lists, but not for the portal's UI lists, which bring their own icons. */
.wfdc :is(.wfdc-files, .wfdc-queue, .wfdc-results, .wfdc-shares) > li { padding-left: 0 !important; }
.wfdc :is(.wfdc-files, .wfdc-queue, .wfdc-results, .wfdc-shares) > li::before { content: none !important; display: none !important; }

/* File list – like the icon lists on /downloadcenter/ (blue outline icon, 20px text) */
.wfdc-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wfdc-line); }
.wfdc-file { display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--wfdc-line); }
.wfdc-ficon { color: var(--wfdc-accent); width: 24px; height: 24px; display: block; align-self: start; margin-top: 2px; }
.wfdc-ficon svg { width: 24px; height: 24px; display: block; }
.wfdc-file-name { text-decoration: none; word-break: break-word; }
.wfdc-file-name:hover { text-decoration: underline; }
.wfdc-desc { margin: 4px 0 0; font-size: 18px; }
.wfdc-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wfdc-file-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wfdc-empty { color: var(--wfdc-muted); margin: 0; padding: 20px 0; border-top: 1px solid var(--wfdc-line); border-bottom: 1px solid var(--wfdc-line); }
.wfdc-assignees { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.wfdc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; background: var(--wfdc-light); font-size: 15px; color: var(--wfdc-navy); }
.wfdc-chip--general { background: var(--wfdc-navy); color: var(--wfdc-light); }
.wfdc-chip--none { background: #fff4e5; color: #7a4a00; }
.wfdc-prefs { margin-top: 30px; }
.wfdc-count { color: var(--wfdc-muted); font-size: 16px; }
.wfdc-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.wfdc-filter .wfdc-field { min-width: 220px; }
.wfdc-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.wfdc-pages a { padding: 4px 12px; border-radius: 50px; border: 1px solid var(--wfdc-navy); text-decoration: none; font-family: var(--wfdc-accent-font); font-size: 17px; }
.wfdc-pages a.is-active { background: var(--wfdc-navy); color: var(--wfdc-light); }

/* Upload card – light variant of the site's form card */
.wfdc-upload { margin-top: 40px; background: var(--wfdc-light); border-radius: 25px; padding: 30px; }
.wfdc-upload h3 { margin-top: 0; }
.wfdc-drop { background: #fff; border: 1px dashed var(--wfdc-accent); border-radius: 20px; padding: 30px 20px; text-align: center; cursor: pointer; color: var(--wfdc-accent); transition: background-color .3s, border-color .3s; }
.wfdc-drop p { margin: 6px 0 0; color: var(--wfdc-navy); }
.wfdc-drop.is-over, .wfdc-drop:hover { background: var(--wfdc-hero); }
.wfdc-link { text-decoration: underline; }
.wfdc-upload-opts { display: grid; gap: 10px; margin-top: 20px; }
.wfdc-upload input[type=text], .wfdc-upload input[type=search] { border-color: transparent; }
.wfdc-queue { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.wfdc-q { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; padding: 10px 14px; background: #fff; border-radius: 20px; }
.wfdc-q progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--wfdc-accent); }
.wfdc-q-name { font-weight: 400; word-break: break-all; }
.wfdc-q-state { grid-column: 1 / -1; color: var(--wfdc-muted); }
.wfdc-q.is-done .wfdc-q-state { color: #1d7a46; }
.wfdc-q.is-error .wfdc-q-state, .wfdc-upload-status.is-error, .wfdc-dlg-msg.is-error { color: var(--wfdc-red); }

/* User picker */
.wfdc-picker { position: relative; }
.wfdc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wfdc-chips:empty { display: none; }
.wfdc-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 22, 61, .16); max-height: 280px; overflow: auto; }
.wfdc-results li { padding: 8px 12px; border-radius: 12px; cursor: pointer; display: grid; font-size: 17px; }
.wfdc-results li span { color: var(--wfdc-muted); font-size: 15px; }
.wfdc-results li:hover, .wfdc-results li.is-active { background: var(--wfdc-light); }
.wfdc-results .wfdc-noresult { cursor: default; color: var(--wfdc-muted); }
.wfdc-dialog .wfdc-results { position: static; box-shadow: none; border: 1px solid var(--wfdc-line); }

/* Management list: actions below the file info */
.wfdc-files--manage .wfdc-file { grid-template-columns: 24px 1fr; }
.wfdc-files--manage .wfdc-file-actions { grid-column: 2 / -1; justify-content: flex-start; }

/* Dialogs */
.wfdc-dialog { border: 0; border-radius: 25px; padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--wfdc-navy); font-family: inherit; }
.wfdc-dialog::backdrop { background: rgba(0, 22, 61, .45); }
.wfdc-dialog-inner { padding: 30px; display: grid; gap: 14px; }
.wfdc-dialog h2 { font-size: 25.6px; line-height: 1.19; }
.wfdc-dialog h3 { margin: 8px 0 0; font-size: 20px; }
.wfdc-dlg-file { font-weight: 400; margin: 0; word-break: break-word; }
.wfdc-dialog-foot { display: flex; gap: 10px; justify-content: flex-end; margin: 8px 0 0; }
.wfdc-copy { display: flex; gap: 8px; align-items: center; }
.wfdc-shares { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.wfdc-share { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--wfdc-light); border-radius: 20px; }
.wfdc-share--expired, .wfdc-share--revoked, .wfdc-share--exhausted { opacity: .6; }
.wfdc-dlg-msg { margin: 0; font-size: 16px; color: #1d7a46; }

/* Same page body margins as the Elementor pages (page settings → body style on tablet/mobile). */
@media (max-width: 1024px) {
	body.wfdc-route { margin: 0 20px; }
	.wfdc-hero { padding-top: 150px; }
	.wfdc .wfdc-hero h1 { font-size: 54px; line-height: 1; }
}

@media (max-width: 767px) {
	.wfdc .wfdc-hero h1 { font-size: 44px; }
	.wfdc-hero { padding-bottom: 60px; }
	.wfdc-section { padding: 40px 0; }
	.wfdc-file { grid-template-columns: 24px 1fr; }
	.wfdc-file-actions { grid-column: 2 / -1; justify-content: flex-start; }
	.wfdc-auth-card, .wfdc-upload, .wfdc-dialog-inner { padding: 24px 20px; }
	.wfdc-bar { margin-top: 30px; }
}
