@font-face {
    font-family: "Tallinn Grotesk";
    src: url("TallinnGrotesk-Regular.otf");
}

* {
    box-sizing: border-box;
}

:root {
    --magenta: #e5007e;
    --green: #00794d;
    --yellow: #f2df0d;
    --brown: #b08b4f;
    --border: 20px;
    --top-split: 50% 50%;
    --bottom-split: 50% 50%;
    --content-padding: 25px;
    --font-size: 30px;
    --line-height: 1;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Tallinn Grotesk";
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: #111;
    background: #fff;
}

.frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.edge {
    position: absolute;
    background: transparent;
}

.edge.top,
.edge.bottom {
    left: 0;
    right: 0;
    height: var(--border);
    display: grid;
    grid-template-columns: var(--top-split);
}

.edge.top { top: 0; }

.edge.bottom {
    bottom: 0;
    grid-template-columns: var(--bottom-split);
}

.edge.left,
.edge.right {
    width: var(--border);
    top: var(--border);
    bottom: var(--border);
    display: grid;
    grid-template-rows: 50% 50%;
}

.edge.left { left: 0; }
.edge.right { right: 0; }

.segment {
    display: block;
    width: 100%;
    height: 100%;
}

.magenta { background: var(--magenta); }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.brown { background: var(--brown); }

.frame.border-green .segment { background: var(--green); }
.frame.border-magenta .segment { background: var(--magenta); }
.frame.border-yellow .segment { background: var(--yellow); }
.frame.border-brown .segment { background: var(--brown); }

.content {
    padding: calc(var(--border) + var(--content-padding)) var(--content-padding) calc(var(--border) + var(--content-padding)) calc(var(--border) + var(--content-padding));
    max-width: 1100px;
    position: relative;
}

h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
    font-weight: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lead {
    margin: 0 0 6px 0;
    font-size: 30px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lead-split {
    text-decoration: none;
}

.lead-split .underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.block {
    margin-top: 50px;
    text-decoration: none;
}

.names p {
    margin: 0 0 6px 0;
    text-decoration: none;
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.name-1 {
    text-decoration: none;
}

.sticky-links {
    position: fixed;
    right: calc(var(--border) + 20px);
    top: calc(var(--border) + 20px);
    text-align: right;
    font-size: 30px;
}

.sticky-links p {
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.quick-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-link:hover {
    text-decoration: none;
}
 

/* links that should never show an underline on hover/focus */
.no-underline,
.no-underline:link,
.no-underline:visited {
    text-decoration: none;
}
.no-underline:hover,
.no-underline:focus,
.no-underline:active {
    text-decoration: none;
}


/* ...existing code... */

/* layout specifically for majaplaan page */
.content.majaplaan {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    /* keep existing padding defined on .content */
}

/* left column - stacked boxes */
.sidebar {
    position: absolute;
    margin-top: 410px;
    width: 240px;               /* breedte van de kolom met boxen */
   
}

/* ensure the faculty-list sits flush to top-left of the sidebar */
.faculty-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

/* shrink-wrap boxes to tekstlengte (zoals voorbeeld) */
.faculty-box {
    display: inline-block;
    width: auto;
    padding: 8px 12px;
    border-width: 8px;
    border-style: solid;
    background: #fff;
    box-sizing: border-box;
    font-family: "Tallinn Grotesk";
}

/* uniforme tekstgrootte en -dikte */
.faculty-box p {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: normal;
}

/* titel onderlijnd, zelfde grootte */
.faculty-box .faculty-title {
    text-decoration: underline;
}

/* subtitel italic */
.faculty-box .faculty-sub {
    font-style: italic;
    margin-top: 6px;
}

/* kleuren zoals eerder ingesteld */
.faculty-box.magenta { border-color: var(--magenta); }
.faculty-box.green   { border-color: var(--green); }
.faculty-box.brown   { border-color: var(--brown); }
.faculty-box.yellow  { border-color: var(--yellow); }




/* ...existing code... */

/* sticky links boven de afbeelding (zorg dat ze klikbaar blijven) */
.sticky-links {
    position: fixed;
    right: calc(var(--border) + 20px);
    top: calc(var(--border) + 20px);
    text-align: right;
    font-size: 30px;
    z-index: 30; /* boven de majaplaan-afbeelding */
}

/* majaplaan image: full-width, vastgezet onderaan links */
.majaplaan-image {
    position: relative;
    left: 0;
    bottom: 0px;
    width: 135vw;
    z-index: 0; /* onder frame en sticky-links */
    pointer-events: none; /* klikken gaat door behalve op de afbeelding zelf */
    background: transparent;
    transform: translateY(00px);
}

/* afbeelding zelf full-width, behoud aspect ratio */
.majaplaan-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;       /* crop indien nodig om viewport te vullen */
    pointer-events: auto;    /* maak afbeelding klikbaar indien gewenst */
}

/* frame en content blijven zichtbaar boven de afbeelding */
.frame { z-index: 40; } /* frame nog boven alles */

/* mobiele fallback: als je wilt dat afbeelding niet fixed is op kleine schermen */
@media (max-width: 700px) {
    .majaplaan-image {
        position: relative;
        width: 100%;
    }
    .majaplaan-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ...existing code... */