/* ==========================================================================
   Virtuelles Schwarzes Brett – Styles
   ========================================================================== */

.vsb-wrapper {
    max-width: 1100px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vsb-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: #3a2a1a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

/* Lizenz-Hinweis (nur für Administratoren sichtbar) */
.vsb-license-notice {
    max-width: 500px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
}

/* Hinweis zur Freigabepflicht */
.vsb-moderation-hint {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #6b5300;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
}
.vsb-field-hint {
    font-size: 0.8rem;
    color: #6b5c47;
    margin: 0 0 0.5rem 0;
}

/* Formular Toggle-Button */
.vsb-toggle-form-btn {
    display: block;
    margin: 0 auto 1.2rem auto;
    padding: 0.7rem 1.5rem;
    background: #5a3d21;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vsb-toggle-form-btn:hover {
    background: #422c17;
}

/* Formular */
.vsb-form-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    background: #fffaf0;
    border: 1px solid #e2d5bd;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.vsb-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.vsb-form-row .vsb-form-group {
    flex: 1;
    min-width: 180px;
}

.vsb-form-group {
    margin-bottom: 1rem;
}
.vsb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #3a2a1a;
    font-size: 0.9rem;
}
.vsb-required {
    color: #c0392b;
}

.vsb-form-group input[type="text"],
.vsb-form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cbb99a;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.vsb-form-group input[type="text"]:focus,
.vsb-form-group textarea:focus {
    outline: none;
    border-color: #5a3d21;
    box-shadow: 0 0 0 2px rgba(90,61,33,0.15);
}

.vsb-contact-type {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.vsb-radio {
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.vsb-form-group input[type="file"] {
    display: block;
    font-size: 0.85rem;
}

.vsb-foto-preview {
    position: relative;
    display: inline-block;
    margin-top: 0.6rem;
}
.vsb-foto-preview img {
    max-width: 140px;
    max-height: 140px;
    border-radius: 6px;
    border: 1px solid #cbb99a;
    display: block;
}
.vsb-foto-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 0.9rem;
}

.vsb-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.vsb-submit-btn {
    padding: 0.6rem 1.4rem;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vsb-submit-btn:hover {
    background: #245e27;
}
.vsb-submit-btn:disabled {
    background: #9aa89b;
    cursor: not-allowed;
}
.vsb-form-message {
    font-size: 0.9rem;
}
.vsb-form-message.vsb-error { color: #c0392b; }
.vsb-form-message.vsb-success { color: #2e7d32; }

/* ==========================================================================
   Die Tafel selbst
   ========================================================================== */
.vsb-board {
    background-color: #3b2a1a;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 3px);
    border: 14px solid #6b4a2b;
    border-radius: 6px;
    box-shadow:
        inset 0 0 60px rgba(0,0,0,0.55),
        0 8px 20px rgba(0,0,0,0.35);
    padding: 2rem;
    min-height: 300px;
}

.vsb-board-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: flex-start;
}

.vsb-empty-board {
    color: #e5dcc9;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

/* Post-it Zettel */
.vsb-note {
    --vsb-color: #FFF6A5;
    --vsb-rotate: 0deg;
    position: relative;
    width: 220px;
    min-height: 220px;
    background: var(--vsb-color);
    padding: 1.6rem 1rem 1rem 1rem;
    box-shadow: 3px 6px 10px rgba(0,0,0,0.35);
    transform: rotate(var(--vsb-rotate));
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #2b2b2b;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vsb-note.vsb-note-with-photo {
    width: 240px;
    min-height: 300px;
}

.vsb-note-photo-wrap {
    margin: 0 0 0.6rem 0;
    text-align: center;
}

.vsb-note-photo {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    object-fit: cover;
}

.vsb-note:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 4px 10px 16px rgba(0,0,0,0.45);
    z-index: 5;
}

.vsb-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a80, #b71c1c 70%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

.vsb-note-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0,0,0,0.2);
    padding-bottom: 0.3rem;
}
.vsb-note-name {
    font-size: 0.85rem;
}
.vsb-note-date {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.55);
    white-space: nowrap;
}

.vsb-note-body {
    flex-grow: 1;
    word-wrap: break-word;
    overflow-y: auto;
    line-height: 1.35;
    max-height: 130px;
}

.vsb-note-contact {
    margin-top: 0.7rem;
    padding: 0.4rem 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}
.vsb-note-contact a {
    color: #1a1a1a;
    text-decoration: none;
}
.vsb-note-contact a:hover {
    text-decoration: underline;
}

.vsb-note-delete {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    padding: 2px 6px;
}
.vsb-note-delete:hover {
    color: #c0392b;
}

/* Responsive */
@media (max-width: 600px) {
    .vsb-board {
        padding: 1rem;
    }
    .vsb-note {
        width: 45%;
        min-width: 150px;
    }
    .vsb-form-row {
        flex-direction: column;
    }
}
