body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;

    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
    background-size: 15px 15px;
    background-color: #d1b88e; /* Grundfarbe des Korks */
    background-attachment: fixed;
    /* overflow: hidden; /* Diesen hier nur wenn nötig, kann Scrollprobleme verursachen */
}

.cloud-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 374px; /* Breite der Wolke am Desktop */
    height: 177px; /* Höhe der Wolke am Desktop */
    background-image: url('Wolke.png'); /* Verweis auf die Bilddatei */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
    margin: 30px auto 0; /* Oben 30px Abstand, horizontal zentriert, kein Abstand nach unten */
    z-index: 1000; /* Stellt sicher, dass es über den Post-its liegt */
}

.prayerwall-heading {
    margin: 0;
    font-size: 3.5em; /* Größe der Überschrift */
    color: black;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 50px;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: 'Poetsen One', sans-serif;
}


.pinboard-container {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-content: flex-start;
    padding: 30px 30px 90px 30px; /* Oben 30px, da Wolke auch Margin hat */
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}

.fixed-bottom-button-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1500;
}

.fixed-bottom-button-container button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fixed-bottom-button-container button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}


.post-it {
    width: 220px;
    height: 220px;
    padding: 15px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    border-radius: 3px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    background-color: #ffe87a;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    cursor: default;
    flex-shrink: 0;
}

.post-it-content {
    font-size: 15px;
    color: #333;
    max-height: 120px;
    overflow-y: auto;
    width: 100%;
    margin-bottom: 5px;
}

.post-it-name {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}

.post-it-date {
    font-size: 11px;
    color: #666;
    margin-top: auto;
    width: 100%;
    text-align: right;
}

/* Gebetszähler-Badge Styles wurden entfernt */

.post-it::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #b0c4de;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-content input[type="text"],
.modal-content textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

.modal-content textarea {
    height: 100px;
}

.modal-content button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #45a049;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .cloud-wrapper {
        width: 284px; /* Angepasste Breite für Mobile Ansicht */
        height: 135px; /* Angepasste Höhe für Mobile Ansicht */
        margin-top: 20px;
    }
    .prayerwall-heading {
        font-size: 2.5em;
        padding: 0 30px;
    }
    .pinboard-container {
        padding: 15px;
        padding-bottom: 90px;
        justify-content: center;
    }
    .post-it {
        width: 180px;
        height: 180px;
        padding: 10px;
    }
    .post-it-content {
        font-size: 14px;
    }
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}