/*- NORIQ.de Website | v1.1.0 | 2026-11-06 */
/* Base: desktop 1080P. Responsive breakpoints 1140 / 1200 / 976 / 864 / 800 / 640 / 600 / 400 px */

:root {
    --noriq-red: #B31942;
    --offwhite: #faf9f6;
    --text: #2b2b2c;
    --header-height: 80px;
    --footer-height: 40px;
    --header-offset: 40px;
    --header-side-offset: 56px;
    --header-max-width: 1280px;
    --hero-top: clamp(160px, 28dvh, 440px);
    --hero-side: max(
        16px,
        calc((100vw - min(1280px, 100vw - 112px)) / 2 + 64px)
      );
    --corner: 16px;
    --button-corner: calc(var(--corner) / 2);
    --shadow: 0 16px 48px rgba(24, 24, 24, 0.40);
    --font-main: "Century Gothic", "Avant Garde", "Avenir Next", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100dvh;
    background: var(--offwhite);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

button,a {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Keyboard focus indicator */
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--noriq-red);
    outline-offset: 4px;
}

.background-photo,.background-wash {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.background-photo {
    z-index: -100;
    background-color: #aaa8a4;
    background-image: url("../assets/nuernberg-aerial.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.1);
    transform: scale(1.012);
}

.background-wash {
    z-index: -2;
    background: linear-gradient(
        90deg,
        rgba(250, 249, 246, 0.40),
        rgba(250, 249, 246, 0.20) 50%,
        rgba(250, 249, 246, 0.40)
    ),
    rgba(250, 249, 246, 0.15);
}

.site-header {
    position: fixed;
    z-index: 20;
    top: var(--header-offset);
    left: 50%;
    right: auto;
    width: calc(100% - 2 * var(--header-side-offset));
    max-width: var(--header-max-width);
    min-width: 304px;
    transform: translateX(-50%);
    height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    background: rgba(250,249,246,.96);
    border: 0;
    border-radius: var(--corner);
    box-shadow: var(--shadow);
    padding: 0 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    width: min(192px, calc(20vw - 24px), 100%);
    max-width: 100%;
    display: flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

.nav-entry {
    height: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    min-width: max-content;
    justify-content: center;
}

.nav-button {
    border: 0;
    background: none;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: .16em;
    padding: 0 18px;
    white-space: nowrap;
    transition: background-color .18s ease,color .18s ease;
    height: 100%;
    width: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover,.nav-entry.is-open .nav-button {
    color: var(--noriq-red);
    background-color: rgba(43,43,44,.095);
}

.nav-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: min(400px,calc(100vw - 40px));
    background: rgba(250,249,246,.98);
    border: 1px solid rgba(255,255,255,.9);
    border-top: none;
    border-radius: var(--corner);
    padding: 32px;
    box-shadow: 0 16px 48px rgba(25, 21, 21, 0.22);
    line-height: 1.65;
    max-height: calc(100dvh - var(--header-offset) - var(--header-height) - var(--footer-height) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-panel[hidden] {
    display: none;
}

.nav-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 15px;
}

.nav-panel h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--noriq-red);
    margin: 12px 0 16px;
}

.nav-panel p {
    font-size: .88rem;
    margin: 0 0 13px;
}

/* CREATIONS PANEL */
#panel-creations h2 {
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}

#panel-creations .creations-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(43,43,44,.18);
}

#panel-creations .creations-block:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#panel-creations .creations-block p {
    margin: 0;
    text-align: center;
}

#panel-creations .creations-more {
    display: block;
    margin-top: 16px;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

#panel-creations .creations-more:hover {
    text-decoration: underline;
}

/* COMPANY PANEL */
#panel-company h2 {
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}

#panel-company .company-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(43,43,44,.18);
}

#panel-company .company-block:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#panel-company .company-block p {
    margin: 0;
    text-align: center;
}

#panel-company .company-more {
    display: block;
    margin-top: 16px;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

#panel-company .company-more:hover {
    text-decoration: underline;
}

/* CAREER PANEL */
#panel-career h2 {
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}

#panel-career .career-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(43,43,44,.18);
}

#panel-career .career-block:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#panel-career .career-block p {
    margin: 0;
    text-align: center;
}

#panel-career .career-contact p {
    margin-bottom: 6px;
}

#panel-career .career-contact a {
    display: block;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

#panel-career .career-contact a:hover {
    text-decoration: underline;
}

#panel-career .career-more {
    display: block;
    margin-top: 16px;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

/* CONTACT PANEL */
#panel-contact h2 {
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}

#panel-contact .contact-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(43,43,44,.18);
}

#panel-contact .contact-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#panel-contact .contact-block p {
    margin: 0 0 6px;
    text-align: center;
}

#panel-contact .contact-link {
    display: block;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    word-break: break-word;
    text-decoration: none;
}

#panel-contact .contact-link:hover {
    text-decoration: underline;
}

#panel-contact .contact-phone {
    margin-top: 2px;
    text-decoration: none;
}

#panel-contact .contact-phone:hover {
    text-decoration: none;
}

#panel-contact .contact-location {
    text-align: center;
}

#panel-contact .contact-location h2 {
    margin: 0 0 12px;
}

#panel-contact .contact-address {
    display: table;
    margin: 0 auto;
    font-style: normal;
    font-size: .88rem;
    line-height: 1.65;
    text-align: center;
    color: var(--text);
}

#panel-contact .contact-map-link {
    display: table;
    margin: 6px auto 0;
    color: var(--noriq-red);
    font-size: 1.07rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

#panel-contact .contact-map-link:hover {
    text-decoration: underline;
}

/* MAIN BACKGROUND PICTURE AND TEXTS */
.hero {
    min-height: calc(100dvh - var(--footer-height));
    display: flex;
    align-items: flex-start;

    padding:
        var(--hero-top)
        var(--hero-side)
        88px;
}

.hero-copy {
    width: 100%;
    max-width: 900px;
    animation: rise .7s ease both;
    position: relative;
}

.hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -40px -80px;
    background: radial-gradient(
        ellipse at 40% 50%,
        rgba(250,249,246,.22),
        transparent 75%
    );
    pointer-events: none;
}

.hero h1 {
    margin: 0;
    color: var(--noriq-red);
    text-shadow:
        0 2px 8px rgba(255,255,255,.45),
        0 4px 16px rgba(41,28,33,.15);
}

.hero-line {
    display: block;
    white-space: nowrap;
    color: var(--noriq-red);
    line-height: 1.10;
    letter-spacing: -.035em;
}

.hero-line--first {
    font-size: clamp(1.25rem, 2.7vw, 3rem);
    font-weight: 400;
}

.hero-line--main {
    font-size: clamp(3rem, 5.0vw, 6rem);
    font-weight: 700;
}

.hero-line--last {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 400;
}

.site-footer {
    height: var(--footer-height);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #424242;
    color: #eaeaea;
    padding: 0 24px;
    font-size: .72rem;
    letter-spacing: .035em;
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    padding: 7px 0;
    font-size: inherit;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.copyright {
    white-space: nowrap;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-layer[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,16,16,.40);
    backdrop-filter: blur(4px);
}

.legal-dialog {
    position: relative;
    width: min(640px,100%);
    max-height: min(744px,90dvh);
    background: var(--offwhite);
    border-radius: var(--corner);
    border: none;
    box-shadow: 0 26px 70px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-x {
    position: absolute;
    transition: color .12s ease;
    right: 16px;
    top: 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.7rem;
    z-index: 2;
}

.modal-x:hover,
.modal-x:focus-visible {
    color: var(--noriq-red);
}

.legal-heading {
    padding: 32px 32px 0;
}

.legal-heading h2 {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--noriq-red);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.legal-dialog > .legal-heading {
    flex: 0 0 auto;
}

.legal-dialog .legal-content .legal-scroll {
    padding-top: 16px;
}

.legal-dialog:focus {
    outline: none;
}

.legal-dialog:focus-visible {
    outline: 2px solid var(--noriq-red);
    outline-offset: 4px;
}

.legal-scroll {
    padding: 16px 32px 32px;
    line-height: 1.5;
    font-size: .88rem;
}

.legal-scroll > :first-child {
    margin-top: 0;
}

.legal-scroll h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    margin: 24px 0 10px;
}

.legal-scroll a {
    color: var(--noriq-red);
}

.legal-content {
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.legal-content:focus,
.legal-content:focus-visible,
.legal-scroll:focus,
.legal-scroll:focus-visible {
    outline: 2px solid var(--noriq-red);
    outline-offset: -2px;
}

.legal-language-note {
    margin: 0 0 20px;
    font-size: .75rem;
    font-style: italic;
    color: #747071;
}

.modal-actions {
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #dedbd7;
}

.modal-ok {
    border: none;
    background: var(--noriq-red);
    color: #fff;
    border-radius: var(--button-corner);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 12px 50px;
}

.modal-ok:hover {
    filter: brightness(1.1);
}

body.modal-open {
    overflow: hidden;
}

/* UTC CLOCK */
.utc-clock {
    justify-self: end;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--text);
}

.clock-time {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--noriq-red);
}

.clock-zone {
    font-size: 1em;
    letter-spacing: .04em;
    color: var(--text);
}

.clock-date {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    line-height: 1;
    font-size: 1.2rem;
    font-weight: 400;
    white-space: nowrap;
    min-width: 0;
}

@keyframes rise {
    from {
        opacity:0;
        transform:translateY(15px)
    }

    to {
        opacity:1;
        transform:translateY(0)
    }
}

@media (min-width: 1440px) {
    .hero-line--last {
        font-size: clamp(4rem, 4.5vw, 4.5rem);
    }
}

@media (max-width: 1200px) {
    .site-header {
        grid-template-columns: minmax(116px, 1fr) auto minmax(116px, 1fr);
        padding: 0 24px;
    }

    .nav-button {
        font-size: clamp(1.1rem, 1.15vw, 1.2rem);
        padding: 0 clamp(5px, 1vw, 12px);
    }

    .clock-time {
        font-size: clamp(1.1rem, 1.15vw, 1.2rem);
    }

    .clock-date {
        font-size: clamp(1.1rem, 1.15vw, 1.2rem);
    }
}

@media (max-width: 976px) {
    .clock-date {
        display: none;
    }
}

@media (max-width: 864px) {
.nav-button {
        font-size: .95rem;
        padding: 0 8px;
    }

    .utc-clock {
        font-size: .95rem;
        
    }

    .clock-time {
        font-size: .95rem;
        
    }
}

@media (max-width: 800px) {
    .site-header {
        width: calc(100% - 2 * clamp(16px, 5vw, 56px));
        grid-template-columns:
            minmax(100px, 1fr)
            auto
            minmax(100px, 1fr);
        padding: 0 16px;
    }

    .nav-button {
        font-size: .85rem;
        letter-spacing: .04em;
        padding: 0 8px;
    }

    .utc-clock {
        font-size: .85rem;
        gap: 4px;
    }

    .clock-time {
        font-size: .85rem;
        gap: 4px;
    }

    .nav-entry {
        position: static;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 4px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(360px, calc(100% - 32px));
        max-width: none;
    }
}

@media (max-width: 640px) {
    .site-header {  
        height: var(--header-height);
        padding: 0 16px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 40px 40px;
        column-gap: 0;
    }
    .brand {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        margin-left: 0;
        width: min(120px, 28vw);
        transform: translateY(4px);
    }

    .utc-clock { display: none; }
        .navigation {
            grid-column: 1 / -1;
            grid-row: 2;
            width: 100%;
            min-width: 0;
    }
    .nav-entry {
        flex: 1 1 25%;
        height: 40px;
        min-width: 0;
        align-items: stretch;
        position: static;
    }

    .nav-button {
        height: 40px;
        width: 100%;
        padding: 0 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(.65rem, 2.4vw, .75rem);
        letter-spacing: .02em;
        line-height: 1;
    }
    .nav-panel {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: none;
    }
}

@media (max-width: 400px) {
    .site-header { 
        padding: 0 8px; 
        width: calc(100% - 16px); }
    .nav-button { font-size: .70rem; letter-spacing: 0; padding: 0 1px; }
    .brand { margin-left: 4px; }
    .hero { padding-left: 20px; padding-right: 20px; }
    }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* STANDALONE LEGAL PAGES */
.legal-page {
    min-height: 100dvh;
}
.legal-page .site-header {
    width: calc(100% - 32px);
    max-width: 640px;
    grid-template-columns: 1fr;
    grid-template-rows: 80px;
    padding: 0 24px;
    pointer-events: none;
}
.legal-page .brand {
    justify-self: center;
    width: min(192px, 40vw);
    max-width: 100%;
    margin: 0;
    transform: none;
}
.legal-page .legal-veil {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(16,16,16,.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}
.legal-page-main {
    position: relative;
    z-index: 40;
    min-height: calc(100dvh - var(--footer-height));
    padding: max(24px, calc(var(--header-offset) + 110px)) 16px 96px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.legal-page-card {
    position: relative;
    width: min(640px, 100%);
    border-radius: var(--corner);
    background: var(--offwhite);
    box-shadow: 0 26px 70px rgba(0,0,0,.35);
    overflow: hidden;
    color: var(--text);
}
.legal-page-card .legal-scroll {
    overflow: visible;
}
.legal-page-card .modal-x {
    display: grid;
    place-items: center;
    text-decoration: none;
}
.legal-page-card .modal-actions a {
    text-decoration: none;
    text-align: center;
}
.legal-page .site-footer {
    z-index: 40;
}
@media (max-width: 640px) {
    .legal-page .site-header {
        height: 80px;
        grid-template-columns: 1fr;
        grid-template-rows: 80px;
    }
    .legal-page .brand {
        width: min(120px, 28vw);
        transform: none;
    }
    .legal-page-main {
        padding-top: 128px;
    }
    .legal-page-card .legal-scroll {
        padding: 24px;
    }
}

/* Hero typography on narrow screens */
@media (max-width: 600px) {
    .hero-line--first {
        font-size: clamp(1rem, 3.4vw, 1.4rem);
    }

    .hero-line--main {
        font-size: clamp(1.5rem, 6.2vw, 2.5rem);
    }

    .hero-line--last {
        font-size: clamp(1.2rem, 5.3vw, 2rem);
    }
}

/* Native CCCC navigation */
.nav-entry > summary.nav-button {
    display: flex;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.nav-entry > summary.nav-button::-webkit-details-marker {
    display: none;
}

.nav-entry > summary.nav-button::marker {
    content: "";
}

.nav-entry:not([open]) > .nav-panel {
    display: none;
}

.nav-entry[open] > .nav-button {
    color: var(--noriq-red);
    background-color: rgba(43,43,44,.095);
}

.privacy-page .legal-page-main {
    height: calc(100dvh - var(--footer-height));
    min-height: 0;
    padding-bottom: 40px;
}

.privacy-page .legal-page-card {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
}

.privacy-page #legalArticle {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.privacy-page .legal-heading {
    flex: 0 0 auto;
}

.privacy-page .legal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.privacy-page .modal-actions {
    flex: 0 0 auto;
}