/* KSO Nord GmbH – Website
   Farben: Bordeaux #7A142A · Anthrazit #15171A/#17191C · Sand #F5F3EF
   Schrift: Schibsted Grotesk (selbst gehostet, SIL Open Font License) */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --kso-red: #7A142A;
  --kso-red-dark: #5C0E1F;
  --ink: #17191C;
  --night: #15171A;
  --sand: #F5F3EF;
  --line: #E6E1D9;
  --muted: #575B61;
}

/* Box-Modell bleibt Standard (content-box) wie im Design-Entwurf; Bausteine setzen border-box gezielt. */
.mobile-menu, .mobile-menu *, .portal-bar, .portal-bar *, .skip-link { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--kso-red); }
a:hover { color: var(--kso-red-dark); }
::selection { background: var(--kso-red); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--kso-red);
  outline-offset: 2px;
}
.kso-onred a:focus-visible, .kso-onred input:focus-visible { outline-color: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--kso-red) !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Kopfzeile ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { display: block; height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.site-nav a:hover { color: var(--kso-red); }
.site-nav a[aria-current="page"] {
  color: var(--kso-red); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px;
}
.site-header__actions { display: flex; align-items: center; gap: 12px 24px; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.site-header__phone:hover { color: var(--kso-red); }
.btn-portal {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
  background: var(--kso-red); color: #fff; border-radius: 4px; text-decoration: none;
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.btn-portal:hover, .btn-portal[aria-current="page"] { background: var(--kso-red-dark); color: #fff; }
.btn-portal__short { display: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid #D9D3C9; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px; padding-left: 18px; border-left: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
}
.lang-switch a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--kso-red); }
.lang-switch a[aria-current] {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.lang-switch span { color: #C9C2B7; }
.lang-switch--menu { margin-left: auto; padding-left: 0; border-left: 0; }
.lang-switch--menu a { min-height: 44px; padding: 0 8px; font-size: 14px; }

/* ---------- Mobiles Menü ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top {
  min-height: 68px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0;
}
.mobile-menu__top img { display: block; height: 44px; width: auto; }
.mobile-menu__close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer;
}
.mobile-menu__body { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu__portal {
  display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--kso-red); color: #fff;
  border-radius: 6px; text-decoration: none;
}
.mobile-menu__portal:hover { color: #fff; background: var(--kso-red-dark); }
.mobile-menu__portal-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px;
}
.mobile-menu__portal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__portal-text strong { font-size: 19px; font-weight: 700; line-height: 1.25; }
.mobile-menu__portal-text span { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.86); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list a {
  display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 26px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3;
}
.mobile-menu__list a[aria-current="page"] { color: var(--kso-red); }
.mobile-menu__contact {
  width: calc(100% - 40px); max-width: 600px; margin: 0 auto 32px; padding: 18px 20px; background: var(--sand);
  border-radius: 6px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu__contact a {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mobile-menu__contact span { font-size: 14px; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Termin-Leiste (Handy) ---------- */
.portal-bar { display: none; }
@media (max-width: 760px) {
  .portal-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) 20px;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -16px 32px -20px rgba(23, 25, 28, 0.35);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .portal-bar.is-visible { transform: none; }
  .portal-bar__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .portal-bar__text span { font-size: 13px; color: var(--muted); line-height: 1.3; }
  .portal-bar__text strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
  .portal-bar .btn-portal { height: 50px; padding: 0 16px; gap: 8px; flex-shrink: 0; }
  body.has-portal-bar .site-footer { padding-bottom: 120px !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #BDB9B2; padding: clamp(64px, 7vw, 96px) 0 40px; font-size: 16px; line-height: 1.6; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; flex-direction: column; gap: 64px; }
.site-footer__main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 72px; }
.site-footer__brand { flex: 0 0 auto; }
.site-footer__brand img { display: block; height: 64px; width: auto; }
.site-footer__cols { flex: 2 1 680px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px 40px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8F8B85; }
.site-footer__col p { margin: 0; }
.site-footer__col .nowrap { white-space: nowrap; }
.site-footer a { color: #F2EFEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__bottom nav a { color: #BDB9B2; }

/* ---------- Bausteine aus dem Seiteninhalt ---------- */
.kso-btn:hover { background: var(--kso-red-dark) !important; color: #fff !important; }
.kso-btn-ink:hover { background: #2C3035 !important; color: #fff !important; }
.kso-btn-light:hover { background: var(--sand) !important; color: var(--kso-red-dark) !important; }
.kso-btn-ghost:hover { background: var(--ink) !important; color: #fff !important; }
.kso-textlink:hover { color: var(--kso-red-dark) !important; }
.kso-onred a:hover { color: #fff !important; }
.kso-index a:hover { color: var(--kso-red) !important; }
.kso-row a:hover { color: var(--kso-red) !important; }
.kso-vcard:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.kso-job:hover { background: #FBFAF8 !important; }
.kso-job:hover .kso-job-cta { color: var(--kso-red) !important; }
.kso-film:hover .kso-play { background: #fff !important; color: var(--night) !important; }
.kso-faq summary { list-style: none; cursor: pointer; }
.kso-faq summary::-webkit-details-marker { display: none; }
.kso-faq details[open] .kso-plus { transform: rotate(45deg); }
.kso-faq summary:hover { color: var(--kso-red); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal {
  max-width: 820px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 5vw, 64px); color: #3C4046; font-size: 17px; line-height: 1.7;
  overflow-wrap: break-word; hyphens: auto;
}
.legal > :first-child { margin-top: 0; }
.legal__hinweis {
  margin: 0; max-width: 46em; padding: 14px 18px; background: var(--sand); border-left: 3px solid var(--kso-red);
  font-size: 15px; line-height: 1.55; color: #3C4046;
}
.legal h2 {
  margin: 48px 0 12px; color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; hyphens: manual;
}
.legal h3 { margin: 28px 0 8px; color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 650; hyphens: manual; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal ul.legal__defs { list-style: none; padding-left: 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--kso-red); }
.legal__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 40px;
  padding-bottom: 36px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal__facts h2 {
  margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.legal__facts p { margin: 0; color: var(--ink); }

/* ---------- WordPress-Inhalte (z. B. Express-Bewerbung) ---------- */
.kso-inhalt {
  max-width: 960px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 5vw, 56px); color: #3C4046; font-size: 17px; line-height: 1.65; overflow-wrap: break-word;
}
.kso-inhalt > :first-child { margin-top: 0; }
.kso-inhalt h1, .kso-inhalt h2, .kso-inhalt h3, .kso-inhalt h4 { margin: 32px 0 12px; color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
.kso-inhalt h2 { font-size: 26px; }
.kso-inhalt h3 { font-size: 21px; }
.kso-inhalt h4 { font-size: 18px; }
.kso-inhalt p { margin: 0 0 14px; }
.kso-inhalt a { color: var(--ink); text-underline-offset: 3px; }
.kso-inhalt a:hover { color: var(--kso-red); }
.kso-inhalt img { max-width: 100%; height: auto; border-radius: 6px; }
.kso-inhalt .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
.kso-inhalt .vc_section.footer { display: none !important; } /* alter, im Seiteninhalt eingebauter Footer */

/* ---------- Contact Form 7 im KSO-Design ---------- */
.wpcf7 { color: var(--ink); font-size: 16px; }
.wpcf7 form .form-row, .wpcf7 form > p { margin: 0 0 20px; }
.wpcf7 .column-full, .wpcf7 form > p { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.wpcf7 .column-full br, .wpcf7 form > p > br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"],
.wpcf7 input[type="number"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #CFC8BC; border-radius: 4px;
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; font-weight: 400;
}
.wpcf7 textarea { min-height: 160px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.wpcf7 ::placeholder { color: #8A8D92; }
.wpcf7 input[type="file"] { font: inherit; font-size: 15px; font-weight: 400; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; line-height: 1.5; color: #3C4046; cursor: pointer; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--kso-red); }
.wpcf7 .wpcf7-submit {
  display: inline-flex; align-items: center; height: 54px; padding: 0 26px; border: 0; border-radius: 4px;
  background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; -webkit-appearance: none;
}
.wpcf7 .wpcf7-submit:hover { background: #2C3035; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 500; color: #A3122F; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #9BC4A8; background: #EEF7F0; color: #1E5631; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #E8B9C2; background: #FBEAEA; color: var(--kso-red); }

.form-status { margin: 0; padding: 14px 16px; border-radius: 4px; font-size: 16px; line-height: 1.5; }
.form-status--error { background: #FBEAEA; color: #7A142A; border: 1px solid #E8B9C2; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Umbrüche ---------- */
/* Zwischen Tablet und großem Desktop: Platz für Navigation, Termin-Portal und Sprachumschalter */
@media (max-width: 1320px) {
  .site-header__phone { display: none; }
}
@media (max-width: 1200px) {
  .site-header__inner { gap: 24px 32px; }
  .site-nav { gap: 26px; }
}
@media (max-width: 1120px) {
  .site-nav, .site-header__phone { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .site-header__inner { min-height: 68px; padding: 0 16px 0 20px; gap: 12px; }
  .site-header__logo img { height: 44px; }
  .btn-portal { height: 44px; padding: 0 14px; gap: 8px; }
  .site-header .btn-portal__long { display: none; }
  .site-header .btn-portal__short { display: inline; }
  .menu-toggle { width: 44px; height: 44px; }
  .site-header .lang-switch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
