
/* =======================================
         START / GRUNDEINSTELLUNGEN
   ======================================= */

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

html,
body {
    margin: 0;

    width: 100%;
    height: 100%;

    font-family: Arial, sans-serif;

    color: #fff;
}

html {
    background: #04152f;
}

body {
    position: relative;

    overflow-x: hidden;
    overflow-y: hidden;
}



/* =======================================
         DESKTOP + TAB - HINTERGRUND
   ======================================= */

.bg {
    position: fixed;
    inset: 0;

    background: url("../images/background.png") center 0% / cover no-repeat;

    z-index: -1;
}



/* =======================================
            UHRZEIT POSITIONIEREN
   ======================================= */

.clock {
    position: fixed;
    left: 215px;
    top: 575px;


    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;

    color: #4aa3ff;

    text-shadow:
        0 0 5px #008cff,
        0 0 12px rgba(0, 140, 255, 0.8);

     white-space: nowrap;

}



/* =======================================
         MOBILE HEADER / FÜR HANDYS
   ======================================= */

.mobile-header {
    display: none;
}



/* =======================================
              KACHELN / CARDS
   ======================================= */

.cards {
    position: relative;

    width: calc(100% - 7%);
    max-width: 1700px;

    margin: 5.5vh auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: clamp(28px, 3vw, 60px);

    z-index: 10;
}

.card {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 28px;

    background: rgba(7, 20, 55, 0.45);

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

    border: 2px solid #4aa3ff;
    border-radius: 18px;

    box-shadow: 0 0 18px rgba(0, 140, 255, 0.3);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* CARD ICON */

.card i {
    flex-shrink: 0;

    font-size: 36px;

    color: #4aa3ff;
}


/* CARD ÜBERSCHRIFT */

.card h2 {
    margin: 0;

    font-size: 16px;
}


/* CARD TEXT */

.card p {
    margin: 4px 0 0;

    font-size: 13px;

    opacity: 0.85;
}



/* =======================================
         KACHEL HOVER - NUR DESKTOP
   ======================================= */

@media (min-width: 1367px) and (hover: hover) and (pointer: fine) {

.card:hover {
    transform: translateY(-6px);

    box-shadow: 0 0 35px rgba(0, 140, 255, 0.8);
    }
}



/* =======================================
              POPUP DER KACHELN
   ======================================= */

.card-popup {
    position: absolute;

    top: calc(100% + 25px);
    left: 50%;

    width: min(430px, calc(100vw - 40px));

    padding: 30px;

    transform: translateX(-50%) translateY(10px);

    background: rgba(10, 20, 45, 0.97);

    border: 2px solid #4aa3ff;
    border-radius: 18px;

    color: #fff;

    font-size: 14px;
    line-height: 1.6;

    box-shadow: 0 0 30px rgba(0, 140, 255, 0.55);

    opacity: 0;
    visibility: hidden;

    pointer-events: auto;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;

    z-index: 1001;
}


/* POPUP PFEIL ZUR KACHEL */

.card-popup::before {
    content: "";

    position: absolute;

    top: -9.4px;
    left: 50%;

    width: 16px;
    height: 16px;

    transform: translateX(-50%) rotate(45deg);

    background: rgba(10, 20, 45, 0.97);

    border-top: 2px solid #4aa3ff;
    border-left: 2px solid #4aa3ff;
}



/* =======================================
     UNSICHTBARE HOVER - BRÜCKE - POPUPS
   ======================================= */

.card-popup::after {
    content: "";

    position: absolute;

    top: -25px;
    left: 0;

    width: 100%;
    height: 25px;

    background: transparent;
}



/* =======================================
         POPUP HOVER - NUR DESKTOP
   ======================================= */

@media (min-width: 1367px) and (hover: hover) and (pointer: fine) {

.card:hover .card-popup {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

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



/* =======================================
    TAB + HANDY - POPUP NUR DURCH TIPPEN
   ======================================= */

@media (max-width: 1366px) {

/* KACHEL-HOVER DEAKTIVIEREN */

.card:hover {
    transform: none;

    box-shadow: 0 0 18px rgba(0, 140, 255, 0.3);
    }


/* POPUP-HOVER DEAKTIVIEREN */

.card:hover .card-popup {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateX(-50%) translateY(10px);
    }


/* AKTIVE KACHEL IN DEN VORDERGRUND */

.card.active {
    z-index: 1000;
    }


/* POPUP NUR ÜBER .ACTIVE ANZEIGEN */

.card.active .card-popup,
.card.active:hover .card-popup {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

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



/* =======================================
           AKTUELLER - LAUFBANNER
   ======================================= */

.laufbanner {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 52px;

    width: 100%;
    height: 68px;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    overflow: hidden;

    white-space: nowrap;

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

    color: #fff;

    font-size: clamp(24px, 2.2vw, 36px);

    z-index: 8999;
}

.lauftext {
    display: inline-block;

    padding-left: 100%;

    animation: ticker 30s linear infinite;
}



/* =======================================
            FOOTER + FOOTER-LINKS
   ======================================= */

footer {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: nowrap;

    padding: 12px 16px;

    background: rgba(5, 10, 25, 0.88);

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

    border-top: 2px solid #2d8cff;
    border-bottom: 2px solid #2d8cff;

    font-size: 14px;

    z-index: 9000;
}


/* FOOTER-LINKS FARBEN */

.footer-link {
    color: #fff;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #4aa3ff;
}



/* =======================================
          SUPPORT + FOOTER - MODALE
   ======================================= */

.modal {
    display: none;

    position: fixed;
    inset: 0;

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

    padding: 12vh 20px 40px;

    overflow-y: auto;

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

    z-index: 10000;
}

.modal-content {
    position: relative;

    width: min(680px, 100%);
    max-height: 76vh;

    padding: 30px;

    overflow-y: auto;

    background: rgba(8, 20, 45, 0.98);

    border: 2px solid #4aa3ff;
    border-radius: 18px;

    color: #fff;

    font-size: 14px;
    line-height: 1.8;

    box-shadow: 0 0 40px rgba(0, 140, 255, 0.6);
}

.modal-content h2 {
    margin: 0 40px 15px 0;

    color: #4aa3ff;

    font-size: 24px;
}


/* MODAL SCHLIESSEN */

.close {
    position: absolute;

    top: 12px;
    right: 20px;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: color 0.25s ease;
}

.close:hover {
    color: #4aa3ff;
}



/* =======================================
   STANDORTBILD GRÖßE + POSITION IM MODAL
   ======================================= */

.location-image {
    display: block;

    width: 100%;
    height: auto;

    margin-top: 20px;

    border-radius: 10px;
}



/* =======================================
           TELEFON-LINK IM MODAL
   ======================================= */

.call-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding: 6px 18px;

    background: #0066cc;

    color: #fff;

    font-size: 16px;
    font-weight: bold;

    text-decoration: none;

    border-radius: 18px;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.call-link:hover {
    background: #fd7e14;

    transform: scale(1.05);
}


/* STATUSPUNKT-FORM + FARBEN */

.status-dot {
    display: inline-block;

    flex-shrink: 0;

    width: 18px;
    height: 18px;

    background: #ff1744; /* STANDARD: ROT */

    border-radius: 50%;

    transition: background-color 0.3s ease;
}


/* TELEFON-ICON GRÖßE */

.call-link i {
    font-size: 18px;
}



/* =======================================
            CYBER-LINK IM MODAL
   ======================================= */

.cyber-link {
    display: block;

    color: #ffa726;

    text-decoration: none;

    font-size: 16px;

    text-align: center;
}

.cyber-link:hover {
    color: #4aa3ff;
}



/* =======================================
           SUPPORT-LINK IM MODAL
   ======================================= */

.support-link {
    display: block;

    color: #ffa726;

    text-decoration: none;

    font-size: 16px;

    text-align: center;
}

.support-link:hover {
    color: #4aa3ff;
}



/* =======================================
       DOWNLOAD-LINK + MENUE IM MODAL
   ======================================= */

/* Nur für Desktop einblenden / Smartphone ausblenden */
.smartphone-support {
    display: none;
}

.download-link {
    display: inline;
    margin-left: 20px;

    color: #ffa726;

    text-decoration: none;

    font-size: 14px;

    text-align: center;
}

.download-link:hover {
    color: #4aa3ff;
}

.os-icon {
    width: 88px;
    height: 75px;
    vertical-align: middle;
    margin-right: 20px;
}


.download-menu {
    width: 100%;
}

.download-menu summary {
    cursor: pointer;
    list-style: none;
}

.download-menu summary::-webkit-details-marker {
    display: none;
}

.download-menu summary::marker {
    content: "";
}

.dropdown-arrow {
    margin-left: 8px;
}

/* Liste unterhalb von Auswahl */
.download-options {
    margin-left: 132px;
    margin-top: 0px;
}

.download-options p {
    display: flex;
    align-items: center;
}

/* Abstand zwischen Hand und Download-Link */
.download-options .download-link {
    margin-left: 8px;
}

/* Abstand zwischen Windows / Mac / Linux */
.download-options p {
    margin: 0 0 15px 0;
}



/* =======================================
           RUSTDESK-LINK IM MODAL
   ======================================= */

.rustdesk-link {
    display: block;

    color: #ffa726;

    text-decoration: none;

    font-size: 14px;

    text-align: center;
}

.rustdesk-link:hover {
    color: #4aa3ff;
}



/* =======================================
       SCROLLEN FÜR TABLET UND HANDY
   ======================================= */

@media (max-width: 1366px) {

    html,
    body {
        height: auto;
        min-height: 100%;
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;

        overflow-x: hidden;
        overflow-y: auto;

        /*
           PLATZ FÜR FIXIERTEN LAUFBANNER UND FOOTER.
           DAMIT DER LETZTE INHALT NICHT DARUNTER VERSCHWINDET.
        */

        padding-bottom: 150px;
    }
}



/* =======================================
     TABLET QUERFORMAT / KLEINER DESKTOP
   ======================================= */

@media (max-width: 1366px) {

/* KACHELN */

.cards {
    width: calc(100% - 60px);

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 32px;

    margin-top: 40px;
    margin-bottom: 40px;
}


/* KACHEL-POPUP */

.card-popup {
    top: calc(100% + 25px);

    width: min(390px, calc(100vw - 50px));

    border: 2px solid #4aa3ff;
}


/* ZUSÄTZLICHEN PLATZ BIS ZUR FOOTER-OBERKANNTE FÜR DIE POPUPS ERZEUGEN */

body:has(.card.active) {
    padding-bottom: 587px;
}


/* LAUFBANNER */

.laufbanner {
    bottom: 92px;

    height: 60px;

    font-size: clamp(22px, 2.5vw, 32px);
}


/* FOOTER */

footer {
    min-height: 72px;

    flex-wrap: wrap;

    padding: 10px 15px;
}

footer > * {
    flex: 1 1 33.333%;

    padding: 4px 10px;

    text-align: center;
    }    
}



/* =======================================
             TABLET HOCHFORMAT
   ======================================= */

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

.bg {
        background-size: 120% 100%;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #04152f;
}


body {
    /*
       FOOTER IST HIER HÖHER.
       DESHALB ETWAS MEHR PLATZ UNTEN.
    */

    padding-bottom: 175px;
}


/* KACHELN */

.cards {
    width: calc(100% - 50px);

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 32px;

    margin-top: 40px;
    margin-bottom: 40px;
}

.card {
    gap: 18px;

    padding: 20px;
}


/* KACHEL-POPUP */

.card-popup {
    top: calc(100% + 25px);

    width: min(390px, calc(100vw - 50px));
        
    border: 2px solid #4aa3ff;
}


/* LAUFBANNER */

.laufbanner {
    bottom: 116px;

    height: 58px;

    font-size: clamp(21px, 3vw, 30px);
}


/* FOOTER */

footer {
    min-height: 92px;
}

footer > * {
    flex: 1 1 50%;
}


/* MODAL */

.modal {
    padding-top: 8vh;
}

.modal-content {
    max-height: 84vh;
    }
}



/* =======================================
                   HANDY
   ======================================= */

@media (max-width: 768px) {

body {
    min-height: 100vh;
    min-height: 100dvh;

    padding-bottom: 0;

    overflow-x: hidden;
    overflow-y: auto;
}


/* HINTERGRUND */

.bg {
    background: linear-gradient(
    180deg,
    #04152f 0%,
    #071a3d 40%,
    #081c44 100%
    );
}


/* MOBILE HEADER / LOGO */

.mobile-header {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px 15px 10px;
}

.mobile-header img {
    display: block;

    width: 100%;

    max-width: 600px;

    height: auto;

    animation: fadeIn 3s ease;
}


/* KACHELN */

.cards {
    width: 100%;

    grid-template-columns: 1fr;

    gap: 32px;

    margin: 0;

    padding: 25px;
}

.card {
    width: 100%;

    gap: 20px;

    padding: 20px;
}


/* KACHEL-POPUP */

.card-popup {
    top: calc(100% + 25px);

    width: min(390px, calc(100vw - 50px));

    border: 2px solid #4aa3ff;
}


/* LAUFBANNER */

.laufbanner {
    position: relative;

    left: auto;
    right: auto;

    bottom: auto;

    width: 100%;
    height: auto;
    min-height: 52px;

    padding: 8px 0;

    font-size: clamp(18px, 6vw, 26px);

    z-index: 1;
}


/* FOOTER */

footer {
    position: relative;

    left: auto;
    right: auto;
    bottom: auto;

    width: 100%;
    min-height: 0;

    flex-direction: column;
    flex-wrap: nowrap;

    gap: 9.5px;

    padding:
         18px
         20px
         calc(18px + env(safe-area-inset-bottom, 0px));

    text-align: center;

    z-index: 1;
}

footer > * {
    flex: none;

    width: 100%;

    padding: 0;
}


/* MODAL */

.modal {
    align-items: center;

    padding: 20px;
}

.modal-content {
    width: 100%;
    max-height: calc(100dvh - 40px);

    padding: 30px 22px;
}

.modal-content h2 {
    font-size: 21px;
    }

/* DOWNLOAD-AUSWAHL FÜR SMARTPHONE AUSBLENDEN */

.download-menu summary {
    display: flex;
    align-items: center;
    }

.download-auswahl {
    display: none;
    }       

.smartphone-support {
    display: block;
    flex: 1;
    margin-left: 20px;
    line-height: 1.4;
    }
}



/* =======================================
      KLEINE HANDYS / z.B. SAMSUNG-A51
   ======================================= */

@media (max-width: 480px) {

/* MOBILE HEADER / LOGO */

.mobile-header {
    padding: 15px 12px 5px;
}

body {
    padding-bottom: 0;
}

body:has(.card.active) {
    padding-bottom: 120px;
}


/* KACHELN */

.cards {
    gap: 28px;

    padding: 20px 18px 5px;
}

.card {
    gap: 18px;

    padding: 18px;
}

.card i {
    font-size: 36px;
}

.card h2 {
    font-size: 16px;
}

.card p {
    font-size: 14px;
}


/* KACHEL-POPUP */

.card-popup {
    width: calc(100vw - 37px);

    padding: 20px;

    font-size: 14px;

    border: 2px solid #4aa3ff;  
}


/* LAUFBANNER */

.laufbanner {
    min-height: 48px;

    font-size: 20px;
}


/* FOOTER */

footer {
    font-size: 14px;
}


/* MODAL */

.modal {
    padding: 18px;
}

.modal-content {
    max-height: calc(100dvh - 24px);

    padding: 28px 20px;
}

.close {
    top: 10px;
    right: 15px;
    }

/* DOWNLOAD-AUSWAHL FÜR SMARTPHONE AUSBLENDEN */

.download-menu summary {
    display: flex;
    align-items: center;
    }

.download-auswahl {
    display: none;
    }       

.smartphone-support {
    display: block;
    flex: 1;
    margin-left: 20px;
    line-height: 1.4;
    }
}



/* =======================================
           REDUZIERTE ANIMATIONEN
   ======================================= */

@media (prefers-reduced-motion: reduce) {

*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    }
}



/* =======================================
                ANIMATIONEN
   ======================================= */

@keyframes fadeIn {

from {
    opacity: 0;

    transform: translateY(600px);
}

to {
    opacity: 1;

    transform: translateY(0);
    }
}

@keyframes ticker {

from {
    transform: translateX(0);
}

to {
    transform: translateX(-100%);
    }
}



/* =======================================
                   ENDE
   ======================================= */

