/* Grundlegende Einstellungen & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typografie */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utility Klassen */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-light { background-color: #f9f9f9; }
.bg-dark { background-color: #222; color: #fff; }

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c5a059; /* Gold-Ton für klassische Eleganz */
    margin: 15px auto 0;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Ensure anchor targets (e.g. #home) are not hidden behind the sticky navbar */
html {
    scroll-padding-top: 80px; /* adjust if your navbar height changes */
}

@media (max-width: 768px) {
    html { scroll-padding-top: 64px; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #c5a059;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('pictures/Bild1.jpg'); /* Lokal: pictures/Bild1.jpg */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c5a059;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn:hover {
    background: #b08d45;
}

/* Über mich */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Projects section refinements */
#projects .section-title {
    font-size: 2.25rem;
    margin-bottom: 36px;
}

.project-item {
    margin-bottom: 48px;
}

.project-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
}

.project-item p {
    margin-bottom: 18px;
    color: #444;
}

.album-grid {
    margin-top: 18px;
}

.album-card h4 {
    font-size: 1rem;
    margin-top: 10px;
}

.video-section h4 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.video-grid { gap: 18px; }

.video-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #222;
}
.video-caption a { color: inherit; text-decoration: none; }
.video-caption a:hover { color: #c5a059; }


.video-section + .video-section { margin-top: 36px; }

.divider { display: none; }

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-style: italic;
}

.about-image { display: flex; align-items: center; justify-content: center; }
.about-image .about-portrait {
    width: auto;
    max-width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 6px;
}

/* Projekte */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* When an album-grid contains a single album, keep the tile width consistent */
.album-grid.album-single {
    /* Create three equal columns so the single tile occupies the first column
       and appears left-aligned with the same width as other tiles */
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 30px;
}
.album-grid.album-single .album-card {
    margin: 0;
    max-width: none;
}

@media (max-width: 700px) {
    .album-grid.album-single { grid-template-columns: 1fr; }
}

.album-card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.album-cover {
    width: 100%;
    height: 250px;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Spotify embed styling */
.album-card .spotify-embed {
    width: 100%;
    height: 380px; /* use desktop height everywhere to avoid collapsed tiles */
    border: 0;
    border-radius: 6px;
    margin-bottom: 12px;
    display: block;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 60px 0;
}

/* Kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Center contact info when only the contact block is present */
.contact-wrapper .contact-info {
    grid-column: 1 / -1;
    margin: 0 auto;
    text-align: center;
    max-width: 700px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    font-family: inherit;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #c5a059;
}

.btn-submit {
    align-self: flex-start;
    border: none;
}

/* Lightweight YouTube placeholder (loads iframe on click) */
.video-wrapper { width: 100%; margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }

@media (max-width: 700px) {
    .video-grid { grid-template-columns: 1fr; }
}
.yt-lite {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.yt-lite::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: block;
}
.yt-lite::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-42%, -50%);
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}
.yt-iframe-wrap { width: 100%; height: 0; padding-bottom: 56.25%; position: relative; }
.yt-iframe-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* Footer */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Hier könnte man noch ein Burger-Menü einbauen */
    .navbar .container { justify-content: center; }
}