/* ========================================
   SENIORENBUND PÖRTSCHACH - HAUPTSTYLE
   Modern, Responsive, Seniorenfreundlich
   ======================================== */

/* Google Font Import - Lora (elegant, gut lesbar) + Source Sans 3 */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* CSS Variables für einfache Anpassung */
:root {
    --primary-color: #2d5a27;      /* Seniorenbund Grün */
    --primary-light: #4a8c41;
    --primary-dark: #1e3d1a;
    --secondary-color: #c9a227;    /* Gold/Gelb */
    --secondary-light: #e6c34d;
    --accent-color: #b8860b;       /* Dunkleres Gold statt Blau */
    --link-color: #b8860b;         /* Gold für Links */
    --link-hover: #8b6914;         /* Dunkleres Gold beim Hover */
    --text-color: #2c3e2d;         /* Leicht grünlicher Text */
    --text-light: #5a6b5a;
    --bg-light: #f7f9f7;           /* Leicht grünlicher Hintergrund */
    --bg-white: #ffffff;
    --border-color: #d4ddd4;
    --shadow: 0 2px 12px rgba(45, 90, 39, 0.08);
    --shadow-lg: 0 8px 30px rgba(45, 90, 39, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Schriften */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    
    /* Seniorenfreundliche Schriftgrößen */
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 26px;
    --font-size-xxl: 36px;
    --font-size-sm: 16px;
    --line-height: 1.75;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height);
    color: var(--text-color);
    background: linear-gradient(135deg, #f7f9f7 0%, #e8ede8 100%);
    min-height: 100vh;
}

/* Links - Goldfarbe statt Blau */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Überschriften mit Serif-Font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

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

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

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: rgba(0,0,0,0.2);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-subtitle {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.header-wappen {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Navigation */
.main-nav {
    padding: 0;
}

.nav-toggle {
    display: none;
    background: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    padding: 12px 20px;
    font-size: var(--font-size-lg);
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: 600;
}

.nav-toggle:hover {
    background: var(--secondary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
}

.nav-menu a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: var(--font-size-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

/* ========================================
   HERO SECTION (Startseite)
   ======================================== */
.hero {
    background: linear-gradient(rgba(45, 90, 39, 0.85), rgba(30, 61, 26, 0.9)),
                url('../images/poertschach-hero.jpg') center/cover;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    font-size: var(--font-size-xxl);
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title-icon {
    font-size: 1.2em;
}

/* Content Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 25px;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 20px;
}

.card-header h3 {
    font-size: var(--font-size-lg);
    margin: 0;
}

.card-body {
    padding: 30px 35px;
}

.card-body p {
    margin-bottom: 15px;
}

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

.card-body ul, .card-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.card-body li {
    margin-bottom: 8px;
}

.card-footer {
    padding: 15px 25px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Berichte Liste */
.bericht-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.bericht-item:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.bericht-datum {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
}

.bericht-datum .tag {
    font-size: var(--font-size-xxl);
    display: block;
}

.bericht-datum .monat {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: var(--text-light);
}

.bericht-datum .jahr {
    font-size: 14px;
    display: block;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 2px;
}

.bericht-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 8px;
    color: var(--text-color);
}

.bericht-content p {
    color: var(--text-light);
    margin: 0;
}

/* Formatierter Bericht-Text (aus WYSIWYG) */
.bericht-text {
    color: var(--text-color);
    line-height: 1.7;
}

.bericht-text p {
    margin-bottom: 12px;
    color: var(--text-color);
}

.bericht-text p:last-child {
    margin-bottom: 0;
}

.bericht-text strong, 
.bericht-text b {
    color: var(--primary-dark);
}

.bericht-text ul, 
.bericht-text ol {
    margin: 10px 0;
    padding-left: 25px;
}

.bericht-text li {
    margin-bottom: 5px;
}

.bericht-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

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

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

/* ========================================
   VORSTAND TABELLE
   ======================================== */
.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vorstand-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.vorstand-card:hover {
    box-shadow: var(--shadow-lg);
}

.vorstand-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.vorstand-card h4 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: 5px;
}

.vorstand-card .funktion {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.vorstand-card .kontakt {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.vorstand-card .kontakt a {
    color: var(--accent-color);
    text-decoration: none;
}

.vorstand-card .kontakt a:hover {
    text-decoration: underline;
}

/* Vorstand Tabelle (Alternative) */
.vorstand-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.vorstand-table th,
.vorstand-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.vorstand-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.vorstand-table tr:nth-child(even) {
    background: var(--bg-light);
}

.vorstand-table tr:hover {
    background: #e8f5e9;
}

.vorstand-table a {
    color: var(--accent-color);
    text-decoration: none;
}

.vorstand-table a:hover {
    text-decoration: underline;
}

/* ========================================
   GALERIE
   ======================================== */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.galerie-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galerie-item:hover img {
    transform: scale(1.05);
}

.galerie-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.galerie-item:hover .overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================
   SIDEBAR (für Archiv)
   ======================================== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 5px;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Archiv Content */
.archiv-content {
    min-height: 400px;
}

.archiv-content h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1f0a 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: var(--font-size-lg);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-section a {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-light) !important;
    text-decoration: underline;
}

.footer-sponsors {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-sponsors a,
.footer-sponsors .sponsor-no-link {
    display: block;
}

.footer-sponsors img {
    width: 170px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius);
    background: white;
    padding: 8px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }

.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: var(--font-size-base);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ankündigungen Box */
.ankuendigung-box {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

.ankuendigung-box h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ankuendigung-item {
    padding: 15px 0;
    border-bottom: 1px dashed var(--secondary-color);
}

.ankuendigung-item:last-child {
    border-bottom: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Responsive Tabellen-Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Vorstand-Karten (ersetzt Tabelle auf Mobile) */
.vorstand-mobile {
    display: none;
}

.vorstand-mobile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.vorstand-mobile-card .funktion {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.vorstand-mobile-card .name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vorstand-mobile-card .kontakt {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.vorstand-mobile-card .kontakt a {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
}

.vorstand-mobile-card .kontakt a:hover {
    text-decoration: underline;
}

/* Responsive Grid Helper */
.responsive-grid {
    display: grid;
    gap: 30px;
}

.responsive-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.responsive-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.responsive-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 992px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 17px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        padding: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-title {
        font-size: var(--font-size-lg);
    }
    
    .header-subtitle {
        display: none;
    }
    
    /* Bericht-Items responsiv */
    .bericht-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .bericht-datum {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: baseline;
    }
    
    .bericht-datum .tag {
        font-size: var(--font-size-xl);
    }
    
    .bericht-actions {
        justify-content: center;
    }
    
    /* Grids responsiv */
    .vorstand-grid {
        grid-template-columns: 1fr;
    }
    
    .responsive-grid-2,
    .responsive-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-sponsors {
        align-items: center;
    }
    
    /* Vorstand: Tabelle verstecken, Karten zeigen */
    .vorstand-table {
        display: none;
    }
    
    .vorstand-mobile {
        display: block;
    }
    
    /* Inline Grid-Styles überschreiben */
    .card-body > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    .card-body > div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 20px;
    }
    
    /* Page Title kleiner */
    .page-title {
        font-size: var(--font-size-xl);
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .page-title-icon {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    /* Buttons volle Breite */
    .btn:not(.btn-sm) {
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Bericht Actions nebeneinander */
    .bericht-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bericht-actions .btn {
        width: auto;
        flex: 1;
        min-width: 100px;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Cards weniger Padding */
    .card-body {
        padding: 15px;
    }
    
    /* Ankündigungs-Box kompakter */
    .ankuendigung-box {
        padding: 15px;
    }
    
    /* Lightbox Navigation größer */
    .lightbox-nav {
        padding: 15px;
        font-size: 28px;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 90, 39, 0.95);
    color: white;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-notice .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice p {
    margin: 0;
}

/* Header responsive Verbesserungen */
@media (max-width: 768px) {
    .header-top .container {
        justify-content: center;
        text-align: center;
    }
    
    .header-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .header-wappen {
        display: none;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .nav-toggle,
    #scrollToTop,
    .cookie-notice {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    body {
        background: white;
    }
    
    .vorstand-mobile {
        display: block !important;
    }
    
    .vorstand-table {
        display: none !important;
    }
}

