/*
Theme CSS: NPUOT
=========================================================
Bereinigte Fassung:
- keine doppelten Header-/Bubble-Regeln
- klare Desktop-/Mobile-Struktur
- Hero und Bubble skalieren gemeinsam
- konsistente Abstände
=========================================================
*/

/* =========================================================
   Design Tokens
========================================================= */

:root {
    --npuot-color-primary: #7c749f;
    --npuot-color-violet-dark: #83406f;
    --npuot-color-violet-light: #bdbdc6;

    --npuot-color-dark-blue: #002c50;
    --npuot-color-blue: #23538a;

    --npuot-color-green: #0a9d50;
    --npuot-color-dark-green: #446428;

    --npuot-color-beige: #dcccaa;
    --npuot-color-white: #ffffff;
    --npuot-color-black: #111111;

    --npuot-content-width: 1320px;
    --npuot-wide-width: 1600px;

    --npuot-space-xs: 0.5rem;
    --npuot-space-s: 1rem;
    --npuot-space-m: 1.5rem;
    --npuot-space-l: 2rem;
    --npuot-space-xl: 3rem;
    --npuot-space-xxl: 5rem;

    --npuot-radius-s: 0.5rem;
    --npuot-radius-m: 1rem;
    --npuot-radius-l: 1.5rem;

    
}

/* =========================================================
   Base
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    font-family: "FS Me", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 300;
    color: var(--npuot-color-black);
    background: var(--npuot-color-white);
}

body > * {
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

p {
    margin-top: 0;
}

a {
    color: var(--npuot-color-primary);
    text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.wp-block-button__link {
    font-weight: 700;
    border-radius: 999px;
}

:focus-visible {
    outline: 3px solid var(--npuot-color-dark-blue);
    outline-offset: 3px;
}

figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--npuot-color-black);
}

.npuot-photo-credit {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--npuot-color-black);
}

/* =========================================================
   Headings
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: "FS Me", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.12;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
}

/* =========================================================
   Hero
========================================================= */

.npuot-hero {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 13.75rem 1.5rem 5rem;
	padding-bottom: clamp(2.5rem, 4vw, 4rem);
    color: var(--npuot-color-white);
    background:
        linear-gradient(
            to bottom,
            var(--npuot-color-primary) 0%,
            var(--npuot-color-primary) 62%,
            var(--npuot-color-white) 62%,
            var(--npuot-color-white) 100%
        );
    overflow: hidden;
}

.npuot-hero__inner {
    position: relative;
    z-index: 1;
    width: min(var(--npuot-content-width), 100%);
    margin-inline: auto;
}

.npuot-hero__content {
    max-width: var(--npuot-content-width);
    margin-inline: auto;
    padding-bottom: 3rem;
    text-align: center;
}

.npuot-hero__title {
    max-width: var(--npuot-content-width);
    margin: 0 auto 1.5rem;
    color: var(--npuot-color-black);
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.npuot-hero__text {
    max-width: var(--npuot-content-width);
    margin-inline: auto;
    color: var(--npuot-color-white);
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 400;
}

.npuot-hero__image {
    position: relative;
    z-index: 2;
    width: 70%;
    margin-inline: auto;
    border-radius: var(--npuot-radius-l);
    overflow: hidden;
}

.npuot-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

.npuot-hero::after {
    content: "";
    position: absolute;
    top: 51%;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 140' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,70 C140,150 280,-10 420,70 C560,150 700,-10 840,70 C980,150 1120,-10 1260,70 C1340,120 1390,90 1440,70 L1440,140 L0,140 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center bottom;
    pointer-events: none;
}

/* =========================================================
   Hero Bubble
========================================================= */

.hero-bubble {
    --bubble-bg: var(--npuot-color-green);
    position: absolute;
    top: 50%;
    right: clamp(1.5rem, 5vw, 6rem);
    z-index: 20;
    width: min(452px, 38%);
    max-width: calc(100% - 2rem);
    padding: 0;
    color: var(--npuot-color-white);
    background: var(--bubble-bg);
    transform: translateY(-50%);
}

.hero-bubble::before,
.hero-bubble::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--bubble-bg);
    pointer-events: none;
}

.hero-bubble::before {
    top: -44px;
    height: 60px;
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDUyIiBoZWlnaHQ9IjQzIj48ZGVmcz48cGF0aCBpZD0iYSIgZD0iTTAgMGg0NTEuMjV2NDIuNzQ0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZmlsbD0iIzAwOTU1MyIgZD0iTTQ1MS4xNjMgNDIuNjlDNDUxLjE2MyAyMy42MDkgNDI5LjYyIDAgMzgxLjAyNiAwSDY2LjUzMkMxNS4zOCAwIDAgMjEuNjU5IDAgNDIuNjloNDUxLjE2M3oiIG1hc2s9InVybCgjYikiLz48L2c+PC9zdmc+");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDUyIiBoZWlnaHQ9IjQzIj48ZGVmcz48cGF0aCBpZD0iYSIgZD0iTTAgMGg0NTEuMjV2NDIuNzQ0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZmlsbD0iIzAwOTU1MyIgZD0iTTQ1MS4xNjMgNDIuNjlDNDUxLjE2MyAyMy42MDkgNDI5LjYyIDAgMzgxLjAyNiAwSDY2LjUzMkMxNS4zOCAwIDAgMjEuNjU5IDAgNDIuNjloNDUxLjE2M3oiIG1hc2s9InVybCgjYikiLz48L2c+PC9zdmc+");
}

.hero-bubble::after {
    top: calc(100% - 2px);
    height: 88px;
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDUyIiBoZWlnaHQ9Ijg4Ij48ZGVmcz48cGF0aCBpZD0iYSIgZD0iTTAgLjU1NWg0NTEuMjV2ODdIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBmaWxsPSIjMDA5NTUzIiBkP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MzI1LTIyLjAzNSAyNS4zMjUtMzcuMjg5TDAgLjMzMnoiIG1hc2s9InVybCgjYikiLz48L2c+PC9zdmc+");
}

.hero-bubble::before,
.hero-bubble::after {
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.hero-bubble__title,
.hero-bubble__text,
.hero-bubble__link {
    position: relative;
    z-index: 1;
    background: var(--bubble-bg);
}

.hero-bubble__title {
    margin: 0;
    padding: 1rem 2.5rem 0.75rem;
    color: inherit;
    text-align: center;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.15;
}

.hero-bubble__text {
    padding-inline: 2.5rem;
    color: inherit;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.hero-bubble__text p {
    margin: 0;
}

.hero-bubble__link {
    display: block;
    padding: 1rem 2.5rem 0.75rem;
    color: inherit;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

.hero-bubble__link::before {
    content: "→ ";
}

.hero-bubble__link:hover,
.hero-bubble__link:focus-visible {
    text-decoration: underline;
}

/* Positionen aus ACF */

.hero-bubble--x-left {
    left: clamp(1.5rem, 5vw, 6rem);
    right: auto;
}

.hero-bubble--x-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.hero-bubble--x-right {
    right: clamp(1.5rem, 5vw, 6rem);
    left: auto;
}

.hero-bubble--y-top {
    top: 28%;
    bottom: auto;
}

.hero-bubble--y-middle {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.hero-bubble--y-bottom {
    top: auto;
    bottom: 18%;
}

.hero-bubble--x-center.hero-bubble--y-middle {
    transform: translate(-50%, -50%);
}

.hero-bubble--x-center.hero-bubble--y-top,
.hero-bubble--x-center.hero-bubble--y-bottom {
    transform: translateX(-50%);
}

.hero-bubble--x-left.hero-bubble--y-middle,
.hero-bubble--x-right.hero-bubble--y-middle {
    transform: translateY(-50%);
}

/* Farbvarianten */

.hero-bubble--color-green-white {
    --bubble-bg: var(--npuot-color-green);
    color: var(--npuot-color-white);
}

.hero-bubble--color-dark-blue-white {
    --bubble-bg: var(--npuot-color-dark-blue);
    color: var(--npuot-color-white);
}

.hero-bubble--color-dark-green-white {
    --bubble-bg: var(--npuot-color-dark-green);
    color: var(--npuot-color-white);
}

.hero-bubble--color-violet-dark-white {
    --bubble-bg: var(--npuot-color-violet-dark);
    color: var(--npuot-color-white);
}

.hero-bubble--color-beige-black {
    --bubble-bg: var(--npuot-color-beige);
    color: var(--npuot-color-black);
}

.hero-bubble--color-white-black {
    --bubble-bg: var(--npuot-color-white);
    color: var(--npuot-color-black);
}

/* =========================================================
   Main
========================================================= */

.npuot-main {
    width: min(var(--npuot-content-width), calc(100% - 2.5rem));
    margin-inline: auto;
}

/* =========================================================
   Page Template
========================================================= */

.npuot-page-main {
    padding-top: 11.25rem;
    padding-bottom: 5rem;
}

.npuot-page-title {
    margin-bottom: 2.5rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
}


body:not(.home) .npuot-page-main {
    padding-top: clamp(7.5rem, 10vw, 11.25rem);
}

/* =========================================================
   Trailer / Video
========================================================= */

.trailer__video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--npuot-radius-l);
    background: #000;
}

/* =========================================================
   Footer
========================================================= */

.npuot-footer,
.site-footer {
    margin-top: 5rem;
    background: var(--npuot-color-dark-blue);
    color: var(--npuot-color-white);
}

.npuot-footer__inner,
.footer-inner {
    width: min(var(--npuot-content-width), calc(100% - 2.5rem));
    margin-inline: auto;
    padding-block: 2rem;
}

.npuot-footer p {
    margin: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    position: relative;
}

.footer-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
}

.footer-menu a {
    color: var(--npuot-color-white);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--npuot-color-beige);
}

/* =========================================================
   Mobile / Tablet
========================================================= */

@media (max-width: 1320px) {
    /* Unter der Bild-Breite (1320px) gibt es keinen Seitenrand mehr,
       in dem die Welle hinter dem Bild sichtbar waere - daher wandert
       sie hier unter das Bild statt dahinter. */
    .npuot-hero {
        background: var(--npuot-color-primary);
        padding-bottom: calc(clamp(2.5rem, 4vw, 4rem) + 1.5rem);
    }

    .npuot-hero__img {
        display: block;
        width: 100%;
        height: auto;
    }

    .npuot-hero::after {
        top: auto;
        bottom: 0;
        height: 44px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2016 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0,28 C56,60 112,-4 168,28 C224,60 280,-4 336,28 C392,60 448,-4 504,28 C560,60 616,-4 672,28 C728,60 784,-4 840,28 C896,60 952,-4 1008,28 C1064,60 1120,-4 1176,28 C1232,60 1288,-4 1344,28 C1400,60 1456,-4 1512,28 C1568,60 1624,-4 1680,28 C1736,60 1792,-4 1848,28 C1904,60 1960,-4 2016,28 L2016,56 L0,56 Z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: auto 44px;
        background-position: center bottom;
    }
}

@media (max-width: 1100px) {
    

    

    

    

    

    

    

    

    

    

    

    

    

    

	

	

    

    

    

    

    

    

    

    

    

    .npuot-hero {
        padding-top: clamp(2.5rem, 8vw, 4rem);
        padding-inline: 1.5rem;
    }

    .npuot-hero__content {
        padding-bottom: clamp(2rem, 6vw, 3rem);
    }

    .npuot-hero__title {
        font-size: clamp(2.35rem, 9vw, 4rem);
        line-height: 1.08;
    }

    .npuot-hero__text {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
        line-height: 1.55;
    }

    .npuot-hero__image {
        aspect-ratio: 16 / 7;
        border-radius: 1.125rem;
    }

    .npuot-hero__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .npuot-hero__image .hero-bubble,
    .npuot-hero__image .hero-bubble--x-left,
    .npuot-hero__image .hero-bubble--x-center,
    .npuot-hero__image .hero-bubble--x-right,
    .npuot-hero__image .hero-bubble--y-top,
    .npuot-hero__image .hero-bubble--y-middle,
    .npuot-hero__image .hero-bubble--y-bottom {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: clamp(170px, 52%, 230px);
        max-width: 58%;
        transform: translate(-50%, -50%);
    }

    .npuot-hero__image .hero-bubble::before {
        top: -20px;
        height: 28px;
    }

    .npuot-hero__image .hero-bubble::after {
        top: calc(100% - 1px);
        height: 40px;
    }

    .npuot-hero__image .hero-bubble__title {
        padding: 0.35rem 0.85rem 0.3rem;
        font-size: clamp(1rem, 4.5vw, 1.3rem);
        line-height: 1.08;
    }

    .npuot-hero__image .hero-bubble__text {
        padding-inline: 0.85rem;
        font-size: clamp(0.68rem, 2.4vw, 0.8rem);
        line-height: 1.2;
    }

    .npuot-hero__image .hero-bubble__link {
        padding: 0.45rem 0.85rem 0.35rem;
        font-size: clamp(0.7rem, 2.4vw, 0.82rem);
        line-height: 1.2;
    }

    .npuot-main {
        width: min(var(--npuot-content-width), calc(100% - 2rem));
    }
}

@media (max-width: 700px) {
    

    

    

    .npuot-hero {
        padding-inline: 1.5rem;
    }
    .npuot-hero + .npuot-main .home-section:first-of-type {
        padding-top: 2.5rem;
    }

    .npuot-hero__image {
        width: 100%;
        aspect-ratio: 16 / 7.5;
        border-radius: 1rem;
    }

    .npuot-hero__image .hero-bubble,
    .npuot-hero__image .hero-bubble--x-left,
    .npuot-hero__image .hero-bubble--x-center,
    .npuot-hero__image .hero-bubble--x-right,
    .npuot-hero__image .hero-bubble--y-top,
    .npuot-hero__image .hero-bubble--y-middle,
    .npuot-hero__image .hero-bubble--y-bottom {
        width: clamp(165px, 54%, 215px);
        max-width: 60%;
    }

    .footer-menu {
        flex-direction: column;
        gap: 0.875rem;
    }

    .footer-menu li:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    

    

    

    

    

    .npuot-hero {
        padding-top: 2.25rem;
    }

    .npuot-hero__title {
        font-size: clamp(2.15rem, 10vw, 3.1rem);
    }

    .npuot-hero__image {
        aspect-ratio: 16 / 8;
    }

    .npuot-hero__image .hero-bubble,
    .npuot-hero__image .hero-bubble--x-left,
    .npuot-hero__image .hero-bubble--x-center,
    .npuot-hero__image .hero-bubble--x-right,
    .npuot-hero__image .hero-bubble--y-top,
    .npuot-hero__image .hero-bubble--y-middle,
    .npuot-hero__image .hero-bubble--y-bottom {
        width: clamp(160px, 56%, 205px);
        max-width: 62%;
    }
}

.npuot-image-copyright-wrap {
    position: relative;
    display: block;
}

.npuot-image-copyright-badge {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;

    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
}

.npuot-image-copyright-wrap--alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.npuot-image-copyright-wrap--alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.npuot-image-copyright-wrap--aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.npuot-image-copyright-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.npuot-image-copyright-wrap--halbe-breite {
    width: 50%;
}

.npuot-image-copyright-wrap--volle-breite {
    width: 100%;
}