:root {
    --primary-color: #f9bd00; /* Handelsblatt yellow accent */
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --bg-glass: rgba(20, 20, 23, 0.7);
    --bg-glass-hover: rgba(30, 30, 35, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur-amt: blur(16px);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #0a0a0c;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(249, 189, 0, 0.5);
}

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

/* Background Carousel */
.background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #000;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s linear;
    transform: scale(1.05);
}

.bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.photo-caption {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.photo-caption.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    .photo-caption { display: none; }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-amt);
    -webkit-backdrop-filter: var(--blur-amt);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    padding: 40px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
}

nav a {
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.ig-link {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(249, 189, 0, 0.3);
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* About Section */
.about-section {
    padding: 100px 0 0 0;
}

.about-panel {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.8;
}

.portrait {
    width: 180px;
    height: 180px;
    min-width: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(249, 189, 0, 0.3);
}

@media (max-width: 600px) {
    .about-panel {
        flex-direction: column;
        text-align: center;
    }
}

/* Articles Section */
.articles-section {
    padding: 100px 0;
    min-height: 100vh;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 25%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-amt);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    background: var(--bg-glass-hover);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.article-teaser {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 25px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.article-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.article-card:hover .article-link::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-panel {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    background: #050505;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

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

.admin-link {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .hero-content {
        margin: 0 15px;
        padding: 25px 20px;
    }

    .articles-grid { grid-template-columns: 1fr; }
    
    .header-content { flex-direction: column; gap: 15px; }
    nav a { margin: 0 10px; }
    .footer-content { flex-direction: column; gap: 15px; }
}
