/* ============================================
   RechenWerk Components — Clean WordPress Style
   ============================================ */

/* ============================================
   Buttons
   ============================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.5rem;
	font-family: var(--rw-font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--rw-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all var(--rw-transition);
	text-decoration: none;
	white-space: nowrap;
}

.btn--primary {
	background: var(--rw-accent);
	color: #fff;
	border-color: var(--rw-accent);
}

.btn--primary:hover {
	background: var(--rw-accent-hover);
	border-color: var(--rw-accent-hover);
	color: #fff;
}

.btn--outline {
	background: transparent;
	color: var(--rw-accent);
	border-color: var(--rw-accent);
}

.btn--outline:hover {
	background: var(--rw-accent);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--rw-text-secondary);
	border-color: var(--rw-border);
}

.btn--ghost:hover {
	background: var(--rw-bg-alt);
	color: var(--rw-text);
	border-color: var(--rw-border-strong);
}

/* ============================================
   Calculator Cards (used in archive/list pages)
   ============================================ */

.calc-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.calc-card {
	background: #fff;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--rw-transition), box-shadow var(--rw-transition);
}

.calc-card:hover {
	border-color: var(--rw-accent);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.calc-card__icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rw-accent);
	margin-bottom: 0.75rem;
}

.calc-card__icon svg {
	width: 28px;
	height: 28px;
}

.calc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.calc-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--rw-text);
	margin-bottom: 0.4rem;
}

.calc-card__desc {
	font-size: 0.9rem;
	color: var(--rw-text-muted);
	margin-bottom: 0.75rem;
	flex: 1;
}

.calc-card__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--rw-text-muted);
	background: var(--rw-bg-alt);
	padding: 0.2rem 0.6rem;
	border-radius: var(--rw-radius-sm);
	align-self: flex-start;
}

.calc-card__arrow {
	display: none;
}

/* ============================================
   Filter Bar (archive page)
   ============================================ */

.filter-bar {
	margin-bottom: 2rem;
}

.filter-bar__search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-md);
	padding: 0.5rem 1rem;
	max-width: 400px;
	margin-bottom: 1rem;
}

.filter-bar__search svg {
	width: 18px;
	height: 18px;
	color: var(--rw-text-muted);
	flex-shrink: 0;
}

.filter-bar__search input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0.5rem 0;
	font-size: 0.95rem;
	background: transparent;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.filter-chip {
	padding: 0.4rem 1rem;
	background: #fff;
	border: 1px solid var(--rw-border);
	color: var(--rw-text-secondary);
	border-radius: var(--rw-radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--rw-transition);
}

.filter-chip:hover {
	border-color: var(--rw-accent);
	color: var(--rw-accent);
}

.filter-chip.is-active {
	background: var(--rw-accent);
	color: #fff;
	border-color: var(--rw-accent);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--rw-text-muted);
}

.empty-state__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 1rem;
	color: var(--rw-border-strong);
}

.empty-state__icon svg {
	width: 48px;
	height: 48px;
}

/* ============================================
   Accordion (FAQ)
   ============================================ */

.accordion {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.accordion__item {
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-md);
	overflow: hidden;
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1rem 1.25rem;
	background: #fff;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	color: var(--rw-text);
	text-align: left;
}

.accordion__header:hover {
	color: var(--rw-accent);
}

.accordion__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: transform var(--rw-transition);
}

.accordion__item.is-open .accordion__icon {
	transform: rotate(180deg);
}

.accordion__content {
	display: none;
	padding: 0 1.25rem 1.25rem;
	color: var(--rw-text-secondary);
	line-height: var(--rw-lh-relaxed);
	font-size: 0.95rem;
}

.accordion__item.is-open .accordion__content {
	display: block;
}

/* ============================================
   Showcase / Featured (archive page)
   ============================================ */

.showcase-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 2rem;
}

.showcase-header__title {
	font-size: 1.85rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.showcase-header__desc {
	font-size: 1rem;
	color: var(--rw-text-muted);
}

.showcase-header__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--rw-accent);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

.showcase-header__link svg {
	width: 16px;
	height: 16px;
}

.showcase-header__link:hover {
	color: var(--rw-accent-hover);
}

/* Ranking list (featured calculators) */
.ranking-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.ranking-feature,
.ranking-row {
	background: #fff;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--rw-transition), box-shadow var(--rw-transition);
}

.ranking-feature:hover,
.ranking-row:hover {
	border-color: var(--rw-accent);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ranking-rows {
	display: contents;
}

.ranking-feature__num,
.ranking-row__num {
	display: none;
}

.ranking-feature__meta,
.ranking-row__icon {
	margin-bottom: 0.75rem;
	color: var(--rw-accent);
}

.ranking-feature__meta svg,
.ranking-row__icon svg {
	width: 28px;
	height: 28px;
}

.ranking-feature__cat,
.ranking-row__cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--rw-text-muted);
	background: var(--rw-bg-alt);
	padding: 0.2rem 0.6rem;
	border-radius: var(--rw-radius-sm);
	margin-bottom: 0.5rem;
}

.ranking-feature__title,
.ranking-row__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--rw-text);
	margin-bottom: 0.4rem;
}

.ranking-feature__desc,
.ranking-row__desc {
	font-size: 0.9rem;
	color: var(--rw-text-muted);
	margin-bottom: 0.75rem;
	flex: 1;
}

.ranking-feature__cta {
	color: var(--rw-accent);
	font-weight: 600;
	font-size: 0.9rem;
}

.ranking-feature__cta svg {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
}

.ranking-row__arrow {
	display: none;
}

.ranking-feature__body,
.ranking-row__body {
	display: contents;
}

/* ============================================
   Category Grid (archive page)
   ============================================ */

.cat-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.cat-row {
	background: #fff;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--rw-transition), box-shadow var(--rw-transition);
}

.cat-row:hover {
	border-color: var(--rw-accent);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cat-row__num,
.cat-row__arrow {
	display: none;
}

.cat-row__icon {
	color: var(--rw-accent);
	margin-bottom: 0.75rem;
}

.cat-row__icon svg {
	width: 32px;
	height: 32px;
}

.cat-row__name {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rw-text);
	margin-bottom: 0.4rem;
}

.cat-row__desc {
	font-size: 0.9rem;
	color: var(--rw-text-muted);
	margin-bottom: 0.75rem;
}

.cat-row__count {
	display: inline-block;
	background: var(--rw-bg-alt);
	padding: 0.25rem 0.85rem;
	border-radius: var(--rw-radius-sm);
	font-size: 0.85rem;
	color: var(--rw-text-secondary);
	font-weight: 600;
}

.cat-row__count-label {
	font-weight: 400;
}

/* ============================================
   Steps Timeline
   ============================================ */

.steps-timeline {
	margin-top: 2rem;
}

.steps-timeline__line {
	display: none;
}

.steps-timeline__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.steps-timeline__step {
	background: #fff;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius-lg);
	padding: 1.75rem;
	text-align: center;
}

.steps-timeline__num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rw-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 auto 1rem;
}

.steps-timeline__title {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.steps-timeline__desc {
	font-size: 0.9rem;
	color: var(--rw-text-muted);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
	text-align: center;
	padding: 2.5rem;
	background: var(--rw-bg-alt);
	border-radius: var(--rw-radius-lg);
}

.cta-section__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.cta-section__desc {
	font-size: 1.05rem;
	color: var(--rw-text-secondary);
	max-width: 550px;
	margin: 0 auto 1.5rem;
}

.cta-section__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.5rem;
	background: var(--rw-accent);
	color: #fff;
	font-weight: 600;
	border-radius: var(--rw-radius-sm);
	text-decoration: none;
	transition: background var(--rw-transition);
}

.cta-section__btn:hover {
	background: var(--rw-accent-hover);
	color: #fff;
}

.cta-section__btn svg {
	width: 16px;
	height: 16px;
}

/* ============================================
   Trust Section
   ============================================ */

.trust-section {
	padding: 2rem 0;
	background: #fff;
	border-top: 1px solid var(--rw-border);
}

.trust-grid {
	display: flex;
	justify-content: center;
	gap: 2.5rem;
	flex-wrap: wrap;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--rw-text-secondary);
	font-size: 0.9rem;
	font-weight: 500;
}

.trust-item__icon {
	color: var(--rw-accent);
}

.trust-item__icon svg {
	width: 20px;
	height: 20px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
	.showcase-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.steps-timeline__steps {
		grid-template-columns: 1fr;
	}

	.filter-bar__search {
		max-width: 100%;
	}
}
