/* Portal 2026 – Schüssler Kundenportal (angelehnt an www.k-schuessler.de) */

@font-face {
  font-family: "HelveticaLTStd";
  src: url("HelveticaLTStd-Cond_0.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sk-blue: #0E3D8A;
  --sk-blue-dark: #0A2D68;
  --sk-blue-soft: #EEF2F8;
  --sk-text: #3C3C3B;
  --sk-muted: #5A5A59;
  --sk-line: #9CACC2;
  --sk-line-soft: #E1E5EB;
  --sk-bg-soft: #F3F4F6;
  --sk-banner-bg: #E9ECF1;
  --sk-font: "HelveticaLTStd", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--sk-text); font: 400 17px/1.5 var(--sk-font); display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { color: var(--sk-blue); }
a:hover { color: var(--sk-blue-dark); }
h1, h2, h3 { font-weight: 500; line-height: 1.2; color: var(--sk-blue); margin: 0 0 .6em; }
h1 { font-size: 34px; } h2 { font-size: 24px; color: var(--sk-text); } h3 { font-size: 20px; color: var(--sk-text); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sk-blue); outline-offset: 2px; }
.invisible, .sk-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sk-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sk-blue); color: #FFF; padding: 8px 14px; }
.sk-skip:focus { left: 8px; }

.sk-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Kopfzeile */
.sk-header { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--sk-line-soft); }
.sk-header .sk-container { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.sk-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 15px; }
.sk-mainsite { color: var(--sk-blue); text-decoration: none; font-weight: 500; }
.sk-topbar .mod_changelanguage ul, .sk-lang { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sk-topbar > * + *::before, .sk-lang li + li::before { content: ""; display: inline-block; width: 1px; height: 18px; background: var(--sk-blue); margin-right: 14px; vertical-align: middle; }
.sk-topbar .mod_changelanguage { display: flex; align-items: center; }
.sk-topbar .mod_changelanguage::before { content: ""; display: inline-block; width: 1px; height: 18px; background: var(--sk-blue); margin-right: 14px; }
.sk-mainsite::before { display: none !important; }
.sk-lang a, .sk-lang strong { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--sk-muted); text-decoration: none; }
.sk-lang a:hover { color: var(--sk-blue); }
.sk-lang strong { color: var(--sk-blue); font-weight: 700; }
.sk-flag { display: inline-block; width: 20px; height: 14px; box-shadow: 0 0 0 1px var(--sk-line-soft); background-size: cover; }
.sk-flag-de { background: linear-gradient(#000 0 33.3%, #D00 33.3% 66.6%, #FFCE00 66.6%); }
.sk-flag-en { background: #012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Cpath d='M0 0L60 36M60 0L0 36' stroke='%23fff' stroke-width='7'/%3E%3Cpath d='M0 0L60 36M60 0L0 36' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0V36M0 18H60' stroke='%23fff' stroke-width='11'/%3E%3Cpath d='M30 0V36M0 18H60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E") center / cover no-repeat; }

.sk-brandrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sk-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.sk-logo { display: block; height: 72px; width: auto; }
.sk-portalname { padding-left: 18px; border-left: 1px solid var(--sk-line); font-size: 24px; color: var(--sk-blue); font-weight: 500; letter-spacing: .02em; }
.sk-user { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--sk-muted); }
.sk-user b { color: var(--sk-text); }

/* Hauptnavigation (Contao nav_default) */
.sk-mainnav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sk-mainnav ul ul { display: none; }
.sk-mainnav a, .sk-mainnav strong { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-bottom: 3px solid transparent; color: var(--sk-muted); font-size: 19px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.sk-mainnav a:hover { color: var(--sk-blue); }
.sk-mainnav strong, .sk-mainnav a.trail, .sk-mainnav li.trail > a { color: var(--sk-blue); border-bottom-color: var(--sk-blue); }

/* Banner */
.sk-banner { position: relative; overflow: hidden; background: var(--sk-banner-bg); padding: 0; }
.sk-banner img { position: absolute; top: 0; right: 0; height: 100%; object-fit: cover; }
.sk-banner-big { height: 240px; margin-top: 20px; }
.sk-banner-big img { width: 100%; object-position: right center; }
.sk-banner-small { height: 110px; margin-top: 16px; }
.sk-banner-small img { width: 62%; object-position: center 55%; }
.sk-banner-text { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 32px; background: linear-gradient(90deg, rgba(233,236,241,.97) 72%, rgba(233,236,241,0)); }
.sk-banner-big .sk-banner-text { width: 38%; align-items: center; text-align: center; }
.sk-banner-small .sk-banner-text { width: 52%; }
.sk-kicker { font-size: 14px; letter-spacing: .08em; color: #6B6B6A; text-transform: uppercase; }
.sk-claim { font-size: 30px; line-height: 1.12; color: var(--sk-blue); text-transform: uppercase; }
.sk-banner-small .sk-kicker { font-size: 13px; }
.sk-banner-small .sk-claim { font-size: 24px; }
.sk-slide { animation: sk-fade 23.2s ease-in-out infinite; }
.sk-slide-1 { animation-delay: -11.6s; }
@keyframes sk-fade { 0% { opacity: 0 } 6.9% { opacity: 1 } 50% { opacity: 1 } 56.9% { opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .sk-slide { animation: none; } .sk-slide-2 { opacity: 0; } }

/* Inhalt */
.sk-main { flex: 1 0 auto; padding-top: 24px; padding-bottom: 56px; }
.sk-content > .mod_article { margin: 0; }

/* Unternavigation als Reiter (Standard / Hoffmann / Schunk) */
.sk-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.sk-subnav ul ul { display: none; }
.sk-subnav a, .sk-subnav strong { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border: 1px solid var(--sk-line); border-radius: 2px; background: #FFFFFF; color: var(--sk-text); font-size: 16px; font-weight: 500; text-decoration: none; }
.sk-subnav a:hover { border-color: var(--sk-blue); color: var(--sk-blue); }
.sk-subnav strong { background: var(--sk-blue); border-color: var(--sk-blue); color: #FFFFFF; }

/* Buttons und Formulare (eigene Skripte und Contao-Formulare) */
.sk-btn, .submit, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 28px; border: 0; border-radius: 2px; background: var(--sk-blue); color: #FFFFFF; font: 500 16px/1 var(--sk-font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s; }
.sk-btn:hover, .submit:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--sk-blue-dark); color: #FFFFFF; }
.sk-btn-ghost { background: #FFFFFF; color: var(--sk-blue); box-shadow: inset 0 0 0 1px var(--sk-blue); }
.sk-btn-ghost:hover { background: var(--sk-blue-soft); color: var(--sk-blue-dark); }
.sk-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

.widget { margin-bottom: 16px; }
.widget > label, .widget legend, fieldset > legend { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--sk-text); }
.widget .mandatory, span.mandatory { color: #B3261E; }
input.text, input.password, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%; max-width: 560px; height: 46px; padding: 0 14px; border: 1px solid var(--sk-line); border-radius: 2px; background: #FFFFFF; color: var(--sk-text); font: 400 17px var(--sk-font);
}
textarea { height: auto; min-height: 120px; padding: 10px 14px; }
input::placeholder { color: #8A8A89; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
p.error, .widget .error { color: #8C1D18; font-size: 15px; }
.mod_login, .mod_registration, .mod_lostPassword, .mod_changePassword, .mod_personalData { max-width: 560px; }
.mod_login .widget-submit, .mod_registration .widget-submit { margin-top: 8px; }

/* Suchformulare der Lagerskripte */
.sk-search { display: flex; flex-direction: column; gap: 10px; padding: 20px; margin-bottom: 18px; background: var(--sk-bg-soft); }
.sk-search-row { display: flex; align-items: flex-end; gap: 16px; }
.sk-search .widget { margin: 0; flex: 1 1 140px; }
.sk-search .widget-art { flex: 2 1 360px; }
.sk-search input { max-width: none; }
.sk-field { position: relative; }
.sk-field input { padding-right: 40px; }
.sk-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--sk-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sk-clear:hover { background: var(--sk-blue-soft); color: var(--sk-blue); }
.sk-hint { font-size: 15px; color: #4A4A49; }
.sk-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sk-muted); }
.sk-recent:empty { display: none; }
.sk-chip { min-height: 30px; padding: 0 12px; border: 1px solid #D5DCE6; border-radius: 15px; background: #FFFFFF; color: var(--sk-text); font: 400 14px var(--sk-font); cursor: pointer; }
.sk-chip:hover { border-color: var(--sk-blue); color: var(--sk-blue); }

/* Ergebnis */
.sk-result { display: flex; flex-direction: column; gap: 10px; }
.sk-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sk-result-head h2 { margin: 0; font-size: 22px; }
.sk-count { margin-left: 12px; }
.sk-tablewrap { overflow: auto; border: 1px solid var(--sk-line-soft); max-height: 70vh; }
.sk-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sk-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--sk-muted); background: var(--sk-bg-soft); padding: 12px 14px; border-bottom: 2px solid var(--sk-blue); }
.sk-table td { padding: 10px 14px; border-bottom: 1px solid var(--sk-line-soft); vertical-align: middle; }
.sk-table tbody tr:nth-child(even) { background: #FAFAFA; }
.sk-table tbody tr:hover { background: var(--sk-blue-soft); }
.sk-nowrap { white-space: nowrap; }
.sk-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 14px; font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.sk-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sk-status-ok { background: #E6F4EA; color: #1E5E2B; } .sk-status-ok::before { background: #2E7D32; }
.sk-status-part { background: #FFF1DB; color: #7A4300; } .sk-status-part::before { background: #E08A00; }
.sk-status-red { background: #FDECEA; color: #8C1D18; } .sk-status-red::before { background: #C62828; }
.sk-legend { margin: 0; font-size: 14px; color: var(--sk-muted); }
.sk-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; background: #FDECEA; color: #8C1D18; }
.sk-empty { padding: 18px 16px; border: 1px dashed var(--sk-line); color: #4A4A49; }

/* Arbeitsseiten: Seitentitel aus dem Inhalt ausblenden (Navigation zeigt, wo man ist), leere Absätze weg */
body.sk-tool .sk-content h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
body.sk-tool .sk-content p:empty, body.sk-tool .sk-content .content-text:not(:has(.sk-lager)) > p:only-child { display: none; }
/* Bestandsabfrage: Höhe der Tabelle setzt ein kleines Script passend zum Fenster */
body.sk-fill .sk-main { padding-top: 18px; padding-bottom: 16px; }
/* mehr Platz für das Ergebnis: kein Banner, keine alten Leer-Texte, kompakteres Formular */
body.sk-fill .sk-banner { display: none; }
body.sk-fill .sk-content .content-text:not(:has(.sk-lager)) { display: none; }
body.sk-fill .sk-subnav ul { margin-bottom: 14px; }
body.sk-fill .sk-search { padding: 14px 16px; gap: 6px; margin-bottom: 14px; }
body.sk-fill .sk-search .sk-hint { font-size: 14px; }
body.sk-fill .sk-result-head h2 { font-size: 20px; }
.sk-count { font-size: 16px; color: var(--sk-muted); font-weight: 400; }
body.sk-fill .sk-table td { padding: 8px 14px; }
body.sk-fill .sk-table th { padding: 10px 14px; }

/* Login zweispaltig: Anmeldung links, Registrierung rechts */
.sk-login { display: flex; flex-wrap: wrap; border: 1px solid var(--sk-line-soft); }
.sk-login-main { flex: 1 1 420px; padding: 32px; min-width: 0; }
.sk-login-main .mod_login { max-width: none; }
.sk-login-main input.text, .sk-login-main input.password, .sk-login-main input[type="text"], .sk-login-main input[type="password"] { max-width: none; }
/* der alte Hinweis "Sie haben noch keine Zugangsdaten?" steht jetzt rechts */
.sk-login-main .content-text:has(a[href*="registr"]) { display: none; }
.sk-login-aside { flex: 1 1 320px; padding: 32px; background: var(--sk-bg-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sk-login-aside h2 { margin: 0; }
.sk-login-aside p { margin: 0; }
.sk-benefits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sk-benefits li { position: relative; padding-left: 28px; }
.sk-benefits li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2.4px solid var(--sk-blue); border-bottom: 2.4px solid var(--sk-blue); transform: rotate(-45deg); }

/* Startseite für Mitglieder */
.sk-lead { font-size: 18px; max-width: 720px; margin-bottom: 24px; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sk-tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--sk-line-soft); border-radius: 2px; background: #FFFFFF; text-decoration: none; color: var(--sk-muted); transition: border-color .15s, box-shadow .15s; }
.sk-tile:hover { border-color: var(--sk-blue); box-shadow: 0 6px 18px rgba(14,61,138,.08); color: var(--sk-muted); }
.sk-tile b { font-size: 22px; font-weight: 500; color: var(--sk-blue); }

/* Dateiliste Zeichnungsdownload */
.sk-files { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sk-file { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--sk-line-soft); border-radius: 2px; background: #FFFFFF; }
.sk-file:hover { border-color: var(--sk-line); background: #FAFBFD; }
.sk-file-thumb { flex: none; position: relative; width: 64px; height: 48px; border: 1px solid #D5DCE6; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.sk-file-ext { position: absolute; right: -1px; bottom: -1px; padding: 1px 4px; background: var(--sk-blue); color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.sk-file-name { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sk-file-name b { font-weight: 400; font-size: 17px; overflow-wrap: anywhere; }
.sk-file-name span { font-size: 14px; color: var(--sk-muted); }

/* Footer */
.sk-footer { border-top: 1px solid var(--sk-line-soft); background: var(--sk-bg-soft); }
.sk-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--sk-muted); }
.sk-footer-links { display: flex; flex-wrap: wrap; gap: 18px; text-transform: uppercase; letter-spacing: .04em; }
.sk-footer-links a { color: var(--sk-muted); text-decoration: none; }
.sk-footer-links a:hover { color: var(--sk-blue); }
.sk-footer-links .sk-footer-main { color: var(--sk-blue); font-weight: 500; }

/* Mobil */
@media (max-width: 767px) {
  .sk-portalname, .sk-user-name, .sk-banner-small .sk-banner-text, .sk-banner-big .sk-banner-text { display: none; }
  .sk-logo { height: 56px; }
  .sk-banner-small img { width: 100%; }
  .sk-banner-big { height: 160px; }
  .sk-mainnav a, .sk-mainnav strong { padding: 0 10px; font-size: 16px; }
  .sk-search-row { flex-direction: column; align-items: stretch; }
  .sk-search .sk-btn { width: 100%; }
  .sk-table thead { display: none; }
  .sk-table, .sk-table tbody, .sk-table tr, .sk-table td { display: block; width: 100%; }
  .sk-table tr { border: 1px solid var(--sk-line-soft); margin-bottom: 12px; background: #FFFFFF !important; }
  .sk-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #F0F0F0; }
  .sk-table td::before { content: attr(data-label); font-size: 13px; text-transform: uppercase; color: var(--sk-muted); letter-spacing: .04em; }
  .sk-tablewrap { max-height: none; border: 0; }
}
