/* FK Kalender-Abo: Oberfläche nach Apple-Grundsätzen, alles unter .fkabo gekapselt. */
.fkabo {
	--fk-accent: #0b7a3e;
	--fk-accent-strong: #075c2e;
	--fk-accent-soft: #e6f3eb;
	--fk-bg: #f5f5f7;
	--fk-card: #ffffff;
	--fk-text: #1d1d1f;
	--fk-muted: #6e6e73;
	--fk-line: #e3e3e8;
	--fk-red: #c4161c;
	--fk-gold: #f2b705;
	--fk-radius: 18px;
	--fk-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--fk-text);
	background: var(--fk-bg);
	border-radius: 24px;
	padding: 24px;
	max-width: 960px;
	margin: 0 auto 32px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: fkabo;
}
.fkabo *, .fkabo *::before, .fkabo *::after { box-sizing: border-box; }
.fkabo p { margin: 0; }
.fkabo [hidden] { display: none !important; }
.fkabo h2, .fkabo h3, .fkabo h4 { font-family: inherit; color: inherit; letter-spacing: -.01em; }

@media (prefers-color-scheme: dark) {
	.fkabo.fkabo-auto-dark {
		--fk-accent: #34c26f;
		--fk-accent-strong: #5bd88c;
		--fk-accent-soft: #10301d;
		--fk-bg: #000000;
		--fk-card: #1c1c1e;
		--fk-text: #f5f5f7;
		--fk-muted: #a1a1a6;
		--fk-line: #2c2c2e;
		--fk-shadow: none;
	}
}

/* Kopf */
.fkabo-hero {
	background: linear-gradient(160deg, #13924c 0%, #0b6e37 55%, #064b25 100%);
	color: #fff;
	border-radius: var(--fk-radius);
	padding: 28px 28px 26px;
	margin-bottom: 18px;
	position: relative;
	overflow: hidden;
}
.fkabo-hero::after { /* dezente Farbleiste rot, gold, grün wie beim FK */
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, var(--fk-red) 0 33.33%, var(--fk-gold) 33.33% 66.66%, #27a85a 66.66% 100%);
}
.fkabo-title { font-size: 30px; line-height: 1.15; font-weight: 700; margin: 0 0 8px; }
.fkabo-hero .fkabo-lead { color: rgba(255, 255, 255, .9); font-size: 17px; max-width: 640px; }
.fkabo-title-sm { font-size: 24px; margin: 30px 4px 6px; }
.fkabo-groups > .fkabo-lead { color: var(--fk-muted); margin: 0 4px 14px; font-size: 16px; }

/* Karten */
.fkabo-card {
	background: var(--fk-card);
	border-radius: var(--fk-radius);
	box-shadow: var(--fk-shadow);
	padding: 22px;
	margin-bottom: 18px;
}
.fkabo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fkabo-card-head h3 { font-size: 21px; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 10px; }
.fkabo-chip { background: var(--fk-accent-soft); color: var(--fk-accent-strong); font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.fkabo-muted { color: var(--fk-muted); font-size: 15px; }
.fkabo-empty { color: var(--fk-muted); padding: 18px 0 6px; text-align: center; }
.fkabo-sub-h { font-size: 17px; font-weight: 650; margin: 20px 0 10px; }

/* Terminliste */
.fkabo-list { list-style: none; margin: 0; padding: 0; }
.fkabo-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--fk-line); margin: 0; }
.fkabo-item:first-child { border-top: 0; padding-top: 4px; }
.fkabo-date {
	flex: 0 0 58px; height: 62px; border-radius: 14px; overflow: hidden;
	background: var(--fk-card); border: 1px solid var(--fk-line);
	display: flex; flex-direction: column; text-align: center;
}
.fkabo-date-m { background: var(--fk-red); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; }
.fkabo-date-d { font-size: 26px; font-weight: 600; line-height: 1; padding-top: 6px; }
.fkabo-info { min-width: 0; padding-top: 1px; }
.fkabo-when { color: var(--fk-accent-strong); font-size: 14px; font-weight: 600; margin-bottom: 2px !important; }
.fkabo-what { font-size: 18px; font-weight: 600; word-wrap: break-word; }
.fkabo-where { color: var(--fk-muted); font-size: 15px; margin-top: 2px !important; }
.fkabo-where { padding-left: 20px; background: no-repeat 0 3px / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }

/* Monatsansicht */
.fkabo-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fkabo-month-title { font-size: 21px; font-weight: 650; margin: 0; text-align: center; flex: 1; }
.fkabo-icon-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--fk-accent-soft); color: var(--fk-accent-strong); font-size: 26px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.fkabo-icon-btn:hover { filter: brightness(.96); }
.fkabo-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.fkabo-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--fk-muted); padding: 4px 0 6px; text-transform: uppercase; }
.fkabo-day {
	min-height: 64px; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 7px 2px; font: inherit;
}
.fkabo-day:hover { background: var(--fk-bg); }
.fkabo-day.is-out { opacity: .35; }
.fkabo-day-n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; }
.fkabo-day.is-today .fkabo-day-n { background: var(--fk-red); color: #fff; font-weight: 700; }
.fkabo-day.is-sel { background: var(--fk-accent-soft); }
.fkabo-dots { display: flex; gap: 3px; height: 6px; }
.fkabo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fk-accent); display: block; }
.fkabo-daylist { margin-top: 14px; border-top: 1px solid var(--fk-line); padding-top: 6px; }
.fkabo-daylist:empty { display: none; }
.fkabo-daylist h4 { font-size: 16px; margin: 10px 0 2px; }

/* Abo-Knöpfe */
.fkabo-sub { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.fkabo-buttons { display: grid; grid-template-columns: 1fr; gap: 12px; }
@container fkabo (min-width: 540px) { .fkabo-buttons { grid-template-columns: 1fr 1fr; } }
@container fkabo (min-width: 820px) { .fkabo-sub { grid-template-columns: 1fr 220px; } }
@container fkabo (max-width: 819px) { .fkabo-qr { display: flex; align-items: center; gap: 16px; text-align: left; } .fkabo-qr-code { flex: 0 0 140px; } .fkabo-qr .fkabo-muted { margin: 0; } }
.fkabo-dev {
	display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px;
	border-radius: 16px; border: 1.5px solid var(--fk-line); background: var(--fk-card);
	color: var(--fk-text) !important; text-decoration: none !important; cursor: pointer; text-align: left; font: inherit;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.fkabo-dev:hover { border-color: var(--fk-accent); }
.fkabo-dev:active { transform: scale(.98); }
.fkabo-dev:focus-visible, .fkabo-icon-btn:focus-visible, .fkabo-btn:focus-visible, .fkabo-day:focus-visible { outline: 3px solid var(--fk-gold); outline-offset: 2px; }
.fkabo-dev-txt { display: flex; flex-direction: column; min-width: 0; }
.fkabo-dev-txt strong { font-size: 16px; font-weight: 650; }
.fkabo-dev-txt small { font-size: 13px; color: var(--fk-muted); margin-top: 1px; }
.fkabo-dev.is-recommended { border-color: var(--fk-accent); background: var(--fk-accent-soft); grid-column: 1 / -1; order: -1; }
.fkabo-dev.is-recommended .fkabo-dev-txt strong::after { content: "Für dein Gerät"; margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: var(--fk-accent); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.fkabo-dev.is-copied .fkabo-dev-txt small { color: var(--fk-accent-strong); font-weight: 600; }
.fkabo-dev-ico { flex: 0 0 40px; height: 40px; border-radius: 11px; background: var(--fk-accent-soft) center / 22px no-repeat; }
.fkabo-ico-apple   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.fkabo-ico-android { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3Cpath d='M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E"); }
.fkabo-ico-outlook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.fkabo-ico-office  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.fkabo-ico-link    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E"); }

.fkabo-qr { text-align: center; }
.fkabo-qr-code { background: #fff; border-radius: 16px; padding: 14px; border: 1.5px solid var(--fk-line); display: inline-block; width: 100%; max-width: 220px; }
.fkabo-qr-code svg { width: 100%; height: auto; display: block; }
.fkabo-qr .fkabo-muted { font-size: 13px; margin-top: 8px; }

.fkabo-help { margin-top: 16px; border-top: 1px solid var(--fk-line); padding-top: 12px; }
.fkabo-help summary { cursor: pointer; color: var(--fk-accent-strong); font-weight: 600; font-size: 15px; min-height: 32px; display: flex; align-items: center; }
.fkabo-help ul { margin: 8px 0 0; padding-left: 20px; color: var(--fk-text); font-size: 15px; }
.fkabo-help li { margin: 6px 0; }

/* Gruppen */
.fkabo-lock { width: 30px; height: 30px; border-radius: 9px; background: var(--fk-accent-soft) center / 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); display: inline-block; }
.fkabo-group.is-open .fkabo-lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); }
.fkabo-group > .fkabo-muted { margin: -6px 0 14px; }
.fkabo-login { display: flex; flex-wrap: wrap; gap: 10px; }
.fkabo-login input[type="password"] {
	flex: 1 1 220px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--fk-line); padding: 0 14px;
	font-size: 17px; background: var(--fk-bg); color: var(--fk-text); margin: 0;
}
.fkabo-login input[type="password"]:focus { outline: none; border-color: var(--fk-accent); background: var(--fk-card); }
.fkabo-btn { min-height: 48px; border-radius: 12px; border: 0; padding: 0 22px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.fkabo-btn-primary { background: var(--fk-accent); color: #fff; }
.fkabo-btn-primary:hover { background: var(--fk-accent-strong); }
.fkabo-btn-primary[disabled] { opacity: .6; cursor: wait; }
.fkabo-btn-plain { background: transparent; color: var(--fk-accent-strong); padding: 0; min-height: 44px; margin-top: 6px; font-size: 15px; }
.fkabo-error { flex-basis: 100%; color: var(--fk-red); font-size: 15px; font-weight: 500; }
.fkabo-note { margin-top: 14px !important; font-size: 14px; color: var(--fk-muted); background: var(--fk-bg); border-radius: 12px; padding: 10px 14px; }
.fkabo-group-body { animation: fkabo-in .25s ease; }
@keyframes fkabo-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.fkabo-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Schmale Bereiche (Handy oder schmales Theme) */
@container fkabo (max-width: 600px) {
	.fkabo-hero { padding: 22px 20px 24px; }
	.fkabo-title { font-size: 26px; }
	.fkabo-card { padding: 18px 16px; }
	.fkabo-day { min-height: 50px; padding: 4px 0; }
	.fkabo-day-n { width: 28px; height: 28px; font-size: 14px; }
}
@media (max-width: 600px) {
	.fkabo { padding: 10px; border-radius: 18px; }
	.fkabo-qr { display: none !important; } /* Am Handy braucht es keinen QR-Code */
}
@media (prefers-reduced-motion: reduce) {
	.fkabo *, .fkabo *::before, .fkabo *::after { animation: none !important; transition: none !important; }
}
