:root {
    /* Color Variables */
    --color-bg: #f4f6f8;
    --color-bg-light: #f7fafd;
    --color-bg-dark: #e0f7e9;
    --color-text: #333;
    --color-text-light: #ecf0f1;
    --color-primary: #0433ff;
    --color-primary-hover: #0099ff;
    --color-primary-light: #e3f0fa;
    --color-accent: #000000;
    --color-white: #ffffff;
    --color-header-bg: #2c3e50;
    --color-header-text: #ecf0f1;
    --color-muted: #888;
    --color-error: red;
    --color-success: #2ecc71;
    --color-shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 10px var(--color-shadow-light);
    --color-green-dark: #176d3b;
    --color-blue-dark: #34495e;
    --color-border: #ccc;
    --color-border-green: #b2dfdb;
    --color-notification: red;
    --color-counters: #3a6b4f;
    --color-counters-bg: #f5f9f6;
    --color-own-cards: #176d3b;
    --color-description: #acacac43;
    --color-event-card-border-left-participant: #00ff88;
    --color-event-card-border-left-creator: #ff00ff;

    /* iOS Safe Area Variables */
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);

    --font-family-system: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    color: var(--color-text);
}

body {
    font-family: var(--font-family-system);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    color: var(--color-text);
    transition: all 0.3s ease;
    -webkit-user-select: text;
    user-select: text;
    position: relative;
    overflow-x: hidden;
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, var(--safe-area-inset-left));
        padding-right: max(0px, var(--safe-area-inset-right));
    }
}

header {
    background-color: var(--color-header-bg);
    color: var(--color-white);
    text-align: center;
    top: 0;
    position: relative;
    padding-top: max(1rem, var(--safe-area-inset-top));
}

button {
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

button:active {
    transform: scale(0.95);
    opacity: 0.8;
}

p h1 h2 h3 h4 span label thead tbody {
    cursor: text;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    transition: all 0.3s ease;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 60px;
}

header h1 {
    margin: 0;
}

label {
    font-weight: 500;
    color: var(--color-text);
}

nav a {
    color: var(--color-header-text);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

nav img {
    width: 50%;
    height: 50%;
    justify-content: center;
}

form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="email"],
form input[type="search"],
form select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-family-system);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--color-white);
}

form button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: var(--color-primary-hover);
}

form button:disabled {
    background-color: var(--color-muted);
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 1.5rem 1.5rem max(1.5rem, calc(1.5rem + var(--safe-area-inset-bottom)));
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

a {
    color: var(--color-primary);
    cursor: pointer;
}

a:hover {
    color: var(--color-accent);
}

main {
    padding: 2rem max(2rem, calc(2rem + var(--safe-area-inset-right))) 2rem max(2rem, calc(2rem + var(--safe-area-inset-left)));
}

.error-message {
    color: var(--color-error);
    font-weight: 500;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--color-success);
    font-weight: 500;
    margin-bottom: 1rem;
}

.me-btn {
    position: fixed;
    bottom: max(65px, calc(65px + var(--safe-area-inset-bottom)));
    right: max(20px, calc(20px + var(--safe-area-inset-right)));
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--color-shadow-light);
    z-index: 1000;
    transition: background 0.2s;
    font-size: 0.8rem;
}

@media (min-width: 1200px) {
    .me-btn {
        bottom: max(20px, calc(20px + var(--safe-area-inset-bottom)));
    }
}


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

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 1rem;
}

.inactive-link {
    color: var(--color-header-text);
    font-weight: bold;
    cursor: default;
    padding: 8px 12px;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-header-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-header-text);
    text-decoration: none;
    font-weight: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
    background-color: var(--color-blue-dark);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
}

.dropdown-content.visible {
    visibility: visible;
    opacity: 1;
}

.logo-link {
    display: inline-block;
    padding: 8px;
    transition: background 0.2s;
    background: var(--color-bg-dark);
    border-radius: 12px;
}

.logo-link:hover {
    background: var(--color-bg-light);
    border-radius: 8px;
}

.logo-img {
    height: 48px;
    width: auto;
    vertical-align: middle;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
}

.h2_size {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.h3_size {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/*In mehreren Dateien vorhanden*/
.card-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

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

.action-list-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none;
    overflow: hidden;
    text-align: center;
}

.action-list li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-shadow-light);
    font-size: 1rem;
    color: var(--color-header-bg);
}

.action-list li:last-child {
    border-bottom: none;
}

.action-list-description {
    font-weight: 100;
    color: var(--color-text);
}

.action-list-value {
    color: var(--color-text);
    font-weight: 500;
}

.action-label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
}

/*In mehreren Dateien vorhanden*/
.chat-refresh-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-primary-light);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
    padding: 0;
}

.chat-refresh-btn:hover {
    background: var(--color-primary);
    transform: rotate(90deg) scale(1.08);
}

.chat-refresh-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
}

@font-face {
    font-family: 'OpenMoji';
    src: url("../fonts/OpenMoji-color-glyf_colr_0.f001dca4652c.ttf") format('truetype');
    font-display: swap;
}

.emoji {
    font-family: 'OpenMoji', sans-serif;
    font-size: 1em;
}

/*In mehreren Dateien vorhanden*/
.klimapunkte-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    max-width: 420px;
}

.klimapunkte_me {
    background: var(--color-bg-dark);
    color: var(--color-green-dark);
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 10px 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-green-dark);
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.klimapunkte_other {
    background: var(--color-bg-light);
    color: var(--color-blue-dark);
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 10px 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-primary);
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.klimapunkte_other:hover,
.klimapunkte_me:hover {
    background: var(--color-primary-light);
}

.info-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

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

.anmerkung-box {
    background: var(--color-bg-light);
    color: var(--color-green-dark);
    border: 1px solid var(--color-border-green);
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 8px;
    max-width: 400px;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    display: block;
}

.level-table {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/*In mehreren Dateien vorhanden*/
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text);
    user-select: none;
    position: relative;
    margin: 10px;
    padding: 8px;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;

}

.checkmark {
    min-height: 24px;
    min-width: 24px;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
}

.custom-checkbox:hover .checkmark {
    border-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--color-primary);
}

summary {
    cursor: pointer;
}

/*In mehreren Dateien vorhanden*/
.event-card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 1.8rem;
    margin: 2rem auto;
    max-width: 600px;
    font-family: 'Segoe UI', sans-serif;
    border-left: 6px solid var(--color-primary);
}

.event-card details {
    border: none;
    background: transparent;
    padding: 0;
}

.event-card summary {
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.2s ease;
}

.event-card summary:hover {
    color: var(--color-primary);
}

.event-card summary::-webkit-details-marker {
    display: none;
}

.event-card label {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.8rem;
    font-size: 1.05rem;
}

.event-card p {
    margin: 0.3rem 0 0.8rem 0;
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.4;
}

.event-card .event-link {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.event-card .event-link:hover {
    background-color: #357ab8;
}

.event-card {
    background-color: var(--color-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    font-family: var(--font-family-system);
    border-left: 6px solid var(--color-primary);
}

.event-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.event-main p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin: 0.4rem 0;
}

.event-main strong {
    color: var(--color-primary);
}

.event-details {
    margin-top: 1rem;
}

.event-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.event-details summary:hover {
    color: var(--color-primary-hover);
}

.event-details summary::-webkit-details-marker {
    display: none;
}

.event-extra p {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0.3rem 0;
}

.event-extra strong {
    color: var(--color-primary);
}

.event-title {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.participant-status {
    font-style: italic;
    color: var(--color-text);
}

.event-details summary {
    cursor: pointer;
    font-weight: bold;
}

.participant-list {
    margin-top: 0.5em;
    padding-left: 1em;
}

/*In mehreren Dateien vorhanden*/
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 2rem;
    color: var(--color-text);
}

.comment-section {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.comment {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.question-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-header-bg);
    margin-bottom: 0.5rem;
}

.question-user {
    font-weight: 600;
}

.question-date {
    font-style: italic;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-header-bg);
    margin-bottom: 0.5rem;
}

.answer-user {
    font-weight: 600;
}

.answer-date {
    font-style: italic;
}

.question {
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.answers {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.answer {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    color: var(--color-text);
}

.no-answer {
    font-style: italic;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.toggle-button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-decoration: underline;
    padding: 4px 0;
}

.no-questions {
    text-align: center;
    color: var(--color-muted);
    margin-top: 2rem;
}

.event-card-participant {
    border-left: 6px solid var(--color-event-card-border-left-participant);
}

.event-card-creator {
    border-left: 6px solid var(--color-event-card-border-left-creator);
}

/*In mehreren Dateien vorhanden*/
.blur-enabled {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.blur-enabled::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5em;
    background: linear-gradient(to bottom, transparent, #fff);
}

.expandable-text.blur-enabled {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.expandable-text.blur-enabled::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5em;
    background: linear-gradient(to bottom, transparent, #fff);
}

.expanded .expandable-text.blur-enabled {
    max-height: none;
}

.expanded .expandable-text.blur-enabled::after {
    display: none;
}

.event-description {
    background-color: var(--color-description);
    padding: 20px;
    border-radius: 5px;
}

/*In mehreren Dateien vorhanden*/
.artikel-content {
    background-color: var(--color-description);
    padding: 20px;
    border-radius: 5px;
}

.quill-editor {
    height: 300px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    resize: none;
}

.btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.btn {
    background-color: #2ECC71;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px;
    text-decoration: none;
}

.btn:hover {
    background-color: #27AE60;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}


@media (max-width: 1200px) {
    button, a, input[type="button"], input[type="submit"], .card-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    button, .card-btn, .tab-item, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    main {
        padding: 1rem max(1rem, calc(1rem + var(--safe-area-inset-left))) calc(70px + 1rem + var(--safe-area-inset-bottom)) max(1rem, calc(1rem + var(--safe-area-inset-right)));
    }

    form {
        border-radius: 16px;
        margin: 1rem auto;
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="number"],
    form input[type="date"],
    form input[type="datetime-local"],
    form input[type="email"],
    form input[type="search"],
    form select,
    form textarea {
        font-size: 16px;
        border-radius: 12px;
        padding: 1rem;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .action-list-container,
    .event-card,
    .comment,
    .klimapunkte-list li {
        margin-left: max(0, calc(var(--safe-area-inset-left) - 1rem));
        margin-right: max(0, calc(var(--safe-area-inset-right) - 1rem));
        border-radius: 16px;
    }

    .dropdown {
        position: relative;
    }

    .klimapunkte-list {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@supports (padding: max(0px)) {
    header {
        padding-left: max(1rem, var(--safe-area-inset-left));
        padding-right: max(1rem, var(--safe-area-inset-right));
    }

    footer {
        padding-bottom: max(1rem, calc(1rem + var(--safe-area-inset-bottom)));
    }
}

button:active,
.card-btn:active,
.tab-item:active,
a:active {
    opacity: 0.7;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
}

.redirect-link {
    color: #8f8f8f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.redirect-link:hover {
    color: #2a7f62;
}

.redirect-link-icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.redirect-link:hover .redirect-link-icon {
    transform: translateX(4px);
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
}

.progress-bar {
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(
            90deg,
            #ff6ec4,
            #ff9a44,
            #fbd72b,
            #7cf29c,
            #4facfe,
            #c084fc
    );
    background-size: 300% 100%;
    animation: rainbowFlow 6s ease-in-out infinite;
    transition: width 0.3s ease;
}

@keyframes rainbowFlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: var(--color-bg, #fff);
    padding: 20px;
    border-radius: 12px;
    max-width: 650px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.closeShareOverlay {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text, #000);
}

.share-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.message-box {
    margin-bottom: 20px;
}

.message {
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.divider {
    margin: 20px 0;
    font-weight: bold;
    color: var(--color-text);
}

.share-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-light);
}

.share-btn:hover {
    transform: scale(1.05);
}

.native-share {
    background-color: #444;
}

.facebook {
    background-color: #0866ff;
}

.x {
    background-color: #000000;
}

.linkedin {
    background-color: #0a66c2;
}

.whatsapp {
    background-color: #25d366;
}

.email {
    background-color: #7f7f7f;
}

.copy {
    background-color: #6c757d;
}

.qrcode {
    background-color: #17a2b8;
}

#qrcodeDownload {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0078D7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px;
}

#qrcodeContainer {
    display: none;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: fit-content;
    align-self: center;
}

/* Cookie Styling */
#cookie-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-shadow-light);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#cookie-banner {
    position: fixed;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 520px;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px var(--color-shadow-light);
    font-family: 'Segoe UI', sans-serif;
    z-index: 9999;
    max-height: 500px; /* Höhe des Divs, um Scrollen zu ermöglichen */
    overflow-y: auto;
}

#cookie-banner a {
    color: var(--color-primary);
    text-decoration: none;
}

#cookie-banner a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

#cookie-banner button {
    margin: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease;
}

#cookie-banner button:hover {
    background-color: var(--color-primary-hover);
}

#settings-panel {
    display: none;
    background: var(--color-bg);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.cookie-category {
    margin-bottom: 14px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.cookie-category input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-expl {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 6px;
    font-size: 0.85em;
    padding: 4px 8px;
    margin-top: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-expl:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.explanation {
    display: none;
    font-size: 0.85em;
    color: var(--color-muted);
    margin-top: 4px;
}

#btn-save {
    background-color: var(--color-success);
}

#cookie-reset {
    position: fixed;
    bottom: max(65px, calc(65px + var(--safe-area-inset-bottom)));
    left: max(20px, calc(20px + var(--safe-area-inset-left)));
    padding: 10px 16px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--color-shadow-light);
}

@media (min-width: 1200px) {
    #cookie-reset {
        bottom: max(20px, calc(20px + var(--safe-area-inset-bottom)));
    }
}

#cookie-reset:hover {
    background-color: var(--color-accent);
}

#cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: auto;
}


#cookie-banner {
    z-index: 9999;
}

#cookie-reset:hover {
    background-color: var(--color-accent);
}

.cookie-forbidden-div {
    background: #ccc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px;
}


.display-none {
    display: none;
}

.color-red {
    color: red;
}

.color-888 {
    color: #888;
}

.fontSize-0-95em {
    font-size: 0.95em;
}