/* Ergänzungen zum übernommenen Grav-CSS: Editor-Blöcke und kleine Nachträge.
   -------------------------------------------------------------------------
   theme.css und legal.css sind unverändert aus Grav übernommen und kennen
   deshalb keine Gutenberg-Klassen. Ohne diese Datei sähe alles, was Dominik
   neu anlegt, nach WordPress-Standard aus: unformatierte Buttons, graue
   Tabellen, Zitate ohne Kontur.

   Bewusst nur die Blöcke, die auf so einer Seite wirklich vorkommen. Die
   Farben kommen aus den Design-Tokens des Themes, mit Rückfallwerten – so
   funktioniert die Datei auch, wenn theme.css einmal nicht geladen ist
   (z. B. im Editor). */

.legal-content,
.legal .wrap,
.news-body {
	--blk-brand: var(--rust, #bd5f33);
	--blk-ink: var(--ink, #2c2621);
	--blk-muted: var(--ink-soft, #7a6f63);
	--blk-line: var(--line, #e2d6c2);
	--blk-paper: var(--paper, #f6efe2);
}

/* Buttons – Optik der .btn-Klassen des Themes, ohne sie zu überschreiben. */
.wp-block-button__link {
	display: inline-block;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--rust, #bd5f33);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.wp-block-button__link:hover { filter: brightness(1.07); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--rust, #bd5f33);
	box-shadow: inset 0 0 0 2px currentColor;
}
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* Zitate */
.wp-block-quote {
	margin: 24px 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--rust, #bd5f33);
	font-style: italic;
}
.wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-style: normal;
	font-size: .9em;
	color: var(--ink-soft, #7a6f63);
}
.wp-block-pullquote {
	margin: 28px 0;
	padding: 20px 24px;
	border-top: 2px solid var(--line, #e2d6c2);
	border-bottom: 2px solid var(--line, #e2d6c2);
	text-align: center;
	font-style: italic;
}

/* Tabellen – auf schmalen Displays scrollbar statt gequetscht. */
.wp-block-table { overflow-x: auto; margin: 24px 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th,
.wp-block-table td {
	padding: 10px 12px;
	border: 1px solid var(--line, #e2d6c2);
	text-align: left;
	vertical-align: top;
}
.wp-block-table th { background: var(--paper-2, #efe5d2); font-weight: 600; }
.wp-block-table figcaption { margin-top: 8px; font-size: .9em; color: var(--ink-soft, #7a6f63); }

/* Bilder und Bildunterschriften */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { height: auto; max-width: 100%; border-radius: 14px; }
.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 8px;
	font-size: .9em;
	color: var(--ink-soft, #7a6f63);
	text-align: center;
}
.wp-block-gallery { margin: 24px 0; }

/* Trenner */
.wp-block-separator {
	max-width: 120px;
	margin: 32px auto;
	border: 0;
	border-top: 2px solid var(--line, #e2d6c2);
}
.wp-block-separator.is-style-wide { max-width: 100%; }

/* Spalten, Gruppen, Medien-und-Text */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.wp-block-column { flex: 1 1 260px; min-width: 0; }
.wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 24px 0; }
.wp-block-media-text img { border-radius: 14px; }
@media (max-width: 700px) {
	.wp-block-media-text { grid-template-columns: 1fr; }
}

/* Hervorgehobener Absatz und Code */
.wp-block-code,
.wp-block-preformatted {
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--paper-2, #efe5d2);
	overflow-x: auto;
	font-size: .92em;
}

/* Einbettungen bleiben im Rahmen. */
.wp-block-embed iframe { max-width: 100%; }

/* Beitragsliste: dort ist die Sektions-Überschrift zugleich die H1 der Seite.
   theme.css kennt in .sec-head nur h2 – die Regeln hier geben der h1 exakt
   dieselbe Optik, ohne die übernommene Datei anzufassen. */
.sec-head h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--forest, #2c3a2e);
	margin-bottom: 16px;
}
.sec-head h1 em { font-style: italic; color: var(--rust, #bd5f33); }
