/* MARKDOWN-SPEZIFISCHE STYLES - ERGÄNZEN NUR, ÜBERSCHREIBEN NICHT */

/* Admin-Formulare - überschreiben nur die notwendigen Eigenschaften */
.admin-form {
    background: #F2FFC0 !important;
    border: 3px solid #657E22 !important;
    border-radius: 10px !important;
}

.admin-button {
    background-image: url(../images/button2.png) !important;
    background-repeat: repeat-x !important;
    border-radius: 10px !important;
    border: 3px solid #657E22 !important;
    color: #10282E !important;
    font-family: 'Pasdenom' !important;
}

.admin-button:hover {
    background-image: url(../images/buttonhover.png) !important;
    background-repeat: repeat-x !important;
}

.admin-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Markdown-Hilfe - verwendet ursprüngliches Design */
.markdown-help {
    background: #F2FFC0 !important;
    border: 2px solid #657E22 !important;
    border-radius: 10px !important;
    padding: 15px;
    margin-bottom: 15px;
}

.markdown-help details {
    cursor: pointer;
}

.markdown-help summary {
    font-size: 16px;
    margin-bottom: 10px;
    color: #657E22 !important;
    font-weight: bold;
}

.help-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.help-section {
    background: rgba(242, 255, 192, 0.5);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #657E22;
}

.help-section h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #10282E;
    font-weight: bold;
}

.help-section code {
    background: rgba(183, 204, 101, 0.3);
    padding: 6px;
    border-radius: 4px;
    display: block;
    font-size: 11px;
    line-height: 1.3;
    font-family: 'Courier New', monospace;
    color: #10282E;
    border: 1px solid #657E22;
}


.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    padding: 5px;
}



/* NUR für Mobile die Hilfe anpassen */
@media (max-width: 768px) {
    .help-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .grip-content-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .help-section {
        padding: 8px;
    }

    .help-section code {
        font-size: 10px;
        padding: 4px;
    }
}

/* Spezielle Spans für Markdown-Konvertierung */
.date {
    font-weight: bold;
    color: #10282E;
}

.location {
    font-style: italic;
    color: #657E22;
}

/* Wichtig: KEINE Regeln für .info-box, .contact-box, .termin-item etc. */
/* Diese sind bereits in standard.css definiert und sollen nicht überschrieben werden */


/* Termin-Karten in location-section zweispaltig anordnen, ohne Standard-Styles zu verändern */
.location-section {
    /* nichts überschreiben, nur Kinder layouten */
}

.location-section .termin-item {
    display: inline-flex;
    vertical-align: top;
    box-sizing: border-box;
    width: calc(50% - 10px); /* 2 pro Zeile */
    margin: 5px;             /* kleiner Abstand */
}

/* Falls die Termine in einem Wrapper stehen (z.B. .termine-list), auf Zeilenumbruch setzen */
.location-section .termine-list {
    display: block; /* sicherstellen, dass inline-flex Elemente umbrechen */
    font-size: 0;   /* Whitespaces zwischen inline-flex entfernen */
}
.location-section .termine-list .termin-item {
    font-size: 16px; /* Textgröße wiederherstellen */
}


a.email-link {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dotted #0066cc;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

a.email-link:hover {
    color: #0052a3;
    border-bottom: 1px solid #0052a3;
    background-color: rgba(0, 102, 204, 0.08);
}

/* Telefonnummern - Nur Anzeige */
span.phone-link {
    color: #333;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(100, 150, 200, 0.08);
    transition: all 0.2s ease;
    display: inline-block;
}

span.phone-link:hover {
    background-color: rgba(100, 150, 200, 0.15);
    border: 1px solid rgba(100, 150, 200, 0.3);
}


/* Auf kleinen Bildschirmen einspaltig */
@media (max-width: 600px) {
    .location-section .termin-item {
        width: 100%;
        margin: 5px 0;
    }
}