/* ==========================================================================
   Philips / KelCon Registrierung - Design (Bootstrap 5)
   Farben zentral unter :root anpassen.
   ========================================================================== */

@font-face { font-family: "Frutiger"; src: url("/xconfig/fonts/frutiger-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Frutiger"; src: url("/xconfig/fonts/frutiger-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Frutiger"; src: url("/xconfig/fonts/frutiger-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Frutiger"; src: url("/xconfig/fonts/frutiger-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
	--brand: #0072bc;
	--brand-dark: #00508a;
	--brand-deep: #0a2c52;
	--brand-tint: #e7f1fa;
	--accent: #00a0e1;
	--ink: #1a2633;
	--muted: #5f6d7b;
	--paper: #f2f5f8;
	--surface: #ffffff;
	--line: #d9e1e8;
	--danger: #c2352b;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(10, 44, 82, .06), 0 8px 24px rgba(10, 44, 82, .06);

	--bs-body-font-family: "Frutiger", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--bs-body-color: var(--ink);
	--bs-body-bg: var(--paper);
	--bs-link-color: var(--brand);
	--bs-link-color-rgb: 0, 114, 188;
	--bs-link-hover-color: var(--brand-dark);
	--bs-link-hover-color-rgb: 0, 80, 138;
	--bs-primary: var(--brand);
	--bs-primary-rgb: 0, 114, 188;
	--bs-border-color: var(--line);
	--bs-border-radius: 8px;
	--bs-focus-ring-color: rgba(0, 114, 188, .3);
}

body { font-size: 16px; line-height: 1.6; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { text-underline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid rgba(0, 114, 188, .45); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { display: block; width: 160px; height: auto; }
.brand-partner { display: flex; align-items: center; gap: 14px; }
.brand-partner span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.brand-partner img { display: block; width: 150px; height: auto; }
@media (max-width: 575.98px) {
	.site-header .container { min-height: 68px; }
	.brand img { width: 120px; }
	.brand-partner img { width: 110px; }
	.brand-partner span { display: none; }
}

/* ---------- Einstieg ---------- */
.hero {
	color: #fff;
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(0, 160, 225, .35), transparent 60%),
		linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
	padding: 56px 0 72px;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #9fd6f3; margin-bottom: 10px; }
.hero h1 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; max-width: 760px; margin-bottom: 16px; }
.hero-lead { font-size: 1.12rem; max-width: 720px; color: rgba(255, 255, 255, .9); font-weight: 300; }
.hero-steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-steps li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-steps span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35); font-size: .9rem; }

.page-form { margin-top: -40px; padding-bottom: 64px; }
.mode-kelcon .page-form, .mode-philips .page-form { margin-top: 28px; }
.page-narrow { max-width: 900px; padding-top: 40px; padding-bottom: 64px; }

/* ---------- Flaechen ---------- */
.card-surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-narrow .card-surface { padding: 32px 36px; }
.lead-muted { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 1.25rem; }
.state-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 700; color: #fff; background: #1f9d63; }
.state-icon-warn { background: #d98c00; }

/* ---------- Seitenleiste ---------- */
.side-sticky { position: sticky; top: 24px; display: grid; gap: 16px; }
.side-card { padding: 22px 22px 18px; }
.side-title { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.program-group { border-top: 1px solid var(--line); }
.program-group summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.program-group summary::-webkit-details-marker { display: none; }
.program-group summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.program-group[open] summary::after { transform: rotate(-135deg); }
.program-group .count { font-size: .75rem; font-weight: 600; color: var(--brand); background: var(--brand-tint); border-radius: 20px; padding: 0 8px; }
.program-list { list-style: none; padding: 0 0 10px; margin: 0; }
.program-list a { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.program-list a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.program-list .pdf { font-size: .68rem; font-weight: 700; color: var(--danger); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.side-note ul { padding-left: 18px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.side-note li { margin-bottom: 4px; }
.req { color: var(--danger); font-weight: 700; }
@media (max-width: 991.98px) { .side-sticky { position: static; } }

/* ---------- Formular ---------- */
.reg-form { padding: 8px 0 0; overflow: hidden; }
.form-section { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.section-head h2 { font-size: 1.25rem; font-weight: 700; margin: 3px 0 2px; color: var(--brand-deep); }
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.step { flex: 0 0 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 700; }
.sub-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.form-label { font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.form-control, .form-select { border-radius: 8px; padding: .62rem .85rem; border-color: #c9d3dc; background-color: #fff; }
.form-select-lg { font-size: 1.05rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(0, 114, 188, .18); }
.form-control::placeholder { color: #9aa6b2; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 114, 188, .18); }
.form-submit { padding: 24px 32px 28px; background: #f8fafc; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-submit .btn-lg { padding: .8rem 1.8rem; }
@media (max-width: 767.98px) {
	.form-section { padding: 22px 18px; }
	.form-submit { padding: 20px 18px 24px; }
	.form-submit .btn-lg { width: 100%; }
}

/* Auswahlkacheln */
.choice-group { margin: 0 0 4px; }
.choice-group legend { float: none; width: auto; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
	display: block; height: 100%; padding: 12px 14px 12px 40px; border: 1px solid #c9d3dc; border-radius: 10px; background: #fff;
	font-weight: 500; line-height: 1.35; position: relative; overflow-wrap: break-word; hyphens: manual; transition: border-color .12s, background .12s, box-shadow .12s;
}
.choice span::before {
	content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid #9aa6b2; background: #fff; box-sizing: border-box;
}
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.choice:hover span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand) inset; }
.choice input:checked + span::before { border: 5px solid var(--brand); }
.choice input:focus-visible + span { outline: 3px solid rgba(0, 114, 188, .45); outline-offset: 2px; }
.choice-group.is-invalid .choice span { border-color: var(--danger); }

.hotel-dates { margin-top: 4px; }
.hotel-dates[hidden] { display: none !important; }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; white-space: nowrap; }
.leistungen thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* KelCon / Philips */
.internal-bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	background: linear-gradient(120deg, var(--brand-deep), var(--brand-dark)); color: #fff;
	border-radius: var(--radius); padding: 22px 28px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.internal-bar h1 { font-size: 1.5rem; font-weight: 700; margin: 6px 0 4px; }
.internal-bar p { margin: 0; color: rgba(255, 255, 255, .85); }
.badge-role { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 2px 10px; border-radius: 20px; }
.mode-philips .internal-bar { background: linear-gradient(120deg, #133a2f, #1d6b51); }

/* Buttons */
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); }
.alert { border-radius: 10px; }

/* Rechtstexte */
.legal h1 { font-size: 1.6rem; color: var(--brand-deep); font-weight: 700; margin-bottom: 1rem; }
.legal h2, .legal h3 { font-size: 1.15rem; }
.legal .col-xs-12 { padding: 0; }
.cookie-reset { margin-top: 2rem; padding: 18px 20px; background: var(--brand-tint); border-radius: 10px; }

/* ---------- Fuss ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .7); padding: 28px 0; font-size: .9rem; margin-top: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-hinweis {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050; max-width: 960px; margin: 0 auto;
	display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
	background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 12px;
	box-shadow: 0 18px 50px rgba(10, 44, 82, .25); padding: 18px 22px; font-size: .88rem;
}
.cookie-hinweis[hidden] { display: none; }
.cookie-hinweis > div:first-child { flex: 1 1 520px; }
.cookie-hinweis strong { color: var(--brand-deep); font-size: 1.02rem; }
.cookie-hinweis p { margin: 4px 0 6px; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
