/*
 * IAS Blog - Typografie und Blockstyles fuer Gutenberg-Inhalte
 * ===========================================================================
 * Gilt fuer den Artikelinhalt innerhalb von .ias-content.
 *
 * Alle Werte leiten sich aus dem bestehenden Corporate Design ab:
 *
 *   Fliesstext   16px / 24px, #646464   (entspricht .fliestext p)
 *   Listen       Aufzaehlungszeichen check_li.png, Zeilenhoehe 24px,
 *                Einzug 20px            (entspricht .contentbereich ul)
 *   Links        #0069b4                (entspricht a:link)
 *   Buttons      #0c70b8 gefuellt, Hover transparent mit blauer Schrift
 *                                       (entspricht .button_kontakt)
 *   Rahmen       #e1e1e1
 *   Flaechen     #f9f9f9
 *
 * Ziel: An keiner Stelle darf die WordPress-Standardoptik sichtbar werden.
 * ===========================================================================
 */


/* ===========================================================================
 * 1. GRUNDTYPOGRAFIE
 * ======================================================================== */

.ias-content {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #646464;
}

.ias-content p {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #646464;
	margin: 0 0 20px 0;
	padding: 0;
}

.ias-content > *:last-child {
	margin-bottom: 0;
}

/* --- Ueberschriften -----------------------------------------------------
 * Die globale h1-h6-Definition der Webseite ist auf Seitenueberschriften
 * ausgelegt (bis 35px). Innerhalb eines Fachartikels wird die Skala
 * feiner abgestuft, bleibt aber in Farbe, Schriftschnitt und Laufweite
 * identisch zum bestehenden Design.
 * --------------------------------------------------------------------- */

.ias-content h2 {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 25px;
	line-height: 31px;
	color: #343434;
	margin: 40px 0 15px 0;
	padding: 0;
	word-wrap: break-word;
}

.ias-content h3 {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 26px;
	color: #343434;
	margin: 32px 0 12px 0;
	padding: 0;
	word-wrap: break-word;
}

.ias-content h4 {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 24px;
	color: #343434;
	margin: 28px 0 10px 0;
	padding: 0;
	word-wrap: break-word;
}

.ias-content h5,
.ias-content h6 {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 22px;
	color: #343434;
	margin: 24px 0 8px 0;
	padding: 0;
	word-wrap: break-word;
}

.ias-content h2:first-child,
.ias-content h3:first-child,
.ias-content h4:first-child {
	margin-top: 0;
}

/* --- Links --------------------------------------------------------------- */

.ias-content a:link,
.ias-content a:visited {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: inherit;
	line-height: inherit;
	color: #0069b4;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: all 0.2s ease-in-out;
}

.ias-content a:hover,
.ias-content a:active {
	color: #0c70b8;
	text-decoration: none;
}

.ias-content strong,
.ias-content b {
	font-weight: 500;
	color: #424242;
}


/* ===========================================================================
 * 2. LISTEN
 * Unsortierte Listen nutzen das Haekchen-Icon der bestehenden Webseite.
 * ======================================================================== */

.ias-content ul {
	list-style-image: url(../img/check_li.png);
	list-style-position: outside;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #646464;
	margin: 0 0 20px 20px;
	padding: 0;
}

.ias-content ol {
	list-style-position: outside;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #646464;
	margin: 0 0 20px 20px;
	padding: 0;
}

.ias-content li {
	margin: 0 0 5px 10px;
}

.ias-content li > ul,
.ias-content li > ol {
	margin-top: 8px;
	margin-bottom: 8px;
}


/* ===========================================================================
 * 3. BILDER UND MEDIEN
 * ======================================================================== */

.ias-content img,
.ias-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.ias-content figure {
	margin: 0 0 25px 0;
	padding: 0;
}

.ias-content figcaption,
.ias-content .wp-element-caption {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #949494;
	margin: 10px 0 0 0;
	text-align: left;
}

.ias-content .wp-block-image.alignleft,
.ias-content .alignleft {
	float: left;
	margin: 5px 25px 20px 0;
	max-width: 50%;
}

.ias-content .wp-block-image.alignright,
.ias-content .alignright {
	float: right;
	margin: 5px 0 20px 25px;
	max-width: 50%;
}

.ias-content .wp-block-image.aligncenter,
.ias-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.ias-content .aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

/*
 * Breite Ausrichtung.
 * Der Artikeltext ist auf 800px Lesebreite begrenzt. alignwide und alignfull
 * duerfen darueber hinausgehen, damit Bilder und Tabellen mehr Raum bekommen.
 */
.ias-content .alignwide {
	width: 100%;
	max-width: 1000px;
	margin-left: 0;
	margin-right: 0;
}

.ias-content .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Eingebettete Inhalte (YouTube, Vimeo ...) */
.ias-content .wp-block-embed__wrapper {
	position: relative;
}

.ias-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	padding-top: 56.25%;
}

.ias-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ias-content iframe,
.ias-content video {
	max-width: 100%;
	border: 0;
}

/* Galerie */
.ias-content .wp-block-gallery {
	margin-bottom: 25px;
}


/* ===========================================================================
 * 4. TABELLEN
 * ======================================================================== */

.ias-content .wp-block-table {
	margin: 0 0 25px 0;
	overflow-x: auto;
}

.ias-content table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 22px;
	color: #646464;
	background-color: #ffffff;
}

.ias-content table th,
.ias-content table td {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 22px;
	color: #646464;
	border: 1px solid #e1e1e1;
	padding: 12px 15px;
	text-align: left;
	vertical-align: top;
}

.ias-content table th {
	background-color: #f9f9f9;
	font-weight: 500;
	color: #343434;
}

.ias-content table tbody tr:nth-child(even) td {
	background-color: #fcfcfc;
}

.ias-content .wp-block-table figcaption {
	margin-top: 8px;
}


/* ===========================================================================
 * 5. ZITATE
 * ======================================================================== */

.ias-content blockquote,
.ias-content .wp-block-quote {
	margin: 0 0 25px 0;
	padding: 5px 0 5px 25px;
	border-left: 3px solid #0069b4;
	background-color: transparent;
}

.ias-content blockquote p,
.ias-content .wp-block-quote p {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	color: #424242;
	margin: 0 0 10px 0;
}

.ias-content blockquote cite,
.ias-content .wp-block-quote cite {
	display: block;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-style: normal;
	font-size: 14px;
	line-height: 20px;
	color: #949494;
}

/* Hervorgehobenes Zitat */
.ias-content .wp-block-pullquote {
	margin: 0 0 25px 0;
	padding: 30px;
	border-top: 0;
	border-bottom: 0;
	border-left: 3px solid #0069b4;
	background-color: #f9f9f9;
	text-align: left;
}

.ias-content .wp-block-pullquote p {
	font-size: 22px;
	line-height: 32px;
	color: #343434;
}


/* ===========================================================================
 * 6. BUTTONS
 * Stil exakt wie .button_kontakt der bestehenden Webseite.
 * ======================================================================== */

.ias-content .wp-block-buttons {
	margin: 0 0 25px 0;
	gap: 10px;
}

.ias-content .wp-block-button__link {
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	padding: 11px 24px;
	box-sizing: border-box;
	background-color: #0c70b8;
	color: #ffffff;
	border: 1px solid #0c70b8;
	border-radius: 0;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

.ias-content .wp-block-button__link:hover,
.ias-content .wp-block-button__link:focus {
	background-color: transparent;
	color: #0c70b8;
	text-decoration: none;
}

.ias-content .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: #0069b4;
	border-color: #0069b4;
}

.ias-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #0069b4;
	color: #ffffff;
}


/* ===========================================================================
 * 7. SPALTEN, TRENNER, SONSTIGE BLOECKE
 * ======================================================================== */

.ias-content .wp-block-columns {
	margin: 0 0 25px 0;
	gap: 30px;
}

.ias-content .wp-block-column > *:last-child {
	margin-bottom: 0;
}

.ias-content hr,
.ias-content .wp-block-separator {
	height: 0;
	margin: 35px 0;
	border: 0;
	border-top: 1px solid #e1e1e1;
	background: none;
	opacity: 1;
}

.ias-content .wp-block-separator.is-style-dots {
	border-top: 0;
	text-align: center;
	color: #d2d2d2;
}

/* Codeblock */
.ias-content pre,
.ias-content .wp-block-code {
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 14px;
	line-height: 22px;
	color: #424242;
	background-color: #f9f9f9;
	border: 1px solid #e1e1e1;
	padding: 18px 20px;
	margin: 0 0 25px 0;
	overflow-x: auto;
	white-space: pre;
}

.ias-content code {
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 14px;
	background-color: #f2f2f2;
	padding: 2px 6px;
	color: #424242;
}

.ias-content pre code {
	background: none;
	padding: 0;
}

/* Hinweisbox (Gruppe mit Hintergrundfarbe) */
.ias-content .wp-block-group.has-background {
	padding: 30px;
	margin-bottom: 25px;
}

/* Datei- und Downloadblock */
.ias-content .wp-block-file a.wp-block-file__button {
	background-color: #0c70b8;
	color: #ffffff;
	border-radius: 0;
	padding: 8px 18px;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 16px;
	text-decoration: none;
}

/* Seitenweise Blaetterung innerhalb eines Beitrags */
.ias-article__pages {
	float: left;
	width: 100%;
	margin: 30px 0 0 0;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #646464;
}

.ias-article__pages a {
	color: #0069b4;
	text-decoration: none;
	padding: 0 6px;
}


/* ===========================================================================
 * 8. RESPONSIVE
 * Bestehende Breakpoints der Webseite.
 * ======================================================================== */

@media only screen and (min-width: 750px) {

	.ias-content h2 {
		font-size: 30px;
		line-height: 36px;
	}

	.ias-content h3 {
		font-size: 25px;
		line-height: 31px;
	}

	.ias-content h4 {
		font-size: 20px;
		line-height: 26px;
	}
}

/* Unterhalb von 750px stehen Spalten untereinander und Floats werden
   aufgehoben, damit der Text lesbar bleibt. */
@media only screen and (max-width: 749px) {

	.ias-content .wp-block-image.alignleft,
	.ias-content .alignleft,
	.ias-content .wp-block-image.alignright,
	.ias-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 20px 0;
	}

	.ias-content .wp-block-columns {
		flex-wrap: wrap;
	}
}
