/* ============================================
   Wagtail Democratic Website - Main Styles
   ============================================ */

:root {
    --primary-color: #126A9F;      /* Main brand color - elegant teal blue */
    --primary-light: #1B8DBE;      /* Lighter variant for hover states */
    --primary-dark: #0D4A6F;       /* Darker variant for depth */
    --secondary-color: #0F5A7F;    /* Complementary darker shade */
    --accent-color: #FF6B35;       /* Warm accent for CTAs */
    --accent-light: #FFB6A3;       /* Light accent background */
    --success-color: #06A77D;      /* Success state */
    --warning-color: #F4A261;      /* Warning state */
    --danger-color: #D62828;       /* Danger state */
    --text-color: #2C3E50;         /* Dark text */
    --text-light: #666666;         /* Light text */
    --light-bg: #E8F1F5;           /* Light background - tinted with primary */
    --light-bg-alt: #F5F8FA;       /* Alternative light background */
    --border-color: #B8D4E8;       /* Border color - tinted with primary */
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(18, 106, 159, 0.08);
    --shadow-md: 0 4px 12px rgba(18, 106, 159, 0.12);
    --shadow-lg: 0 8px 24px rgba(18, 106, 159, 0.15);
    --sidebar-width: clamp(250px, 20vw, 350px);
}

/* Global Styles */
html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

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

.home-layout{
    display: flex;
    gap: 2rem;
}

.content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding-right: 10rem;
}

/* events-sidebar */
.events-sidebar{
    position: fixed;
    right: 0;
    top: header-height;
    width: var(--sidebar-width);
    height: 100vh;
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 80px;   /* nach Bedarf anpassen */
    width: auto;
}
/*{
    /*background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    /* border-left: 5px solid var(--primary-color);
    width: 300px;
    margin-bottom: 2rem;
    margin-left: auto;
}*/

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--white) !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--accent-light) !important;
}

.navbar-nav .nav-link {
    margin-left: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-light) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--accent-light) !important;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0A3A55 100%);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

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

.navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1.5rem;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-left-color: var(--accent-color);
}

.navbar-nav .dropdown-toggle::after {
    border: none;
    content: '';
}

/* Containers & Spacing */
.container {
    max-width: 1200px;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Alerts */
.alert {
    border-radius: 5px;
    border: 2px solid var(--border-color);
}

.alert-info {
    background-color: var(--light-bg);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.alert-success {
    background-color: rgba(6, 168, 125, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-warning {
    background-color: rgba(244, 162, 97, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(214, 40, 40, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Home Page */
.template-homepage {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-blogpage {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-blogindexpage {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-blogtagindexpage {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-content {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-aboutus {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.template-formpage {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
}
.intro-section {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1.5rem;
}

.welcome-message {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.Aktionspaket_Uebersicht {
    border: 2px solid #333;
    border-radius: 15px; /* Abrundung der Ecken */
    padding: 20px;       /* Abstand zum Rand */
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

.container_parent{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Drei gleich breite Spalten */
    /*gap: 20px; /* Abstand zwischen den Containern */
}
.container_statements {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    border: 2px solid #333;
    border-radius: 15px; /* Abrundung der Ecken */
    padding: 20px;       /* Abstand zum Rand */
    background-color: #ffffff;
    width: 80%;
    /*height: 200px;*/
    
}
.statement /*auf der Home-Seite*/
    {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}
/* Filter Bar */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-bar h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.filter-bar label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
}

.reset {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-color);
}

/* Blog Styles */
.blog-list {
    margin: 2rem 0;
}

.blog-post {
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.blog-post:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.blog-post h2 {
    margin-top: 0;
}

.blog-post a {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-article {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
}

.blog-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-meta .date {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-top: 3px solid var(--accent-color);
}

footer h5 {
    color: var(--white);
}

footer a {
    color: var(--accent-light);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/*header*/
header {
    margin-bottom: auto;
    padding-top: 0rem;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-bottom: 3px solid var(--accent-color);
}

/* Richtext Editor Output */
.richtext {
    font-size: 1.1rem;
    line-height: 1.9;
}

.richtext p {
    margin-bottom: 1.5rem;
}

.richtext ul, .richtext ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.richtext li {
    margin-bottom: 0.5rem;
}

.richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.richtext a {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 2px;
}

.richtext a:hover {
    text-decoration: none;
    color: var(--primary-light);
}

.skip-link {
    position: absolute;
    top: -30px;
}

.skip-link:focus-visible {
    top: 5px;
}
.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .blog-article {
        padding: 1.5rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    footer .row {
        text-align: center;
    }

    footer .col-md-6:last-child {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, footer {
        display: none;
    }

    main {
        margin: 0;
        padding: 0;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    a::after {
        content: " (" attr(href) ")";
    }
}
