/**
 * Wetterseite und Abschnitt „Wetter heute".
 * Nutzt nur die Design-Tokens des Themes (critical.css).
 */

/* --------------------------------------------------------------------------
   Himmelsfarben je Tageszeit
   -------------------------------------------------------------------------- */

.rst-wnow--day {
	--w-a: #0e7490;
	--w-b: #0ea5b7;
	--w-c: #5fd3cf;
}

.rst-wnow--dawn {
	--w-a: #3b4a7a;
	--w-b: #e07a5f;
	--w-c: #f6bd60;
}

.rst-wnow--dusk {
	--w-a: #2b2d64;
	--w-b: #b5487a;
	--w-c: #f39c4a;
}

.rst-wnow--night {
	--w-a: #060f26;
	--w-b: #0b2545;
	--w-c: #13315c;
}

/* --------------------------------------------------------------------------
   Kopf & Jetzt-Karte
   -------------------------------------------------------------------------- */

.rst-weather__head {
	padding-top: var(--rst-space-4);
}

.rst-weather__head h1 {
	margin: var(--rst-space-2) 0 var(--rst-space-5);
	font-size: clamp(1.9rem, 4vw, 3rem);
}

.rst-wnow {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: var(--rst-space-6);
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--rst-radius-xl);
	color: #fff;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
		linear-gradient(160deg, var(--w-a), var(--w-b) 55%, var(--w-c));
	box-shadow: 0 24px 60px rgba(6, 41, 56, 0.25);
	isolation: isolate;
}

/* Wellen am unteren Rand */
.rst-wnow::after {
	content: "";
	position: absolute;
	inset: auto -10% -2px -10%;
	z-index: -1;
	height: 90px;
	background:
		radial-gradient(60px 18px at 30px 0, transparent 98%, rgba(255, 255, 255, 0.12) 100%) 0 30px / 60px 60px repeat-x,
		radial-gradient(60px 18px at 30px 0, transparent 98%, rgba(255, 255, 255, 0.08) 100%) 30px 55px / 60px 60px repeat-x;
	animation: rst-wwave 12s linear infinite;
}

@keyframes rst-wwave {
	to {
		background-position: 60px 30px, 90px 55px;
	}
}

.rst-wnow__stars {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
		radial-gradient(1px 1px at 28% 40%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 46% 12%, #fff, transparent),
		radial-gradient(1px 1px at 63% 30%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 78% 14%, #fff, transparent),
		radial-gradient(1px 1px at 90% 44%, #fff, transparent),
		radial-gradient(1px 1px at 8% 55%, #fff, transparent),
		radial-gradient(1px 1px at 55% 52%, #fff, transparent);
	opacity: 0.8;
	animation: rst-wtwinkle 4s ease-in-out infinite alternate;
}

@keyframes rst-wtwinkle {
	to {
		opacity: 0.35;
	}
}

.rst-wnow__main {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0 var(--rst-space-5);
}

.rst-wnow__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	animation: rst-wfloat 6s ease-in-out infinite;
}

@keyframes rst-wfloat {
	50% {
		transform: translateY(-6px);
	}
}

.rst-wnow__temp {
	margin: 0;
	font-family: var(--rst-font-display);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.04em;
}

.rst-wnow__temp span {
	margin-left: 4px;
	font-size: 0.35em;
	font-weight: 500;
	vertical-align: top;
	opacity: 0.85;
}

.rst-wnow__cond {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: var(--rst-space-2) 0 0;
	font-size: var(--rst-fs-md, 1.05rem);
}

.rst-wnow__cond span {
	opacity: 0.85;
}

.rst-wnow__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rst-wnow__stats li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 10px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--rst-radius-lg);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
}

.rst-wnow__stats li > svg,
.rst-wnow__stats .rst-wcompass {
	grid-row: span 2;
}

.rst-wnow__stats span:not(.rst-wcompass) {
	font-size: var(--rst-fs-sm);
	opacity: 0.85;
}

.rst-wnow__stats strong {
	font-family: var(--rst-font-display);
	font-size: 1.35rem;
}

.rst-wnow__stats small {
	grid-column: 2;
	font-family: var(--rst-font-data);
	font-size: 11px;
	opacity: 0.8;
}

.rst-wnow__stats .is-water {
	background: rgba(255, 255, 255, 0.22);
}

.rst-wnow__foot {
	margin: 0;
	font-family: var(--rst-font-data);
	font-size: var(--rst-fs-xs, 0.75rem);
	opacity: 0.8;
}

.rst-wcompass {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
}

.rst-wcompass i {
	position: absolute;
	inset: 3px;
	transition: transform 0.6s ease;
}

.rst-wcompass i::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	border: 6px solid transparent;
	border-bottom: 12px solid #fff;
	border-top: 0;
	transform: translateX(-50%);
}

@media (min-width: 900px) {
	.rst-wnow {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: center;
	}

	.rst-wnow__foot {
		grid-column: 1 / -1;
	}
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.rst-wsec {
	margin-top: var(--rst-space-7);
}

.rst-wsec > h2 {
	margin-bottom: var(--rst-space-4);
	font-size: var(--rst-fs-2xl);
}

/* Einschätzungen */
.rst-wverdicts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--rst-space-4);
}

.rst-wverdict {
	padding: var(--rst-space-5);
	border: 1px solid var(--rst-line);
	border-top: 4px solid var(--_c, var(--rst-line));
	border-radius: var(--rst-radius-lg);
	background: var(--rst-surface);
	box-shadow: var(--rst-shadow-sm);
}

.rst-wverdict.is-good,
.rst-wteaser__verdicts .is-good {
	--_c: #16a34a;
}

.rst-wverdict.is-ok,
.rst-wteaser__verdicts .is-ok {
	--_c: #d97706;
}

.rst-wverdict.is-bad,
.rst-wteaser__verdicts .is-bad {
	--_c: #dc2626;
}

.rst-wverdict__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--rst-deep-800);
}

.rst-wverdict__dot {
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--_c);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--_c) 20%, transparent);
}

.rst-wverdict__text {
	margin: var(--rst-space-2) 0 var(--rst-space-3);
	color: var(--rst-ink-muted);
	font-size: var(--rst-fs-sm);
}

.rst-wverdict__tour {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	color: var(--rst-ink);
	font-size: var(--rst-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.rst-wverdict__tour:hover {
	color: var(--rst-lagoon-600);
}

.rst-wverdict__tour img {
	flex: none;
	width: 56px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
}

.rst-wverdict__tour small {
	display: block;
	color: var(--rst-ink-muted);
	font-family: var(--rst-font-data);
	font-weight: 400;
}

/* 24 Stunden */
.rst-whours {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scroll-snap-type: x mandatory;
}

.rst-whour {
	display: grid;
	flex: 0 0 78px;
	justify-items: center;
	gap: 6px;
	padding: 12px 6px;
	border: 1px solid var(--rst-line);
	border-radius: var(--rst-radius-lg);
	background: var(--rst-surface);
	scroll-snap-align: start;
	color: var(--rst-deep-800);
}

.rst-whour.is-now {
	border-color: var(--rst-deep-800);
	background: var(--rst-deep-800);
	color: #fff;
}

.rst-whour__time {
	font-family: var(--rst-font-data);
	font-size: 12px;
}

.rst-whour strong {
	font-size: 1.15rem;
}

.rst-whour small {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	opacity: 0.75;
}

.rst-warrow {
	display: inline-block;
	font-style: normal;
}

/* 7 Tage */
.rst-wdays {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--rst-line);
	border-radius: var(--rst-radius-lg);
	background: var(--rst-surface);
	overflow: hidden;
}

.rst-wday {
	display: grid;
	grid-template-columns: 130px 40px minmax(140px, 1fr) auto;
	align-items: center;
	gap: var(--rst-space-4);
	padding: 14px var(--rst-space-5);
	color: var(--rst-deep-800);
}

.rst-wday + .rst-wday {
	border-top: 1px solid var(--rst-line);
}

.rst-wday__name {
	display: grid;
}

.rst-wday__name small {
	color: var(--rst-ink-muted);
	font-size: 12px;
}

.rst-wday__range {
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
	gap: 8px;
	font-family: var(--rst-font-data);
}

.rst-wday__min {
	color: var(--rst-ink-muted);
	text-align: right;
}

.rst-wday__bar {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: var(--rst-shell);
}

.rst-wday__bar i {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #38bdf8, #f59e0b, #ef4444);
}

.rst-wday__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--rst-ink-muted);
	font-size: 13px;
}

.rst-wday__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

@media (max-width: 760px) {
	.rst-wday {
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
	}

	.rst-wday__icon {
		grid-row: 1;
		grid-column: 2;
	}

	.rst-wday__range,
	.rst-wday__meta {
		grid-column: 1 / -1;
	}
}

/* Eigener Inhalt */
.rst-weather__content {
	max-width: 820px;
}

/* Klima */
.rst-wclimate {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 6px;
	align-items: end;
	height: 260px;
	padding: var(--rst-space-4) var(--rst-space-3) 0;
	border: 1px solid var(--rst-line);
	border-radius: var(--rst-radius-lg);
	background: var(--rst-surface);
}

.rst-wclimate__m {
	display: grid;
	grid-template-rows: 1fr auto;
	height: 100%;
}

.rst-wclimate__bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 3px;
}

.rst-wclimate__bars span {
	position: relative;
	width: min(16px, 40%);
	border-radius: 6px 6px 0 0;
	transition: height 0.6s ease;
}

.rst-wclimate__bars .is-air,
.rst-wclimate__legend .is-air::before {
	background: var(--rst-amber-500);
}

.rst-wclimate__bars .is-water,
.rst-wclimate__legend .is-water::before {
	background: var(--rst-lagoon-600);
}

.rst-wclimate__bars b {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding-bottom: 2px;
	color: var(--rst-ink-muted);
	font-family: var(--rst-font-data);
	font-size: 10px;
	font-weight: 500;
}

.rst-wclimate__label {
	padding: 8px 0;
	color: var(--rst-ink-muted);
	font-size: 12px;
	text-align: center;
}

.rst-wclimate__m.is-now .rst-wclimate__label {
	color: var(--rst-deep-800);
	font-weight: 700;
}

.rst-wclimate__m.is-now {
	border-radius: 10px 10px 0 0;
	background: color-mix(in srgb, var(--rst-lagoon-600) 10%, transparent);
}

.rst-wclimate__legend {
	display: flex;
	gap: var(--rst-space-4);
	margin: var(--rst-space-3) 0;
	color: var(--rst-ink-muted);
	font-size: var(--rst-fs-sm);
}

.rst-wclimate__legend span::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border-radius: 3px;
	vertical-align: -1px;
}

.rst-wtable-wrap {
	overflow-x: auto;
}

.rst-wtable {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: var(--rst-fs-sm);
	text-align: center;
}

.rst-wtable th,
.rst-wtable td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--rst-line);
}

.rst-wtable th[scope="row"] {
	text-align: left;
	white-space: nowrap;
}

.rst-weather__note {
	margin-top: var(--rst-space-4);
	color: var(--rst-ink-muted);
	font-size: var(--rst-fs-xs, 0.75rem);
}

@media (max-width: 640px) {
	.rst-wclimate {
		height: 200px;
		gap: 2px;
		padding-inline: 4px;
	}

	.rst-wclimate__bars b {
		display: none;
	}

	.rst-wclimate__label {
		font-size: 10px;
	}
}

/* --------------------------------------------------------------------------
   Abschnitt „Wetter heute" (Startseite)
   -------------------------------------------------------------------------- */

.rst-wteaser {
	position: relative;
	display: grid;
	gap: var(--rst-space-5);
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	overflow: hidden;
	border-radius: var(--rst-radius-xl);
	color: #fff;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
		linear-gradient(135deg, var(--w-a), var(--w-b) 60%, var(--w-c));
	box-shadow: 0 18px 44px rgba(6, 41, 56, 0.2);
}

@media (min-width: 960px) {
	.rst-wteaser {
		grid-template-columns: 1.2fr 1.4fr auto;
	}

	.rst-wteaser__verdicts {
		grid-column: 1 / 3;
	}
}

.rst-wteaser .rst-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
}

.rst-wteaser__live {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
	animation: rst-wpulse 2s infinite;
}

@keyframes rst-wpulse {
	70% {
		box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
	}
}

.rst-wteaser h2 {
	margin: 4px 0 var(--rst-space-3);
	color: #fff;
	font-size: var(--rst-fs-xl);
}

.rst-wteaser__now {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.rst-wteaser__now strong {
	font-family: var(--rst-font-display);
	font-size: 3.2rem;
	line-height: 1;
}

.rst-wteaser__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rst-wteaser__stats li {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--rst-radius-lg);
	background: rgba(255, 255, 255, 0.12);
}

.rst-wteaser__stats span {
	font-size: 12px;
	opacity: 0.85;
}

.rst-wteaser__stats strong {
	font-size: 1.2rem;
}

.rst-wteaser__verdicts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rst-wteaser__verdicts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: var(--rst-fs-sm);
	font-weight: 600;
}

.rst-wteaser__verdicts .rst-wverdict__dot {
	margin: 0;
}

.rst-wteaser__cta {
	display: inline-flex;
	gap: 8px;
	justify-self: start;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.rst-wnow::after,
	.rst-wnow__stars,
	.rst-wnow__icon,
	.rst-wteaser__live {
		animation: none;
	}
}

@media (max-width: 640px) {
	.rst-wnow__stats,
	.rst-wteaser__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rst-wnow__icon {
		width: 76px;
		height: 76px;
	}

	.rst-wnow__icon svg {
		width: 48px;
		height: 48px;
	}
}
