/* Global Styles */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-orange: #e07a18;
    --border-color: #2a2a2a;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Typography & Logo */
.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-charlie {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.6rem;
    color: #ffffff;
}

.logo-deluxe {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.6rem;
    color: #ffffff;
}

.logo-subline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-top: 4px;
    font-weight: 300;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #121212 70%);
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
    font-weight: 300;
}

.hero-title .highlight {
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #e0e0e0;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Sections */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.portfolio-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: #444;
}

.card-image-placeholder {
    height: 240px;
    background-color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.card-info {
    padding: 24px;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Thumbnail Cards & Seitenverhältnisse */
.thumb-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumb-card:hover {
    transform: translateY(-6px);
    border-color: #444;
}

/* Hochformat (Portrait) */
.thumb-card.portrait {
    aspect-ratio: 2 / 3;
}

/* Querformat (Landscape) */
.thumb-card.landscape {
    aspect-ratio: 3 / 2;
}

/* Standard-Fallback falls keine Klasse angegeben ist */
.thumb-card:not(.portrait):not(.landscape) {
    aspect-ratio: 4 / 5;
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Contact & Footer */
.contact-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.footer {
    padding: 40px 0;
    background-color: #0d0d0d;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

* ABOUT SECTION BACKGROUND OVERLAY */
.about-section {
    position: relative;
    overflow: hidden;
    /* Optional: dunkler Hintergrund falls das Bild lädt */
    background-color: #0f0f11; 
}

.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/kaiBG.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* STÄRKE DER TRANSPARENZ: 
       0.12 entspricht 12% Sichtbarkeit (sehr dezent & edel). 
       Du kannst den Wert zwischen 0.05 und 0.25 anpassen. */
    opacity: 0.22; 
    
    /* Macht das Bild schwarz-weiß für einen stimmigeren Look (optional) */
    filter: grayscale(100%); 
    
    pointer-events: none; /* Verhindert Interaktionsstörungen */
    z-index: 1;
}


/* About Section Styling */
.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: -30px;
    margin-bottom: 8px;
}

.about-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 48px;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.about-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* LIGHTBOX STYLES */
.lightbox {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* WIRD DURCH JAVASCRIPT AKTIVIERT */
.lightbox.active {
    display: flex; 
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1rem;
}

/* Close & Navigation Buttons */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 16px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .footer-container { flex-direction: column; gap: 16px; text-align: center; }
}