/*
 * RisingWeb Base – Abschnitts-Styles für Divi 5
 *
 * Die Klassen werden in Divi unter Erweitert → Attribute → class gesetzt.
 * Abschnitt: rw-s plus eine Variante (rw-s--white, rw-s--dark, rw-s--hero, rw-s--cta)
 * Zeile:     rw-row-head, rw-row-cards, rw-row-btns, rw-row-narrow, rw-reveal
 * Modul:     rw-head, rw-hero-copy, rw-card, rw-feature, rw-step, rw-price, rw-ref-img,
 *            rw-ref-body, rw-photo, rw-faq, rw-mockup, rw-btn, rw-btn--ghost, rw-note
 */

/* ---------- Abschnitte ---------- */
.et_pb_section.rw-s {
	padding: var(--rw-space-8) 0;
	background-color: var(--rw-color-background);
}

.et_pb_section.rw-s--white {
	background-color: var(--rw-color-surface);
}

.et_pb_section.rw-s--dark,
.et_pb_section.rw-s--hero,
.et_pb_section.rw-s--cta {
	color: var(--rw-color-background);
	background-color: var(--rw-color-primary);
}

.et_pb_section.rw-s--dark {
	background-image: radial-gradient(ellipse 55% 45% at 85% 0%, rgba(255, 111, 89, 0.28) 0%, rgba(42, 31, 69, 0) 70%);
}

.et_pb_section.rw-s--hero {
	padding: 72px 0 0;
	overflow: hidden;
	background-image:
		radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 111, 89, 0.45) 0%, rgba(255, 111, 89, 0.12) 45%, rgba(42, 31, 69, 0) 75%),
		linear-gradient(180deg, var(--rw-color-primary-deep) 0%, var(--rw-color-primary) 100%);
}

.et_pb_section.rw-s--cta {
	background-image: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(255, 111, 89, 0.5) 0%, rgba(255, 111, 89, 0.1) 50%, rgba(42, 31, 69, 0) 80%);
}

/* Text in dunklen Abschnitten – Karten darin bleiben dunkel auf weiß */
.rw-s--dark,
.rw-s--hero,
.rw-s--cta {
	--rw-on-section: var(--rw-color-background);
	--rw-on-section-muted: var(--rw-color-border);
}

.rw-s--dark :is(h1, h2, h3, p, li),
.rw-s--hero :is(h1, h2, h3, p, li),
.rw-s--cta :is(h1, h2, h3, p, li) {
	color: var(--rw-on-section);
}

.rw-s--dark .rw-eyebrow,
.rw-s--hero .rw-eyebrow,
.rw-s--cta .rw-eyebrow {
	color: var(--rw-color-accent);
}

.rw-s--dark .rw-lead,
.rw-s--hero .rw-lead,
.rw-s--cta .rw-lead,
.rw-s--dark .rw-note p {
	color: var(--rw-on-section-muted);
}

.rw-s--dark .rw-note a {
	color: var(--rw-color-accent);
}

/* ---------- Zeilen ---------- */
.rw-s .et_pb_row {
	padding: 0;
}

.rw-s .et_pb_row + .et_pb_row {
	margin-top: var(--rw-space-6);
}

.rw-s .et_pb_row.rw-row-btns {
	margin-top: var(--rw-space-5);
}

.rw-s--hero .et_pb_row.rw-row-btns + .et_pb_row {
	margin-top: var(--rw-space-3);
}

.rw-row-about {
	align-items: center;
}

.rw-s .et_pb_row.rw-row-narrow {
	max-width: 820px;
}

.rw-s .et_pb_module {
	margin-bottom: 0;
}

.rw-s .et_pb_column .et_pb_module + .et_pb_module {
	margin-top: 0;
}

/* Karten einer Zeile gleich hoch */
.rw-row-cards > .et_pb_column {
	display: flex;
	flex-direction: column;
}

.rw-row-cards > .et_pb_column > .et_pb_module:last-child {
	flex: 1 1 auto;
}

/* Buttons nebeneinander */
.rw-row-btns > .et_pb_column {
	display: flex !important;
	flex-flow: row wrap;
	justify-content: center;
	gap: 14px;
}

.rw-row-btns .et_pb_button_module_wrapper {
	margin: 0 !important;
}

/* ---------- Typografie in Abschnitten ---------- */
.rw-s h1,
.rw-s h2,
.rw-s h3 {
	padding-bottom: 0;
	font-weight: 800;
}

.rw-s h1 {
	font-size: clamp(2.125rem, 1.4rem + 4.2vw, 5.25rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.rw-s h2 {
	font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.rw-s h3 {
	font-size: 1.3125rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.rw-s p {
	padding-bottom: 0;
}

.rw-s .rw-serif {
	letter-spacing: -0.01em;
}

.rw-s--hero h1 .rw-serif,
.rw-s--cta h2 .rw-serif {
	color: var(--rw-color-accent);
}

.rw-lead {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	color: var(--rw-color-muted);
}

/* Kopfbereich eines Abschnitts: Überzeile, Headline, Einleitung */
.rw-head {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

:is(.rw-head, .rw-hero-copy, .rw-card, .rw-about) :is(h1, h2, h3, p, ul, ol, table) + :is(h1, h2, h3, p, ul, ol, table) {
	margin-top: var(--rw-gap, 14px);
}

.rw-eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rw-color-accent-strong);
}

/* ---------- Hero ---------- */
.rw-hero-copy {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.rw-hero-copy {
	--rw-gap: 24px;
}

.rw-hero-copy .rw-lead {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.rw-pill {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid rgba(250, 247, 242, 0.25);
	border-radius: 999px;
	background: rgba(250, 247, 242, 0.06);
	font-size: 0.875rem;
	font-weight: 600;
}

.rw-s--hero p.rw-pill {
	color: var(--rw-color-border);
}

ul.rw-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	font-weight: 600;
}

ul.rw-facts li {
	position: relative;
	padding-left: 22px;
}

ul.rw-facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--rw-color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1F45' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.rw-mockup {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}

.rw-mockup img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

/* ---------- Buttons ---------- */
body #page-container .et_pb_button.rw-btn,
body #page-container .rw-btn .et_pb_button,
body #page-container .et_pb_button.rw-btn:hover,
body #page-container .rw-btn .et_pb_button:hover {
	/* Divi setzt das Button-Padding pro Modul mit hoher Spezifität */
	padding: 14px 26px !important;
	font-size: 1rem;
	line-height: 1.3 !important;
	text-align: center;
}

body #page-container .et_pb_button.rw-btn--ghost,
body #page-container .rw-btn--ghost .et_pb_button {
	background: transparent;
	border-color: rgba(250, 247, 242, 0.5);
	color: var(--rw-color-background);
}

body #page-container .et_pb_button.rw-btn--ghost:hover,
body #page-container .rw-btn--ghost .et_pb_button:hover {
	background: var(--rw-color-background);
	border-color: var(--rw-color-background);
	color: var(--rw-color-primary);
}

/* ---------- Karten ---------- */
.rw-s .rw-card {
	height: 100%;
	padding: var(--rw-space-5);
	border-radius: 20px;
	color: var(--rw-color-text);
}

.rw-card {
	--rw-gap: 12px;
}

.rw-s .rw-card :is(h3, p, li) {
	color: var(--rw-color-text);
}

.rw-s .rw-card p {
	color: var(--rw-color-muted);
}

.rw-s--dark .rw-card {
	border-color: transparent;
}

/* Leistungs-Karte mit Icon */
.rw-feature h3 {
	font-size: 1.375rem;
}

.rw-feature h3::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--rw-color-accent-soft) var(--rw-icon) center / 24px no-repeat;
}

.rw-ico-web {
	--rw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C43D27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E");
}

.rw-ico-ai {
	--rw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C43D27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
}

.rw-ico-care {
	--rw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C43D27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

ul.rw-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 4px 0 0;
	list-style: none;
}

.rw-s ul.rw-chips li {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--rw-color-tint);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rw-color-text);
}

/* Schritte */
.rw-s .rw-step {
	box-shadow: none;
	background: transparent;
}

.rw-s .rw-card p.rw-step-num {
	font-family: var(--rw-font-accent);
	font-style: italic;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--rw-color-accent-strong);
}

.rw-step h3 {
	font-size: 1.1875rem;
}

/* Pakete */
.rw-s .rw-price .rw-amount {
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--rw-color-text);
}

.rw-price ul {
	margin: 0;
	padding: 0 0 0 20px;
}

.rw-price li + li {
	margin-top: 6px;
}

.rw-s .rw-price--featured {
	border: 3px solid var(--rw-color-accent);
	padding: 29px;
	box-shadow: 0 20px 60px rgba(255, 111, 89, 0.3);
}

.rw-s .rw-card p.rw-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rw-color-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rw-color-on-accent);
}

.rw-note {
	text-align: center;
}

/* Referenzen: Bild oben, Text darunter als eine Karte */
.rw-ref-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid var(--rw-color-border);
	border-bottom: 0;
	border-radius: 20px 20px 0 0;
}

.rw-s .rw-ref-body {
	border-top: 0;
	border-radius: 0 0 20px 20px;
	box-shadow: none;
}

.rw-s .rw-card p.rw-eyebrow {
	color: var(--rw-color-accent-strong);
}

.rw-ref-body .rw-eyebrow {
	letter-spacing: 0.12em;
}

/* Über mich */
.rw-photo img {
	display: block;
	width: 100%;
	max-width: 360px;
	aspect-ratio: 9 / 10;
	object-fit: cover;
	border-radius: 24px;
}

.rw-about {
	--rw-gap: 16px;
}

.rw-about p:not(.rw-eyebrow) {
	font-size: 1.125rem;
	color: var(--rw-color-muted);
}

/* FAQ */
.rw-s .et_pb_column .rw-faq + .rw-faq {
	margin-top: 12px;
}

.rw-faq details {
	padding: 20px 24px;
	border: 1px solid var(--rw-color-border);
	border-radius: 16px;
	background: var(--rw-color-surface);
}

.rw-faq summary {
	position: relative;
	padding-right: 32px;
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.rw-faq summary::-webkit-details-marker {
	display: none;
}

.rw-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--rw-color-accent-strong);
}

.rw-faq details[open] summary::after {
	content: "–";
}

.rw-s .rw-faq details p {
	margin-top: 12px;
	color: var(--rw-color-muted);
}

/* ---------- Bewegung ---------- */
@keyframes rw-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.rw-s--hero .et_pb_row {
	animation: rw-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rw-s--hero .et_pb_row:nth-child(2) {
	animation-delay: 0.2s;
}

.rw-s--hero .et_pb_row:nth-child(3) {
	animation-delay: 0.4s;
}

@supports (animation-timeline: view()) {
	.rw-reveal {
		animation: rw-up linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 25%;
	}
}

.rw-lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rw-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(30, 22, 51, 0.25);
}

@media (prefers-reduced-motion: reduce) {
	.rw-s--hero .et_pb_row,
	.rw-reveal {
		animation: none;
	}

	.rw-lift:hover {
		transform: none;
	}
}

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
	.et_pb_section.rw-s {
		padding: var(--rw-space-7) 0;
	}

	.et_pb_section.rw-s--hero {
		padding: 56px 0 0;
	}

	.rw-s .et_pb_row + .et_pb_row {
		margin-top: var(--rw-space-5);
	}

	.rw-s--hero .et_pb_row:last-child {
		width: 94%;
	}
}

/* ==========================================================================
   Unterseiten (0.3.0)
   ========================================================================== */

/* Seitenkopf: kompakter dunkler Abschnitt mit H1 */
.et_pb_section.rw-s--pagehead {
	padding: 88px 0 80px;
	color: var(--rw-color-background);
	background-color: var(--rw-color-primary);
	background-image:
		radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255, 111, 89, 0.4) 0%, rgba(255, 111, 89, 0.08) 50%, rgba(42, 31, 69, 0) 75%),
		linear-gradient(180deg, var(--rw-color-primary-deep) 0%, var(--rw-color-primary) 100%);
}

.rw-s--pagehead :is(h1, h2, p, li) {
	color: var(--rw-color-background);
}

.rw-s--pagehead .rw-eyebrow {
	color: var(--rw-color-accent);
}

.rw-s--pagehead .rw-lead {
	color: var(--rw-color-border);
}

.rw-s--pagehead h1 {
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.rw-s--pagehead h1 .rw-serif {
	color: var(--rw-color-accent);
}

/* Karten mit Haken-Liste und Button unten */
ul.rw-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.rw-checks li {
	position: relative;
	padding-left: 26px;
}

ul.rw-checks li + li {
	margin-top: 8px;
}

ul.rw-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rw-color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C43D27' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.rw-card .et_pb_text_inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.rw-s .rw-card p.rw-card-action {
	margin-top: auto;
	padding-top: var(--rw-space-4);
}

.rw-card-action a.rw-btn {
	display: block;
	text-align: center;
	border-radius: 999px;
}

.rw-s .rw-card p.rw-meta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rw-color-accent-strong);
}

.rw-per {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--rw-color-muted);
}

/* Tabelle für Bausteine */
.rw-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--rw-color-border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--rw-color-surface);
	font-size: 0.9375rem;
}

.rw-table th,
.rw-table td {
	padding: 16px 20px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--rw-color-border);
}

.rw-table tr:last-child td {
	border-bottom: 0;
}

.rw-table th {
	background: var(--rw-color-tint);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rw-color-text);
}

.rw-table td:first-child {
	font-weight: 700;
	color: var(--rw-color-text);
}

.rw-table td:nth-child(2) {
	color: var(--rw-color-muted);
}

.rw-table td:last-child {
	white-space: nowrap;
	font-weight: 700;
	color: var(--rw-color-text);
}

@media (max-width: 767px) {
	.rw-table thead {
		display: none;
	}

	.rw-table tr {
		display: block;
		padding: 16px 20px;
		border-bottom: 1px solid var(--rw-color-border);
	}

	.rw-table tr:last-child {
		border-bottom: 0;
	}

	.rw-table td {
		display: block;
		padding: 0;
		border: 0;
		white-space: normal !important;
	}

	.rw-table td + td {
		margin-top: 4px;
	}
}

/* Kontakt */
.rw-row-contact {
	align-items: flex-start;
}

.rw-s .rw-form {
	padding: 40px;
}

.rw-form h2 {
	font-size: 1.75rem;
	margin-bottom: 20px;
}

.rw-s .rw-contact-info p.rw-direct {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--rw-color-border);
}

.rw-contact-info h2 {
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
}

ol.rw-next {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: rw-next;
}

ol.rw-next li {
	position: relative;
	padding-left: 52px;
	counter-increment: rw-next;
	color: var(--rw-color-muted);
}

ol.rw-next li + li {
	margin-top: 20px;
}

ol.rw-next li::before {
	content: counter(rw-next);
	position: absolute;
	left: 0;
	top: -4px;
	font-family: var(--rw-font-accent);
	font-style: italic;
	font-size: 2rem;
	line-height: 1;
	color: var(--rw-color-accent-strong);
}

ol.rw-next strong {
	display: block;
	color: var(--rw-color-text);
}

/* Fluent Forms im Markenstil */
.rw-form .fluentform .ff-el-group {
	margin-bottom: 18px;
}

.rw-form .fluentform .ff-el-input--label label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--rw-color-text);
}

.rw-form .fluentform .ff-el-form-control {
	padding: 12px 14px;
	border: 1px solid var(--rw-color-border);
	border-radius: 10px;
	background: var(--rw-color-background);
	font-family: inherit;
	font-size: 1rem;
	color: var(--rw-color-text);
}

.rw-form .fluentform .ff-el-form-control:focus {
	border-color: var(--rw-color-accent-strong);
	box-shadow: 0 0 0 3px rgba(255, 111, 89, 0.25);
	outline: none;
}

.rw-form .fluentform .ff-btn-submit {
	width: 100%;
	padding: 14px 26px;
	border: 2px solid var(--rw-color-accent);
	border-radius: 999px;
	background: var(--rw-color-accent) !important;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: var(--rw-color-on-accent) !important;
}

.rw-form .fluentform .ff-btn-submit:hover {
	border-color: var(--rw-color-accent-strong);
	background: var(--rw-color-accent-strong) !important;
	color: #fff !important;
}

/* Rechtstexte */
.rw-legal {
	--rw-gap: 12px;
}

.rw-s .rw-legal h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	margin-bottom: var(--rw-space-5);
}

.rw-s .rw-legal h2 {
	margin-top: var(--rw-space-5);
	font-size: 1.375rem;
}

.rw-s .rw-legal h3 {
	margin-top: var(--rw-space-4);
	font-size: 1.125rem;
}

.rw-legal :is(h1, h2, h3, p, ul) + :is(p, ul) {
	margin-top: 12px;
}

/* Hauptmenü: Menüpunkt mit CSS-Klasse rw-menu-cta wird zum Button */
#top-menu li.rw-menu-cta {
	padding-right: 0;
}

#top-menu li.rw-menu-cta > a {
	padding: 12px 22px !important;
	border-radius: 999px;
	background: var(--rw-color-accent);
	color: var(--rw-color-on-accent) !important;
	opacity: 1 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#top-menu li.rw-menu-cta > a:hover {
	background: var(--rw-color-accent-strong);
	color: #fff !important;
}

.et_header_style_left #et-top-navigation nav > ul > li.rw-menu-cta > a {
	padding-bottom: 12px;
}

#main-header #mobile_menu li.rw-menu-cta a {
	margin-top: 8px;
	border-radius: 999px;
	background: var(--rw-color-accent);
	text-align: center;
	color: var(--rw-color-on-accent);
}

.rw-s .rw-contact-info ol.rw-next {
	margin-top: 28px;
}
