/* ============================================================
   Design tokens
   ============================================================ */
:root {
    --color-white: #ffffff;
    --color-black: #161616;
    --color-black-soft: #1c1c1c;
    --color-headings: #000000;
    --color-blue: #17479e;
    --color-blue-dark: #1c388f;
    --color-green: #a1e40f;
    --color-green-dark: #9abb0c;
    --color-grey-light-1: #f3f3f2;
    --color-grey-light-2: #d9d9d9;
    --color-grey: #9e9e9e;
    --color-grey-dark: #666666;

    --space-075: 6px;
    --space-150: 12px;
    --space-200: 16px;
    --space-300: 24px;
    --space-500: 40px;
    --space-800: 64px;

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --font-heading: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container-w: 1280px;
    --container-pad: 40px;

    --header-h: 80px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-padding-top: var(--header-h);
}
/* Barrierefreiheit (Keppler-Task 21.07.): Maus-Fokus bleibt dezent, aber
   Tastatur-Fokus (:focus-visible) bekommt einen sichtbaren Ring (WCAG 2.4.7). */
html body *:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
html body *:focus-visible {
    outline: 2px solid #1c388f !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
}

/* Skip-Link: erster Tab-Stopp, sichtbar nur bei Tastatur-Fokus (WCAG 2.4.1). */
.skip-link {
    position: absolute;
    top: -80px;
    left: 12px;
    z-index: 10000;
    padding: 10px 18px;
    border-radius: 6px;
    background: #1c388f;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 12px;
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-headings);
    margin: 0;
    font-weight: 600;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Typography scale
   ============================================================ */
h1 { font-size: 62px; line-height: 68px; font-weight: 500; letter-spacing: -0.5px; }
h2 { font-size: 44px; line-height: 58px; font-weight: 600; }
h3 { font-size: 32px; line-height: 42px; font-weight: 600; }
h4 { font-size: 24px; line-height: 34px; font-weight: 600; }
h5 { font-size: 20px; line-height: 30px; font-weight: 600; }

/* ============================================================
   Layout container
   ============================================================ */
.container {
    width: 100%;
    max-width: calc(var(--container-w) + var(--container-pad) * 2);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

@media (min-width: 1280px) {
    .container { padding-left: 80px; padding-right: 80px; max-width: 1600px; }
}
@media (min-width: 1920px) {
    .container { padding-left: 80px; padding-right: 80px; max-width: 1440px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    height: 48px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
    white-space: nowrap;
    cursor: pointer;
}
.btn--sm { height: 42px; padding: 10px 20px; font-size: 14px; }
.btn--lg { height: 56px; padding: 14px 28px; font-size: 18px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--color-green); color: var(--color-black); border-color: var(--color-green); }
.btn--primary:hover { background: var(--color-green-dark); border-color: var(--color-green-dark); }

.btn--white { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
.btn--white:hover { background: var(--color-grey-light-1); }

.btn--outline-blue { background: var(--color-white); color: var(--color-black); border-color: var(--color-blue); }
.btn--outline-blue:hover { background: var(--color-blue); color: var(--color-white); }

.btn--ghost { background: transparent; color: var(--color-black); border-color: var(--color-black); }
.btn--ghost:hover { background: var(--color-black); color: var(--color-white); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 8px; color: var(--color-black);
}
.icon-btn:hover { background: var(--color-grey-light-1); }
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    background: transparent;
    border: 2px solid var(--color-grey-light-2); border-radius: 6px;
    font-weight: 700; font-size: 14px; color: var(--color-black);
    text-transform: uppercase; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }

/* Hide third-party language switcher widgets that may render outside our header */
.wpml-ls-statics-shortcode_actions,
.wpml-ls-legacy-list-horizontal,
.trp-language-switcher,
.trp-floater-ls,
.weglot-container,
.gtranslate_wrapper,
.polylang-switcher,
body > .language-switcher,
.site-header ~ .language-switcher,
.site-header ~ .lang-switcher { display: none !important; }

/* ============================================================
   Section header
   ============================================================ */
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; align-items: center; }
.section-head--center .section-head__lead { margin-left: auto; margin-right: auto; }
.section-head--light .section-head__title { color: var(--color-white); }
.section-head__title { font-size: 44px; line-height: 58px; color: var(--color-black-soft); margin: 0 0 20px; }
.section-head__lead { font-size: 18px; line-height: 28px; color: var(--color-black-soft); max-width: 900px; margin: 0; }

/* ============================================================
   Focus reset
   ============================================================ */
::-moz-focus-inner { border: 0 !important; }

/* ============================================================
   Responsive — global
   ============================================================ */
@media (max-width: 1365px) {
    .hide-md-down { display: none; }
}

@media (max-width: 767px) {
    :root {
        --container-pad: 20px;
        --header-h: 72px;
    }

    h1 { font-size: 40px; line-height: 46px; }
    h2 { font-size: 32px; line-height: 40px; }
    h3 { font-size: 26px; line-height: 34px; }

    .container { padding-left: 20px; padding-right: 20px; }

    .section-head__title { font-size: 28px; line-height: 36px; }
}

.stud-accent{color:var(--color-blue)}

/* Schmale Viewports: lange deutsche Woerter (Wirtschaftspsychologie usw.) duerfen
   umbrechen, sonst sprengen sie Grid-Spalten und erzeugen horizontales Scrollen. */
@media (max-width: 600px) {
    h1, h2, h3, h4,
    .program-accordion__title,
    .acc-item__head {
        overflow-wrap: break-word;
        hyphens: auto;
        min-width: 0;
    }
    .btn {
        white-space: normal;
        max-width: 100%;
        text-align: center;
    }
    h1, h2, h3, h4,
    .program-accordion__title,
    .acc-item__head-dummy {
        overflow-wrap: break-word;
        hyphens: auto;
        min-width: 0;
    }
}

/* Client 23.07 (MBA 6): Vertiefungen-Akkordeon mit Modul-Tabelle */
.mba-electives__list{margin-top:16px}
.mba-electives__panel{background:#fff;border:1px solid #e0e0e0;border-radius:8px;margin-bottom:10px;padding:0 16px}
.mba-electives__panel .admission__panel-head{padding:16px 0}
.mba-electives__table{width:100%;border-collapse:collapse;margin:4px 0 14px}
.mba-electives__table th,.mba-electives__table td{text-align:left;padding:9px 10px;border-bottom:1px solid #eaeaea;font-size:15px;vertical-align:top}
.mba-electives__table th{color:var(--color-blue);font-weight:700}
.mba-electives__table td:last-child,.mba-electives__table th:last-child{text-align:right;white-space:nowrap}

/* Client 23.07 (#2, Punkt 3): dezente Trennlinie zwischen aufeinanderfolgenden Abschnitten (containerbreit) */
.page-template-overview-bachelor main > section + section,
.single-bachelor main > section + section { position: relative; }
.page-template-overview-bachelor main > section + section::before,
.single-bachelor main > section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  background: var(--color-grey-light-2, #e5e5e5);
  pointer-events: none;
}

/* Client 23.07 (Vertiefungsseiten): kompaktere, einheitliche Abschnittsabstände (vorher 80px -> 56px) */
main > section.program-text,
main > section.program-models,
main > section.program-accordion,
main > section.admission,
main > section.contact-block,
main > section.events,
main > section.specializations,
main > section.testimonials,
main > section.why-study--bare,
main > section.feature-list { padding-top: 48px; padding-bottom: 48px; }

/* Client 24.07 (MBA 1): keine Trennlinie direkt vor/nach dem Zwischenbild */
.single-bachelor main > section + section.stud-separator::before,
.page-template-overview-bachelor main > section + section.stud-separator::before,
.single-bachelor main > section.stud-separator + section::before,
.page-template-overview-bachelor main > section.stud-separator + section::before { display: none; }

/* Client 04.08: keine Trennlinie direkt unter den Bachelor-Vertiefungskarten. */
.page-template-overview-bachelor main > section.specializations + section::before { display: none; }

/* Client 24.07 (Bachelor 1): keine Trennlinie vor den Partnerlogos (Startseite + Vertiefungsseiten). */
.single-bachelor main > section + section.partner-logos::before,
.page-template-overview-bachelor main > section + section.partner-logos::before { display: none; }

/* Client 24.07 (Vertiefung 1): keine Trennlinie vor den Vorteils-Karten (Überblick) auf den Vertiefungsseiten. */
.single-bachelor main > section + section.why-study::before { display: none; }

/* Client 24.07: keine Linie zwischen Anrechnung und Kontaktblock (Bachelor Startseite + Vertiefungsseiten). */
.single-bachelor main > section + section.contact-block::before,
.page-template-overview-bachelor main > section + section.contact-block::before { display: none; }

/* Client 27.07: keine Linie zwischen Kontaktperson und Infomaterial-Formular
   auf den Bachelor-Vertiefungsseiten. */
.single-bachelor main > section.contact-block + section.hubspot-placeholder::before { display: none; }

/* Client 28.07 (Vertiefung 4b): Inline-Links im Inhalt blau + unterstrichen,
   damit sie als Links erkennbar sind (wie E-Mail/Telefon im Kontaktblock).
   Buttons (.btn) bleiben ausgenommen. */
.program-text__body a:not(.btn),
.program-accordion__body a:not(.btn),
.acc-item__list-item a:not(.btn),
.admission__intro a:not(.btn),
.admission__list a:not(.btn),
.admission__panel-body a:not(.btn),
.career-prospects__lead a:not(.btn),
.career-prospects__item a:not(.btn) {
    color: var(--color-blue);
    text-decoration: underline;
}
.program-text__body a:not(.btn):hover,
.program-accordion__body a:not(.btn):hover,
.acc-item__list-item a:not(.btn):hover,
.admission__panel-body a:not(.btn):hover { text-decoration: none; }
