/* ============================================================
   Kiezkalender Tempelhof – Stylesheet
   Farbpalette: schwarz/weiß als Basis, grün als Akzent
     --schwarz:     #111111
     --dunkelgrau:  #333333
     --mittelgrau:  #666666
     --hellgrau:    #999999
     --rahmen:      #dddddd
     --hintergrund: #f7f7f7
     --weiss:       #ffffff
     --gruen:       #3a5a3a  (Akzent)
     --gruen-hover: #4a7a4a
     --gruen-hell:  #eaf2e8
   ============================================================ */

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noticia Text', Georgia, serif;
    background: #ffffff;
    color: #111111;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* --- Inhaltsbreite (wie Uku) --- */
.site-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero-Banner --- */
.site-banner {
    background: #ffffff;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 0;
}

.site-banner a {
    display: block;
    line-height: 0;
}

.site-banner img {
    width: 88%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Trennlinie: nur so breit wie Inhaltsbereich --- */
.site-divider {
    max-width: 760px;
    margin: 0 auto;
    border: none;
    border-top: 2px solid #111111;
}

/* --- Header --- */
header {
    background: #ffffff;
    color: #111111;
    padding: 20px 0 16px;
}

header .site-inner {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

header h1 {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    color: #111111;
}

header .sub {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    color: #666666;
    font-style: italic;
}

/* Header-Variante: mit Flex (Moderation) */
header.flex .site-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.flex h1 {
    font-size: 1.3rem;
}

header.flex .sub {
    font-size: 0.82rem;
    margin-top: 3px;
}

/* Header-Link (Submitform, Orte etc.) */
header a {
    font-family: Georgia, serif;
    color: #3a5a3a;
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    margin-top: 4px;
    font-weight: normal;
}

header a:hover {
    color: #111111;
}

/* --- Abo-Bar --- */
.abo-bar {
    background: #ffffff;
    padding: 12px 0 16px;
}

.abo-bar .site-inner {
    font-size: 0.85rem;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.abo-bar a {
    color: #3a5a3a;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.abo-bar a:hover {
    color: #111111;
}

.copy-btn {
    display: inline-block;
    margin-left: 8px;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 2px 10px;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    width: auto;
    vertical-align: middle;
    transition: background 0.15s;
}

.copy-btn:hover {
    background: #3a5a3a;
}

.copy-btn:disabled {
    background: #3a5a3a;
    cursor: default;
}

#icsUrlText {
    word-break: break-all;
}

/* --- Card --- */
.card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 32px 36px;
}

/* --- Überschriften --- */
h2 {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    color: #111111;
}

/* --- Buttons --- */
.btn-primary,
button[type="submit"] {
    width: 100%;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: #333333;
}

.logout-btn {
    background: none;
    border: 1px solid #666666;
    color: #666666;
    padding: 5px 14px;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.15s;
    width: auto;
}

.logout-btn:hover {
    border-color: #111111;
    color: #111111;
}

/* --- Meldungsboxen --- */
.fehler-box {
    background: #fff5f5;
    border: 1px solid #e8c0c0;
    border-radius: 3px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #8a2020;
    line-height: 1.7;
}

.erfolg-box {
    background: #eaf2e8;
    border: 1px solid #a8cca4;
    border-radius: 3px;
    padding: 20px 22px;
    text-align: center;
}

.erfolg-box h3 {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #3a5a3a;
    margin-bottom: 8px;
}

.erfolg-box p {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
}

.erfolg-box a {
    color: #3a5a3a;
}

.meldung {
    padding: 13px 18px;
    border-radius: 3px;
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.meldung.success {
    background: #eaf2e8;
    border: 1px solid #a8cca4;
    color: #3a5a3a;
}

.meldung.info {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    color: #555555;
}

/* --- Formular-Elemente --- */
.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999999;
    margin-bottom: 6px;
}

label .req {
    color: #b03030;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: Georgia, serif;
    font-size: 0.92rem;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 2px;
    color: #111111;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3a5a3a;
    box-shadow: 0 0 0 2px rgba(58, 90, 58, 0.1);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hint {
    font-size: 0.78rem;
    color: #999999;
    margin-top: 5px;
}

.pflicht-hinweis {
    font-size: 0.78rem;
    color: #999999;
    margin-bottom: 20px;
}

/* --- Intro-Text --- */
.intro {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd;
}

/* --- Kalender-Wrapper (FullCalendar) --- */
#calendar-wrapper {
    max-width: 1100px;
    margin: 36px auto;
    padding: 0 20px 60px;

    --fc-border-color: #dddddd;
    --fc-button-bg-color: #111111;
    --fc-button-border-color: #111111;
    --fc-button-hover-bg-color: #333333;
    --fc-button-hover-border-color: #333333;
    --fc-button-active-bg-color: #000000;
    --fc-today-bg-color: #eaf2e8;
    --fc-event-bg-color: #3a5a3a;
    --fc-event-border-color: #3a5a3a;
    --fc-event-text-color: #ffffff;
    --fc-list-event-hover-bg-color: #f7f7f7;
}

#calendar-wrapper .fc {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 24px;
}

#calendar-wrapper .fc-toolbar-title {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #111111;
}

#calendar-wrapper .fc-button {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border-radius: 2px;
    padding: 5px 12px;
}

#calendar-wrapper .fc-event {
    cursor: pointer;
    border-radius: 2px;
    font-size: 0.8rem;
    padding: 1px 4px;
}

#calendar-wrapper .fc-daygrid-event:hover {
    opacity: 0.85;
}

#calendar-wrapper .fc-col-header-cell-cushion,
#calendar-wrapper .fc-daygrid-day-number {
    color: #111111;
    text-decoration: none;
}

#calendar-wrapper .fc-day-today .fc-daygrid-day-number {
    background: #3a5a3a;
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-wrapper .fc-list-event-title a {
    color: #111111;
    text-decoration: none;
}

/* --- Modal --- */
#eventModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

#eventModal.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    width: 92%;
    max-width: 480px;
    overflow: hidden;
    animation: fadeUp 0.2s ease-out;
}

@keyframes fadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-head {
    background: #111111;
    color: #ffffff;
    padding: 18px 22px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.modal-head h2 {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 0;
    color: #ffffff;
}

.modal-close {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0;
    width: auto;
}

.modal-close:hover {
    opacity: 1;
    background: none;
}

.modal-body {
    padding: 20px 22px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #111111;
}

.modal-body .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.modal-body .meta span {
    display: flex;
    gap: 8px;
}

.modal-body .label {
    color: #999999;
    min-width: 44px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 2px;
}

.modal-desc {
    border-top: 1px solid #dddddd;
    margin-top: 14px;
    padding-top: 14px;
    color: #555555;
    font-size: 0.88rem;
}

.modal-foot {
    padding: 14px 22px;
    background: #f7f7f7;
    border-top: 1px solid #dddddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-foot button {
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    width: auto;
    transition: background 0.15s;
}

.modal-foot button:hover {
    background: #333333;
}

/* --- Moderation: Badge & Event-Karten --- */
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    background: #eaf2e8;
    color: #3a5a3a;
    border: 1px solid #a8cca4;
}

.event-card {
    border: 1px solid #dddddd;
    border-radius: 3px;
    padding: 18px 20px 16px;
    margin-bottom: 16px;
    background: #f7f7f7;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-title {
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #111111;
}

.meta-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 3px 14px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.meta-key {
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1px;
}

.meta-val {
    color: #555555;
}

.beschreibung {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
    border-top: 1px dashed #dddddd;
    padding-top: 10px;
    margin-bottom: 12px;
}

.kontakt-hinweis {
    font-size: 0.78rem;
    color: #999999;
    margin-bottom: 14px;
    font-style: italic;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-genehmigen {
    background: #3a5a3a;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    width: auto;
    transition: background 0.15s;
}

.btn-genehmigen:hover {
    background: #4a7a4a;
}

.btn-ablehnen {
    background: none;
    color: #8a2020;
    border: 1px solid #d0a0a0;
    padding: 8px 18px;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    width: auto;
}

.btn-ablehnen:hover {
    background: #fff5f5;
}

.leer {
    color: #999999;
    font-size: 0.9rem;
    font-style: italic;
    padding: 10px 0;
}

/* --- Moderation: Tabs --- */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #dddddd;
    margin-bottom: 28px;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 20px;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    color: #999999;
    cursor: pointer;
    letter-spacing: 0.03em;
    width: auto;
    transition: color 0.15s;
}

.tab-btn:hover {
    color: #111111;
}

.tab-btn.aktiv {
    color: #111111;
    border-bottom-color: #111111;
}

.tab-panel {
    display: none;
}

.tab-panel.aktiv {
    display: block;
}

/* --- Moderation: Login --- */
.login-wrap {
    max-width: 360px;
    margin: 80px auto 0;
}

.login-wrap .card {
    padding: 28px 32px;
}

.fehler {
    color: #8a2020;
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* --- Footer (Moderation-Link, dezent über dem Site-Footer) --- */
footer {
    padding: 16px 0 12px;
    max-width: 760px;
    margin: 0 auto;
    text-align: right;
    padding-right: 20px;
}

footer a {
    color: #999999;
    text-decoration: none;
    font-size: 0.85rem;
}

footer a:hover {
    color: #111111;
}

/* --- Site-Footer (wie WordPress/Uku) --- */
.site-footer {
    background: #111111;
    color: #999999;
    padding: 18px 0;
    margin-top: 20px;
}

.site-footer .site-inner {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.site-footer .copyright {
    color: #f4f4f4;
}

.site-footer .legal-links {
    display: flex;
    gap: 18px;
}

.site-footer .legal-links a {
    color: #999999;
    text-decoration: none;
}

.site-footer .legal-links a:hover {
    color: #ffffff;
}

@media (max-width: 500px) {
    .site-footer .site-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.nav-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #3a5a3a;
    text-decoration: none;
}

.nav-link:hover {
    color: #111111;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    .card {
        padding: 22px 18px;
    }

    .row-2 {
        grid-template-columns: 1fr;
    }

    header {
        padding: 14px 0 12px;
    }

    .abo-bar {
        padding: 10px 0;
    }

    header .site-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    header h1 {
        font-size: 2rem;
    }
}
