:root {
    --primary: #ac6a6a;
    --accent: #717f80;
    --accent-hover: #c2314d;
    --gold: #f0a500;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #110e0e;
    --text-light: #3f3f3f;
    --border: #e8e5e1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

textarea {
  resize: none;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}
.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    white-space: nowrap;
}
.logo-text span {
    color: var(--gold);
}

.main-nav a {
    color: #ddd;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.main-nav a.active {
    background: var(--accent);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.3s ease;
}
.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.hamburger:hover {
    transform: scale(1.1);
}
.hamburger:active {
    transform: scale(0.95);
}

/* ============ HAUPTINHALT ============ */
.page-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    width: 100%;
}

/* ============ STARTSEITE ============ */
.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Hero-Beitrag */
.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.hero-image {
    background: linear-gradient(135deg, #2c2c54, #1a1a2e);
    min-height: 280px;
    position: relative;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.hero-card:hover .hero-image img {
    transform: scale(1.05);
}
.hero-image .badge-top {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.hero-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-body .meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-body h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.3;
}
.hero-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.btn-read {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-read:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(233, 68, 96, 0.35);
    transform: translateY(-1px);
}

/* Beitrags-Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.post-card .card-img {
    height: 160px;
    background: linear-gradient(135deg, #3d3d6b, #222244);
    overflow: hidden;
    position: relative;
}
.post-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.post-card:hover .card-img img {
    transform: scale(1.08);
}
.card-img .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.post-card .card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body .meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 6px;
}
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
    line-height: 1.35;
}
.card-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    flex: 1;
}
.card-body .read-more {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.card-body .read-more:hover {
    color: var(--accent-hover);
}

/* ============ ARTIKELSEITE ============ */
.article-page {
    max-width: 780px;
    margin: 0 auto;
}

.artikel-bild{
    width: 100%;
}

.article-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.article-page .back-link:hover {
    color: var(--accent-hover);
    gap: 10px;
}
.article-header {
    margin-bottom: 28px;
}
.article-header .category-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 10px;
}
.article-header .article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.article-featured-image {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #1a1a3e, #2d2d5e);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}
.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}
.article-content p {
    margin-bottom: 18px;
}
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 28px 0 12px;
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 20px 0;
    padding: 14px 20px;
    background: #fdf2f4;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #4a4a4a;
}
.article-content .highlight-box {
    background: #fffdf5;
    border: 1px solid #f0d78c;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
    font-weight: 500;
}
.author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-info strong {
    display: block;
    color: var(--primary);
}
.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}
.author-info .co-author {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    color: #ccc;
    text-align: center;
    padding: 20px 24px;
    font-size: 0.85rem;
    margin-top: auto;
}
.site-footer span {
    color: var(--gold);
}
.site-footer a{
    color: var(--gold);
}

/*           LOGIN            */

.loginInpt{
    height: 25px;
    padding: 5px;
    width: 300px;
    border: 0;
    border-radius: 10px;
    box-shadow: 15 15 15 grey;
    background-color: white;
    border: 2px solid grey;
    margin-bottom: 5px;
}
.loginBtn{
    border: 2px solid grey;
    background-color: lightgray;
    border-radius: 25px;
    box-shadow: 0 0 0 grey;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    transition: all 200ms;
    margin-top: 10px;
}
.loginBtn:hover{
    box-shadow: 0 0 10px grey;
}

/* ============ ADMIN-TABELLEN (Artikel- und Terminverwaltung) ============ */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: 12px; text-align: left; }
.admin-table th { background: #f5f5f5; }
.admin-table tr:hover { background: #f9f9f9; }
.btn { padding: 5px 10px; border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; margin: 2px; font-size: 13px; }
.btn-view { background: #4CAF50; color: white; }
.btn-delete { background: #ff9800; color: white; }
.btn-permanent { background: #f44336; color: white; }
.btn-restore { background: #2196F3; color: white; }
.btn-feature { background: var(--gold); color: black; }
.btn-unfeature { background: #ccc; color: black; }
.btn-edit { background: #9C27B0; color: white; }
.message { padding: 10px; margin-bottom: 20px; border-radius: 5px; }
.message-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.featured-badge { background: var(--gold); color: black; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; }
.admin-form input[type="text"], .admin-form input[type="date"], .admin-form input[type="time"], .admin-form textarea {
    width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-family: inherit;
}
.admin-form label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.admin-form textarea { min-height: 100px; resize: vertical; }

/* ============ NAVIGATION ============ */
.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    /* Animation vorbereiten (mobiles Auf-/Zuklappen) */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-in-out,
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    .hero-image {
        min-height: 180px;
    }
    .hero-body h2 {
        font-size: 1.35rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .article-header h1 {
        font-size: 1.7rem;
    }
    .article-featured-image {
        height: 200px;
    }
    .header-inner {
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }
    
    /* Mobile Navigation */
    .main-nav {
        display: flex;
        width: 100%;
        flex-direction: column;
        background: var(--primary);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        max-height: 0;
        opacity: 0;
        margin: 0;
        gap: 0;
    }
    
    .main-nav.open {
        max-height: 500px; /* Wird dynamisch durch JS gesetzt */
        opacity: 1;
        margin: 8px 0 0 0;
    }
    
    .main-nav a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        transition: background 0.3s ease, padding-left 0.3s ease;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a:hover {
        padding-left: 24px; /* Schiebt den Link beim Hover nach rechts */
    }
    
    .hamburger {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ ZUSÄTZLICHE ANIMATIONEN ============ */
/* Sanftes Einblenden der Navigationslinks nacheinander */
.main-nav.open a {
    animation: slideInNav 0.3s ease-out forwards;
    opacity: 0;
}

.main-nav.open a:nth-child(1) { animation-delay: 0.05s; }
.main-nav.open a:nth-child(2) { animation-delay: 0.1s; }
.main-nav.open a:nth-child(3) { animation-delay: 0.15s; }
.main-nav.open a:nth-child(4) { animation-delay: 0.2s; }
.main-nav.open a:nth-child(5) { animation-delay: 0.25s; }

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