/* Modern Design Improvements for BenehmenIstGluecksSache.de */

/* Farbpalette für Light und Dark Mode */
:root {
    /* Light Mode (Standard) */
    --primary-color: #1d3557;      /* Tiefes Blau mit gutem Kontrast */
    --primary-light: #457b9d;      /* Mittleres Blau für Hover-Effekte */
    --secondary-color: #e63946;    /* Klares Rot mit gutem Kontrast */
    --secondary-light: #f07470;    /* Helleres Rot für Hover-Effekte */
    --accent-color: #005f73;       /* Tiefes Blaugrün für Akzente */
    --accent-light: #0a9396;       /* Helleres Blaugrün */
    --light-color: #f8f9fa;        /* Fast-Weiß für helle Hintergründe */
    --dark-color: #222222;         /* Sehr dunkles Grau für Text */
    --text-color: #222222;         /* Sehr dunkles Grau für Haupttext */
    --text-light: #444444;         /* Dunkelgrau für sekundären Text */
    --success-color: #087f5b;      /* Dunkleres Grün mit besserem Kontrast */
    --info-color: #0c63e4;         /* Tieferes Blau mit besserem Kontrast */
    --warning-color: #b45309;      /* Dunkleres Orange mit besserem Kontrast */
    --danger-color: #b91c1c;       /* Dunkleres Rot mit besserem Kontrast */
    --bg-light: #f8f9fa;           /* Sehr helles Grau für Hintergründe */
    --border-color: #dee2e6;       /* Mittleres Grau für Ränder */
    
    /* Allgemeine Farben für beide Modi */
    --body-bg: #ffffff;            /* Reines Weiß als Hintergrund */
    --card-bg: #ffffff;            /* Weiße Karten */
    --header-bg: var(--primary-color);
    --footer-bg: var(--primary-color);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --link-color: #005f73;         /* Tiefes Blaugrün für Links */
    --link-hover: #0a9396;         /* Helleres Blaugrün für Link-Hover */
}

/* Dark Mode Farben */
[data-theme="dark"] {
    --primary-color: #1a1a1a;      /* Sehr dunkles Grau für Primärfarbe */
    --primary-light: #333333;      /* Dunkelgrau für Hover-Effekte */
    --secondary-color: #bb2d3b;    /* Gedämpftes Rot für besseren Kontrast */
    --secondary-light: #dc3545;    /* Helleres Rot für Hover-Effekte */
    --accent-color: #63C5DA;       /* Sanftes Blau als Akzentfarbe */
    --accent-light: #90E0EF;       /* Helleres Blau */
    --light-color: #333333;        /* Dunkelgrau statt Blau */
    --dark-color: #f5f5f5;         /* Weichweiß für Text */
    --text-color: #f5f5f5;         /* Weichweiß für Haupttext */
    --text-light: #e0e0e0;         /* Helles Grau für sekundären Text */
    --success-color: #39c085;      /* Helleres Grün für bessere Sichtbarkeit */
    --info-color: #63C5DA;         /* Sanftes Blau */
    --warning-color: #ffc107;      /* Warmes Gelb */
    --danger-color: #dc3545;       /* Klares Rot */
    --bg-light: #2a2a2a;           /* Dunkelgrau für Hintergründe */
    --border-color: #444444;       /* Mittleres Grau für Ränder */
    
    /* Allgemeine Farben für Dark Mode */
    --body-bg: #121212;            /* Fast-Schwarz als Hintergrund */
    --card-bg: #1e1e1e;            /* Etwas helleres Grau für Karten */
    --header-bg: #1a1a1a;          /* Sehr dunkles Grau für Header */
    --footer-bg: #1a1a1a;          /* Sehr dunkles Grau für Footer */
    --shadow-color: rgba(0, 0, 0, 0.5);  /* Dunklere Schatten */
    --hover-bg: rgba(255, 255, 255, 0.05);  /* Subtiler Hover-Effekt */
    --link-color: #63C5DA;         /* Sanftes Blau für Links */
    --link-hover: #90E0EF;         /* Helleres Blau für Link-Hover */
}

/* Moderne Kartenelemente */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.card-header {
    background-color: var(--header-bg);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Grundlegende Seitenstruktur */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Verbesserte Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

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

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

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

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

/* Modernisierte Navigation */
.navbar {
    background-color: var(--header-bg);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

/* Verbesserte Hero-Sektion */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern.png');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Feature-Boxen */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-box {
    background-color: var(--card-bg, white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color, rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.feature-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Verbesserte Tipps-Box */
.tip-box {
    background-color: var(--light-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-box::before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: -12px;
    width: 24px;
    height: 24px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.tip-box h3 {
    color: var(--accent-color);
    margin-top: 0;
    display: flex;
    align-items: center;
}

.tip-box h3 i {
    margin-right: 0.5rem;
}

/* Inhaltsseiten-Layout */
.content-wrapper {
    margin-bottom: 3rem;
}

.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern.png');
    opacity: 0.1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.main-content h3 {
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.main-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-content ul li {
    margin-bottom: 0.5rem;
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar .card {
    margin-bottom: 1.5rem;
}

.sidebar .card-header {
    padding: 1rem;
}

.sidebar .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cta-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Responsive Anpassungen für Inhaltsseiten */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* Verbesserte Zitate */
blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    border-left: 4px solid var(--accent-color);
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
    position: relative;
}

blockquote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    position: absolute;
    left: 0.5rem;
    top: -1rem;
    color: var(--accent-color);
    opacity: 0.5;
}

blockquote cite {
    display: block;
    font-size: 1rem;
    margin-top: 1rem;
    font-style: normal;
    color: var(--text-light);
}

/* Verbesserte Listen */
ul.styled-list {
    list-style: none;
    padding-left: 1.5rem;
}

ul.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

ul.styled-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Verbesserte Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

th {
    padding: 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Verbesserte Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    transition: background-color 0.3s ease;
}

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

.footer-heading {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design Verbesserungen */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
}

/* Animation für Seitenübergänge */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Verbesserte Breadcrumbs */
.breadcrumbs {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumbs-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* Verbesserte Sitemap */
.sitemap-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.sitemap-intro {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.sitemap-category h3 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.sitemap-category h3 i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-cloud li {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.keyword-cloud li:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Print-freundliches Design */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .navbar, .footer, .no-print {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    blockquote, table, pre {
        page-break-inside: avoid;
    }
    
    ul, ol, dl {
        page-break-before: avoid;
    }
}
