/* Ergänzungen zu Tailwind.
   Tailwinds Preflight setzt Listen und Überschriften zurück – Inhalte aus dem
   Redaktions-Editor brauchen die Formatierung aber zurück.

   Jede Regel gilt doppelt:
     .rte            = der fertige Text auf der Website
     .jodit-wysiwyg  = das Schreibfeld im Backend
   So sieht die Redaktion beim Tippen bereits, was später auf der Seite steht –
   Aufzählungen mit Punkten, nummerierte Listen, unterstrichene Links. Beide
   Selektoren gehören zusammen: Wer hier etwas ändert, ändert es für beides. */

.rte p,
.jodit-wysiwyg p {
    margin-bottom: 0.75rem;
}

.rte a,
.jodit-wysiwyg a {
    text-decoration: underline;
    font-weight: 500;
}

.rte a:hover,
.jodit-wysiwyg a:hover {
    color: #15803d; /* green-700 */
}

.rte ul,
.rte ol,
.jodit-wysiwyg ul,
.jodit-wysiwyg ol {
    margin: 0 0 0.75rem 0;
    padding-left: 1.5rem;
}

.rte ul,
.jodit-wysiwyg ul {
    list-style: disc;
}

.rte ol,
.jodit-wysiwyg ol {
    list-style: decimal;
}

/* Verschachtelte Aufzählungen bekommen wie gewohnt ein anderes Zeichen. */
.rte ul ul,
.jodit-wysiwyg ul ul {
    list-style: circle;
    margin-bottom: 0;
}

.rte ol ol,
.jodit-wysiwyg ol ol {
    list-style: lower-alpha;
    margin-bottom: 0;
}

.rte li,
.jodit-wysiwyg li {
    margin-bottom: 0.25rem;
}

.rte h2,
.jodit-wysiwyg h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.25rem 0 0.75rem;
}

.rte h3,
.jodit-wysiwyg h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.rte h4,
.jodit-wysiwyg h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.rte strong,
.jodit-wysiwyg strong {
    font-weight: 700;
}

.rte em,
.jodit-wysiwyg em {
    font-style: italic;
}

.rte blockquote,
.jodit-wysiwyg blockquote {
    border-left: 4px solid #86efac; /* green-300 */
    padding-left: 1rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.rte table,
.jodit-wysiwyg table {
    width: 100%;
    margin-bottom: 0.75rem;
    border-collapse: collapse;
}

.rte th,
.rte td,
.jodit-wysiwyg th,
.jodit-wysiwyg td {
    border: 1px solid #86efac;
    padding: 0.4rem 0.6rem;
    text-align: left;
}

/* Alles Weitere, das nur das Schreibfeld betrifft – Hintergrundfarbe,
   Innenabstand, Tabellenrahmen – steht in css/editor.css. Diese Regeln müssen
   nach Jodits eigenem Stylesheet geladen werden und können deshalb nicht hier
   stehen. */

/* Initiale am Anfang des Einstiegstextes, wie im Original */
.dropcap > p:first-of-type::first-letter {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    float: left;
    margin-right: 0.75rem;
    margin-top: -0.25rem;
}

@media (min-width: 640px) {
    .dropcap > p:first-of-type::first-letter {
        margin-top: 0.25rem;
    }
}

/* Auf Bildschirmen unterhalb sm steht der Footer im Fluss – dann keine Extrahöhe */
@media (max-width: 639px) {
    main > div {
        margin-bottom: 1.5rem;
    }
}
