/* ==========================================================================
   Meeting Manager – Frontend CSS
   ========================================================================== */

/* -- Wrapper ---------------------------------------------------------------- */
.mm-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
    font-family: inherit;
    line-height: 1.6;
}

/* -- Karten-Liste ----------------------------------------------------------- */
.mm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.mm-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease;
}

.mm-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.mm-card__header {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.mm-card__title {
    font-size: 1.15rem;
    margin: 0;
}

.mm-card__title a {
    color: #1a202c;
    text-decoration: none;
}

.mm-card__title a:hover {
    text-decoration: underline;
}

.mm-card__date {
    color: #718096;
    font-size: .875rem;
}

.mm-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #4a5568;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.mm-card__footer {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* -- Header ----------------------------------------------------------------- */
.mm-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.mm-header__title {
    font-size: 1.75rem;
    margin: 0 0 .5rem;
}

.mm-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: #4a5568;
    font-size: .9rem;
}

.mm-meta__item {
    display: inline-flex;
    gap: .35rem;
}

/* -- Abschnitte ------------------------------------------------------------- */
.mm-section {
    margin-bottom: 2rem;
}

.mm-section h2 {
    font-size: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* -- Punkte-Liste ----------------------------------------------------------- */
.mm-punkte-liste {
    padding-left: 0;
    list-style: none;
    counter-reset: mm-punkt;
}

.mm-punkt {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
}

.mm-punkt__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.mm-punkt__nr {
    font-weight: 700;
    color: #718096;
    min-width: 1.5rem;
}

.mm-punkt__titel {
    flex: 1;
}

.mm-punkt__zeit {
    background: #ebf8ff;
    color: #2b6cb0;
    border-radius: 12px;
    padding: .15rem .6rem;
    font-size: .8rem;
    font-weight: 600;
}

.mm-punkt__person {
    color: #718096;
    font-size: .85rem;
}

.mm-punkt__beschreibung,
.mm-punkt__diskussion,
.mm-punkt__beschluss {
    background: #fff;
    border-left: 3px solid #cbd5e0;
    padding: .5rem .75rem;
    margin-top: .5rem;
    border-radius: 0 4px 4px 0;
    font-size: .9rem;
}

.mm-punkt__beschluss {
    border-left-color: #48bb78;
}

.mm-punkt__diskussion h4,
.mm-punkt__beschluss h4,
.mm-punkt__abstimmung h4 {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #718096;
    margin: 0 0 .35rem;
}

/* -- Abstimmung ------------------------------------------------------------- */
.mm-abstimmung {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    margin: .5rem 0;
    font-size: .9rem;
}

.mm-abstimmung__ja    { color: #276749; font-weight: 600; }
.mm-abstimmung__nein  { color: #c53030; font-weight: 600; }
.mm-abstimmung__enthaltung { color: #744210; font-weight: 600; }

.mm-abstimmung__ergebnis {
    font-weight: 700;
    margin-top: .5rem;
    color: #2d3748;
}

/* -- Badges ----------------------------------------------------------------- */
.mm-badge {
    display: inline-block;
    border-radius: 12px;
    padding: .15rem .65rem;
    font-size: .8rem;
    font-weight: 600;
}

.mm-badge--offen     { background: #fefcbf; color: #744210; }
.mm-badge--in_arbeit { background: #bee3f8; color: #2a4365; }
.mm-badge--erledigt  { background: #c6f6d5; color: #276749; }
.mm-badge--vertagt   { background: #fed7d7; color: #742a2a; }

/* -- Buttons ---------------------------------------------------------------- */
.mm-btn {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    text-decoration: none;
    padding: .5rem 1.1rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}

.mm-btn:hover { background: #2b6cb0; color: #fff; }

.mm-btn--secondary {
    background: #718096;
}

.mm-btn--secondary:hover { background: #4a5568; }

.mm-btn--pdf {
    background: #e53e3e;
}

.mm-btn--pdf:hover { background: #c53030; }

.mm-btn--primary { background: #38a169; }
.mm-btn--primary:hover { background: #276749; }

/* -- Teilnehmer-Liste ------------------------------------------------------- */
.mm-teilnehmer-liste {
    columns: 2;
    list-style: disc;
    padding-left: 1.25rem;
    column-gap: 2rem;
}

/* -- Leere Zustände --------------------------------------------------------- */
.mm-empty {
    color: #718096;
    font-style: italic;
    padding: 1rem 0;
}

/* -- Versionstabelle -------------------------------------------------------- */
.mm-versionen {
    margin-top: 2rem;
}

.mm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.mm-table th,
.mm-table td {
    text-align: left;
    padding: .6rem .75rem;
    border-bottom: 1px solid #e2e8f0;
}

.mm-table th {
    background: #f7fafc;
    font-weight: 700;
    color: #4a5568;
}

/* -- Frontend-Editor -------------------------------------------------------- */
.mm-editor {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.mm-editor__title {
    font-size: 1.4rem;
    margin-top: 0;
}

.mm-editor__ta-link {
    margin-top: -.5rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: .9rem;
}

.mm-editor__notice {
    min-height: 1.5rem;
    padding: .5rem .75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
    display: none;
}

.mm-editor__notice.is-success {
    display: block;
    background: #c6f6d5;
    color: #276749;
}

.mm-editor__notice.is-error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
}

.mm-fieldset {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.mm-fieldset legend {
    font-weight: 700;
    font-size: 1rem;
    padding: 0 .5rem;
    color: #2d3748;
}

.mm-field {
    margin-bottom: 1rem;
}

.mm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: .3rem;
    font-size: .9rem;
    color: #4a5568;
}

.mm-field input[type="text"],
.mm-field input[type="number"],
.mm-field textarea,
.mm-field select {
    width: 100%;
    padding: .45rem .65rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: .9rem;
    box-sizing: border-box;
    background: #fff;
}

.mm-field input:focus,
.mm-field textarea:focus,
.mm-field select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, .25);
}

.mm-field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mm-field--half  { flex: 1 1 calc(50% - .5rem); }
.mm-field--third { flex: 1 1 calc(33% - .67rem); }

.mm-punkt-block {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.mm-punkt-block__title {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: #2d3748;
}

.mm-abstimmung-block {
    background: #fff;
    border: 1px dashed #cbd5e0;
    border-radius: 4px;
    padding: .75rem;
    margin-top: .75rem;
}

.mm-abstimmung-block h4 {
    margin: 0 0 .5rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #718096;
}

.mm-form__actions {
    text-align: right;
    margin-top: 1rem;
}

/* -- Footer ----------------------------------------------------------------- */
.mm-footer {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* -- Responsiv -------------------------------------------------------------- */
@media (max-width: 640px) {
    .mm-field-row {
        flex-direction: column;
    }
    .mm-field--half,
    .mm-field--third {
        flex: 1 1 100%;
    }
    .mm-teilnehmer-liste {
        columns: 1;
    }
}
