/* --- Grundlagen & Variablen --- */
:root {
    --marine: #002b5c;
    --marine-light: #004080;
    --marine-hover: #001d3d;
    --border-light: #d8e0ea;
    --bg-light: #f5f7fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--marine);
    color: var(--white);
    line-height: 1.5;
    /* Padding oben f�r fixed Header (ca. 120px) und unten f�r Footer (ca. 100px) */
    padding: 120px 0 180px 0;


}

/* --- Typografie --- */

 h1 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 500;
}

   h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color:white;
}

h5 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}


p {
    margin-top: 1px;
    margin-bottom: 5px;
    font-size: 0.7rem;
    font-weight: 700;
}







/* --- Header (Fixiert) --- */
.zisoft-header {
     align-items: center;
    display: flex;
    justify-content: space-between; /* Text links/mittig � Bild rechts */
    background: #002b5c;
    width: 100%;
     margin-top: 0px; /* Abstand nach oben */
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 9999;
       height: 120px;

}








.zisoft-title {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 1.2px;
    font-size: 2rem;
}





   .zisoft-text {
       position: relative;
      text-align: center;
   top: 50%; left: 50%;
   transform: translate(-50%, -50%);
    text-align: center;
     color: white;
      text-shadow: 0 0 10px black;
         flex: 1;
       }


.zisoft-sub {
    color: white;
    font-size: 0.9rem;
    margin-top: 4px;
}




.zisoft-image {
     margin-right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 30%;
    object-fit: cover;
    border: 2px solid #fff;
    filter: brightness(110%) contrast(110%);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}


.zisoft-image-michi{
     margin-right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30%;
    object-fit: cover;
    border: 2px solid #fff;
    filter: brightness(110%) contrast(110%);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}



/* --- Layout Container --- */
.container {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* 1fr nutzt verf�gbaren Platz */
    gap: 20px;
    max-width: 1240px;
    width: 95%;
    margin: 20px auto;
    justify-content: center;
}





.content-centered {
   float: none !important; /* Deaktiviert ein eventuelles float:left */
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 30px 20px 120px 20px; /* unten genug Platz für Buttons */
    color: var(--marine);
}


 .content h1,
.content h2,
.content h3,
.content h4,
.content h5 {
    text-align: center;
}



.content h2 {
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

 .content p {
    text-align: center;
}


.right h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--marine);
}


.right .yt-btn {
    margin-bottom: 15px;
}

   .left .yt-btn,
.right .yt-btn {
    margin-bottom: 15px;
}



 .left h4,
.right h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--marine);
}


.left, .right, .content {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    color: var(--marine);
     text-align: center;
}

/* --- Men� & Buttons --- */

   .left .yt-menu {
    gap: 0;
}

   .right .yt-menu {
    gap: 0;
}



.yt-menu { display: flex; flex-direction: column; gap: 0px; }

.yt-btn {
    display: block;
    padding: 12px 15px;
    background: var(--marine);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
    margin-bottom: 15px;
    cursor: pointer;
}

.yt-btn:hover {
    background: var(--marine-light);
}


.floating-button-container {
    position: fixed;   /* Fixiert den gesamten Block am Bildschirm */
    bottom: 30px;      /* Abstand vom unteren Rand */
    right: 20px;       /* Abstand vom rechten Rand */
    display: flex;     /* Richtet die Buttons nebeneinander aus */
    gap: 10px;         /* Abstand zwischen den beiden Buttons */
    z-index: 9999;     /* Liegt �ber dem Footer und anderen Inhalten */
    align-items: center;
}

/* Der Container, der beide Buttons gruppiert und positioniert */
.button-group-floating {
    position: fixed !important;
    bottom: 30px;
    right: 20px;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px; /* Abstand zwischen den Buttons */
    z-index: 9999;
}

/* Spezifische Klasse nur f�r diese beiden Buttons */
.btn-style-floating {
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    /* Hier k�nnen Sie noch weitere Styles hinzuf�gen,
       die nur f�r diese Buttons gelten sollen */
    padding: 10px 15px;
    cursor: pointer;
}

/* Der Container, der beide Buttons gruppiert und positioniert
.button-group-floating-top {
    position: fixed !important;
    top: 120px;
    right: 20px;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px; /* Abstand zwischen den Buttons
    z-index: 9999;
}
      */

.video-box {
    position: relative;
    width: 100%;
    /* Entferne height: 0 und padding-bottom, wenn das Bild eine feste Höhe haben soll */
    /* Oder nutze aspect-ratio für moderne Browser: */
    aspect-ratio: 16 / 9; 
    max-width: 760px; /* Begrenzt die Breite auf dein Wunschmaß */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sorgt dafür, dass das Bild die Box füllt */
    display: block;
}

/* Den Iframe-Teil kannst du drin lassen, falls du später wieder ein Video willst */
.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 760px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* Spezifische Klasse nur f�r diese beiden Buttons */
.btn-style-floating-top {
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    /* Hier k�nnen Sie noch weitere Styles hinzuf�gen,
       die nur f�r diese Buttons gelten sollen */
    padding: 10px 15px;
    cursor: pointer;
}



.yt-btn-floating {
    /* position: fixed;   Fixiert den Button relativ zum Browserfenster */
    bottom: 120px;      /* Abstand von unten */
    right: 80px;       /* Abstand von rechts */
    z-index: 999;     /* Sorgt daf�r, dass der Button �ber allen anderen Inhalten liegt */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Optional: Ein Schatten l�sst ihn mehr "schweben" */
}


.contact-info {
    white-space: pre-line; /* �bernimmt Zeilenumbr�che aus dem Editor */
    font-style: normal;    /* Optional: Entfernt die standardm��ige Kursivschrift */
}

/* --- Footer (Fixiert) --- */
.zisoft-footer {
    background: var(--marine);
    color: white;
    padding: 15px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;

}

.zisoft-footer-inner {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    opacity: 0.9;
       text-align: center;
}

.zisoft-footer-right a {
    text-decoration: none;
    color: #ffffff !important;
    opacity: 0.85;
    transition: opacity 0.25s ease, text-decoration-color 0.25s ease;
}

.zisoft-footer-right a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: #ffffff;
}



   /* .zisoft-logo img, .zisoft-image {
        height: 40px;
        width: 40px;
    } */



  .content h2 {
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

 .content p {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
}

 .container {
    gap: 30px;
}


  .left, .right, .content {
    padding: 25px;
}

 /* Impressum � Hauptcontainer */


.container-centered {
    display: flex;
    justify-content: center;
    width: 70%;
max-width: 700px;
    padding: 30px 20px;
    padding-bottom: 50px;

}

 

.container-centered-datenschutz {
    display: flex;
    justify-content: center;
    width: 70%;
max-width: 700px;
    padding: 30px 20px;
    padding-bottom: 50px;

}





.impressum-text {
    font-size: 16px;
    color: #000;
    line-height: 1;
}

.impressum-text h1 {
    text-align: center;
    margin-bottom: 5px;
    color: var(--marine);
}

.contact-info {
    font-style: normal;
    margin-bottom: 20px;
}

.contact-info strong {
    display: block;
    margin-top: 5px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--marine);
}

.button-group-floating-top {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    position: static;
    margin-bottom: 2px;
}



.text-inhalt h1 {
    text-align: center;
    margin-bottom: 5px;
    color: var(--marine);
}

.text-inhalt h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--marine);
}

.legal-text {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 20px;
}


/* Hier stylen wir den Container und alles, was darin liegt */
.text-inhalt {
  max-width: 700px;      /* Begrenzt die Breite f�r bessere Lesbarkeit */
  margin: 0 auto;       /* Zentriert den Textblock */
  line-height: 1.6;     /* Angenehmer Zeilenabstand */
  font-family: sans-serif;
  padding-bottom: 50px;
}

/* Automatische Abst�nde f�r alle Abs�tze im Text */
.text-inhalt p {
  margin-bottom: 1.5rem;
}



.responsive-img img {
    width: 60%;
    height: auto;
    display: block;
 margin: 0 auto; /* zentriert das Bild */
 
 border-radius: 6px;

 
}

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


@media (max-width: 768px) {
    .zisoft-title h1 {

        font-size: 1.2rem;
    }
}
.image-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.special-text {
    font-family: "Georgia", serif; /* andere Schrift */
    font-size: 18px;
    color: #5e0707;
    line-height: 1.6;
    margin-bottom: 25px; /* Absatz nach unten */
}

.special-text-mz {
    font-family: "Segoe UI", sans-serif;
    font-size: 17px;
    color: #0a1a3d; /* dein ZiSoft-Navy */
    font-weight: 500;
    margin-bottom: 30px;
}

#right-container {
   
   display: inline-block; 
   text-align: left;
   
    /* Positionierung / Abstand */
    margin-left: 20px;
    margin-top: 10px;

    /* Box-Optik */
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

    /* Typografie / Layout */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Überschriften im rechten Container */
#right-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #003366; /* dein Navy-Blau */
}

/* Links im rechten Container */
#right-container a {
    display: block;
    margin-bottom: 6px;
    color: #003366;
    text-decoration: none;
}

#right-container a:hover {
    text-decoration: underline;
}

/* optionale inhaltliche Blöcke */
#right-container .section {
    margin-bottom: 18px;
}

#right-container button,
#right-container .btn {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

#right-container a.button,
#right-container a.btn,
#right-container a[href="admin_downloads.php"] {
    display: block;
    width: 100%;
    text-align: center;
}
#right-container a.button,
#right-container a.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #002b5c;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    margin-top: 15px;
    transition: 0.2s;
}

#right-container a.button:hover,
#right-container a.btn:hover {
    background: #003b7a;
}

#right-container a.admin-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    background: #444;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 10px;
    opacity: 0.8;
}

.btn {
    display: block;
    width: 100%;
    background: #002b5c;
    color: white;
    padding: 10px 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    margin-top: 15px;
    text-align: center;
    transition: 0.2s;
}

.btn:hover {
    background: #003b7a;
}

.btn.admin {
    background: #444; /* dezenter */
}

.btn.admin:hover {
    background: #666;
}
.download-btn {
    display:inline-block;
    background:#002b5c;
    color:white;
    padding:8px 14px;
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
    margin-top:20px;
    transition:0.2s;
}

.download-btn:hover {
    background:#003b7a;
}


.download-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    text-align: center;
    margin-top: 5px;              /* Weniger Abstand nach oben */
}

.dl-title {
    cursor: pointer;
    display:inline-block;
    background:#002b5c;
    color:white;
    padding:8px 8px;
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
    margin-top:12px;
    transition:0.2s;   
    opacity: 15;
    /* Kein unnötiger Abstand */


    text-align: center;      /* Zentriert den Text horizontal */
    

    
}


.dl-title-michi {
    cursor: pointer;
    display:inline-block;
    background:#002b5c;
    color:white;
    padding:8px 8px;
    border-radius:10px;
    text-decoration:none;
    font-size:12px;
    margin-top:12px;
    transition:0.2s;   
    opacity: 10;
    /* Kein unnötiger Abstand */


    text-align: center;      /* Zentriert den Text horizontal */
    

    
}


.dl-image {
    width: 100%;
    max-width: 300px;             /* Bild deutlich größer */
    margin: 5px auto 15px auto;   /* Weniger Abstand oben */
    display: block;
    cursor: pointer;
}

.dl-sub {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.dl-count {
    font-size: 15px;
    color: #0a1a33;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background: #002b5c;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s;
}

.download-btn:hover {
    background: #003b7a;
}

/* Hintergrund Overlay */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

/* Großes Bild */
.img-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Schließen-Kreuz */
.img-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.img-close:hover {
    color: #cccccc;
}

.container-left .dl-title {
    width: 100%;
    display: block;
    margin: 6px 0;
}


.container-left .dl-title {
    width: 100%;
    display: block;
    padding: 10px 12px;
    text-align: center;
    border-radius: 6px;
}

/* Buttons im linken Container */
.container-left .dl-title {
    width: 100%;
    display: block;
    margin: 6px 0;
    padding: 10px 12px; /* optional, aber schön */
    text-align: center;
    border-radius: 6px; /* passt zu deinem ZiSoft-Look */
}

/* Überschriften enger an die Buttons */
.container-left h4 {
    margin-bottom: 6px;
    margin-top: 20px; /* optional */
}
.container-left .dl-title:hover {
    background-color: #1e5f8b; /* heller als normal */
    color: #ffffff;
    transition: background-color 0.2s ease;
}


.container-right .dl-title {
    width: 100%;
    display: block;
    margin: 6px 0;
}


.container-right  .dl-title {
    width: 100%;
    display: block;
    padding: 10px 12px;
    text-align: center;
    border-radius: 6px;
}

/* Buttons im linken Container */
.container-right .dl-title {
    width: 100%;
    display: block;
    margin: 6px 0;
    padding: 10px 12px; /* optional, aber schön */
    text-align: center;
    border-radius: 6px; /* passt zu deinem ZiSoft-Look */
}

/* Überschriften enger an die Buttons */
.container-right h4 {
    margin-bottom: 6px;
    margin-top: 20px; /* optional */
}
.container-right .dl-title:hover {
    background-color: #1e5f8b; /* heller als normal */
    color: #ffffff;
    transition: background-color 0.2s ease;
}


.container-content .dl-title-gespannt {
    background-color: #1e5f8b; /* heller als normal */
    color: #ffffff;
    transition: background-color 0.2s ease;

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


}



/* Captcha Box */
.captcha-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.08);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Überschrift */
.captcha-container h1 {
    margin-bottom: 15px;
    color: #0a1a33;
    font-size: 26px;
}

/* Captcha Bild */
.captcha-container img {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Eingabefeld */
.captcha-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Buttons im ZiSoft-Look */
.captcha-container .dl-title {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #0a1a33;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.captcha-container .dl-title:hover {
    background: #0d254d;
}

/* ZiSoft Captcha Dialog */
.captcha-dialog {
    max-width: 420px;
    margin: 100px auto 80px auto; /* Abstand zum Header + Footer */
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.12);
    text-align: center;
    color: var(--marine);
}

/* Überschrift */
.captcha-dialog h1 {
    margin-bottom: 15px;
    color: var(--marine);
    font-size: 26px;
    font-weight: 700;
}

/* Infotext */
.captcha-dialog p {
    font-size: 15px;
    color: var(--marine);
    margin-bottom: 15px;
}

/* Captcha Bild */
.captcha-dialog img {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 10px auto 20px auto;
    display: block;
}

/* Eingabefeld */
.captcha-dialog input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Buttons */
.captcha-dialog .dl-title {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--marine);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.captcha-dialog .dl-title:hover {
    background: var(--marine-light);
}

.modal-overlay {
  display: none; /* Versteckt das Modal standardmäßig */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5); /* Abdunklung des Hintergrunds */
}

.modal-content {
  background-color: #fff; /* Hier deine Webseiten-Farbe einsetzen */
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px; /* Abgerundete Ecken */
  width: 300px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
  position: absolute;
  right: 10px; top: 5px;
  cursor: pointer;
  font-size: 20px;
}

/* Styling für den Button */
.video-btn {
  background-color: #ff0000; color: white; border: none; padding: 12px 24px;
  font-size: 18px; border-radius: 5px; cursor: pointer; transition: 0.3s;
}
.video-btn:hover { background-color: #cc0000; transform: scale(1.05); }

/* Modal Hintergrund */
.video-modal {
  display: none; position: fixed; z-index: 9999; left: 0; top: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.9);
}
.video-modal-content {
  position: relative; top: 50%; transform: translateY(-50%);
  margin: auto; width: 90%; max-width: 800px;
}
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-close { position: absolute; right: 0; top: -40px; color: white; font-size: 30px; cursor: pointer; }
/* Macht den Container zum Vollbild-Fenster */
.video-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dunkler Hintergrund */
    z-index: 10000;
    display: none; /* Wird durch JS auf 'flex' gesetzt */
    justify-content: center;
    align-items: center;
}

/* Die Größe des eigentlichen Video-Fensters */
.video-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9; /* Hält das Video im richtigen Format */
    background: #000;
}

/* Der Schließen-Button oben rechts */
.close-btn {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
}


/* Das Fenster, das den ganzen Bildschirm füllt */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler Hintergrund */
    z-index: 9999;
    display: none; /* Wird per JS auf 'flex' gesetzt */
    justify-content: center;
    align-items: center;
}

/* Der Container für das Video (bestimmt die Größe) */
.container-content {
    position: relative;
    width: 90%;          /* 90% der Bildschirmbreite */
    max-width: 1200px;   /* Aber maximal 1200px breit */
    aspect-ratio: 16 / 9; /* Erzwingt das Video-Format */
    background: #000;
}

/* Das Schließen-Kreuz */
.close-btn {
    position: absolute;
    top: -50px;         /* Über dem Video */
    right: 0;
    color: #fff;
    font-size: 50px;    /* Schön groß */
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover {
    color: #ff0000;     /* Wird rot beim Drüberfahren */
}

/* Sicherstellen, dass das Iframe den Platz ausfüllt */
#ytPlayer {
    width: 100%;
    height: 100%;
    border: none;
}
/* Den Header-Container auf volle Breite und Verteilung optimieren */
.zisoft-header {
    display: flex;
    justify-content: space-between; /* Verteilt links, mitte, rechts */
    align-items: center;
    padding: 0 20px; /* Kleiner Seitenabstand */
    height: 120px;
    background: #002b5c;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* Linker Bereich (Logo) */
.header-left {
    flex: 1; /* Nimmt Platz ein, um den Text zu drücken */
    display: flex;
    justify-content: flex-start;
}

.zisoft-logo-main {
    height: 80px; /* Größe deines neuen Logos */
    width: auto;
    border-radius: 8px;
    margin-top: 10px;
}

/* Mittlerer Bereich (Text) */
.zisoft-text {
    flex: 2; /* Gibt der Mitte mehr Gewicht */
    text-align: center;
    transform: none; /* Entfernt das alte absolute Zentrieren, falls nötig */
    position: static; /* Wichtig: weg von absolute/relative Spielereien */
}

/* Rechter Bereich (Profilbild) */
.header-right {
    flex: 1; /* Spiegeleffekt zum linken Bereich für perfekte Zentrierung des Textes */
    display: flex;
    justify-content: flex-end;
}

/* Linker Bereich (Logo) - Ausgerichtet am Content-Container */
.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    /* Nutzt die gleiche Logik wie dein .container: */
    max-width: 1240px; 
    margin: 0 auto;    /* Zentriert den unsichtbaren Rahmen */
    padding-left: 1%; /* Gleicht das width: 95% deines Containers aus */
}

/* Falls du es lieber ganz exakt über Pixel steuern willst: */
.zisoft-logo-main {
    height: 80px;
    width: auto;
    border-radius: 8px;
    /* Schiebt das Logo manuell ein Stück nach rechts, 
       passend zur 200px Breite deiner linken Spalte */
    margin-left: calc((100vw - 1240px) / 2 + 20px); 
}

/* Media Query für kleinere Bildschirme (wichtig!) */
@media (max-width: 1280px) {
    .zisoft-logo-main {
        margin-left: 20px; /* Standard-Abstand, wenn das Fenster schmaler wird */
    }
}


.video-gallery {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.video-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    height: 140px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    pointer-events: none;
}

.video-link {
    display: inline-block;
    margin-top: 10px;
    color: #002b5c;
    font-weight: bold;
    text-decoration: none;
}


.video-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 8px 12px;
    background-color: #f1f3f5; /* Hellgrau für Kontrast */
    border-radius: 6px;
    border-left: 4px solid #002b5c; /* Akzent in deinem Blau */
    font-family: sans-serif;
    font-size: 0.85rem;
    color: #333;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 5px; /* Abstand zwischen Emoji und Zahl */
    font-weight: 600;
}

/* Der Button zum Video darunter */
.video-link {
    display: block;
    text-align: center;
    background-color: #002b5c;
    color: white !important;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.video-link:hover {
    background-color: #004085; /* Etwas helleres Blau beim Drüberfahren */
}


/* Container, der das 16:9 Format erzwingt */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Verhältnis */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Platzhalter-Styling für kommende Videos */
.video-thumbnail-placeholder {
    height: 150px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #777;
    font-style: italic;
}


.zisoft-footer-right {
    display: flex;
    align-items: center;    /* Vertikal zentriert */
    justify-content: center; /* ÄNDERUNG: Jetzt horizontal zentriert */
    gap: 10px;              /* Abstand zwischen Text, Strichen und Bild */
    width: 100%;            /* Nutzt die volle Breite für die Zentrierung */
}

.footer-logo {
    height: 24px;           /* Passt die Größe deines Logos an */
    width: auto;
    display: inline-block;
}
