/* ==========================================================================
   ROXEN Theme – Bielefeld University-inspired Design
   Based on the UB Technology Faculty visual design language
   ========================================================================== */

/* =Reset / Normalize
-------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

.ubf-section__content {
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl,
dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

html {
    font-size: 62.5%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-hyphens: auto;
    hyphens: auto;
}

body {
    background: #fff;
    color: #1d1d1b;
    font-family: 'Lelo', 'Lato',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: normal;
}


article, aside, details, figcaption, figure, footer, header, hgroup, nav,
section {
    display: block;
}

ol, ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption, th, td {
    font-weight: normal;
    text-align: left;
}

a:focus {
    outline: thin dotted;
}

a:hover, a:active {
    outline: 0;
}

a img {
    border: 0;
}

/* =Lelo Font (Bielefeld University custom typeface)
-------------------------------------------------------------- */
@font-face {
    font-family: 'Lelo';
    src: url("/fonts/Lelo-Regular.woff2") format('woff2'),
    url("/fonts/Lelo-Regular.woff") format('woff');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lelo';
    src: url("/fonts/Lelo-Bold.woff2") format('woff2'),
    url("/fonts/Lelo-Bold.woff") format('woff');
    font-style: normal;
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Lelo';
    src: url("/fonts/Lelo-RegularItalic.woff2") format('woff2'),
    url("/fonts/Lelo-RegularItalic.woff") format('woff');
    font-style: italic;
    font-weight: normal;
    font-display: swap;
}

/* =CSS Custom Properties
-------------------------------------------------------------- */
:root {
    --ubf-accent: #558ca0;
    --ubf-accent-light: #87b4c5;
    --ubf-accent-dark: #3d6b7a;
    --ubf-accent-hr: #47798c;
    --ubf-font: 'Lelo', 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ubf-text: #1d1d1b;
    --ubf-text-light: #555;
    --ubf-text-muted: #888;
    --ubf-bg: #fff;
    --ubf-bg-light: #f0f0f0;
    --ubf-bg-lighter: #f7f7f7;
    --ubf-border: #d9d9d9;
    --ubf-border-light: #eee;
    --ubf-link: #01865e;
    --ubf-link-hover: #016a48;
    --ubf-content-max: 1060px;
    --ubf-sidebar-width: 250px;
    --ubf-header-dist: 35px;
    --ubf-navbar-height: 8rem;
    --ubf-square-top: 20px;
    --ubf-square-size: 45px;
    --ubf-square-margin: 15.5px;
    --ubf-header__facultySquare-top: 80px;
    --ubf-header__facultySquare-height: 10px;
    --ubf-header__facultySquare-color: #558ca0;
    --ubf-logo-lettering-top: 24px;
    --ubf-logo-lettering-height: 42px;
    --ubf-techfak-lettering-top: 78px;
    --ubf-techfak-lettering-height: 47px;
    --ubf-hero-height: 420px;
}

/* =Typography
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ubf-font);
    color: var(--ubf-text);
    line-height: 1.3;
}

h1 {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.8em 0 0.5em;
}

h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0.8em 0 0.5em;
}

h4 {
    font-size: 1.6rem;
    font-weight: 700;
}

h5 {
    font-size: 1.6rem;
    font-weight: 700;
}

h6 {
    font-size: 1.4rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.2em;
}

ul, ol {
    margin: 0 0 1.5em 2em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

ul ul, ol ol, ul ol, ol ul {
    margin-bottom: 0;
    margin-left: 1.5em;
}

li {
}

b, strong {
    font-weight: 700;
}

dfn, cite, em, i {
    font-style: italic;
}

pre {
    background: var(--ubf-bg-lighter);
    border: 1px solid var(--ubf-border);
    font-family: 'Courier 10 Pitch', Courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    padding: 1.6em;
    overflow: auto;
    max-width: 100%;
}

code {
    font-family: 'Courier New', Courier, mono;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

blockquote {
    font-style: italic;
    margin-left: 1em;
    padding-left: 1em;
    border-left: 3px solid var(--ubf-border);
    color: var(--ubf-text-light);
}

/* =Links
-------------------------------------------------------------- */
a {
    color: var(--ubf-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover, a:focus, a:active {
    text-decoration: underline;
}

/* =Page Wrapper
-------------------------------------------------------------- */
.ubf-page {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.ubf-main {
    flex: 1;
    z-index: 50;
    background: white;
}

/* =UB square overlay – icon floats fixed at the top, above everything (hero + navbar) */
.ubf-square-icon {
    position: fixed;
    top: var(--ubf-square-top);
    z-index: 1001;
    right: calc(50% + (var(--ubf-content-max) / 2) + var(--ubf-square-margin));
}

.ubf-square-icon img {
    display: block;
    width: auto;
    height: var(--ubf-square-size);
    max-width: 100%;
}

.ubf-header__facultySquare {
    display: block;
    position: fixed;
    top: var(--ubf-header__facultySquare-top);
    width: var(--ubf-square-size);
    height: var(--ubf-header__facultySquare-height);
    margin-left: 0;
    box-sizing: border-box;
    right: calc(50% + (var(--ubf-content-max) / 2) + var(--ubf-square-margin));
    z-index: 10;
}

.ubf-body--technology .ubf-header__facultySquare {
    background-color: var(--ubf-header__facultySquare-color);
}


.ubf-logo-lettering {
    position: fixed;
    top: var(--ubf-logo-lettering-top);
    z-index: 10; /* z-index defines on which level the element is -> smaller z-index = background */
    left: calc(50% - (var(--ubf-content-max) / 2)); /* at left content container boundary */
}

.ubf-logo-lettering img {
    display: block;
    width: auto;
    height: var(--ubf-logo-lettering-height);
    max-width: 100%;
}

.ubf-techfak-lettering {
    position: fixed;
    top: var(--ubf-techfak-lettering-top);
    z-index: 10; /* z-index defines on which level the element is -> smaller z-index = background */
    left: calc(50% - (var(--ubf-content-max) / 2));
}

.ubf-techfak-lettering img {
    display: block;
    max-width: none;
    height: var(--ubf-techfak-lettering-height);

}

/* UB square hidden slot in navbar – appears at same x-position when scrolling past the header */

/* =Navbar (logos + menu, sticky below hero)
-------------------------------------------------------------- */
.ubf-navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--ubf-navbar-height);
    width: 100%;
}


.ubf-navbar__inner {
    max-width: var(--ubf-content-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.ubf-navbar__logos {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.8rem;
}

.ubf-navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ubf-navbar__logo img {
    max-height: 34px;
    width: auto;
    display: block;
}

.ubf-navbar__menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    align-items: stretch;
    gap: 0;
}

@media (max-width: 1180px) {
    .ubf-navbar__menu {
        padding-left: 0;
    }
}

.ubf-navbar__item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1;
}

.ubf-navbar__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0 1rem;
    flex: 1;
    color: var(--ubf-text);
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.ubf-navbar__link:hover {
    background: #f0f0f0;
    text-decoration: none;
}

/* Partner logos (techfak + citec) between Contact and Search */
/*.ubf-navbar__item--logos { align-items: center; padding: 0 0.5rem; }*/
/*.ubf-navbar__partner { display: flex; align-items: center; gap: 10px; }*/
/*.ubf-navbar__partner .sidelogo { max-height: 28px !important; width: auto !important; display: block; }*/
/*.ubf-navbar__partner #citec.sidelogo { max-height: 24px !important; width: auto !important; }*/

/* Triangle icon */
.ubf-navbar__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.ubf-navbar__item:not(:hover) .ubf-navbar__icon {
    transform: rotate(90deg);
}

.ubf-navbar__item:hover .ubf-navbar__icon {
    transform: rotate(0deg);
}

/* Submenu */
.ubf-navbar__sub {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #f0f0f0;
    min-width: 240px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s 0.1s, visibility 0.2s 0.1s;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0.8rem 0;
}

.ubf-navbar__item--sub-down .ubf-navbar__sub {
    bottom: auto;
    top: 100%;
}

.ubf-navbar__item--sub-down:hover .ubf-navbar__icon {
    transform: rotate(180deg);
}

.ubf-navbar__item:hover .ubf-navbar__sub {
    visibility: visible;
    opacity: 1;
}

.ubf-navbar__sublink {
    display: block;
    padding: 0.8rem 2rem;
    color: var(--ubf-text-light);
    font-size: 1.35rem;
    text-decoration: none;
    white-space: nowrap;
}

.ubf-navbar__sublink:hover {
    background: none;
    color: var(--ubf-text);
    text-decoration: none;
}

.ubf-navbar__subitem--active .ubf-navbar__sublink {
    color: var(--ubf-accent);
    font-weight: 700;
}

/* Search */
.ubf-navbar__item--search {
    flex: 0 0 5rem;
}

.ubf-navbar__link--search {
    justify-content: center;
    padding: 0;
    color: var(--ubf-text-muted);
}

.ubf-navbar__link--search:hover {
    background: transparent;
    color: var(--ubf-accent);
}

/* Hamburger toggle button (hidden on desktop) */
.ubf-navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 1.5rem;
    height: 100%;
    margin: 0 0 0 auto;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 110;
    order: 0;
}

.ubf-navbar__toggle-icon,
.ubf-navbar__toggle-icon::before,
.ubf-navbar__toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ubf-text, #333);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ubf-navbar__toggle-icon {
    position: relative;
}

.ubf-navbar__toggle-icon::before,
.ubf-navbar__toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.ubf-navbar__toggle-icon::before {
    top: -8px;
}

.ubf-navbar__toggle-icon::after {
    top: 8px;
}

/* Open state (X animation) */
.ubf-navbar__toggle--open .ubf-navbar__toggle-icon {
    background: transparent;
}

.ubf-navbar__toggle--open .ubf-navbar__toggle-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.ubf-navbar__toggle--open .ubf-navbar__toggle-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* =Hero / Cover Section
-------------------------------------------------------------- */
.ubf-section--cover {
    position: relative;
    overflow: hidden;
}

/* =Content Sections
-------------------------------------------------------------- */
.ubf-section {
    padding: 4rem 0;
    position: relative;
    z-index: 5;
}

.ubf-section--intro {
    background: #fff;
    padding: 8rem 0 0 0;
}

.ubf-section--articles {
    background: #fff;
}

.ubf-section--sidebar {
    background: #fff;
}

.ubf-section__content {
    max-width: var(--ubf-content-max);
    margin: 0 auto;
}

.ubf-section--articles .ubf-section__content {
    max-width: var(--ubf-content-max);
    margin: 0 auto;
}

/* =Content Block
-------------------------------------------------------------- */
.ubf-contentBlock {
    margin-bottom: 2rem;
}

.ubf-contentBlock--text {
    max-width: 900px;
}

.ubf-contentBlock__title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ubf-text);
    margin-bottom: 2rem;
}

.ubf-text h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.ubf-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 2rem;
}

.ubf-text h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

@media (max-width: 1180px) {
    h1 {
        font-size: 4rem;
    }

    .ubf-text h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .ubf-text h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2rem;
    }

    .ubf-text h3 {
        font-size: 2rem;
    }
}

/* =UGC - User Generated Content (markdown rendered)
-------------------------------------------------------------- */
.ubf-ugc {
    line-height: 1.7;
    color: var(--ubf-text);
}

.ubf-ugc p {
    margin-bottom: 1.2em;
}

.ubf-ugc a {
    color: var(--ubf-accent);
    text-decoration: none;
}

.ubf-ugc a:hover {
    text-decoration: underline;
}

.ubf-ugc h1, .ubf-ugc h2, .ubf-ugc h3, .ubf-ugc h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    color: var(--ubf-text);
}

.ubf-ugc .ubf-ugc__first-heading {
    margin-top: 0;
}

.ubf-ugc h1 {
    font-size: 5.5rem;
    line-height: 1.3;
    font-weight: bold;
}

.ubf-ugc h2 {
    font-size: 3.5rem;
    line-height: 1.3;
    font-weight: bold;
}

.ubf-ugc h3 {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: bold;
}

.ubf-ugc h4, .ubf-ugc h5, .ubf-ugc h6 {
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: bold;
}

.ubf-ugc ul, .ubf-ugc ol {
    margin-left: 2em;
}

.ubf-ugc li {
    margin-bottom: 0.4em;
}

.ubf-ugc blockquote {
    font-style: italic;
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    border-left: 3px solid var(--ubf-accent);
    background: var(--ubf-bg-lighter);
}

.ubf-ugc pre {
    background: #2d2d2d;
    color: #f0f0f0;
    padding: 1.5em;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9em;
}

.ubf-ugc code {
    background: var(--ubf-bg-light);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.ubf-ugc pre code {
    background: transparent;
    padding: 0;
}

.ubf-ugc table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.ubf-ugc th, .ubf-ugc td {
    padding: 0.8em 1em;
    border: 1px solid var(--ubf-border);
    text-align: left;
}

.ubf-ugc th {
    background: var(--ubf-bg-lighter);
    font-weight: 700;
    border-bottom: 2px solid var(--ubf-accent);
}

.ubf-ugc img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* =Publications Layout
-------------------------------------------------------------- */
.ubf-pubs-layout {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 3rem;
    align-items: start;
}

.ubf-pubs-layout .ubf-ugc {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-x: hidden;
}

.ubf-pubs-layout .ubf-ugc iframe,
.ubf-pubs-layout .ubf-ugc object,
.ubf-pubs-layout .ubf-ugc embed,
.ubf-pubs-layout .ubf-ugc img,
.ubf-pubs-layout .ubf-ugc table,
.ubf-pubs-layout .ubf-ugc pre,
.ubf-pubs-layout .ubf-ugc div,
.ubf-pubs-layout .ubf-ugc p,
.ubf-pubs-layout .ubf-ugc span,
.ubf-pubs-layout .ubf-ugc ul,
.ubf-pubs-layout .ubf-ugc li,
.ubf-pubs-layout .ubf-ugc a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ubf-pubs-layout .ubf-ugc img {
    height: auto;
}

.ubf-pubs-layout .ubf-ugc iframe {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.ubf-pubs-sidebar {
    order: 2;
    position: sticky;
    top: calc(9rem + 10px);
    align-self: start;
}

.ubf-pubs-sidebar__inner {
    background: #f0f0f0;
    border-top: 2px solid var(--ubf-accent);
    border-bottom: 2px solid var(--ubf-accent);
    padding: 1.5rem;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.ubf-pubs-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ubf-pubs-sidebar__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ubf-text);
    margin: 0;
    padding: 0;
}

.ubf-pubs-sidebar__toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    color: var(--ubf-text);
    transition: transform 0.2s;
}

.ubf-pubs-sidebar__toggle::before,
.ubf-pubs-sidebar__toggle::after {
    content: '';
    display: block;
    position: absolute;
    background: currentColor;
    width: 1.6rem;
    height: 2px;
    top: 50%;
    left: 50%;
    margin: -1px 0 0 -0.8rem;
    transition: transform 0.2s;
}

.ubf-pubs-sidebar__toggle::after {
    transform: rotate(90deg);
}

.ubf-pubs-sidebar__toggle[aria-expanded="false"]::after {
    transform: rotate(0deg);
}

.ubf-pubs-year-list-wrapper {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ubf-pubs-year-list-wrapper--collapsed {
    max-height: 0 !important;
}

.ubf-pubs-year-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ubf-pubs-year-list__item {
    margin: 0;
    padding: 0;
}

.ubf-pubs-year-list__link {
    display: block;
    text-decoration: none;
    color: var(--ubf-text);
    font-size: 1em;
    text-align: center;
    padding: 0.4rem 0.2rem;
}

.ubf-pubs-year-list__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: none;
}

.ubf-pubs-year-list__link.ubf-pubs-year-list__link--active {
    font-weight: 700;
    color: var(--ubf-accent);
}

.ubf-pubs-year-list__link.ubf-pubs-year-list__link--active:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Desktop: multi-column year list based on viewport height */
.ubf-pubs-sidebar__inner .ubf-pubs-year-list {
    display: block;
    column-width: 4em;
    column-gap: 1.5em;
}

.ubf-pubs-sidebar__inner .ubf-pubs-year-list__item {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0;
}

.ubf-pubs-sidebar__inner .ubf-pubs-year-list__link {
    text-align: left;
    padding: 0.3rem 0.5rem;
}

@media (max-width: 1180px) {
    .ubf-pubs-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ubf-pubs-sidebar {
        order: -1;
        position: sticky;
        top: 10rem;
        align-self: auto;
        z-index: 40;
    }

    .ubf-pubs-sidebar__inner {
        position: static;
        max-height: none;
        padding: 1rem 1.5rem;
    }

    .ubf-pubs-sidebar__toggle {
        display: block;
        position: relative;
    }

    .ubf-pubs-sidebar__title {
        font-size: 1.6rem;
    }

    .ubf-pubs-year-list-wrapper {
        max-height: none;
    }

    .ubf-pubs-year-list-wrapper--collapsed {
        max-height: 0 !important;
    }

    .ubf-pubs-sidebar__inner .ubf-pubs-year-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.8rem;
    }

    .ubf-pubs-year-list__link {
        font-size: 0.85em;
        padding: 0.3rem 0.7rem;
        border-radius: 3px;
    }
}

/* =Teaching Layout
-------------------------------------------------------------- */
.ubf-teaching-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    align-items: start;
}

/* =Homepage Layout
-------------------------------------------------------------- */

/* =Homepage Top Section (welcome + mission + quicklinks sidebar)
-------------------------------------------------------------- */
.ubf-homepage-top {
    display: grid;
    grid-template-columns: 1fr var(--ubf-sidebar-width);
    gap: 1rem 3rem;
    align-items: start;
}

.ubf-homepage-top__primary {
    min-width: 0;
}

.ubf-homepage-top__sidebar {
    min-width: 0;
}

.ubf-sidebar-top__inner {
    background: #f0f0f0;
    border-top: 2px solid var(--ubf-accent);
    border-bottom: 2px solid var(--ubf-accent);
    padding: 2rem;
}

.ubf-sidebar-top__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ubf-text);
    margin: 0;
    padding: 0 0 0.8rem 0;
}

.ubf-sidebar-top__subtitle {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--ubf-text-muted);
    margin: 1.2rem 0 0.2rem;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ubf-sidebar-top-links {
    list-style: none;
    margin: 0;
}

.ubf-sidebar-top-links__item:last-child {
    border-bottom: none;
}

.ubf-sidebar-top-links__link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--ubf-text);
    font-size: 0.9em;
    transition: color 0.15s;
}

.ubf-sidebar-top-links__link:hover {
    color: var(--ubf-accent);
}

.ubf-sidebar-top-links__item:hover {
    text-decoration: none;
    color: var(--ubf-accent);
}

.ubf-sidebar-top-links__link .ubf-sidebar-icon {
    width: 32px;
    height: 32px;
    padding: 7px;
}

.ubf-sidebar-top-links__text {
    display: flex;
    flex-direction: column;
}

.ubf-sidebar-top-links__text strong {
    font-size: 0.9em;
    color: inherit;
}

.ubf-sidebar-top-links__text span {
    font-size: 0.7em;
    color: var(--ubf-text-muted);
    margin-top: 1px;
}

.ubf-sidebar-top-links__text--no-icon {
    padding-left: 0;
}

/*.ubf-sidebar-top-links__item:nth-child(1) .ubf-sidebar-icon { background: #0a66c2; }*/
/*.ubf-sidebar-top-links__item:nth-child(2) .ubf-sidebar-icon { background: #1285fe; }*/
/*.ubf-sidebar-top-links__item:nth-child(3) .ubf-sidebar-icon { background: #fc6d26; }*/
/*.ubf-sidebar-top-links__item:nth-child(4) .ubf-sidebar-icon { background: var(--ubf-accent); }*/

/* =News Section (full width with horizontal scroll)
-------------------------------------------------------------- */
.ubf-section--news {
    background: #fff;
}

.ubf-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ubf-news-header h2 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ubf-text);
}

.ubf-news-header__all {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--ubf-accent);
    text-decoration: none;
}

.ubf-news-header__all:hover {
    text-decoration: underline;
}

/* =News Carousel (Homepage) */
.ubf-news-carousel {
    position: relative;
}

.ubf-news-carousel__btn {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ubf-accent);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.ubf-news-carousel__btn--prev {
    left: -35px;
}

.ubf-news-carousel__btn--next {
    right: -35px;
}

.ubf-news-carousel__btn:hover {
    background: rgba(180, 180, 180, 0.5);
}

.ubf-news-carousel__track {
    overflow: hidden;
}

.ubf-news-carousel__inner {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease;
    width: 100%;
}

.ubf-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.ubf-news-card {
    background: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.card-image-copyright-offset {
    padding-top: 3.3rem;
}

/*.ubf-news-card:hover {*/
/*  box-shadow: 0 4px 15px rgba(0,0,0,0.06);*/
/*}*/

.ubf-news-carousel__inner .ubf-news-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.ubf-news-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ubf-news-card__link:hover {
    text-decoration: none;
}

.ubf-news-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ubf-bg-light);
}

.ubf-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ubf-news-card__meta {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0.8rem;
}

.ubf-news-card__date {
    font-size: 0.7em;
    color: #fff;
    background: var(--ubf-text-light);
    padding: 0.2em 0.6em;
    line-height: 1.4;
}

.ubf-news-card__body {
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ubf-news-card a .ubf-news-card__title,
.ubf-news-card__title {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 0.5em !important;
    color: var(--ubf-text) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ubf-news-card__link:hover .ubf-news-card__title {
    color: var(--ubf-accent);
}

.ubf-news-card__summary {
    font-size: 1em !important;
    color: var(--ubf-text-light) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ubf-news-card__line {
    height: 2px;
    background: var(--ubf-accent);
    margin: 2rem 0 0;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .ubf-news-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }

    .ubf-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ubf-news-carousel__inner .ubf-news-card {
        flex: 0 0 calc((100% - 3rem) / 2);
    }

    .ubf-news-carousel__btn--prev {

        left: -10px;
        background: rgba(0, 0, 0, 0.2);
    }

    .ubf-news-carousel__btn--next {
        right: -10px;
        background: rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 600px) {
    .ubf-news-card {
        flex: 0 0 85%;
    }

    .ubf-news-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .ubf-news-carousel__inner .ubf-news-card {
        flex: 0 0 calc((100% - 3rem) / 1);
    }
}

/* =Teaching Course Grid --- small cards (Current/Next/Previous) */
.teaching-course-grid {
    display: flex;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;
}

.teaching-course-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 140px;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 14px 16px;
    background: transparent;
    border: 2px solid var(--ubf-accent);
    text-decoration: none !important;
    color: var(--ubf-text) !important;
    transition: all 0.2s ease;
    text-align: left;
}

.teaching-course-card:hover {
    background: var(--ubf-accent);
    color: #fff !important;
    text-decoration: none !important;
}

.teaching-course-icon {
    align-self: flex-end;
    width: 18px;
    height: 18px;
    color: #c0c0c0;
    flex-shrink: 0;
}

.teaching-course-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.teaching-course-card:hover .teaching-course-icon {
    color: rgba(255, 255, 255, 0.5);
}

.teaching-course-label {
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

/* =News card image credit */
.ubf-news-card__credit {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.15em 0.5em;
    border-radius: 3px;
    line-height: 1.4;
    margin-left: auto;
}

/* Scroll hint bar */
.ubf-news-scroll__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 769px) {
    .ubf-news-scroll__hint--mobile {
        display: none !important;
    }
}

.ubf-news-scroll__bar {
    display: block;
    width: 2.5rem;
    height: 2px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.ubf-news-scroll__label {
    font-size: 0.75em;
    color: var(--ubf-text-muted);
    letter-spacing: 0.5px;
}

/* =Responsive: mobile overrides for homepage sections */
@media (max-width: 1180px) {
    .ubf-homepage-top {
        grid-template-columns: 1fr;
    }

    .ubf-teaching-layout {
        grid-template-columns: 1fr;
    }

    .ubf-news-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}

@media (max-width: 600px) {
    .ubf-news-card {
        flex: 0 0 85%;
    }
}

/* =Hero Slider
-------------------------------------------------------------- */
/* =Homepage Hero with Parallax */
.ubf-hero-slider {
    z-index: 1;
}

.ubf-hero-slider--homepage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* =Hero Text Box (overlay on slider, square with logo, right-aligned, adaptive size) */
.scs-hero-box {
    position: absolute;
    bottom: 5rem;
    right: calc((100% - var(--ubf-content-max)) / 2);
    z-index: 10;
    width: calc(var(--ubf-content-max) / 3 + 1.3rem);
    aspect-ratio: 1 / 0.95;
    pointer-events: none;
}

.scs-hero-box__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.scs-hero-box__logo {
    width: 90%;
    height: auto;
    display: block;
}

@media (max-width: 1180px) {
    .scs-hero-box {
        left: auto;
        right: var(--ubf-header-dist);
        top: 3rem;
        width: 28%;
        height: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .scs-hero-box {
        width: 45%;
        aspect-ratio: 1.8 / 1;
        bottom: 1.5rem;
    }

    .scs-hero-box__inner {
        padding: 0.5rem;
    }
}


.ubf-hero-spacer {
    width: 100%;
}

.ubf-hero-spacer--homepage {
    height: calc(100vw * 400 / 1100);
}

/* Slider navigation bar at the bottom of the hero */
.scs-slider-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 600px) {
    .scs-slider-nav {
        left: 5%;
        right: auto;
    }
}

.scs-slider {
    position: relative;
}

.scs-slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1100 / 400;
    overflow: hidden;
    background: #1a1a2e;
}

.scs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scs-slide.active {
    opacity: 1;
    z-index: 1;
}

.scs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 65%);
}

.scs-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 60px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1180px) {
    .scs-slide-caption {
        padding: 20px 10px 20px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .scs-slide-caption {
        padding: 10px 8px 32px 8px;
        font-size: 0.65rem;
    }
}

.scs-slider-prev, .scs-slider-next {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #fff;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    opacity: 0.7;
}

.scs-slider-prev:hover, .scs-slider-next:hover {
    opacity: 1;
}

.scs-slider-prev svg, .scs-slider-next svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ubf-footer__sectionTitle {
    color: white
}

/* Dot navigation in the bar */
.scs-slider-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px;
    padding: 0;
}

.scs-slider-dot {
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.scs-slider-dot::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    transition: background 0.2s;
}

.scs-slider-dot.active::after {
    background: #fff;
}

.scs-slider-dot:hover::after {
    background: rgba(255, 255, 255, 0.5);
}

/* =Default Hero (all pages)
-------------------------------------------------------------- */
.ubf-hero-default {
    position: relative;
    width: 100%;
}

.ubf-hero-default img {
    width: 100%;
    height: 1000px;
    object-fit: cover;
    display: block;
}

.ubf-hero-default__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.ubf-hero-default__title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 2rem;
}

/* =Parallax hero (non-homepage pages)
   Uses fixed positioning + taller-than-visible image
   so the JS scroll listener can shift it vertically
-------------------------------------------------------------- */
.ubf-hero-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ubf-hero-height);
    z-index: -2;
    overflow: hidden;
}

.ubf-hero-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 35%, transparent 60%);
}

.ubf-hero-parallax__img {
    width: 100%;
    height: 720px; /* taller than container, allows movement */
    object-fit: cover;
    display: block;
    transition: none;
    will-change: transform;
}

.ubf-hero-parallax__overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.ubf-hero-parallax__title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 2rem;
}

.ubf-hero-parallax__spacer {
    height: var(--ubf-hero-height);
}

/* =Parallax hero caption (copyright notice)
   Overlaid at the bottom of the hero, right-aligned within content width.
-------------------------------------------------------------- */
.ubf-hero-figure {
    position: relative;
    margin: 0;
}

.ubf-hero-caption {
    position: absolute;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    width: 100%;
    max-width: var(--ubf-content-max);
    padding: 0.5rem 2rem 1rem 0;
    text-align: right;
    font-size: 1rem;
    line-height: 1.5;
    pointer-events: none;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .ubf-hero-parallax {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 280px;
        z-index: -2;
        overflow: hidden;
    }

    .ubf-hero-parallax__img {
        height: 400px;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .ubf-hero-parallax__spacer {
        height: 280px;
        display: block;
    }

    .ubf-hero-caption {
        left: auto;
        right: 0.5rem;
        bottom: 0.3rem;
        transform: none;
        padding: 0.2rem 0.5rem;
        text-align: right;
        font-size: 0.7rem;
        display: block;
    }
}

/* =News Item (Homepage feed)
-------------------------------------------------------------- */
.news-item {
    margin-bottom: 30px;
    display: flex;
}

.news-item .news-thumb {
    flex: 0 0 360px;
    margin-right: 20px;
}

.news-item .news-thumb img {
    width: 360px;
    height: 240px;
    object-fit: cover;
}

.news-item h3 {
    font-size: 1.2em;
    margin: 0 0 5px;
}

.news-item h3 a {
    color: #000;
    text-decoration: none;
}

.news-item p {
    margin-top: 18px;
}

/* =Welcome Title
-------------------------------------------------------------- */
.welcome-title {
    margin-bottom: 2rem;
}

/* News heading same size as Mission h2 */
.ubf-homepage-top__primary h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.8em 0 0.5em;
}

/* =News List
-------------------------------------------------------------- */
.news-list {
    margin-top: 2rem;
}

.news-list-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
    position: relative;
}

.news-list-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.news-list-hero {
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.news-list-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.news-list-body h3 {
    margin: 0 0 0.8rem;
    font-size: 1.6rem;
}

.news-list-body h3 a {
    color: var(--ubf-text);
    text-decoration: none;
}

.news-list-body h3 a:hover {
    color: var(--ubf-accent);
}

.news-list-body p {
    margin: 0;
    color: var(--ubf-text-light);
    line-height: 1.7;
}

.news-list-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.85em;
    color: var(--ubf-text-muted);
}

.news-list-meta time {
    font-style: italic;
}

/* =News Single
-------------------------------------------------------------- */
.news-hero {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    max-height: 420px;
}

.news-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.news-meta-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.85em;
    color: var(--ubf-text-muted);
}

.news-meta-top time {
    font-style: italic;
}

.news-category {
    display: inline-block;
    background: var(--ubf-bg-light);
    color: var(--ubf-text-light);
    padding: 0.2em 1em;
    border-radius: 12px;
    font-size: 0.85em;
}

/* =Team Grid (list page)
-------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10.5rem;
    margin: 3rem 0;
}

.team-grid--students {
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    background: #fff;
    border: none;
    border-bottom: 2px solid var(--ubf-accent);
    padding: 2.5rem 2rem 4rem;
    text-align: center;
    transition: box-shadow 0.2s;
    position: relative;
}

.team-card::after {
    display: none;
}

.team-photo-link {
    display: block;
    text-decoration: none;
}

.team-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ubf-bg-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: 700;
    color: var(--ubf-text-muted);
    background: #e8e8e8;
}

.team-photo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #fff !important;
    border-radius: 50%;
}

.team-photo-initials span {
    color: #fff !important;
}

.team-photo-initials--single {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    font-size: 4em;
}

.team-info {
    line-height: 1.5;
}

.team-name {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.team-name a {
    color: var(--ubf-text);
    text-decoration: none;
}

.team-name a:hover {
    color: var(--ubf-accent);
}

.team-role {
    font-style: italic;
    color: var(--ubf-text-muted);
    font-size: 0.9em;
    margin: 0 0 0.8rem;
}

.team-email {
    margin: 0;
    font-size: 0.85em;
}

.team-email a {
    color: var(--ubf-accent);
    text-decoration: none;
}

.team-email a:hover {
    text-decoration: underline;
}

.team-pevz {
    margin: 0;
    font-size: 0.85em;
}

.team-pevz a {
    color: var(--ubf-accent);
    text-decoration: none;
}

.team-pevz a:hover {
    text-decoration: underline;
}

.team-project {
    margin: 0.6em 0 0;
    font-size: 0.82em;
    color: var(--ubf-text-muted);
    font-style: italic;
    line-height: 1.3;
}

.team-office {
    margin: 0.3em 0 0;
    color: var(--ubf-text-muted);
    font-size: 0.82em;
}

.team-zeitraum {
    margin: 0.5em 0 0;
    font-size: 0.82em;
    color: var(--ubf-text-muted);
    font-style: italic;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1em 0 0.5em;
    line-height: 1.3;
}

/* =Team Member Single
-------------------------------------------------------------- */
.team-member-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--ubf-border-light);
}

.team-member-photo {
    flex: 0 0 280px;
}

.team-member-photo img {
    width: 100%;
    max-width: 280px;
    display: block;
}

.team-member-info {
    flex: 1;
}

.team-member-info .entry-title {
    font-size: 1.6em !important;
    margin: 0 0 0.5rem !important;
}

.team-member-info .team-role {
    font-size: 1em;
    margin-bottom: 1.5rem;
}

.team-member-contact p {
    margin: 0 0 0.4rem;
    font-size: 0.95em;
}

.team-member-contact a {
    color: var(--ubf-accent);
    text-decoration: none;
}

.team-member-contact a:hover {
    text-decoration: underline;
}

/* =Former Member Badge & Info
-------------------------------------------------------------- */
.former-badge {
    font-weight: normal;
    font-size: 0.7em;
}

h1 .former-badge {
    font-size: 0.45em;
    vertical-align: middle;
}

.former-notice {
    background: #f8f8f8;
    border-left: 4px solid var(--ubf-accent, #558ca0);
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem;
    border-radius: 0 4px 4px 0;
}

.former-notice p {
    margin: 0 0 0.5rem;
    font-size: 0.95em;
}

.former-notice p:last-child {
    margin: 0;
}

.former-contact-hint {
    font-style: italic;
    color: var(--ubf-text-muted, #666);
}

.team-card .team-note {
    font-size: 0.85em;
    color: var(--ubf-text-muted, #666);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* =Post Feed (listing pages)
-------------------------------------------------------------- */
.ubf-list {
    margin-top: 2rem;
}

.ubf-list-item {
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    position: relative;
}

.ubf-list-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.ubf-list-item__title {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.ubf-list-item__title a {
    color: var(--ubf-text);
    text-decoration: none;
}

.ubf-list-item__title a:hover {
    color: var(--ubf-accent);
}

.ubf-list-item__date {
    font-size: 0.85em;
    color: var(--ubf-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.ubf-list-item__summary {
    color: var(--ubf-text-light);
    font-size: 0.95em;
    line-height: 1.7;
}

/* =Pagination
-------------------------------------------------------------- */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    padding-top: 2rem;
}

.pagination-nav a {
    padding: 0.8rem 1.8rem;
    background: #fff;
    color: var(--ubf-text);
    border: 2px solid #000;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 700;
    transition: all 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pagination-nav a:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.pagination-info {
    font-size: 0.85em;
    color: var(--ubf-text-muted);
    font-weight: 700;
}

/* =Project Grid Cards
-------------------------------------------------------------- */
.ubf-project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.ubf-project-card {
    background: #fff;
    border: none;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--ubf-accent);
}

/*.ubf-project-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }*/
.ubf-project-card::after {
    content: '';
    display: block;
    height: 2px;
    flex-shrink: 0;
}

.ubf-project-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubf-project-card__image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.ubf-project-card__image .project-placeholder {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.ubf-project-card__content {
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ubf-project-card__title {
    font-size: 2.4rem;
    margin: 0 0 0.8rem;
    flex: 2;
}

.ubf-project-card__title a {
    color: var(--ubf-text);
    text-decoration: none;
}

.ubf-project-card__title a:hover {
    color: var(--ubf-accent);
}

.ubf-project-card__period {
    display: block;
    font-size: 0.85em;
    color: var(--ubf-text-muted);
    margin-bottom: 1.5rem;
}

.ubf-project-card__content p {
    font-size: 0.9em;
    color: var(--ubf-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-image-block {
    position: relative;
    margin-bottom: 1.25rem;
}

.card-image-copyright {
    font-size: 0.85rem;
    color: #000;
    text-align: right;
    padding: 0.15rem 0.5rem;
    margin: 0;
    line-height: 1.4;
    width: fit-content;
    margin-left: auto;
    max-width: 100%;
}

.ubf-project-card__more {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--ubf-accent);
    text-decoration: none;
    text-align: right;
    padding: 0;
    display: block;
}

.ubf-project-card__more:hover {
    text-decoration: underline;
}

.ubf-project-card__content > .ubf-project-card__more {
    margin-top: auto;
}

.ubf-project-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 1.5rem;
}

.ubf-project-card__funders {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ubf-project-card__funders img {
    max-height: 25px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ubf-project-card__funders img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.ubf-project-card > a:first-child {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ubf-card-more {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--ubf-accent);
    text-align: right;
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    text-decoration: none !important;
}

.ubf-card-more:hover {
    text-decoration: none;
}

.ubf-projects-grid-wide {
    grid-template-columns: repeat(3, 1fr);
}


@media (max-width: 1180px) {
    .ubf-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ubf-projects-grid-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ubf-project-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .ubf-projects-grid-wide {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =Project / Thesis Meta
-------------------------------------------------------------- */
.ubf-project-period {
    font-style: italic;
    color: var(--ubf-text-muted);
    margin-bottom: 1.5rem;
}

.ubf-project-hero {
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.ubf-project-hero img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.ubf-thesis-hero {
    margin-bottom: 2rem;
    max-width: 600px;
}

.ubf-thesis-hero img {
    width: 100%;
    display: block;
}

.ubf-thesis-meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.9em;
    color: var(--ubf-text-muted);
}

.ubf-thesis-author {
    margin: 0;
    color: var(--ubf-text-light);
}

.ubf-badge {
    display: inline-block;
    background: var(--ubf-bg-light);
    color: var(--ubf-text-light);
    padding: 0.2em 1em;
    border-radius: 12px;
    font-size: 0.85em;
}

.ubf-thesis-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ubf-border-light);
}

.ubf-back-nav {
    margin-top: 2rem;
    text-align: center;
}

.ubf-back-nav a {
    color: var(--ubf-accent);
    text-decoration: none;
    font-weight: 700;
}

.ubf-back-nav a:hover {
    text-decoration: underline;
}

/* =Thesis Cards (listing)
-------------------------------------------------------------- */
.listing-item {
    margin: 0 0 2.5rem !important;
    background: #fff;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.listing-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.listing-image {
    flex: 0 0 140px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: contain;
    display: block;
}

.listing-content {
    flex: 1;
    padding: 2rem 2rem 4rem 0;
}

.listing-header h3.no-margin {
    margin: 0 !important;
    font-size: 1.15em;
}

.no-margin {
    margin: 0 0 !important;
}

.sep_line_full {
    display: block;
    height: 1px;
    background: var(--ubf-border);
    margin-bottom: 0.8em;
}

/* =Thesis Overview Cards (simple rectangle style)
-------------------------------------------------------------- */
.theses-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.thesis-overview-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 2px solid var(--ubf-accent);
    border-radius: 0;
    position: relative;
    text-decoration: none !important;
    color: var(--ubf-text) !important;
    transition: all 0.2s ease;
    text-align: left;
}

.thesis-overview-card:hover {
    background: var(--ubf-accent);
    color: #fff !important;
    text-decoration: none !important;
}

.thesis-overview-card:hover .card-svg-icon {
    color: rgba(255, 255, 255, 0.5);
}

.thesis-overview-card h2 {
    margin: 0 !important;
    font-size: 1em !important;
    color: inherit !important;
    font-weight: 700;
    line-height: 1.3;
}

.thesis-overview-card .card-svg-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    color: #d0d0d0;
    pointer-events: none;
}

.thesis-overview-card .card-svg-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* =Thesis Categories
-------------------------------------------------------------- */
.theses-category-heading {
    margin: 2em 0 1em 0 !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--ubf-text);
}

/* =Research / Entry content items
-------------------------------------------------------------- */
.entry-content.research {
    overflow: hidden;
    margin: 0 0 2.5rem !important;
    padding: 1.5rem 1.5rem 2rem !important;
    background: #fff;
    border-radius: 4px;
    position: relative;
}

.entry-content.research::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.research-image {
    float: left;
    margin-top: 0.3rem;
}

.research-image img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.research-content {
    margin: 0 0 0 125px;
}

.research-header {
    margin: 0 0 0.4rem !important;
}

.research-header h2, .research-header h3, .no-margin {
    margin: 0 0 !important;
}

.research-content p {
    margin: 0.8em 0;
}

.thesis-meta-info {
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: var(--ubf-text-light);
    line-height: 1.5;
}

.listing-meta, .period {
    display: block;
    margin-top: 2px;
    font-size: 0.8em;
    color: var(--ubf-text-muted);
}

/* =Jobs List
-------------------------------------------------------------- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.job-card {
    background: #fff;
    padding: 2rem 2rem 6rem 2rem;
    transition: all 0.2s;
    position: relative;
}

.job-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.job-title {
    margin: 0 0 1rem !important;
    font-size: 1.4em !important;
}

.job-title a {
    color: var(--ubf-text);
    text-decoration: none;
    font-weight: 600;
}

.job-title a:hover {
    color: var(--ubf-accent);
}

.job-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: var(--ubf-text-muted);
    margin-bottom: 1.2rem;
}

.job-deadline strong, .job-contact strong {
    color: var(--ubf-text-light);
}

.job-summary {
    color: var(--ubf-text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.job-footer {
    text-align: right;
}

.read-more {
    font-weight: 700;
    color: var(--ubf-accent);
    text-decoration: none;
    font-size: 0.9em;
}

.read-more:hover {
    text-decoration: underline;
}

.no-jobs {
    font-style: italic;
    color: var(--ubf-text-muted);
    margin-top: 2rem;
}

/* =Job Single
-------------------------------------------------------------- */
.job-single .entry-title {
    margin-bottom: 1rem !important;
}

.job-single-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ubf-border-light);
    color: var(--ubf-text-muted);
    font-size: 0.95em;
}

.job-meta-item strong {
    color: var(--ubf-text-light);
}

.job-body {
    line-height: 1.8;
}

.job-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ubf-border-light);
}

.job-back a {
    color: var(--ubf-accent);
    text-decoration: none;
    font-weight: 700;
}

.job-back a:hover {
    text-decoration: underline;
}

.job-external-notice {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--ubf-bg-lighter);
    border: 1px solid var(--ubf-border);
    border-radius: 8px;
    text-align: center;
}

.job-external-notice p {
    margin: 0 0 1.5rem;
    color: var(--ubf-text-light);
}

.job-external-notice .button {
    display: inline-block;
    padding: 1.4rem 3.2rem;
    background: var(--ubf-accent);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1em;
    transition: background 0.2s;
}

.job-external-notice .button:hover {
    background: var(--ubf-accent-dark);
}

/* =Contact Grid
-------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-grid h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.3em;
}

.contact-grid p {
    margin: 0 0 1.5em;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =Teaching Cards
-------------------------------------------------------------- */
.teaching-page .theses-cards-grid {
    margin-top: 1.5rem;
}

/* =Course Entry (Teaching semester pages)
-------------------------------------------------------------- */
.course-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
}

.course-entry {
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.course-entry::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ubf-accent);
}

.course-main {
    flex: 1;
}

.course-title {
    margin: 0 0 0.8rem !important;
    font-size: 1.15em !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.course-title a {
    color: var(--ubf-text);
    text-decoration: none;
}

.course-title a:hover {
    color: var(--ubf-accent);
    text-decoration: underline;
}

.course-details {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85em;
}

.course-type {
    background: var(--ubf-bg-light);
    color: var(--ubf-text-light);
    padding: 0.2em 0.8em;
    border-radius: 4px;
}

.course-number {
    color: var(--ubf-text-muted);
    font-family: monospace;
}

.course-info {
    flex: 0 0 280px;
    font-size: 0.9em;
    color: var(--ubf-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}

.info-item {
    display: flex;
    gap: 0.6rem;
}

.info-label {
    font-weight: 600;
    color: var(--ubf-text-light);
    min-width: 65px;
}

@media (max-width: 768px) {
    .course-entry {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .course-info {
        flex: initial;
        width: 100%;
    }
}

/* =Footer (dark UB-style)
-------------------------------------------------------------- */
.ubf-footer {
    background: #1d1d1b;
    border-top: none;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    color: #aaa;
    z-index: 100;
}

.ubf-footer__content {
    max-width: var(--ubf-content-max);
    margin: 0 auto;
}

.ubf-footer__sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ubf-footer__sections--4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.ubf-footer__section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.ubf-footer__section address {
    font-style: normal;
    font-size: 0.9em;
    color: #aaa;
    line-height: 1.8;
}

.ubf-footer__section .ubf-footer__cooper {
    font-size: 0.9em;
    line-height: 1.8;
}

.ubf-footer__cooper a {
    color: var(--ubf-accent-light);
}

.ubf-footer__cooper a:hover {
    color: #fff;
}

.ubf-footer__links {
    list-style: none;
    margin: 0;
}

.ubf-footer__links li {
    margin: 0 0 0.5rem;
}

.ubf-footer__links a {
    font-size: 0.9em;
    color: var(--ubf-accent-light);
    text-decoration: none;
}

.ubf-footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.ubf-footer__bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85em;
    color: #888;
}

.ubf-footer__bottom a {
    color: var(--ubf-accent-light);
    text-decoration: none;
}

.ubf-footer__bottom a:hover {
    color: #fff;
}

.ubf-footer__sep {
    margin: 0 1rem;
    color: #555;
}

/* =Scroll to Top Button
-------------------------------------------------------------- */
.ubf-scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 48px;
    height: 48px;
    background: var(--ubf-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.2s;
}

.ubf-scroll-top:hover {
    background: var(--ubf-accent-dark);
}

.ubf-scroll-top.ubf-scroll-top--visible {
    display: flex;
}

.ubf-scroll-top svg {
    fill: #fff;
    width: 18px;
    height: 18px;
}

/* =Cooperative Cuisine Page
-------------------------------------------------------------- */
.ubf-coop-buttons {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.ubf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}

.ubf-btn--primary {
    background: var(--ubf-accent);
    color: #fff !important;
}

.ubf-btn--primary:hover {
    background: var(--ubf-accent-dark);
}

.ubf-btn--secondary {
    background: #e67e22;
    color: #fff !important;
}

.ubf-btn--secondary:hover {
    background: #c96b1a;
}

.ubf-coop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* =Publications
-------------------------------------------------------------- */
.publ-list {
    list-style: square;
}

.publ-list li {
    padding-bottom: 10px;
    margin-left: 1.5em;
}

.ubf-year-link {
    display: inline-block;
    margin: 0 0.5em 0.5em 0;
    padding: 0.4em 1em;
    background: var(--ubf-bg-lighter);
    border: 1px solid var(--ubf-border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
}

.ubf-year-link:hover {
    background: var(--ubf-accent);
    color: #fff;
}

.ubf-pub-sep {
    margin: 2rem 0;
}

/* Publications - year headings - use themed h2 */
[id^="pub-"] {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 2.5rem 0 0.2rem;
    color: var(--ubf-text);
    line-height: 1.3;
}

/* =Breadcrumbs (if used)
-------------------------------------------------------------- */
.breadcrumbs {
    font-size: 0.85em;
    color: var(--ubf-text-muted);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--ubf-text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ubf-accent);
}

/* =Responsive – Tablet
-------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ubf-footer__sections {
        grid-template-columns: 1fr 1fr;
    }

    .ubf-footer__sections--4col {
        grid-template-columns: 1fr 1fr;
    }
}

/* =Responsive – Mobile
-------------------------------------------------------------- */
@media (max-width: 1180px) {
    :root {
        --ubf-navbar-height: 5rem;
        --ubf-square-top: 10px;
        --ubf-square-size: 35px;
        --ubf-header__facultySquare-top: 55px;
        --ubf-logo-lettering-top: 13.333328247070312px;
        --ubf-logo-lettering-height: 32.6px;
        --ubf-techfak-lettering-top: 53px;
        --ubf-techfak-lettering-height: 36.55px;
        --ubf-square-margin: 10px
    }

    .ubf-section__content {
        padding: 0 var(--ubf-square-margin);
    }

    /*h1 { font-size: 3.2rem; }*/
    /*h2 { font-size: 1.8rem; }*/
    .ubf-navbar {
        position: sticky;
        top: 0;
        height: auto;
        min-height: var(--ubf-navbar-height);
    }

    .ubf-navbar__inner {
        flex-direction: column;
        height: auto;
        min-height: var(--ubf-navbar-height);
    }

    .ubf-navbar__logos {
        display: none !important;
    }

    .ubf-navbar__menu {
        flex-direction: column;
        display: none;
    }

    .ubf-navbar__menu.ubf-navbar__menu--open {
        display: flex;
        background: #fff;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid--students {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .team-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member-photo {
        flex: 0 0 auto;
    }

    .team-member-photo img {
        max-width: 200px;
    }

    .student-member-initials {
        width: 100px;
        height: 100px;
    }

    .ubf-navbar__link {
        padding: 1.2rem 2rem;
        border-bottom: 1px solid var(--ubf-border-light);
    }

    .ubf-navbar__sub {
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .ubf-navbar__item.open > .ubf-navbar__sub {
        display: block;
    }

    .ubf-navbar__sublink {
        padding: 1rem 3rem;
    }

    .ubf-navbar__item--logos {
        display: none;
    }

    .ubf-navbar__item--search {
        display: none;
    }

    .ubf-navbar__icon {
        display: none;
    }

    .ubf-navbar__toggle {
        display: flex;
        height: var(--ubf-navbar-height);
        flex-shrink: 0;
    }

    /* Reposition UB square icon + labels to top-left on mobile */
    .ubf-square-icon {
        right: auto;
        left: var(--ubf-square-margin);
        justify-content: flex-start;
    }

    .ubf-header__facultySquare {
        left: var(--ubf-square-margin);
    }

    .ubf-logo-lettering {
        right: auto;
        left: 55px;
        justify-content: flex-start;
        z-index: 1001
    }

    .ubf-techfak-lettering {
        right: auto;
        left: 55px;
        justify-content: flex-start;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid--students {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .team-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member-photo {
        flex: 0 0 auto;
    }

    .team-member-photo img {
        max-width: 200px;
    }

    .news-list-hero {
        max-height: 200px;
        overflow: hidden;
    }

    .news-list-hero img {
        max-height: 200px;
    }

    .ubf-scroll-top {
        bottom: 2rem;
        right: 2rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .team-grid--students {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-member-initials {
        width: 80px;
        height: 80px;
    }

    .team-photo-initials {
        font-size: 2.5rem;
    }
}

/* =Utility
-------------------------------------------------------------- */
.ubf-dont-hyphenate {
    -ms-hyphens: none;
    hyphens: none;
}

.ubf-text--srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.clearfix:after {
    content: '';
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

/* =Print
-------------------------------------------------------------- */
@media print {
    .ubf-navbar, .ubf-sidebar, .ubf-sidebar-top, .ubf-scroll-top {
        display: none !important;
    }

    .ubf-footer {
        border-top: 1px solid #000;
    }

    body {
        font-size: 12pt;
    }
}
/* ==========================================================================
   Side Navigation — left-aligned in content area, desktop only
   Inspired by the UB Technology Faculty sub-navigation
   ========================================================================== */
.ubf-main__layout {
    max-width: var(--ubf-content-max);
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.ubf-main__layout .ubf-page__sections {
    width: 100%;
}

.ubf-main__page {
    flex: 1;
    min-width: 0;
}


.ubf-side-nav {
    display: none;
    width: 250px;
    flex-shrink: 0;
    padding: 0 20px 0 0;
    box-sizing: border-box;
    position: sticky;
    top: var(--ubf-navbar-height);
    align-self: flex-start;
}

.ubf-side-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ubf-side-nav__list::before {
    content: '';
    display: block;
    width: 106px;
    height: 2px;
    background: var(--ubf-accent);
    margin-bottom: 2rem;
}

.ubf-side-nav__item {
    margin: 0;
    padding: 0;
}

.ubf-side-nav__item + .ubf-side-nav__item {
    margin-top: 0.2rem;
}

.ubf-side-nav__sub-group .ubf-side-nav__sub-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ubf-side-nav__sub-group .ubf-side-nav__sub-list .ubf-side-nav__link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubf-side-nav__item--sub {
    padding-left: 1.8rem;
}

.ubf-side-nav__item--sub .ubf-side-nav__link {
    padding: 0.4rem 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.ubf-side-nav__item--sub--category {
    padding-left: 2.8rem;
}

.ubf-side-nav__link,
.ubf-side-nav__text {
    display: block;
    padding: 0.6rem 0;
    text-decoration: none;
    color: var(--ubf-text-light);
    transition: none;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubf-side-nav__item--sub .ubf-side-nav__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubf-side-nav__title {
    font-weight: 700;
}

.ubf-side-nav__link:hover {
    color: var(--ubf-text);
}

.ubf-side-nav__link--current {
    color: var(--ubf-accent);
}

.ubf-side-nav__item--current > .ubf-side-nav__link {
    color: var(--ubf-accent);
}

.ubf-side-nav__item--heading {
    margin-top: 0.4rem;
}

.ubf-side-nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.6rem 0;
    font: inherit;
    color: var(--ubf-text);
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.ubf-side-nav__toggle .ubf-side-nav__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubf-side-nav__toggle:hover {
    color: var(--ubf-accent);
}

.ubf-side-nav__arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.ubf-side-nav__arrow {
    transform: rotate(90deg);
}

.ubf-side-nav__arrow--collapsed {
    transform: rotate(0deg);
}

.ubf-side-nav__item--sub .ubf-side-nav__text {
    font-size: 1.4rem;
    color: var(--ubf-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubf-side-nav__item--sub.ubf-side-nav__item--current .ubf-side-nav__text {
    color: var(--ubf-accent);
    font-weight: 700;
}

.ubf-side-nav__item--sub.ubf-side-nav__item--current .ubf-side-nav__link {
    color: var(--ubf-accent);
}

.ubf-side-nav__sub-group {
    margin: 0;
    padding: 0;
}

.ubf-side-nav__sub-group .ubf-side-nav__sub-list {
    margin: 0;
    padding: 0.2rem 0 0 0;
    list-style: none;
}

/* Deeper indent for thesis sub-items under categories */
.ubf-side-nav__item--category + .ubf-side-nav__sub-group .ubf-side-nav__item--sub {
    padding-left: 3.0rem;
}

/* No extra indent for team sub-items (names directly under heading) */
.ubf-side-nav__item--heading[data-group-src="team-members"] + .ubf-side-nav__sub-group .ubf-side-nav__item--sub {
    padding-left: 0;
}

/* Desktop only */
@media (min-width: 1181px) {
    .ubf-side-nav {
        display: block;
    }
}

@media (max-width: 1180px) {
    .ubf-main__layout {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .ubf-main__page,
    .ubf-page__sections {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Project Page Layout — content + sidebar
   ========================================================================== */
.ubf-project-layout {
    display: grid;
    grid-template-columns: 1fr 25%;
    gap: 20px;
    align-items: start;
    max-width: var(--ubf-content-max);
    margin: 0 auto;
    padding: 0;
}

.ubf-project-layout__content {
    min-width: 0;
}

.ubf-project-layout__sidebar {
    position: sticky;
    top: calc(var(--ubf-navbar-height) + 2rem);
    align-self: start;
    padding-bottom: 2rem;
}

.ubf-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f9f9f9;
    padding: 0;
}

.ubf-project-sidebar__block {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid #eee;
}

.ubf-project-sidebar__block:last-child {
    border-bottom: none;
}

.ubf-project-sidebar__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ubf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.8rem;
    padding: 0;
}

.ubf-project-sidebar__value {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.ubf-project-sidebar__website-btn {
    display: block;
    padding: 0.8rem 1.2rem;
    background: var(--ubf-accent);
    color: #fff;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
}

.ubf-project-sidebar__website-btn:hover {
    background: var(--ubf-accent-dark);
    color: #fff;
}

.ubf-project-sidebar__funders {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.ubf-project-sidebar__partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
}

.ubf-project-sidebar__partners-list li {
    margin-bottom: 0.4rem;
}

.ubf-project-sidebar__partners-list li:last-child {
    margin-bottom: 0;
}

.ubf-project-sidebar__team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
}

.ubf-project-sidebar__team-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ubf-project-sidebar__team-list li:last-child {
    margin-bottom: 0;
}

.ubf-project-sidebar__role {
    color: var(--ubf-text-muted);
    font-size: 0.85em;
}

.ubf-project-sidebar__block--website {
    padding: 0;
    border-bottom: none;
}

@media (max-width: 900px) {
    .ubf-project-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ubf-project-layout__sidebar {
        position: static;
        order: -1;
        margin-top: 0;
    }
}
