/* =========================================================
Automaten-Richter – Ratgeber Hub & Artikel
========================================================= */

.richter-ratgeber,
.richter-ratgeber * {
	box-sizing: border-box;
}

.richter-ratgeber {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px 50px;
	color: #222;
}

.richter-ratgeber h1 {
	margin: 0 0 20px;
	font-size: 36px;
	line-height: 1.2;
}

.richter-ratgeber h2 {
	margin: 45px 0 15px;
	font-size: 28px;
	line-height: 1.25;
}

.richter-ratgeber h3 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
}

.richter-ratgeber p {
	line-height: 1.65;
}

.richter-ratgeber__intro {
	max-width: 900px;
	font-size: 18px;
	margin-bottom: 35px;
}

/* ---------------------------------------------------------
Featured beginner guide
--------------------------------------------------------- */

.richter-ratgeber__featured {
	margin-top: 35px;
	padding: 35px 40px;
	border-radius: 8px;
	background: #f4f4f4;
	border: 1px solid #ddd;
}

.richter-ratgeber__featured-content {
	max-width: 800px;
}

.richter-ratgeber__eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.richter-ratgeber__featured h2 {
	margin: 0 0 12px;
	font-size: 30px;
}

.richter-ratgeber__featured p {
	margin: 0 0 22px;
	max-width: 760px;
}

/* ---------------------------------------------------------
Button
--------------------------------------------------------- */

.richter-ratgeber__button,
.richter-ratgeber__button:visited,
.richter-ratgeber__button:hover,
.richter-ratgeber__button:focus,
.richter-ratgeber__button:active {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 4px;
	background: #222;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	transition: opacity .2s ease;
}

.richter-ratgeber__button:hover,
.richter-ratgeber__button:focus {
	color: #fff !important;
	opacity: .82;
}

/* ---------------------------------------------------------
Topic grid / cards
--------------------------------------------------------- */

.richter-ratgeber__topics {
	margin-top: 10px;
}

.richter-ratgeber__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 25px;
}

.richter-ratgeber__card {
	position: relative;
	min-height: 175px;
	padding: 24px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.richter-ratgeber__card-number {
	display: block;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	color: #777;
	letter-spacing: .05em;
}

.richter-ratgeber__card h3 {
	margin-bottom: 8px;
}

.richter-ratgeber__card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #555;
}

.richter-ratgeber__card > a {
	display: block;
	margin-top: 14px;
	color: inherit;
	text-decoration: underline;
}

.richter-ratgeber__card > a:hover,
.richter-ratgeber__card > a:focus {
	text-decoration: none;
}

/* ---------------------------------------------------------
About section
--------------------------------------------------------- */

.richter-ratgeber__about {
	max-width: 900px;
	margin-top: 15px;
}

.richter-ratgeber__about p {
	margin-bottom: 15px;
}

/* =========================================================
Ratgeber article
========================================================= */

.richter-ratgeber--article {
	max-width: 950px;
}

.richter-ratgeber--article h1 {
	margin-bottom: 25px;
}

.richter-ratgeber--article .richter-ratgeber__intro {
	margin-bottom: 35px;
	padding: 25px 30px;
	border-left: 4px solid #222;
	background: #f4f4f4;
}

.richter-ratgeber__intro p {
	margin: 0 0 12px;
}

.richter-ratgeber__intro p:last-child {
	margin-bottom: 0;
}

.richter-ratgeber__section {
	margin-top: 50px;
}

.richter-ratgeber__section h2 {
	margin-top: 0;
	margin-bottom: 20px;
}

.richter-ratgeber__section h3 {
	margin-top: 0;
}

.richter-ratgeber__section ul {
	padding-left: 25px;
}

.richter-ratgeber__section li {
	margin-bottom: 12px;
	line-height: 1.6;
}

.richter-ratgeber__comparison {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 25px 0;
}

.richter-ratgeber__info-card {
	padding: 25px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.richter-ratgeber__info-card p {
	margin-bottom: 0;
}

.richter-ratgeber__note {
	margin: 25px 0;
	padding: 20px 25px;
	border-radius: 6px;
	background: #f4f4f4;
	line-height: 1.6;
}

.richter-ratgeber__mistakes {
	margin-top: 25px;
}

.richter-ratgeber__mistakes li {
	padding-bottom: 5px;
}

.richter-ratgeber__conclusion {
	margin-top: 50px;
	padding: 25px;
	text-align: center;
	font-size: 20px;
	border-top: 1px solid #ddd;
}

/* ---------------------------------------------------------
Tables
--------------------------------------------------------- */

.richter-ratgeber table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	margin: 25px 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 15px;
	line-height: 1.5;
}

.richter-ratgeber th,
.richter-ratgeber td {
	min-width: 130px;
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	border: 1px solid #ddd;
}

.richter-ratgeber th {
	font-weight: 700;
	background: #f4f4f4;
}

.richter-ratgeber td {
	background: #fff;
}

.richter-ratgeber tr:nth-child(even) td {
	background: #fafafa;
}

.richter-ratgeber a {
	color: inherit;
	text-decoration: underline;
}

.richter-ratgeber a:hover,
.richter-ratgeber a:focus {
	text-decoration: none;
}

.richter-ratgeber strong {
	font-weight: 700;
}

.richter-ratgeber hr {
	margin: 45px 0;
	border: 0;
	border-top: 1px solid #ddd;
}

/* ---------------------------------------------------------
Responsive
--------------------------------------------------------- */

@media (max-width: 1000px) {
	.richter-ratgeber__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.richter-ratgeber__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.richter-ratgeber {
		padding: 15px 12px 40px;
	}

	.richter-ratgeber h1 {
		font-size: 30px;
	}

	.richter-ratgeber h2 {
		font-size: 24px;
		margin-top: 35px;
	}

	.richter-ratgeber__intro {
		font-size: 17px;
	}

	.richter-ratgeber__featured {
		padding: 25px 20px;
		margin-top: 25px;
	}

	.richter-ratgeber__featured h2 {
		font-size: 25px;
	}

	.richter-ratgeber__button {
		display: block;
		text-align: center;
	}

	.richter-ratgeber__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.richter-ratgeber__card {
		min-height: auto;
		padding: 20px;
	}

	.richter-ratgeber--article .richter-ratgeber__intro {
		padding: 20px;
	}

	.richter-ratgeber__section {
		margin-top: 40px;
	}

	.richter-ratgeber__comparison {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.richter-ratgeber__info-card {
		padding: 20px;
	}

	.richter-ratgeber__note {
		padding: 18px 20px;
	}

	.richter-ratgeber table {
		font-size: 14px;
	}

	.richter-ratgeber th,
	.richter-ratgeber td {
		padding: 11px 12px;
	}
}
