/* GRUNDLAGEN & TYPOGRAFIE */
/* FARB-VARIABLEN (Standard: Heller Modus) */
:root {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --card-bg: white;
    --header-bg: #2c3e50;
    --link-color: #3498db;
    --card-shadow: rgba(0,0,0,0.05);
}

/* FARB-VARIABLEN (Dunkler Modus) */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --header-bg: #111;
    --link-color: #5dade2;
    --card-shadow: rgba(0,0,0,0.3);
}
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sorgt dafür, dass der Footer immer ganz unten bleibt */
transition: background-color 0.3s, color 0.3s; /* Sorgt für einen weichen Übergang! */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

/* HAUPTBEREICH & GRID */
main.container {
    padding-top: 50px;
    padding-bottom: 60px;
    flex: 1; /* Schiebt den Footer nach unten, wenn wenig Text da ist */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* KARTEN-DESIGN */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--card-shadow);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: 40px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

/* AUTOMATISCHE DOWNLOAD-BUTTONS & LINKS */
.download-btn {
    display: inline-block;
    background-color: #27ae60; /* Ein schickes Download-Grün */
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.text-link {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: bold;
}

.text-link:hover {
    text-decoration: none;
}

/* LIGHTBOX (BILD-LUPE) */
.lightbox-overlay {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    z-index: 9999; /* Legt sich über absolut ALLES (auch den Header) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Ein schickes, tiefes Schwarz (leicht transparent) */
    align-items: center;
    justify-content: center;
    cursor: zoom-out; /* Zeigt eine Lupe mit Minus an */
}

/* Diese Klasse schalten wir per JavaScript ein und aus */
.lightbox-overlay.active {
    display: flex; 
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh; /* Verhindert, dass hochkante Bilder aus dem Bildschirm ragen */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease; /* Ein weicher Aufklapp-Effekt */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Damit die Leute wissen, dass sie klicken können */
.zoomable-image {
	cursor: pointer;
   	touch-action: manipulation; /* Optimiert die Reaktion auf Finger-Tipps */
    	-webkit-tap-highlight-color: transparent; /* Verhindert den hässlichen grauen Kasten beim Tippen */
}

.zoomable-image:hover {
    transform: scale(1.02); /* Das Bild wächst beim Drüberfahren minimal */
}