:root {
    --primary-color: #1a73e8;
    --accent-color: #4CAF50;
    --text-color: #333;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
    color: var(--primary-color);
}

h2 {
    font-size: 1.8em;
    margin-top: 0;
    color: var(--accent-color);
}

.section {
    background: var(--card-background);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.section:hover {
    transform: translateY(-5px);
}

.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin: 20px 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.pdf-button {
    background-color: var(--accent-color);
}

.map-button {
    background-color: var(--primary-color);
}

.register-button {
    background-color: #27ae60;
    font-weight: bold;
}

.highlight-section {
    border: 2px solid #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

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

/* Statistik-Bereich Styles */
.stats-section {
    background: linear-gradient(to bottom, #f8f9fa, #e9f0f8);
    border-left: 5px solid var(--primary-color);
}

.lead-text {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 25px;
}

.stats-highlight {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 10px 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5em;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.stats-label {
    font-size: 1em;
    opacity: 0.9;
}

.stats-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #444;
}

.stats-footnote {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Karussell Styles */
.carousel {
    max-width: 900px;
    position: relative;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #bbb;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* CRP Section Styles */
.crp-section {
    background: linear-gradient(to bottom, #ffffff, #f0f8ff);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.crp-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.crp-container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin: 25px 0;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.crp-image-container {
    flex: 0 0 40%;
    max-width: 40%;
}

.crp-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    border: 3px solid white;
}

.crp-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.crp-text {
    flex: 0 0 60%;
    text-align: left;
    width: 100%;
}

.crp-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05em;
}

.crp-founder {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.crp-founder h4, .crp-donation h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
}

.crp-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px dotted var(--primary-color);
    padding-bottom: 2px;
}

.crp-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Donation Section Styles */
.donation-section {
    background: linear-gradient(to bottom, #ffffff, #f0fff0);
    border-left: 5px solid #27ae60;
    text-align: left;
}

.donation-section h3 {
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 15px;
}

.donation-info {
    text-align: left;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.donation-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05em;
}

.donation-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Bitcoin Donation Styles */
.bitcoin-donation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.bitcoin-donation h4 {
    color: #f7931a; /* Bitcoin orange */
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.bitcoin-donation h4::before {
    content: "₿";
    margin-right: 10px;
    font-size: 1.2em;
}

.bitcoin-donation p {
    margin-bottom: 15px;
}

#blink-pay-button-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Alte Styles für Abwärtskompatibilität */
.crp-donation {
    margin-top: 40px;
    padding: 25px;
    background-color: rgba(240, 248, 255, 0.7);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for CRP section */
@media (max-width: 768px) {
    .crp-container {
        flex-direction: column;
    }

    .crp-image-container {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .crp-text {
        flex: 0 0 100%;
    }
}

/* Nostr Chat Styles */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    text-align: left;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    text-align: center;
}

.loading-indicator p {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4CAF50;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.others {
    background-color: #e9e9e9;
    align-self: flex-start;
    margin-right: auto;
}

.chat-message.self {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
}

.chat-send-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-button:hover {
    background-color: #0d5bbc;
    transform: translateY(-2px);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-username {
    font-weight: bold;
    margin-right: 5px;
}

.chat-timestamp {
    font-size: 0.8em;
    color: #777;
}

.chat-login-container {
    text-align: center;
    margin-bottom: 20px;
}

.chat-login-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.chat-login-button:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
}

/* Styles für den nsec-Dialog */
#nsec-input-dialog {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

#nsec-input {
    font-family: monospace;
    letter-spacing: 1px;
}

#nsec-cancel-button:hover {
    background-color: #d32f2f !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .section {
        padding: 20px;
        margin: 20px 0;
    }

    .button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
