/* CSS für alle Pages */
body {
    /* Hintergrund und Schriftart */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    padding-left: 20px;
    padding-right: 20px;
}

/* Navbar */

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

.sticky {
    position: fixed;
    padding-top: 8px;
    top: 0;
    width: calc(100% - 56px);
    background: linear-gradient(to bottom, var(--background-color) 85%, transparent);
    z-index: 1;
}

.sticky+.content {
    padding-top: 90px;
}

.ausblenden {
    display: none;
}

.article-width {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    width: 100%;
    height: auto;
    max-height: 350px;
    max-width: 100%;
}

.border img {
    border-radius: 5px;
}

.beschreibung {
    margin-top: 2px;
    margin-bottom: 0;
}

.beschreibung-o {
    margin-top: 2px;
}

.space-between {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 2px;
}

/* Oben Links Name */

.headline {
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 40;
}

/* Selector */

.links {
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
    font-size: x-large;
}

.links:hover {
    border-bottom: 2px solid var(--accent-color-light);
    transition: ease-in;
}

.aktuell {
    border-bottom: 2px solid var(--accent-color-dark);
}

/* Page Header */

.welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome h1 {
    display: flex;
    justify-content: center;
    margin-top: 120px;
    font-size: 80;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcomep {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    font-size: 22;
    color: var(--text-color);
    max-width: 800px;
}

.header {
    text-align: start;
    color: var(--text-color);
}

/* Inhalt */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    border: 0;
    color: var(--text-color);
}

.section {
    margin-bottom: 40px;
    color: var(--text-color);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    font-size: 16px;
    text-align: justify;
}

.b-title{
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.b-title3{
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.b-title4{
    margin-top: 0;
    margin-bottom: 12px;
}

.border {
    border: 0;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--primary-container-color);
    height: max-content;
    color: var(--text-color);
    min-width: 40%;
}

.border2 {
    border: 0;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--secondary-container-color);
    height: max-content;
    color: var(--text-color);
}

.border-mitte {
    flex: 1;
}

.border-content {
    margin: 0;
    text-align: justify;
}

.border-title {
    text-align: center;
    font-size: 22px;
    margin-left: 5px;
    margin: 0;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gap{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color-dark);
}
.section-end {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 8px;
}

.author {
    display: flex;
    margin: 0;
    color: rgb(78, 78, 78);
}

.published {
    display: flex;
    margin: 0;
    color: rgb(78, 78, 78);
}

.quellen-link {
    display: flex;
    color: var(--text-color);
    text-decoration: none;
    justify-content: flex-end;
}

.quellen-link:hover {
    text-decoration: underline;
}

/* Footer */

footer {
    background: var(--background-color);
    height: auto;
    padding-top: 160px;
    color: var(--text-color);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: capitalize;
    background: -webkit-linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content p {
    max-width: 700px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
}

.footer-bottom {
    background: var(--background-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;

}

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

/* Theme */

.theme-switcher {
    align-items: center;
    margin-top: 15px;
}

#theme-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #ccc;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.selected {
    border-color: #2196F3;
    box-shadow: 0 0 5px #2196F3;
}

.theme-option[data-theme="dark"] {
    background: #141414;
}

.theme-option[data-theme="light"] {
    background: #E8E8E8;
}

.theme-option[data-theme="midnight-bliss-dark"] {
    background: linear-gradient(135deg, #1A1A2E, #4A4E69);
}

.theme-option[data-theme="midnight-bliss-light"] {
    background: linear-gradient(135deg, #C0C4E2, #9093B0);
}

.theme-option[data-theme="forest-retreat-dark"] {
    background: linear-gradient(130deg, #0D1F1B, #395943);
}

.theme-option[data-theme="forest-retreat-light"] {
    background: linear-gradient(130deg, #B0D3B8, #7BA18C);
}

.theme-option[data-theme="sunset-mirage-dark"] {
    background: linear-gradient(130deg, #2A1A1F, #6E3B4C);
}

.theme-option[data-theme="sunset-mirage-light"] {
    background: linear-gradient(130deg, #FFDBD4, #FFC4BE);
}

.theme-deny{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slider */

.switcher {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.switcher input {
    display: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    min-width: 40px;
    height: 20px;
}

.mode-text {
    color: var(--text-color);
    font-size: 14px;
    padding: 6px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color-light);
}

input:disabled+.slider {
    background-color: #ccc;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Cookie Popup */

.cookie-popup {
    display: none;
    position: fixed;
    z-index: 1;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background-color: #5f5f5f;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cookie-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.cookie-buttons button {
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-buttons button#accept-all-cookies {
    background: linear-gradient(var(--gradient-degree), var(--gradient-color1), var(--gradient-color2));
    color: white;
}

.cookie-buttons button#customize-cookies {
    background-color: var(--secondary-container-color);
    color: var(--text-color);
}

.cookie-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-categories {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--secondary-container-color);
    border-radius: 10px;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--primary-container-color);
}

#js-warning {
    background-color: yellow;
    color: black;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
    position: fixed;
    top: 1;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.c-border{
    border: 0;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--primary-container-color);
    height: max-content;
    color: var(--text-color);
}

.c-content{
    /* Für JS */
    color: var(--text-color);
}

.c-border2{
    border: 0;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--secondary-container-color);
    height: max-content;
    color: var(--text-color);
}

.c-border2 p{
    margin-bottom: 0;
}

.switch-title{
    display: flex;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-items: center;
    gap: 10px;
}

.c-title{
    display: flex;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.c-title svg{
    width: 30px;
    min-width: 30px;
    height: 30px;
    fill: var(--text-color);
    margin-right: 5px;
}

/* Mobile Optimierungen */

@media (max-width: 466px) {
    .navbar {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        left: 0;
        right: 0;
    }

    .sitcky {
        width: 100%;
        align-items: start;
    }

    .navbar-links {
        margin-bottom: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-buttons {
        width: 95%;
    }

    body {
        padding: 0;
    }

    .content {
        width: 85%;
    }
    
    .container {
        width: 100%;
        margin-top: 80px;
        padding: 0;
    }

    .welcome h1 {
        margin-top: 40px;
    }
}