/* ==========================================
   TEXTFARBE GLOBAL FESTLEGEN
   ========================================== */

/* Setzt die Grundfarbe für die gesamte Seite auf Schwarz */
body {
    color: #000000 !important;
}

/* Stellt sicher, dass auch Überschriften, Absätze und Listen schwarz sind */
h1, h2, h3, h4, h5, h6, p, li, span, div {
    color: #000000 !important;
}

/* Optional: Verhindert, dass Links blau werden (sie bleiben schwarz) */
a {
    color: #000000 !important;
    text-decoration: underline; /* Behält die Unterstreichung zur Erkennbarkeit bei */
}

/* Stellt sicher, dass Formularelemente (Eingabefelder) schwarzen Text haben */
input, textarea, select, button {
    color: #000000 !important;
}

/* ==========================================
   Text beim Markieren (Highlight) auch gut aussieht
   ========================================== */

::selection {
    background: #000000;
    color: #ffffff; /* Weißer Text auf schwarzem Hintergrund beim Markieren */
}


/* ==========================================
   HAUPT-STYLING (BODY & LAYOUT)
   ========================================== */

body {
    /* Schriftarten & TextgrÃ¶ÃŸe */
    font-family: 'Segoe UI', Arial, Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    
    /* Farben */
    color: #2b3d4f;
    background-color: #ffffff;
    
    /* AbstÃ¤nde & Ausrichtung */
    margin: 20px;
    text-align: center;
    
    /* KOPIERSCHUTZ: Verhindert Textmarkierung */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Verhindert das Ziehen (Drag) von Bildern */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto; /* Erlaubt Klicks fÃ¼r die Lightbox */
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    grid-area: header;
    background-image: url('logo-pano.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

header h1 {
    font-size: 22px;
    color: white; 
    background-color: transparent; 
    padding: 5px 15px;
}

/* ==========================================
   TYPOGRAFIE (TEXTELEMENTE)
   ========================================== */

h1, h2, h3 {
    color: #000000;
    font-weight: bold;
}

h2 {
    margin-top: 30px;
}

p {
    max-width: 850px;
    margin: 15px auto;
    text-align: justify;
    color: #000000;
}

/* Hilfsklassen fÃ¼r Farben & Ausrichtung */
.auto-style1 { color: #FF0000; } /* Rot fÃ¼r Warnungen/Akzente */
.auto-style2 { text-align: left; }
.auto-style4 { text-align: center; }

/* ==========================================
   GALLERY & LIGHTBOX
   ========================================== */

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.gallery img {
    width: 250px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Lightbox-Hintergrund (Vollbild) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* ==========================================
   LIGHTBOX STYLING
   ========================================== */

/* Das schwarze Hintergrund-Overlay */
.lightbox {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    z-index: 1000; /* Ganz oben über allen anderen Elementen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Tiefschwarzer, transparenter Hintergrund */
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Zeigt an, dass man zum Schließen klicken kann */
}

/* Das vergrößerte Bild in der Lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid white; /* Optional: ein schöner weißer Rahmen */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    
    /* Animation beim Öffnen */
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

/* Animationseffekt, wenn die Lightbox aktiv ist */
.lightbox:target img {
    transform: scale(1);
}

/* ==========================================
   DRUCKSCHUTZ (VERSTECKT INHALT BEIM DRUCKEN)
   ========================================== */

@media print {
    html, body {
        visibility: hidden !important;
        display: none !important;
    }
}