@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
 --vp-blue: #0056A3;
 --vp-blue-dark: #003e75;
 --vp-blue-light: #e8f1fa;
 --vp-yellow: #FFD600;
 --vp-yellow-hover: #e5c000;
 --vp-yellow-light: #fffbeb;
 --bg-main: #f4f6f9;
 --bg-card: #ffffff;
 --text-main: #1c1e21;
 --text-muted: #606770;
 --border-color: #dadde1;
 
 --font-heading: 'Outfit', sans-serif;
 --font-body: 'Inter', sans-serif;
 
 --shadow-sm: 0 2px 8px rgba(0, 86, 163, 0.05);
 --shadow-md: 0 10px 25px rgba(0, 86, 163, 0.08);
 --shadow-lg: 0 20px 40px rgba(0, 86, 163, 0.12);
 --radius-sm: 6px;
 --radius-md: 12px;
 --radius-lg: 20px;
 
 --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
 font-family: var(--font-body);
 color: var(--text-main);
 background-color: var(--bg-main);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 font-weight: 700;
 color: var(--vp-blue-dark);
 line-height: 1.25;
}

a {
 color: var(--vp-blue);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--vp-blue-dark);
}

/* --- HEADER & NAVIGATION --- */
header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(10px);
 border-bottom: 4px solid var(--vp-yellow);
 box-shadow: var(--shadow-sm);
 z-index: 1000;
 transition: var(--transition);
}

.nav-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 15px 20px;
}

.logo {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: var(--font-heading);
 font-size: 20px;
 font-weight: 800;
 color: var(--vp-blue);
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.logo span {
 color: var(--text-main);
 font-weight: 400;
}

nav ul {
 display: flex;
 list-style: none;
 gap: 30px;
}

nav a {
 font-weight: 600;
 font-size: 15px;
 color: var(--text-main);
 padding: 8px 0;
 position: relative;
}

nav a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--vp-blue);
 transition: var(--transition);
}

nav a:hover {
 color: var(--vp-blue);
}

nav a:hover::after,
nav a.active::after {
 width: 100%;
}

nav a.active {
 color: var(--vp-blue);
}

/* --- HERO SECTION --- */
.hero {
 background: linear-gradient(135deg, var(--vp-blue) 0%, var(--vp-blue-dark) 100%);
 color: white;
 padding: 120px 20px 60px;
 text-align: center;
 position: relative;
 overflow: hidden;
}

.hero::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 height: 40px;
 background: var(--bg-main);
 clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
 z-index: 10;
}

.hero h1 {
 color: white;
 font-size: 42px;
 margin-bottom: 15px;
 letter-spacing: -0.5px;
 animation: fadeInDown 0.6s ease;
}

.hero p {
 font-size: 18px;
 color: rgba(255, 255, 255, 0.85);
 margin-bottom: 25px;
 animation: fadeInUp 0.6s ease;
}

.hero-badge {
 display: inline-block;
 background: var(--vp-yellow);
 color: var(--vp-blue-dark);
 font-weight: 700;
 padding: 6px 15px;
 border-radius: 30px;
 font-size: 12px;
 text-transform: uppercase;
 margin-bottom: 15px;
 letter-spacing: 1px;
}

/* --- MAIN CONTAINER --- */
main {
 max-width: 1200px;
 margin: 0 auto;
 padding: 40px 20px;
 min-height: calc(100vh - 400px);
}

/* --- BLOG SYSTEM (INFINITE SCROLL) --- */
.blog-feed {
 max-width: 900px;
 margin: 0 auto;
 display: flex;
 flex-direction: column;
 gap: 30px;
}

.blog-card {
 background: var(--bg-card);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 border: 1px solid var(--border-color);
 overflow: hidden;
 transition: var(--transition);
 animation: fadeInUp 0.5s ease;
 display: flex;
 flex-direction: row;
 align-items: stretch;
}

.blog-card:hover {
 transform: translateY(-4px);
 box-shadow: var(--shadow-md);
}

.blog-card-image {
 width: 280px;
 min-width: 280px;
 height: 280px;
 overflow: hidden;
 position: relative;
 aspect-ratio: 1 / 1;
 background-color: #f8f9fa;
 display: flex;
 align-items: center;
 justify-content: center;
}

.blog-card-image img {
 width: 100%;
 height: 100%;
 object-fit: contain;
 transition: var(--transition);
 cursor: zoom-in;
}

.blog-card:hover .blog-card-image img {
 transform: scale(1.02);
}

.blog-card-image.has-video {
 aspect-ratio: auto;
 background-color: #0b1e36;
 display: flex;
 align-items: center;
 justify-content: center;
}

.blog-card-image.has-video video {
 width: 100%;
 height: 100%;
 max-height: 100%;
 object-fit: contain;
}

.blog-card-content {
 padding: 30px;
 flex: 1;
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.blog-card-meta {
 display: flex;
 align-items: center;
 gap: 15px;
 font-size: 13px;
 color: var(--text-muted);
 font-weight: 500;
 margin-bottom: 10px;
}

.blog-card-meta .date-badge {
 background-color: var(--vp-blue-light);
 color: var(--vp-blue);
 padding: 3px 8px;
 border-radius: 4px;
 font-weight: 600;
}

.blog-card h2 {
 font-size: 22px;
 margin-bottom: 12px;
 color: var(--vp-blue-dark);
 font-weight: 800;
 transition: var(--transition);
}

.blog-card h2:hover {
 color: var(--vp-blue);
}

.blog-card-excerpt {
 font-size: 15px;
 line-height: 1.6;
 color: var(--text-muted);
 margin-bottom: 15px;
}

.blog-card-text {
 font-size: 15px;
 line-height: 1.7;
 color: #374151;
 white-space: pre-wrap;
 margin-bottom: 15px;
 animation: fadeInText 0.4s ease;
}

.blog-card-actions {
 display: flex;
 justify-content: space-between;
 align-items: center;
 width: 100%;
 margin-top: auto; /* Pushes buttons to the bottom of the card content */
 padding-top: 20px;
}

.btn-readmore {
 background: none;
 border: none;
 color: var(--vp-blue);
 font-family: var(--font-heading);
 font-size: 14px;
 font-weight: 700;
 cursor: pointer;
 padding: 0;
 display: inline-flex;
 align-items: center;
 gap: 5px;
 transition: var(--transition);
}

.btn-readmore:hover {
 color: var(--vp-blue-dark);
 transform: translateX(3px);
}

.btn-share {
 background: transparent;
 border: 1px solid #cbd5e1;
 color: #64748b;
 padding: 8px 16px;
 border-radius: 6px;
 font-weight: 600;
 cursor: pointer;
 transition: var(--transition);
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-size: 13px;
}

.btn-share:hover {
 background-color: #f8fafc;
 color: var(--vp-blue);
 border-color: var(--vp-blue-light);
}

.hidden {
 display: none !important;
}

@keyframes fadeInText {
 from { opacity: 0; transform: translateY(10px); }
 to { opacity: 1; transform: translateY(0); }
}

/* Response Media Query inside stylesheet for mobile */
@media (max-width: 767px) {
 .blog-card {
 flex-direction: column;
 }
 .blog-card-image {
 width: 100%;
 height: auto;
 max-height: none;
 aspect-ratio: 1 / 1;
 }
 .blog-card-image.has-video {
 aspect-ratio: auto;
 height: auto;
 }
 .blog-card-content {
 padding: 20px;
 }
}

/* --- STATIC PAGES --- */
.static-page {
 background: var(--bg-card);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 padding: 40px;
 max-width: 900px;
 margin: 0 auto;
}

.static-page h2 {
 font-size: 28px;
 margin-bottom: 20px;
 border-bottom: 2px solid var(--vp-blue-light);
 padding-bottom: 10px;
}

.static-page p {
 margin-bottom: 20px;
 font-size: 16px;
 line-height: 1.8;
}

/* --- BOARD MEMBERS GRID --- */
.member-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 30px;
 margin-top: 30px;
}

.member-card {
 background: var(--bg-card);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 transition: var(--transition);
 border-bottom: 4px solid var(--border-color);
 text-align: center;
}

.member-card:hover {
 transform: translateY(-6px);
 box-shadow: var(--shadow-lg);
 border-bottom-color: var(--vp-yellow);
}

.member-image {
 width: 100%;
 height: 320px;
 background-color: #e5e7eb;
 position: relative;
 overflow: hidden;
}

.member-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center 15%;
 transition: var(--transition);
}

.member-card:hover .member-image img {
 transform: scale(1.04);
}

.member-info {
 padding: 20px;
}

.member-info h3 {
 font-size: 20px;
 margin-bottom: 6px;
}

.member-info p {
 color: var(--vp-blue);
 font-weight: 600;
 font-size: 14px;
}

/* --- LOADING SPINNER & STATUS --- */
.load-more-container {
 display: flex;
 justify-content: center;
 align-items: center;
 margin-top: 40px;
 margin-bottom: 20px;
 min-height: 50px;
}

.btn-load-more {
 background: var(--vp-blue);
 color: white;
 border: none;
 font-family: var(--font-heading);
 font-weight: 700;
 font-size: 15px;
 padding: 12px 35px;
 border-radius: var(--radius-md);
 cursor: pointer;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}

.btn-load-more:hover {
 background: var(--vp-blue-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.btn-load-more:active {
 transform: translateY(0);
}

.btn-load-more.hidden {
 display: none !important;
}

.loading-indicator {
 display: flex;
 justify-content: center;
 align-items: center;
}

.loading-indicator.hidden {
 display: none !important;
}

.spinner {
 display: inline-block;
 width: 40px;
 height: 40px;
 border: 4px solid rgba(0, 86, 163, 0.1);
 border-radius: 50%;
 border-top-color: var(--vp-blue);
 animation: spin 1s ease-in-out infinite;
}

.no-more-posts {
 text-align: center;
 color: var(--text-muted);
 font-weight: 500;
 padding: 20px;
 margin-top: 20px;
 width: 100%;
}

/* --- FOOTER --- */
footer.site-footer {
 background-color: var(--vp-blue-dark);
 color: white;
 padding: 40px 20px;
 text-align: center;
 font-size: 14px;
}

footer.site-footer p {
 margin-bottom: 10px;
 color: rgba(255, 255, 255, 0.7);
}

footer.site-footer a {
 color: var(--vp-yellow);
}

footer.site-footer a:hover {
 color: white;
}

/* --- ANIMATIONS --- */
@keyframes spin {
 to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
 from {
 opacity: 0;
 transform: translateY(20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

@keyframes fadeInDown {
 from {
 opacity: 0;
 transform: translateY(-20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
 .nav-container {
 flex-direction: column;
 gap: 15px;
 }
 
 nav ul {
 gap: 15px;
 }
 
 .hero {
 padding-top: 150px;
 }
 
 .hero h1 {
 font-size: 30px;
 }
 
 .static-page {
 padding: 20px;
 }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
 position: fixed;
 z-index: 1000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(11, 30, 54, 0.95);
 display: flex;
 align-items: center;
 justify-content: center;
 opacity: 0;
 transition: opacity 0.3s ease;
 pointer-events: none;
}

.lightbox-modal.active {
 opacity: 1;
 pointer-events: auto;
}

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

.lightbox-content img {
 max-width: 100%;
 max-height: 90vh;
 border-radius: 8px;
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
 object-fit: contain;
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: #fff;
 font-size: 50px;
 font-weight: bold;
 cursor: pointer;
 transition: var(--transition);
 user-select: none;
}

.lightbox-close:hover {
 color: var(--vp-blue-light);
 transform: scale(1.1);
}

/* --- STAD TNACHRICHTEN GRID --- */
.newspaper-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
 gap: 30px;
 max-width: 1200px;
 margin: 40px auto;
 padding: 0 20px;
}

.newspaper-card {
 background: var(--bg-card);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 position: relative;
 display: flex;
 flex-direction: column;
 transition: var(--transition);
 border: 1px solid #e2e8f0;
}

.newspaper-card:hover {
 transform: translateY(-4px);
 box-shadow: var(--shadow-md);
 border-color: var(--vp-blue-light);
}

.newspaper-badge {
 position: absolute;
 top: 15px;
 left: 15px;
 background-color: var(--vp-blue);
 color: white;
 padding: 6px 12px;
 border-radius: 20px;
 font-size: 11px;
 font-weight: 700;
 text-transform: uppercase;
 z-index: 10;
}

.newspaper-icon-wrapper {
 background-color: #0b1e36;
 height: 180px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 color: white;
 position: relative;
}

.newspaper-icon-wrapper svg {
 width: 60px;
 height: 60px;
 color: var(--vp-blue-light);
 margin-bottom: 10px;
}

.newspaper-year {
 font-size: 24px;
 font-weight: 800;
 font-family: var(--font-heading);
 letter-spacing: 1px;
}

.newspaper-info {
 padding: 25px;
 display: flex;
 flex-direction: column;
 flex: 1;
}

.newspaper-info h3 {
 font-size: 20px;
 color: var(--text-dark);
 margin-bottom: 5px;
}

.newspaper-info .subtitle {
 color: var(--vp-blue);
 font-weight: 700;
 font-size: 13px;
 text-transform: uppercase;
 margin-bottom: 15px;
 letter-spacing: 0.5px;
}

.newspaper-info .description {
 font-size: 14px;
 color: #64748b;
 line-height: 1.6;
 margin-bottom: 20px;
 flex: 1;
}

.newspaper-info .topics {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin-bottom: 25px;
}

.newspaper-info .topics span {
 background-color: #f1f5f9;
 color: #475569;
 padding: 4px 8px;
 border-radius: 4px;
 font-size: 11px;
 font-weight: 600;
}

.btn-download {
 background: var(--vp-blue);
 color: white;
 text-decoration: none;
 padding: 12px 20px;
 border-radius: 6px;
 font-weight: 600;
 font-size: 14px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 transition: var(--transition);
}

.btn-download:hover {
 background-color: var(--vp-blue-dark);
 box-shadow: 0 4px 12px rgba(0, 48, 135, 0.2);
}
