/*
 * Design tokens extracted from the live kzu.ch stylesheet (build/css/main.css)
 * and verified font-embedding metadata, 2026-09-30. Keep this file as the
 * single source of truth for the visual clone -- do not hand-tune colors
 * or fonts elsewhere.
 *
 * Palette is intentionally minimal: black, white, one accent. Confirmed by
 * counting every hex color actually used across main.css.
 */

@font-face {
    font-family: "HelveticaNeueLTStd-Blk";
    src: url("../fonts/2B6D49_0_0.woff") format("woff"),
         url("../fonts/2B6D49_0_0.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "icomoon";
    src: url("../fonts/icomoon.woff") format("woff"),
         url("../fonts/icomoon.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-accent: #e20079;   /* link/nav hover-active */
    --color-error: #d0021b;    /* form validation */
    --color-zh-blue: #009ee0;  /* Kanton Zürich blue, used on the wappen */
    --color-grey-light: #b3b3b3; /* footer nav/legal links */

    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "HelveticaNeueLTStd-Blk", Helvetica, Arial, sans-serif;
    --font-icon: "icomoon";

    --header-height: 110px;

    /* Overridable from Customizer > Header & Footer Colors (see
       inc/customizer.php), which prints a :root override after this file. */
    --header-footer-bg: var(--color-black);
    --header-footer-text: var(--color-white);
    --footer-text-muted: var(--color-grey-light);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .headline {
    font-family: var(--font-display);
    font-weight: 900;
    margin: 0;
}

h1, .headline--large { font-size: 38px; }

h3 { padding: 5px 0; }

a {
    color: var(--color-black);
    text-decoration: none;
}

a:hover,
a:focus,
a.is-active {
    color: var(--color-accent);
}

/* -- structural shell (new nav, old palette) ---------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 48px;
    height: var(--header-height);
    padding: 0 30px;
    background: var(--header-footer-bg);
}

.site-header__logo {
    height: 60px;
    width: auto;
    color: var(--header-footer-text);
}

.site-header__logo img,
.site-header__logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.site-header__nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.site-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--header-footer-text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.site-header__wappen {
    display: block;
    flex-shrink: 0;
    height: 28px;
    width: auto;
    position: relative;
    top: -3px;
}

.site-header__wappen svg {
    height: 100%;
    width: auto;
    display: block;
}

.site-header__title-short {
    display: none;
}

.site-header__intranet {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--header-footer-text);
    color: var(--header-footer-text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header__intranet:hover,
.site-header__intranet:focus {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* Shown instead of .site-header__intranet on mobile, inside the burger
   menu -- keeps the collapsed top bar (logo + title + toggle) from
   fighting the button for space on narrow screens. Selector needs the
   extra specificity to beat the general ".site-nav a" rule below. */
.site-nav a.site-nav__intranet {
    display: none;
}

.site-header__nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.site-header__nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--header-footer-text);
}

.site-nav > ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    display: block;
    color: var(--header-footer-text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 12px 0;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
    color: var(--color-accent);
}

/* Foldout submenus (traditional hover/click dropdown, as in rara-academic). */

.site-nav ul ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--header-footer-bg);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.site-nav ul ul ul {
    top: 0;
    left: 100%;
}

.site-nav ul ul li {
    margin: 0;
}

.site-nav ul ul a {
    padding: 10px 20px;
    white-space: nowrap;
}

.site-nav ul ul li:hover > a,
.site-nav ul ul li.is-open > a {
    background: var(--color-accent);
    color: var(--color-white);
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul,
.site-nav li.is-open > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.site-nav li.menu-item-has-children > a {
    padding-right: 16px;
}

.site-nav li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: middle;
}

.site-main {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 30px;
    box-sizing: border-box;
    flex: 1 0 auto;
}

.wp-block-details > :not(summary) {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Date/event list (e.g. Orientierungsabende): each entry as a small card
   instead of a plain bullet, so the date reads at a glance. */
.orientierung-dates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orientierung-dates li {
    padding: 14px 20px;
    border-left: 4px solid var(--color-accent);
    background: #f7f7f7;
}

.orientierung-dates li strong {
    display: block;
    margin-bottom: 4px;
}

.has-infobox {
    overflow: visible;
}

.has-infobox::after {
    content: "";
    display: block;
    clear: both;
}

.has-infobox .infobox {
    float: right;
    width: 260px;
    margin: 0 0 24px 32px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-grey-light);
}

.has-infobox .infobox h3,
.has-infobox .infobox h4 {
    margin-top: 0;
    font-size: 14px;
}

.has-infobox .infobox ul {
    margin: 0;
    padding-left: 18px;
}

.has-infobox .infobox li {
    margin-bottom: 8px;
}

.has-infobox .infobox .infobox__date {
    display: block;
    font-size: 11px;
    color: var(--color-grey-light);
}

@media screen and (max-width: 740px) {
    .has-infobox .infobox {
        float: none;
        width: auto;
        margin: 24px 0;
    }
}

.site-footer {
    padding: 15px 15px;
    background: var(--header-footer-bg);
    color: var(--footer-text-muted);
    margin-top: auto;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px;
}

.site-footer__contact,
.site-footer__hours {
    font-size: 13px;
    line-height: 1.6;
}

.site-footer__contact {
    margin-left: auto;
}

.site-footer__hours {
    /* no max-width -- the nowrap opening line sets its own natural width */
}

.site-footer__nowrap {
    white-space: nowrap;
}

.site-footer__contact p,
.site-footer__hours p {
    margin: 0 0 8px;
}

.site-footer__contact p:last-child,
.site-footer__hours p:last-child {
    margin-bottom: 0;
}

.site-footer__org {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--header-footer-text);
}

.site-footer__contact a {
    color: var(--footer-text-muted);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus {
    color: var(--color-accent);
}

.site-footer__map {
    flex: 0 0 220px;
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    height: 110px;
    border: 0;
}

.site-footer__map-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--footer-text-muted);
    font-size: 12px;
}

.site-footer__map-link:hover,
.site-footer__map-link:focus {
    color: var(--color-accent);
}

.site-footer__nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__nav > ul > li {
    padding-bottom: 4px;
}

.site-footer__nav a {
    color: var(--footer-text-muted);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Top-level footer menu items ("Kontakt", "Beratung und Unterstützung", ...)
   read as the footer's main menu, so they use the header/footer font color
   rather than the muted grey -- only nested sub-menu links stay muted. */
.site-footer__nav > ul > li > a {
    color: var(--header-footer-text);
    text-transform: uppercase;
}

.site-footer__nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.site-footer__nav .sub-menu a {
    font-weight: 400;
    text-transform: none;
    font-size: 12px;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus {
    color: var(--color-accent);
}

/* -- mobile nav: shrink title, collapse primary nav into a burger menu -- */

@media screen and (max-width: 740px) {
    .site-header__title-full {
        display: none;
    }

    .site-header__title-short {
        display: inline;
    }

    .site-header__nav-toggle {
        display: flex;
    }

    .site-header__intranet {
        display: none;
    }

    .site-nav a.site-nav__intranet {
        display: block;
        margin: 10px 30px 20px;
        padding: 10px 16px;
        border: 1px solid var(--header-footer-text);
        color: var(--header-footer-text);
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 13px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        text-align: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--header-footer-bg);
        border-top: 2px solid var(--color-accent);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 30px 20px;
    }

    .site-nav ul ul {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none;
        border-top: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .site-nav li.is-open > ul {
        display: block;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 24px;
    }

    .site-footer__map {
        flex-basis: auto;
        width: 100%;
    }

    .site-footer__contact {
        /* the left-push only makes sense in the row layout -- in a
           stacked column it would shove this block off to the right */
        margin-left: 0;
    }

    .site-footer__nav > ul {
        flex-direction: column;
        gap: 0;
    }

    .site-footer__nav a {
        display: block;
        line-height: 1.5;
    }

    .site-footer__nav .sub-menu {
        padding-left: 2ch;
    }
}

.site-article__thumbnail {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.staff-directory__filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.staff-directory__filter label {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.staff-directory__filter select {
    font-size: 15px;
    padding: 8px 12px;
    border: 1px solid var(--color-grey-light);
    background: var(--color-white);
}

.staff-directory__count {
    color: var(--color-grey-light);
    font-size: 13px;
}

.staff-directory__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.staff-directory__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 260px;
    padding: 16px;
    border: 1px solid var(--color-grey-light);
}

.staff-directory__item[hidden] {
    display: none;
}

.staff-directory__name {
    font-family: var(--font-display);
    font-size: 15px;
}

.staff-directory__role {
    font-size: 13px;
    color: var(--color-black);
}

.staff-directory__depts {
    font-size: 12px;
    color: var(--color-grey-light);
    margin-bottom: 6px;
}

.staff-directory__email {
    font-size: 13px;
    color: var(--color-accent);
}

.staff-directory__empty {
    color: var(--color-grey-light);
}

@media screen and (max-width: 740px) {
    .staff-directory__item {
        width: 100%;
    }
}

.post-hero {
    width: 100%;
    height: 20vh;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}

.post-hero__overlay {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
}

.post-hero__title {
    margin: 0;
    max-width: 900px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 32px;
    text-align: center;
}

@media screen and (max-width: 740px) {
    .post-hero {
        min-height: 120px;
    }

    .post-hero__title {
        font-size: 22px;
    }
}

/* -- info-screen template: kiosk/TV display, no nav, blank footer ------- */

.info-screen__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
    padding: 0 30px;
    background: var(--color-black);
}

.info-screen__logo {
    display: block;
    height: 32px;
    width: auto;
}

.info-screen__logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.info-screen__title {
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.info-screen__main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}

.info-screen__footer {
    display: block;
}

/* -- video-gallery: two-column grid of embedded videos, each held to a
   standard 16:9 aspect ratio regardless of the iframe's own width/height
   attributes (used e.g. on the Instrumentalunterricht page) ------------- */

.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.video-gallery .pagebuilder-video-container {
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-gallery .pagebuilder-video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 740px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}
