/* FC Flugwetter – nutzt die Schrift des Themes, lädt keine externen Fonts. */
.fcfw {
	--fcfw-bg: #EEF3F7;
	--fcfw-card: #FFFFFF;
	--fcfw-soft: #F3F6F9;
	--fcfw-ink: #13222E;
	--fcfw-muted: #4A5D6C;
	--fcfw-accent: #1F6FB2;
	--fcfw-green: #2EBD63;
	--fcfw-amber: #FFB300;
	--fcfw-red: #E53935;
	--fcfw-dark: #1B2A35;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: fcfw;
	background: var(--fcfw-bg);
	color: var(--fcfw-ink);
	border-radius: 20px;
	padding: clamp(16px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 20px;
	line-height: 1.4;
	font-size: 15px;
}
.fcfw *, .fcfw *::before, .fcfw *::after { box-sizing: border-box; }
.fcfw a { color: var(--fcfw-accent); }

.fcfw-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fcfw-muted); }
.fcfw-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; line-height: 1.15; }
.fcfw-h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.fcfw-muted { font-size: 13px; color: var(--fcfw-muted); }
.fcfw-center { text-align: center; }
.fcfw-ink { color: var(--fcfw-ink); }
.fcfw-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }

.fcfw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.fcfw-meta { font-size: 13px; color: var(--fcfw-muted); text-align: right; }

.fcfw-panel { display: flex; flex-direction: column; gap: 20px; }
.fcfw-panel[hidden] { display: none; }
.fcfw-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: stretch; }
.fcfw-side { display: flex; flex-direction: column; gap: 20px; }
.fcfw-card { background: var(--fcfw-card); border-radius: 16px; padding: 20px; }
.fcfw-card--lamp, .fcfw-card--sock { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fcfw-card--main { display: flex; flex-direction: column; gap: 16px; padding: 24px; }

/* Ampel */
.fcfw-lamp { background: var(--fcfw-dark); border-radius: 40px; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.fcfw-card--lamp .fcfw-lamp { flex-direction: row; padding: 12px 14px; }
.fcfw-card--lamp .fcfw-lamp__l { width: 44px; height: 44px; }
.fcfw-lamp__l { display: block; width: 52px; height: 52px; border-radius: 50%; opacity: .18; }
.fcfw-lamp__l--red { background: var(--fcfw-red); }
.fcfw-lamp__l--amber { background: var(--fcfw-amber); }
.fcfw-lamp__l--green { background: var(--fcfw-green); }
.fcfw-lamp__l.is-on { opacity: 1; box-shadow: 0 0 24px currentColor; }
.fcfw-lamp__l--red.is-on { color: var(--fcfw-red); }
.fcfw-lamp__l--amber.is-on { color: var(--fcfw-amber); }
.fcfw-lamp__l--green.is-on { color: var(--fcfw-green); }
.fcfw-status { font-size: 20px; font-weight: 700; text-align: center; }
.fcfw-s--green .fcfw-status, .fcfw-c-green { color: #1E8E4E; }
.fcfw-s--amber .fcfw-status, .fcfw-c-amber { color: #8A6200; }
.fcfw-s--red .fcfw-status, .fcfw-c-red { color: #C62828; }

/* Kacheln */
.fcfw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fcfw-tile { background: var(--fcfw-soft); border-radius: 12px; padding: 12px 14px; }
.fcfw-tile__k, .fcfw-tile__s { font-size: 12px; color: var(--fcfw-muted); }
.fcfw-tile__v { font-size: 26px; font-weight: 700; line-height: 1.2; }
.fcfw-tile__v small { font-size: 14px; font-weight: 500; }

/* Hinweise */
.fcfw-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fcfw-note { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; margin: 0; }
.fcfw-note__dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fcfw-note--ok { background: #DDF3E5; color: #145C33; } .fcfw-note--ok .fcfw-note__dot { background: #1E8E4E; }
.fcfw-note--amber { background: #FDF0C9; color: #6B4C00; } .fcfw-note--amber .fcfw-note__dot { background: #B07D00; }
.fcfw-note--red { background: #FBDADA; color: #8E1B1B; } .fcfw-note--red .fcfw-note__dot { background: #C62828; }
.fcfw-note--info { background: #E3EEF8; color: #164F80; } .fcfw-note--info .fcfw-note__dot { background: var(--fcfw-accent); }

/* Windsack */
.fcfw-sock { width: 100%; max-width: 220px; height: auto; }
.fcfw-sock text { font-size: 13px; font-weight: 700; fill: var(--fcfw-ink); font-family: inherit; }

/* Stundenbalken */
.fcfw-window { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.fcfw-bar { position: relative; display: flex; gap: 2px; height: 20px; }
.fcfw-h { flex: 1 1 0; border-radius: 3px; background: var(--fcfw-dark); }
.fcfw-h--green { background: var(--fcfw-green); }
.fcfw-h--amber { background: var(--fcfw-amber); }
.fcfw-h--red { background: var(--fcfw-red); }
.fcfw-bar__dusk { position: absolute; top: -4px; bottom: -4px; background: repeating-linear-gradient(135deg, rgba(245,162,93,.9) 0 4px, rgba(245,162,93,.35) 4px 8px); border-radius: 3px; pointer-events: none; }
.fcfw-bar__now { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--fcfw-ink); border-radius: 2px; }
.fcfw-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--fcfw-muted); }

/* 7 Tage */
.fcfw-days-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 4px; }
.fcfw-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.fcfw .fcfw-day {
	all: unset; box-sizing: border-box; cursor: pointer;
	background: var(--fcfw-card); color: var(--fcfw-ink);
	border: 2px solid transparent; border-radius: 14px;
	padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px;
	font: inherit; text-align: center;
}
.fcfw .fcfw-day:hover { border-color: #C9D5DF; }
.fcfw .fcfw-day[aria-pressed="true"] { border-color: var(--fcfw-accent); }
.fcfw .fcfw-day:focus-visible { outline: 3px solid var(--fcfw-accent); outline-offset: 2px; }
.fcfw-day__wd { font-size: 15px; font-weight: 700; }
.fcfw-day__dm { font-size: 12px; color: var(--fcfw-muted); margin-top: -4px; }
.fcfw-day__t { font-size: 14px; font-weight: 600; }
.fcfw-day__t span { color: var(--fcfw-muted); font-weight: 500; }
.fcfw-day__w { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fcfw-muted); }
.fcfw-chip { width: 100%; padding: 5px 4px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.fcfw-chip--green { background: #DDF3E5; color: #145C33; }
.fcfw-chip--amber { background: #FDF0C9; color: #6B4C00; }
.fcfw-chip--red { background: #FBDADA; color: #8E1B1B; }

.fcfw-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--fcfw-muted); }
.fcfw-credit { margin-left: auto; }
.fcfw-error { padding: 16px; background: #FBDADA; color: #8E1B1B; border-radius: 12px; }

/* Kompakt */
.fcfw--kompakt { padding: 16px; }
.fcfw-compact { display: flex; gap: 16px; align-items: center; }
.fcfw-compact .fcfw-lamp { padding: 10px 8px; gap: 8px; }
.fcfw-compact .fcfw-lamp__l { width: 28px; height: 28px; }
.fcfw-compact .fcfw-status { text-align: left; }
.fcfw-compact__txt { display: flex; flex-direction: column; gap: 2px; }

/* Responsiv – richtet sich nach der Breite des Widgets (Inhaltsbreite), nicht des Fensters */
@container fcfw (max-width: 820px) {
	.fcfw-hero { grid-template-columns: minmax(0, 1fr) 220px; }
	.fcfw-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.fcfw-tile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 14px; }
	.fcfw-tile__k { flex: 0 0 100%; }
	.fcfw-tile__v { font-size: 22px; }
	.fcfw-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container fcfw (max-width: 560px) {
	.fcfw-hero { grid-template-columns: minmax(0, 1fr); }
	.fcfw-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.fcfw-card--lamp .fcfw-lamp { flex-direction: column; }
	.fcfw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fcfw-tile { display: block; padding: 10px; }
	.fcfw-tile__v { font-size: 20px; }
}
@container fcfw (max-width: 480px) {
	.fcfw-lamp__l, .fcfw-card--lamp .fcfw-lamp__l { width: 40px; height: 40px; }
	.fcfw-days { grid-template-columns: repeat(7, 112px); overflow-x: auto; padding-bottom: 6px; }
	.fcfw-meta { text-align: left; }
	.fcfw-credit { margin-left: 0; }
}
@container fcfw (max-width: 380px) {
	.fcfw-tiles { grid-template-columns: minmax(0, 1fr); }
}
