/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
}

/* Header */
header {
    background: linear-gradient(135deg, #1E1E1E, #292929);
    padding: 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 28px;
    color: #00ffcc;
    text-shadow: 0px 0px 10px #00ffcc;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    background-color: #00ffcc;
    color: #121212;
}

/* Main Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    padding: 20px;
}

.welcome {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Tables Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #444;
}

th {
    background-color: #292929;
    color: #ffffff;
}

/* Crown Styling */
.crown {
    font-weight: bold;
    color: #FFD700;
}

/* Difficulty Colors */
.difficulty.sehr-leicht { background-color: #4CAF50; color: white; }
.difficulty.sehr-verstaendlich { background-color: #4CAF50; color: white; }
.difficulty.leicht { background-color: #8BC34A; color: black; }
.difficulty.verstaendlich { background-color: #FFC107; color: black; }
.difficulty.mittel { background-color: #FF9800; color: black; }
.difficulty.eher-unverstaendlich { background-color: #ff7300; color: black; }
.difficulty.schwer { background-color: #F44336; color: white; }
.difficulty.sehr-schwer { background-color: #B71C1C; color: white; }
.difficulty.sehr-unverstaendlich { background-color: #FFC107; color: black; } /* Updated color for 'Verständlich' */

/* Importance Colors */
.importance.unwichtig { background-color: #BDBDBD; color: black; }
.importance.eher-unwichtig { background-color: #FFC107; color: black; }
.importance.normal { background-color: #64B5F6; color: white; }
.importance.wichtig { background-color: #1976D2; color: white; }
.importance.sehr-wichtig { background-color: #D32F2F; color: white; }

/* Kindness Colors */
.kindness.unfreundlich { background-color: #F44336; color: white; }
.kindness.eher-unfreundlich { background-color: #FF9800; color: black; }
.kindness.nett { background-color: #8BC34A; color: black; }
.kindness.sehr-nett { background-color: #4CAF50; color: white; }

/* Intelligence Colors */
.intelligence.benutzt-chatgpt { background-color: #9E9E9E; color: black; }
.intelligence.muss-nachforschen { background-color: #FFC107; color: black; }
.intelligence.schlau { background-color: #64B5F6; color: white; }
.intelligence.sehr-schlau { background-color: #1976D2; color: white; }

/* Hover Effect for Hidden Links */
.hidden-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.hidden-link:hover {
    color: #00ffcc;
    text-shadow: 0px 0px 10px #00ffcc;
}

/* Footer */
footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    background: rgba(32, 32, 32, 0.9);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0px 0px 10px rgba(0, 255, 204, 0.3);
}

.wiss-link {
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.wiss-link:hover {
    color: #00ffcc;
    text-shadow: 0px 0px 10px #00ffcc;
}

/* Tools Cards Styling */
.tools-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tool-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.tool-card:hover {
    transform: scale(1.05);
}

/* For modules with Spick (yellow glow) */
.tool-card.spick {
    box-shadow: 0 0 5px 2px rgba(255, 235, 59, 0.5); /* Softer yellow glow by default */
}

/* Stronger yellow glow when hovering on modules with a Spick */
.tool-card.spick:hover {
    box-shadow: 0 0 10px 4px rgba(255, 235, 59, 0.8); /* Stronger yellow glow on hover */
}

/* For modules without Spick (green glow) */
.tool-card:not(.spick):hover {
    box-shadow: 0 0 8px 3px rgba(76, 175, 80, 0.6); /* Green glow when hovered */
}

.tool-card h3 {
    font-size: 20px;
    color: #00ffcc;
    margin-bottom: 10px;
    font-weight: bold;
}

.tool-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.tool-card a {
    text-decoration: none;
    color: #00ffcc;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.tool-card a:hover {
    color: #ffffff;
}

/* Search Bar Styling */
.search-documents, .search-tools {
    text-align: center;
    margin-top: 20px;
}

.search-documents input, .search-tools input {
    padding: 15px; /* Increase padding for more space */
    width: 100%; /* Make it full width */
    max-width: 800px; /* Set a maximum width */
    border: 2px solid #444; /* Adjust the border for visibility */
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 18px; /* Increase font size */
    box-sizing: border-box; /* Ensure the padding is included in width calculation */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

.search-documents input:focus, .search-tools input:focus {
    outline: none;
    border-color: #00ffcc; /* Highlight border on focus */
    box-shadow: 0 0 10px #00ffcc; /* Add glowing effect */
}

/* Stylish Download Button */
.download-btn {
    text-decoration: none;
    color: #00ffcc;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #00ffcc;
    transition: all 0.3s ease-in-out;
    display: inline-block; /* Ensure it behaves like a button */
    margin-top: 10px; /* Add space between the button and text */
}

.download-btn:hover {
    background-color: #00ffcc;
    color: #121212;
    box-shadow: 0px 0px 10px #00ffcc;
}

/* Team Section Styling */
.team-section {
    margin-top: 30px;
}

.team-member {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.team-member h3 {
    font-size: 22px;
    color: #00ffcc;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Kontakt Section Styling */
.contact-section {
    margin-top: 30px;
    text-align: center;
}

.contact-section p {
    font-size: 16px;
    color: #e0e0e0;
}

.contact-section ul {
    list-style: none;
    padding: 0;
}

.contact-section ul li {
    margin: 10px 0;
}

.contact-section ul li a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
}

.contact-section ul li a:hover {
    text-decoration: underline;
}

.search-praktikum {
    text-align: center;
    margin-bottom: 20px;
}

.search-praktikum input {
    width: 80%;
    max-width: 600px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #00ffcc;
    background-color: #1e1e1e;
    color: #e0e0e0;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.search-praktikum input:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
}

/* Popup-Styling */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-content {
    background: #1e1e1e;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}

/* "Achtung" fett und rot */
.popup-content h2 {
    color: #ff4444;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Button Styling */
.popup-button {
    background: #555;
    color: #121212;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.popup-button:enabled {
    cursor: pointer;
}

.popup-button:hover:enabled {
    background: #ffffff;
    color: #121212;
}

/* Layout für Tipps-Seite */
.tipps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Suchleiste für Tipps */
.search-tipps {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.search-tipps input {
    width: 100%;
    padding: 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

.search-tipps input:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
}

/* Grid-Layout für Tipp-Karten */
.tipps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Einzelne Tipp-Karte */
.tipps-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.tipps-card:hover {
    transform: scale(1.05);
}

/* Überschriften in Tipp-Karten */
.tipps-card h3 {
    font-size: 20px;
    color: #00ffcc;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Beschreibungstext in den Karten */
.tipps-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Animation für Hover-Effekt */
.tipps-card:hover {
    box-shadow: 0 0 8px 3px rgba(76, 175, 80, 0.6);
}

/* Gleicher Link-Stil für Tipp-Karten wie bei Tool-Karten */
.tipps-card h3 a {
    text-decoration: none;
    color: #00ffcc;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.tipps-card h3 a:hover {
    color: #ffffff;
}

/* Lehrer Disclaimer */
.disclaimer {
    font-size: 0.9em;
    color: #d9534f;
    font-style: italic;
    margin-top: 10px;
}

/* For modules marked as not in use (red glow) */
.tool-card.not-inuse {
    box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.5); /* Weicher roter Glow */
}

.tool-card.not-inuse:hover {
    box-shadow: 0 0 10px 4px rgba(255, 0, 0, 0.8); /* Stärkerer Glow beim Hover */
}

/* Was luegsch da ihne du Vogel au hoffnige usse finde oder */
