/* =========================================================
   VARIABLEN
========================================================= */

:root {
		--lichtphase-white: #FFFFFF;
    --lichtphase-grey: #808080;
    --lichtphase-blue: #3040C8;
    --lichtphase-red: #C82020;
    --hover-active-blue: #6F7FFF;
    --content-width: 1200px;
    --hero-height: 250px;
    --menu-height: 50px;
    --logo-height: 34px;
    --side-padding: 24px;


    --menu-glass-bg: rgba(0, 0, 0, 0.65);
    --menu-glass-blur: 6px;
    --menu-glass-saturation-webkit: 130%;
    --menu-glass-saturation: 130%;
}

/* =========================================================
   BASIS
========================================================= */

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100%;
    margin: 0;
    color: #3C3C3C;
    background: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.site-inner {
    width: 100%;
    max-width: var(--content-width);
    height: 100%;
    margin: 0 auto;
}

/* =========================================================
   SEITEN-LADEANZEIGE
========================================================= */

html.page-is-loading {
    overflow: hidden;
}

body > *:not(.page-loader):not(.back-to-top) {
    opacity: 1;
    transition: opacity 0.9s ease;
}

html.page-is-loading body > *:not(.page-loader):not(.back-to-top) {
    opacity: 0;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    opacity: 0;
    visibility: hidden;

    background: rgba(0, 0, 0, 0.92);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);

    transition:
        opacity 0.6s ease,
        visibility 0s linear 0.6s;
}

html.page-is-loading .page-loader {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.3s ease,
        visibility 0s linear 0s;
}

.page-loader__spinner {
    position: relative;

    width: 72px;
    height: 72px;

    opacity: 0;

    background: transparent;
    border: none;
    border-radius: 50%;

    animation: page-loader-fade-in 1s ease 1s forwards;
}

.page-loader__spinner::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from -90deg,
            var(--lichtphase-grey) 0deg 120deg,
            var(--lichtphase-red) 120deg 240deg,
            var(--lichtphase-blue) 240deg 360deg
        );

    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px)
        );
    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px)
        );

    filter:
        drop-shadow(0 0 8px rgba(48, 64, 200, 0.28))
        drop-shadow(0 0 8px rgba(200, 32, 32, 0.22));

    animation: page-loader-spin 0.9s linear infinite;
}

.page-loader__spinner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 26px;
    height: 26px;

    background-image: url("gfx/lichtphase-man.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;

    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85))
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.30));

    transform: translate(-50%, -50%);
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page-loader-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader__spinner::before {
        animation-duration: 1.8s;
    }

    body > *:not(.page-loader):not(.back-to-top),
    .page-loader {
        transition: none;
    }
}

/* =========================================================
   HEADER
========================================================= */

.site-hero {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
		height: calc(var(--hero-height) + var(--menu-height));
    overflow: hidden;
    pointer-events: none;
    background-color: #000000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* =========================================================
   MENU UND NAVIGATION
========================================================= */

.menu-bar {
    position: sticky;
    top: 0;
    z-index: 40;

    width: 100%;
    height: var(--menu-height);
    margin-top: var(--hero-height);
    overflow: visible;

    background: transparent;

    border-top: 1px solid rgba(64, 64, 64, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 1);

    box-shadow:
        0 10px 15px rgba(0, 0, 0, 0.5);
}

.menu-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-color: var(--menu-glass-bg);
    background-image: none;

    -webkit-backdrop-filter:
        blur(var(--menu-glass-blur))
        saturate(var(--menu-glass-saturation-webkit));
    backdrop-filter:
        blur(var(--menu-glass-blur))
        saturate(var(--menu-glass-saturation));
}

.menu-inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: var(--menu-height);
    line-height: 0;
}

.logo {
    display: block;
    width: auto;
    height: var(--logo-height);
}

.main-menu {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    height: var(--menu-height);
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--menu-height);
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: -70px;
    left: -70px;
    height: 10px;
}

.nav-link {
    color: var(--lichtphase-grey);
    font-size: 16px;
    font-weight: 700;
    line-height: var(--menu-height);
    text-decoration: none;
    transition: color 0.5s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

.nav-link:active {
    color: var(--lichtphase-red);
}

.nav-link.active {
    color: var(--lichtphase-red);
}

.nav-link.active:hover,
.nav-link.active:focus-visible {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 70;
    display: grid;
    min-width: 176px;
    padding: 10px 10px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background-color: var(--menu-glass-bg);
    background-image: none;
    background-clip: padding-box;

    -webkit-backdrop-filter:
        blur(var(--menu-glass-blur))
        saturate(var(--menu-glass-saturation-webkit));
    backdrop-filter:
        blur(var(--menu-glass-blur))
        saturate(var(--menu-glass-saturation));

    /*
    border-top: 1px solid rgba(64, 64, 64, 1);
    border-right: 1px solid rgba(32, 32, 32, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 1);
    border-left: 1px solid rgba(32, 32, 32, 1);
    */
    border-radius: 10px;
    box-shadow: 0 10px 14px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    gap: 2px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-dropdown-open .dropdown-menu {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown.is-dropdown-open > .nav-link {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

.dropdown-link {
    display: block;
    color: var(--lichtphase-grey);
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.5s ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

.dropdown-link:active {
    color: var(--lichtphase-red);
}

.dropdown-link.active {
    color: var(--lichtphase-red);
}

.dropdown-link.active:hover,
.dropdown-link.active:focus-visible {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    height: var(--menu-height);
}

.social-link {
    position: relative;
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
}

.social-link::before,
.social-link::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: opacity 0.5s ease;
}

.social-link::before {
    opacity: 0.25;
}

.social-link::after {
    opacity: 0;
}

.social-link:hover::before,
.social-link:focus-visible::before {
    opacity: 0;
    transition-duration: 0.25s;
}

.social-link:hover::after,
.social-link:focus-visible::after {
    opacity: 1;
    transition-duration: 0.25s;
}

.social-link:active::after {
    opacity: 0.85;
}

.social-facebook::before {
    background-image: url("gfx/facebook-grey.svg");
}

.social-facebook::after {
    background-image: url("gfx/facebook.svg");
}

.social-youtube::before {
    background-image: url("gfx/youtube-grey.svg");
}

.social-youtube::after {
    background-image: url("gfx/youtube.svg");
}

.social-instagram::before {
    background-image: url("gfx/instagram-grey.svg");
}

.social-instagram::after {
    background-image: url("gfx/instagram.svg");
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--lichtphase-grey);
    transition: background-color 0.25s ease;
}

.menu-toggle:hover span,
.menu-toggle:focus-visible span {
    background: #FFFFFF;
}

/* =========================================================
   CONTENT-BEREICH
========================================================= */

.page-content {
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: calc(100vh - var(--hero-height) - var(--menu-height));
    min-height: calc(100svh - var(--hero-height) - var(--menu-height));
    padding: 10px 0;
    background-color: var(--lichtphase-grey);
    background-image: url("gfx/back-content.jpg");
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: auto;
}

.content-inner {
    min-height: calc(100vh - var(--hero-height) - var(--menu-height) - 20px);
    min-height: calc(100svh - var(--hero-height) - var(--menu-height) - 20px);
}

.content-section {
    width: 100%;
    padding: 40px 0;
}

.content-section h1 {
    margin: 0 0 14px;
    color: #3C3C3C;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.content-section p {
    margin: 0 0 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   STARTSEITE
========================================================= */

.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--hero-height) - var(--menu-height) - 20px);
    min-height: calc(100svh - var(--hero-height) - var(--menu-height) - 20px);
    text-align: center;
}

.home-intro {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    color: #3C3C3C;
    text-shadow: 0 8px 9px rgba(0, 0, 0, 0.35);
}

.home-title {
    margin: 0;
    color: #3C3C3C;
    font-size: clamp(40px, 3.6vw, 50px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.home-years {
    margin: -4px 0 clamp(104px, 9.6vw, 150px);
    color: #3C3C3C;
    font-size: clamp(14px, 1.05vw, 18px);
    font-weight: 700;
    line-height: 1.1;
}

.home-claim {
    margin: 0;
    color: #3C3C3C;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 400;
    line-height: 1.16;
}

.home-services {
    margin: clamp(104px, 9.6vw, 150px) 0 0;
    color: #3C3C3C;
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 700;
    line-height: 1.16;
}

/* =========================================================
   BACK-TO-TOP-BUTTON
========================================================= */

.back-to-top {
    position: fixed;
    right: 34px;
    bottom: 34px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    pointer-events: none;
    cursor: pointer;
    opacity: 0;
    background: rgba(128, 128, 128, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    transform: translateY(7px);
}

.back-to-top.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #B8B8B8;
    transform: translateY(-2px);
}

.back-to-top img {
    display: block;
    width: 50%;
    height: 50%;
    object-fit: contain;
}

/* =========================================================
   DESKTOP BIS 1200 PX
========================================================= */

@media (max-width: 1199px) {
    :root {
        --hero-height: 230px;
        --side-padding: 28px;
    }

    .site-inner {
        max-width: none;
        padding-right: var(--side-padding);
        padding-left: var(--side-padding);
    }

    .main-menu {
        gap: 22px;
    }
}

/* =========================================================
   LANDSCAPE MIT NIEDRIGER HOEHE
========================================================= */

@media (orientation: landscape) and (max-height: 520px) {
    .site-hero {
        display: none;
    }

    .content-section {
        padding: 24px 0;
    }

    .menu-bar {
        margin-top: 0;
    }

    .page-content {
        min-height: calc(100vh - var(--menu-height));
        min-height: calc(100svh - var(--menu-height));
    }

    .content-inner {
        min-height: calc(100vh - var(--menu-height) - 20px);
        min-height: calc(100svh - var(--menu-height) - 20px);
    }

    .home-content {
        min-height: calc(100vh - var(--menu-height) - 20px);
        min-height: calc(100svh - var(--menu-height) - 20px);
    }
}

/* =========================================================
   TABLET / LANDSCAPE BIS 1024 PX
========================================================= */

@media (max-width: 1024px) and (orientation: landscape) {
    :root {
        --hero-height: 200px;
        --side-padding: 24px;
    }

    .main-menu {
        gap: 18px;
    }
}

/* =========================================================
   TABLET / PORTRAIT BIS 900 PX
========================================================= */

@media (max-width: 900px) and (orientation: portrait) {
    :root {
        --hero-height: 210px;
        --side-padding: 22px;
    }

    .main-menu {
        gap: 16px;
    }

    .nav-link,
    .dropdown-link {
        font-size: 15px;
    }
}

/* =========================================================
   SMARTPHONE BIS 760 PX
========================================================= */

@media (max-width: 760px) {
    :root {
        --hero-height: 165px;
        --logo-height: 30px;
        --side-padding: 18px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-menu {
        position: absolute;
        top: calc(var(--menu-height) + 10px);
        right: var(--side-padding);
        display: grid;
        width: min(280px, calc(100vw - (var(--side-padding) * 2)));
        height: auto;
        padding: 14px;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        background-color: var(--menu-glass-bg);
        background-image: none;
        background-clip: padding-box;

        -webkit-backdrop-filter:
            blur(var(--menu-glass-blur))
            saturate(var(--menu-glass-saturation-webkit));
        backdrop-filter:
            blur(var(--menu-glass-blur))
            saturate(var(--menu-glass-saturation));

        /*
        border-top: 1px solid rgba(128, 128, 128, 1);
        border-right: 1px solid rgba(64, 64, 64, 1);
        border-bottom: 1px solid rgba(0, 0, 0, 1);
        border-left: 1px solid rgba(64, 64, 64, 1);
        */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
        transform: translateY(-10px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0s linear 0.25s;
        grid-template-columns: 1fr 34px 34px;
        gap: 10px;
    }

    /*
       Geschlossenes Burger-Menu: keine unsichtbaren Klickflaechen
       ueber dem Seiteninhalt.
    */
    .main-menu:not(.is-open),
    .main-menu:not(.is-open) * {
        pointer-events: none !important;
    }

    .main-menu.is-open {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0s linear 0s;
    }

    .menu-item {
        display: block;
        height: auto;
        grid-column: 1 / -1;
    }

    .has-dropdown::after {
        display: none;
    }

    .nav-link {
        display: block;
        grid-column: 1 / -1;
        line-height: 34px;
    }

    .main-menu .has-dropdown .dropdown-menu,
    .main-menu .has-dropdown:hover .dropdown-menu,
    .main-menu .has-dropdown:focus-within .dropdown-menu,
    .main-menu .has-dropdown.is-dropdown-open .dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;

        display: grid;
        width: 100%;
        max-height: none;
        min-width: 0;
        margin-top: 2px;
        padding: 0;
        overflow: visible;

        pointer-events: none;
        opacity: 1;
        visibility: visible;

        background: transparent;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        border: none;
        border-radius: 0;
        box-shadow: none;

        transform: none;
        transition: none;

        gap: 0;
    }

    .main-menu.is-open .has-dropdown .dropdown-menu,
    .main-menu.is-open .has-dropdown:hover .dropdown-menu,
    .main-menu.is-open .has-dropdown:focus-within .dropdown-menu,
    .main-menu.is-open .has-dropdown.is-dropdown-open .dropdown-menu {
        pointer-events: auto;
    }

    .dropdown-link {
        line-height: 28px;
    }

    .social-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        height: 34px;
        margin-top: 4px;
    }

    .content-section h1 {
        font-size: 15px;
    }

    .home-intro {
        max-width: 620px;
    }

    .home-years {
        margin-top: -3px;
        margin-bottom: 82px;
    }

    .home-services {
        margin-top: 82px;
    }
}

/* =========================================================
   SMARTPHONE LANDSCAPE BIS 760 PX
========================================================= */

@media (max-width: 760px) and (orientation: landscape) {
    :root {
        --hero-height: 130px;
        --side-padding: 20px;
    }
}

/* =========================================================
   SMARTPHONE PORTRAIT BIS 480 PX
========================================================= */

@media (max-width: 480px) and (orientation: portrait) {
    :root {
        --hero-height: 130px;
        --logo-height: 28px;
        --side-padding: 16px;
    }

    .content-section h1 {
        font-size: 15px;
    }

    .home-title {
        font-size: 36px;
    }

    .home-years {
        font-size: 14px;
        margin-top: -3px;
        margin-bottom: 70px;
    }

    .home-claim {
        font-size: 15px;
    }

    .home-services {
        font-size: 14px;
        margin-top: 70px;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 28px;
        height: 28px;
    }
}

/* =========================================================
   STARTSEITE FEINJUSTIERUNG
========================================================= */

/* Startseite: finale vertikale Abstände */
.home-content .home-title {
    margin: 0 !important;
}

.home-content .home-years {
    margin-top: 8px !important;
    margin-bottom: 80px !important;
}

.home-content .home-claim {
    margin: 0 !important;
}

.home-content .home-services {
    margin-top: 80px !important;
}

@media (max-width: 1199px) {
    .home-content .home-years {
        margin-top: 7px !important;
        margin-bottom: 65px !important;
    }

    .home-content .home-services {
        margin-top: 65px !important;
    }
}

@media (max-width: 760px) {
    .home-content .home-years {
        margin-top: 6px !important;
        margin-bottom: 48px !important;
    }

    .home-content .home-services {
        margin-top: 48px !important;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .home-content .home-years {
        margin-top: 5px !important;
        margin-bottom: 39px !important;
    }

    .home-content .home-services {
        margin-top: 39px !important;
    }
}

/* Startseite: home-title wirklich groesser darstellen */
.content-section .home-title {
    font-size: clamp(32px, 3.6vw, 38px);
}

@media (max-width: 480px) and (orientation: portrait) {
    .content-section .home-title {
        font-size: 36px;
    }
}

/* Startseite: Schatten unter home-intro Zeilen */
.home-intro .home-title,
.home-intro .home-years,
.home-intro .home-claim,
.home-intro .home-services {
    text-shadow: 0 9px 9px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   IMPRESSUM
========================================================= */

.imprint-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "owner owner owner"
        "address phone internet"
        "tax court .";
    column-gap: 40px;
    row-gap: 18px;
}

.imprint-block {
    min-width: 0;
}

.imprint-block h2 {
    margin: 0;
    color: #3C3C3C;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.imprint-block p {
    margin: 0;
    line-height: 1.25;
}

.imprint-owner {
    grid-area: owner;
}

.imprint-address {
    grid-area: address;
    font-style: normal;
}

.imprint-phone {
    grid-area: phone;
}

.imprint-internet {
    grid-area: internet;
}

.imprint-tax {
    grid-area: tax;
}

.imprint-court {
    grid-area: court;
}

@media (max-width: 900px) {
    .imprint-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "owner owner"
            "address phone"
            "internet tax"
            "court .";
        column-gap: 32px;
    }
}

@media (max-width: 600px) {
    .imprint-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "owner"
            "address"
            "phone"
            "internet"
            "tax"
            "court";
        row-gap: 20px;
    }
}

/* =========================================================
   CARD-SYSTEM
========================================================= */

/* CARD-System */
.spacer-40 {
    height: 40px;
}

.line {
    width: 100%;
    height: 2px;
    margin: 36px 0;
    opacity: 0.3;
    background-image: url("gfx/line2.svg");
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 2px;
}

.card-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    align-items: start;
    gap: 40px;
}

.card-box .card--small {
    width: 100%;
    max-width: none;
}

.card-row {
    display: grid;
    grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}


.card-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-text h1 {
    overflow-wrap: anywhere;
}

.card-text p {
    max-width: 65ch;
}

.card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: inherit;
    background-color: var(--lichtphase-grey);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 12px;
    text-decoration: none;
}

.card--wide {
    width: 580px;
    max-width: 100%;
}

.card--small {
    width: 270px;
    max-width: 100%;
}

.card--inset {
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75);
}

a.card--button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow:
        -1px -1px 0 #FFFFFF,
         0   -1px 0 #FFFFFF,
         1px -1px 0 #FFFFFF,
        -1px  0   0 #FFFFFF,
         1px  0   0 #FFFFFF,
        -1px  1px 0 #FFFFFF,
         0    1px 0 #FFFFFF,
         1px  1px 0 #FFFFFF;
    text-align: center;
    text-decoration: none;
    transition: color 0.5s ease;
}

a.card--button:hover,
a.card--button:focus-visible {
    color: #000000;
    transition-duration: 0.25s;
}

a.card--button:active {
    color: var(--lichtphase-red);
}

a.card--button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border: 3px solid transparent;
    border-radius: inherit;
    transition: border-color 0.25s ease;
}

a.card--button:hover::after,
a.card--button:focus-visible::after {
    border-color: rgba(200, 32, 32, 1);
}

a.card--button.project-card::after {
    /*
       3px roter Rahmen + 2px Abstand zur Card.
       Dadurch sieht man unter dem Rahmen den Seitenhintergrund.
    */
    inset: -1px;
    border-radius: 13px;
}

a.card--button:focus-visible {
    outline: none;
}


/* Kleine verlinkte CARDS mit einfachem Button-Text */
.card--small.card--button {
    align-items: flex-end;
    padding: clamp(12px, 1.5vw, 18px) 12px 12px;
    text-wrap: balance;
}

/* =========================================================
   CARD-SYSTEM RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .card-box,
    .card-row {
        gap: 32px;
    }

    .card-row {
        grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .card-row {
        grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .content-section {
        padding: 30px 0;
    }

    .spacer-40 {
        height: 32px;
    }

    .line {
        margin: 28px 0;
    }

    .card-box,
    .card-row {
        gap: 24px;
    }

    .card-row {
        grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .content-section {
        padding: 26px 0;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .card--wide {
        width: 100%;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .card--wide {
        width: 100%;
    }

    a.card--button {
        font-size: 21px;
    }
}


/* =========================================================
   PROJEKT-CARDS MIT INFOLEISTE
========================================================= */

.project-overview__intro {
    max-width: 70ch;
    margin: 0 0 24px;
}

.project-card-box {
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    justify-content: stretch;
}

.card-box.project-card-box .card--small {
    width: 100%;
    max-width: none;
}

.card--small.card--button.project-card {
    display: block;
    align-items: initial;
    justify-content: initial;
    padding: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    text-shadow: none;
}

a.card--button.project-card {
    /*
       Nur verlinkte Projekt-Cards:
       Der Hover-Rahmen darf leicht ausserhalb der Card liegen,
       damit der Hintergrund zwischen Card und Rahmen sichtbar bleibt.
    */
    overflow: visible;
}

.project-card__meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 36px;
    padding: 6px 8px;

    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;

    -webkit-backdrop-filter: blur(2px) saturate(130%);
    backdrop-filter: blur(2px) saturate(130%);
}

.project-card__title {
    min-width: 0;
    overflow: hidden;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9);
}

.project-card__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 5px;
    min-width: 24px;
    height: 24px;

    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.project-card__icon img {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.project-card__icon-count {
    display: inline-block;
    min-width: 1ch;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.project-card--center .project-card__meta {
    justify-content: center;
}

.project-card--center .project-card__title {
    width: 100%;
    text-align: center;
}

.service-card .project-card__meta {
    justify-content: center;

    min-height: 46px;
    padding: 12px 18px;
}

.service-card .project-card__title {
    width: 100%;

    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.08;
    text-align: center;

    white-space: normal;
    text-wrap: balance;
}

@media (max-width: 640px) {
    .project-card-box {
        justify-content: stretch;
    }

    .card-box.project-card-box .card--small {
        width: 100%;
    }
}


@media (max-width: 760px) {
    .service-card .project-card__meta {
        min-height: 40px;
        padding: 10px 14px;
    }

    .service-card .project-card__title {
        font-size: clamp(17px, 4.2vw, 22px);
    }
}


/* =========================================================
   PROJEKTE.PHP - KATEGORIE-GRID
========================================================= */

.project-category-grid {
    /*
       Kategorie-Cards auf projekte.php:
       Desktop bewusst 4 gleichmaessige Spalten,
       kleinere Ansichten 2 Spalten, Smartphone 1 Spalte.
    */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.project-category-grid .card--small {
    width: 100%;
    max-width: none;
}

@media (max-width: 1199px) {
    .project-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .project-category-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NORMALE TEXT-LINKS
========================================================= */

.content-section a:not(.card--button),
.content-section a:not(.card--button):visited {
    color: #3C3C3C;
    text-decoration: none;
    transition: color 1.0s ease;
}

.content-section a:not(.card--button):hover,
.content-section a:not(.card--button):focus-visible {
    color: #FFFFFF;
    transition-duration: 0.25s;
}

.content-section a:not(.card--button):active {
    color: #3C3C3C;
}

/* =========================================================
   SMARTPHONE LANDSCAPE - BURGERMENU KOMPAKT
========================================================= */

@media (max-width: 760px) and (orientation: landscape) {
    /*
       In niedrigen Landscape-Ansichten darf das Burger-Menu
       nicht hoeher werden als der sichtbare Bereich.
       Das Menu bekommt einen eigenen Scrollbereich.
       Die Projekt-Unterpunkte bleiben einspaltig wie in der normalen Smartphone-Ansicht.
    */

    .main-menu {
        top: calc(var(--menu-height) + 8px);
        right: var(--side-padding);
        max-height: calc(100svh - var(--menu-height) - 16px);
        padding: 12px 14px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: 1fr 34px 34px;
        gap: 6px 12px;
    }

    .nav-link {
        line-height: 30px;
    }

    .dropdown-link {
        font-size: 15px;
        line-height: 25px;
    }

    .social-links {
        height: 32px;
        margin-top: 2px;
    }

    .social-link {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

/* =========================================================
   PROJEKT-VIEWER
========================================================= */

html.viewer-is-open,
html.viewer-is-open body {
    overflow: hidden;
}

.lp-viewer {
    --lp-viewer-image-left: 0px;
    --lp-viewer-image-top: 0px;
    --lp-viewer-image-width: 100%;
    --lp-viewer-image-height: 100%;
    --lp-viewer-image-edge-width: 72px;

    position: fixed;
    inset: 0;
    z-index: 9000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 92px 74px;

    pointer-events: none;
    opacity: 0;
    visibility: hidden;

    background: rgba(0, 0, 0, 0.75);

    -webkit-backdrop-filter: blur(6px) saturate(130%);
    backdrop-filter: blur(6px) saturate(130%);

    transition:
        opacity 0.25s ease,
        visibility 0s linear 0.25s;
}

.lp-viewer.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.25s ease,
        visibility 0s linear 0s;
}

.lp-viewer__stage {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-width: 0;
}

.lp-viewer__image,
.lp-viewer__video {
    display: none;

    max-width: 100%;
    max-height: 100%;

    background: #000000;
    border-radius: 10px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.12);

    object-fit: contain;
}

.lp-viewer__video {
    width: min(1280px, 100%);
    height: auto;
    aspect-ratio: 16 / 9;
}

.lp-viewer__image.is-active,
.lp-viewer__video.is-visible {
    display: block;
}

.lp-viewer__image.is-active {
    cursor: zoom-in;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    opacity: 0.75;
    transition: opacity 0.20s ease-in-out;
}

.lp-viewer.is-fullscreen .lp-viewer__image.is-active {
    cursor: zoom-out;
}

.lp-viewer__image.is-active.is-visible {
    opacity: 1;
}

.lp-viewer__image.is-active,
.lp-viewer__video.is-visible {
    position: relative;
    z-index: 2;
}

.lp-viewer__image-loader {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.18s ease,
        visibility 0s linear 0.18s;
}

.lp-viewer__image-loader.is-visible {
    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.18s ease,
        visibility 0s linear 0s;
}

.lp-viewer__image-spinner {
    position: relative;

    width: 72px;
    height: 72px;

    background: transparent;
    border: none;
    border-radius: 50%;

    filter:
        drop-shadow(0 5px 12px rgba(0, 0, 0, 0.7));
}

.lp-viewer__image-spinner::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from -90deg,
            var(--lichtphase-grey) 0deg 120deg,
            var(--lichtphase-red) 120deg 240deg,
            var(--lichtphase-blue) 240deg 360deg
        );

    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px)
        );
    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 6px),
            #000 calc(100% - 5px)
        );

    filter:
        drop-shadow(0 0 8px rgba(48, 64, 200, 0.28))
        drop-shadow(0 0 8px rgba(200, 32, 32, 0.22));

    animation: page-loader-spin 0.9s linear infinite;
}

.lp-viewer__image-spinner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 26px;
    height: 26px;

    background-image: url("gfx/lichtphase-man.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;

    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85))
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.30));

    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
    .lp-viewer__image-spinner::before {
        animation-duration: 1.8s;
    }
}

.lp-viewer__close,
.lp-viewer__nav {
    position: absolute;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    box-shadow: none;
    line-height: 0;

    transition:
        opacity 0.25s ease,
        filter 0.25s ease,
        transform 0.25s ease;
}

.lp-viewer__close:focus-visible,
.lp-viewer__nav:focus-visible {
    outline: none;
}

.lp-viewer__close {
    top: 20px;
    right: 22px;
    z-index: 4;

    width: 34px;
    height: 34px;

    opacity: 0.82;
}

.lp-viewer__nav {
    top: var(--lp-viewer-image-top);
    bottom: auto;
    z-index: 4;

    width: var(--lp-viewer-image-edge-width);
    height: var(--lp-viewer-image-height);

    opacity: 1;
}

.lp-viewer__nav--prev {
    left: var(--lp-viewer-image-left);
}

.lp-viewer__nav--next {
    right: auto;
    left: calc(
        var(--lp-viewer-image-left)
        + var(--lp-viewer-image-width)
        - var(--lp-viewer-image-edge-width)
    );
}

.lp-viewer__nav[hidden] {
    display: none;
}

.lp-viewer__close img,
.lp-viewer__nav img {
    display: block;
    object-fit: contain;
    pointer-events: none;
    background: transparent;
    border-radius: 50%;

    transition:
        opacity 0.25s ease,
        background-color 0.25s ease,
        filter 0.25s ease,
        transform 0.25s ease;
}

.lp-viewer__close img {
    width: 100%;
    height: 100%;
}

.lp-viewer__nav img {
    position: absolute;
    top: 50%;

    width: 36px;
    height: 36px;

    opacity: 0;
    transform: translateY(-50%);
}

.lp-viewer__nav--prev img {
    left: 14px;
}

.lp-viewer__nav--next img {
    right: 14px;
}

.lp-viewer__close:hover,
.lp-viewer__close:focus-visible {
    opacity: 1;
}

.lp-viewer__close:hover img,
.lp-viewer__close:focus-visible img,
.lp-viewer__nav:hover img,
.lp-viewer__nav:focus-visible img {
    opacity: 1;
    background-color: rgba(200, 32, 32, 0.88);
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 8px rgba(200, 32, 32, 0.45));
}

.lp-viewer__nav:hover img,
.lp-viewer__nav:focus-visible img {
    transform: translateY(-50%) scale(1.06);
}

.lp-viewer__info {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    z-index: 2;

    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;

    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);

    pointer-events: none;
}

.lp-viewer__counter {
    color: #FFFFFF;
}

.lp-viewer__detail {
    color: #FFFFFF;
}

.lp-viewer__detail[hidden] {
    display: none;
}


@media (max-height: 820px) {
    .lp-viewer__video {
        width: min(1280px, calc(100vh * 1.77777778 - 160px));
        width: min(1280px, calc(100svh * 1.77777778 - 160px));
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .lp-viewer {
        padding: 56px 18px 64px;
    }

    .lp-viewer__close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
.lp-viewer__nav {
        display: none !important;
    }

    .lp-viewer__nav--prev {
        left: 0;
    }

    .lp-viewer__nav--next {
        right: 0;
    }

    .lp-viewer__nav img {
        width: 34px;
        height: 34px;
    }

    .lp-viewer__nav--prev img {
        left: 10px;
    }

    .lp-viewer__nav--next img {
        right: 10px;
    }

    .lp-viewer__info {
        right: 12px;
        bottom: 16px;
        left: 12px;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }
}

@media (max-width: 760px) and (orientation: landscape) {
    .lp-viewer {
        padding: 46px 68px 44px;
    }

    .lp-viewer__close {
        top: 8px;
        right: 12px;
    }
.lp-viewer__nav--prev img {
        left: 12px;
    }

    .lp-viewer__nav--next img {
        right: 12px;
    }

    .lp-viewer__info {
        bottom: 8px;
    }
}

/*
   Bild-Fullscreen:
   Bewusst nur ueber die JS-Klasse .is-fullscreen.
   Keine gemischten :fullscreen-Selector-Listen, damit Browser nicht
   wegen unbekannter Pseudo-Selektoren ganze Regeln verwerfen.
*/
.lp-viewer.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100vw !important;
    height: 100vh !important;
    width: 100dvw !important;
    height: 100dvh !important;

    padding: 0 !important;
    overflow: hidden !important;

    background: #000000 !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.lp-viewer.is-fullscreen .lp-viewer__stage {
    position: absolute !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;

    background: #000000 !important;
}

.lp-viewer.is-fullscreen .lp-viewer__image,
.lp-viewer.is-fullscreen .lp-viewer__image.is-active,
.lp-viewer.is-fullscreen .lp-viewer__image.is-active.is-visible {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;

    background: #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.lp-viewer.is-fullscreen .lp-viewer__info {
    z-index: 5;
    bottom: 22px !important;
}

.lp-viewer.is-fullscreen .lp-viewer__close {
    z-index: 6;
    top: 20px !important;
    right: 22px !important;
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .lp-viewer__nav,
    .lp-viewer__nav:hover,
    .lp-viewer__nav:focus-visible,
    .lp-viewer__nav:active,
    .lp-viewer__nav img {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .lp-viewer.is-fullscreen .lp-viewer__close {
        top: 12px !important;
        right: 12px !important;
    }
}

@media (hover: none) {
    .lp-viewer__nav:hover img,
    .lp-viewer__nav:focus-visible img {
        opacity: 0;
        background-color: transparent;
        filter: none;
        transform: translateY(-50%);
    }

    .lp-viewer__nav:active img {
        opacity: 1;
        background-color: rgba(200, 32, 32, 0.88);
        filter:
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.55))
            drop-shadow(0 0 8px rgba(200, 32, 32, 0.45));
        transform: translateY(-50%) scale(1.06);
    }
}

/* Finale Absicherung: Smartphone-/Touch-Viewer ohne Vor-/Zurueck-Buttons */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .lp-viewer .lp-viewer__nav,
    .lp-viewer .lp-viewer__nav img {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Touch-Fullscreen: ohne nativen Browser-Fullscreen, aber bildschirmfuellend im sichtbaren Viewport */
@media (hover: none), (pointer: coarse) {
    .lp-viewer.is-fullscreen {
        height: 100svh !important;
        height: 100dvh !important;
    }

    .lp-viewer.is-fullscreen .lp-viewer__stage {
        height: 100svh !important;
        height: 100dvh !important;
    }

    .lp-viewer.is-fullscreen .lp-viewer__image,
    .lp-viewer.is-fullscreen .lp-viewer__image.is-active,
    .lp-viewer.is-fullscreen .lp-viewer__image.is-active.is-visible {
        height: 100svh !important;
        height: 100dvh !important;
    }
}

/* =========================================================
   EINFACHER BILDSCHUTZ
========================================================= */

img,
.card,
.lp-viewer,
.lp-viewer__image,
.lp-viewer__video {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

img {
    pointer-events: auto;
}


/* =========================================================
   FEHLERSEITEN
========================================================= */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--menu-height) - 120px);
    min-height: calc(100svh - var(--menu-height) - 120px);
    text-align: center;
}

.error-box {
    width: 100%;
    max-width: 900px;
    padding: 42px 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.48);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.error-code {
    margin: 0 0 10px;
    color: var(--lichtphase-blue);
    font-size: clamp(64px, 15vw, 150px);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 10px rgba(48, 64, 200, 0.28),
        0 6px 14px rgba(0, 0, 0, 0.36);
}

.error-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.error-text {
    max-width: 720px;
    margin: 0 auto;
    color: #d8d8d8;
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.6;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(48, 64, 200, 0.58);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.error-button:hover,
.error-button:focus-visible {
    transform: translateY(-2px);
    background: rgba(48, 64, 200, 0.76);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
    outline: none;
}

.error-button--ghost {
    background: rgba(255, 255, 255, 0.08);
}

.error-button--ghost:hover,
.error-button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
    .error-page {
        min-height: calc(100vh - var(--menu-height) - 80px);
        min-height: calc(100svh - var(--menu-height) - 80px);
    }

    .error-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .error-actions {
        gap: 12px;
        margin-top: 24px;
    }

    .error-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   FEHLERSEITEN ALS CARD
========================================================= */

.error-page-content {
    min-height: calc(100vh - var(--hero-height) - var(--menu-height));
    min-height: calc(100svh - var(--hero-height) - var(--menu-height));
    padding: 0;
}

.error-content-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--hero-height) - var(--menu-height));
    min-height: calc(100svh - var(--hero-height) - var(--menu-height));
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: 0;
    text-align: center;
}

.error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: min(580px, 100%);
    max-width: 580px;
    aspect-ratio: 16 / 9;

    padding: clamp(22px, 4vw, 42px);

    color: #3C3C3C;
    background-color: var(--lichtphase-grey);
    background-image: none;

    border-radius: 12px;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75);
}

.error-code {
    margin: 0 0 clamp(8px, 1.4vw, 14px);
    color: var(--lichtphase-red);
    font-size: clamp(72px, 10vw, 128px);
    line-height: 0.86;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 9px 9px rgba(0, 0, 0, 0.32);
}

.error-title {
    margin: 0 0 clamp(10px, 1.6vw, 16px);
    color: var(--lichtphase-red);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 7px 9px rgba(0, 0, 0, 0.30);
}

.error-text {
    max-width: 48ch;
    margin: 0 auto;
    color: #3C3C3C;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.35;
    text-shadow: 0 6px 8px rgba(0, 0, 0, 0.24);
}

.error-actions,
.error-button {
    display: none !important;
}

@media (max-width: 760px) {
    .error-card {
        width: min(100%, 580px);
        padding: 22px 18px;
    }

    .error-code {
        font-size: clamp(58px, 19vw, 96px);
    }

    .error-title {
        font-size: clamp(20px, 6.4vw, 28px);
    }

    .error-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .error-card {
        aspect-ratio: auto;
        min-height: 320px;
    }
}
