/* Globale Reset-Regeln */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fade-In-Effekt beim Laden */
@keyframes fadeInAnimation {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
html, body {
    height: 100%;
}

body {
    opacity: 0;
    animation: fadeInAnimation ease 2s;
    animation-fill-mode: forwards;
    will-change: opacity;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle, rgba(204, 255, 102, 0.8), rgba(0, 102, 0, 0.8)) !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*justify-content: space-between; kann weg?*/
}

/* Inhalt */
.content {
    flex: 1 0 auto;
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto 0px auto;
    padding: 20px;
    z-index: 1;
}

/* Logout */
.logout-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* rechts ausrichten */
    padding: 10px 20px;
    box-sizing: border-box;
}

.logout-button {
    padding: 8px 16px;
    background-color: #b71c1c; /* rot für Logout */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: #7f0000;
}

/* Logo + Überschrift */
.logo-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    z-index: 1;
}

.logo-text-container img {
    max-width: 220px;
    height: auto;
    border: none;
}
.logo {
  width: 250px;              /* Passe Größe nach Wunsch an */
  height: 250px;
  background-image: url('bilder/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;        /* Damit es rund bleibt */
  transition: background-image 0.3s ease;
}

.logo:hover {
  background-image: url('bilder/logo-hover.png');  /* Dein eigenes Hoverbild */
}

.headline-text,
h1 {
  color: #1a4d1a !important; /* dunkleres, kräftiges Grün für mehr Kontrast */
  text-shadow: 
    1px 1px 3px rgba(255, 255, 255, 0.8),   /* sanfte Aufhellung von hinten */
    0 0 8px rgba(0, 0, 0, 0.25);            /* leichter Tiefeneffekt */
  letter-spacing: 0.5px;
  font-weight: 700 !important;
  font-family: 'Open Sans', sans-serif;
  text-align: center;                       /* Einheitlich, kannst du bei Bedarf entfernen */
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sub-headline-link {
    font-size: 1.0rem;              /* Etwas kleiner als Überschrift */
    font-weight: bold;
    color: #2c6b2f;                 /* z. B. ein sattes Grün */      
    text-decoration: none;         /* Kein Unterstrich */
    display: inline-block;
    margin-top: 5px;
}

.sub-headline {
    font-size: 1.5rem;              /* Etwas kleiner als Überschrift */
    color: #2c6b2f;                 /* Gleiche grüne Farbe wie Überschrift */
    text-decoration: none;         /* Kein Unterstrich */
    display: inline-block;
    margin-top: 5px;
}

.sub-headline-link:hover {
    text-decoration: underline;    /* Optional: dezent beim Hover */
    color: #1a471f;                /* dunklerer Farbton beim Hover */
}

/* Tabelle */
.table-wrapper {
    overflow-x: visible;
    margin: 20px 0;
}

.responsive-table, table {
    position: relative;
    z-index: 2; 
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
}

th {
    background-color: #e0e0e0;
    padding: 10px;
    text-align: center;
}

td {
    padding: 10px;
    border-top: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e6f7ff;
}

/* Farbige Spaltenhintergründe */
td:nth-child(1) {
    background-color: rgba(198, 239, 206, 0.6);
    /*border-left: 5px solid #2c6b2f;*/
}
td:nth-child(2) {
    background-color: rgba(221, 235, 247, 0.6);
    /*border-left: 5px solid #005cbf;*/
}
td:nth-child(3) {
    background-color: rgba(252, 229, 205, 0.6);
    /*border-left: 5px solid #cc6600;*/
}
td:nth-child(1):hover {
    background-color: rgba(183, 230, 192, 0.8);
}
td:nth-child(2):hover {
    background-color: rgba(200, 222, 240, 0.8);
}
td:nth-child(3):hover {
    background-color: rgba(250, 214, 180, 0.8);
}

/* Projekte */
.projekt-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.projekt {
    background: rgba(240, 240, 240, 0.8);
    padding: 20px;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 102, 0, 0.4);
    transition: transform 0.3s;
}

.projekt:hover {
    transform: scale(1.05);
}

.projekt a {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.projekt a:hover {
    background: #218838;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: auto;
    z-index: 1;
}

.impressum-box {
    background: rgba(240, 240, 240, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 102, 0, 0.2);
    margin: 20px auto;
    max-width: 900px;
    max-height: 1000px;
    line-height: 1.6;
}

/* Buttons */
.startseite-button,
.login-button {
    display: inline-block;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 102, 0, 0.4);
    width: 100%;
}

.startseite-button:hover,
.login-button:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Login */
.login-container {
    background: rgba(240, 240, 240, 0.9);
    padding: 20px;
    max-width: 360px;
    margin: 0 auto 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 0, 0.3);
    text-align: center;
}

.login-container input {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Filterbereich */
#filter {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px 20px;
    margin: 30px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: sans-serif;
}

#filter h4 {
    margin-bottom: 10px;
    font-size: 1em;
    display: inline-block;
}

#filter label {
    display: inline-block;
    margin: 5px 10px;
    cursor: pointer;
    font-size: 0.95em;
}

#filter input[type="checkbox"] {
    accent-color: #2c6b2f;
    margin-right: 6px;
}

.filter-gruppe {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-gruppe label {
    white-space: nowrap;
    font-size: 0.9em;
    margin: 3px 6px;
}

.filter-checkbox {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    accent-color: #2c6b2f;
}

/* Sonstiges */
.klassen-trennung {
    margin-top: 25px;
    font-weight: bold;
    color: #2c6b2f;
    font-size: 1.1em;
}

.gradient-line {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #2c6b2f, transparent);
    margin: 5px 0 15px 0;
}

.datei {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 6px 0;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Vorschaubild bei Datei */
.preview-container {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.preview-tooltip {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    width: 300px;
    height: 200px;
    border: 1px solid #ccc;
    background: white;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.preview-container:hover .preview-tooltip {
    display: block;
}

/* Kompaktere Eingabefelder */
.login-container input {
    margin: 6px 0;       /* statt 8px → etwas enger */
    padding: 8px 10px;   /* etwas kleineres Padding */
    font-size: 0.95rem;
}

/* Kompakteres Formular */
.login-container {
    padding: 16px;         /* statt 20px */
    max-width: 340px;      /* leicht schmaler */
    margin: 10px auto 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .projekt-container {
        justify-content: center;
    }

    .projekt {
        width: 80%;
        margin-bottom: 20px;
    }

    .footer {
        padding: 10px;
    }

    .table-wrapper table,
    .table-wrapper tr,
    .table-wrapper td,
    .table-wrapper th {
        display: block;
        width: 100%;
    }

    .table-wrapper tr {
        margin-bottom: 2rem;
    }

    .table-wrapper th {
        background-color: #f4f4f4;
        font-weight: bold;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .table-wrapper td {
        padding: 10px;
        background: #fafafa;
        border-bottom: 1px solid #ddd;
    }

    .table-wrapper tr:first-child {
        display: none;
    }

    .table-wrapper td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #2c6b2f;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .projekt {
        width: 100%;
    }

    .footer {
        font-size: 12px;
    }

    .logo-text-container {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .logo-text-container img {
        max-width: 160px;
        height: auto;
    }

    .headline-text {
        font-size: 1.2rem;
        text-align: center;
    }
}
/* Stellt sicher, dass ::before sich korrekt positioniert */
body {
    position: relative;
    z-index: 0;
}

/* === Fix: Overlay hinter dem Suchfeld & Button === */

/* Muster-Hintergrund unter allem halten */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('pattern2.png');
  background-size: 150px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.25;        /* dezentes Grün */
  z-index: 0 !important; /* ganz nach hinten */
  pointer-events: none;
}

/* Alles Wichtige über das Overlay heben */
.content,
.footer,
.logo-text-container,
.logout-wrapper,
.login_container,
.abfrage-formular,
.table-wrapper {
  position: relative;
  z-index: 2 !important;
}

/* Suchfeld optisch klar und klickbar */
.login_container input[type="text"],
.login_container input[type="search"] {
  background: #fff !important;
  color: #000 !important;
  position: relative;
  z-index: 3;
}

/* Der "Suchen"-Button */
.login_container .button {
  background-color: #28a745 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  z-index: 3;
}

.login_container .button:hover {
  background-color: #218838 !important;
  transform: scale(1.05);
}

/* Das kleine ✖-Symbol zum Feldlöschen */
/* #clear-search {
  z-index: 4;
}*/

