﻿/* =========================
   Reset & Grundlayout
========================= */

html, body {
    height: 100%;
}

body {
    
    margin: 0;   
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
    line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Header
========================= */

.site-header {
    background-color: #2c3e50;
    color: white;
    
}

.logo {
	grid-column: 1;
	justify-self: left;
	justify-content: center;
	height: 104px;
	width: 104px;
	}

.title {
	grid-column: 2;
	text-align: center;
	margin: 0;
}


/* =========================
   Navigation
========================= */

nav {
    background-color: #34495e;
}

nav ul li {
    margin: 0 15px;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background-color: #1abc9c;
    border-radius: 4px;
}


/* =========================
   Hauptinhalt
========================= */

main {
    flex: 1;                 /* Wichtig für Sticky Footer */
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    width: 100%;
}

button,
input[type="submit"] {
  background-color:#dff0ec;
  color: black;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #dfe7b0;
}

button,
input[type="reset"] {
  background-color: #dff0ec;
  color: black;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
input[type="reset"]:hover {
  background-color: #dfe7b0;
}

/* =========================
   Footer (immer unten)
========================= */

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
}

/* Spaltenüberschriften fett */
th {
    font-weight: bold;
    background-color: #ecf0f1;
}

/* Jede zweite Zeile andersfarbig */
tr:nth-child(even) {
    background-color:#ceeee1;  
}

/* Vorschau-Galerie */
.galerie {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.galerie img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.galerie img:hover {
    transform: scale(1.05);
}

/* Lightbox: standardmäßig unsichtbar */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}


/* Inhalt */
.lightbox-inhalt {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Großes Bild */
.lightbox-inhalt img {
    max-width: 85%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Schließen-Kreuz */
.schliessen {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 1002;
    color: white;
    font-size: 40px;
    text-decoration: none;
}

/* Navigation */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.vorrueck {
    left: 0;
}

.weiter {
    right: 0;
}
.lightbox:target {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}


/* =========================
   Responsive Design
========================= */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }
    .galerie img {
        width: 140px;
        height: 110px;
    }

    .lightbox-inhalt img {
        max-width: 100%;
        max-height: 75%;
    }

    .nav-btn {
        padding: 10px;
        font-size: 14px;
    }
}
/* Vorschaubild und Titel untereinander erzwingen */
.galerie a.galerie-bild {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    margin: 10px;
    text-decoration: none;
    color: #2c3e50;
}

.galerie a.galerie-bild img {
    display: block;
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.galerie a.galerie-bild span {
    display: block;
    width: 100%;
    margin-top: 8px;
    text-align: center;
    font-weight: bold;
}