/* =========================================================================
   IHK24 brand stylesheet · v1.13

   Version 1.13 (2026-11-23). Deploy with ?v=1.13 in the CSS URL.

   For using alternative title fonts (in this example Korb), you can
   add this additional css to you custom css. Make sure that you
   have a font licence for the font, covering the (sub-)domains used
   by you for the Sweap pages:
     @font-face { font-family:'Korb'; src:url('<URL TO YOUR korb.woff2>') format('woff2');
                  font-display:swap; }
     :root { --ihk24-font-title-custom: 'Korb', Georgia, serif; }

   The registration form uses the full width by default. For a narrower
   form, add to your custom css (second line optional, centres it):
     :root { --ihk24-form-max-width: 800px;
             --ihk24-form-margin-inline: auto; }

   ========================================================================= */

/* ---- Fonts -------------------------------------------------------------- */
/* Optional Korb title font: see header comment. */
@font-face {
	font-family: 'Source Sans Pro';
	src: url('https://cdn.sweap.io/assets/commons/fonts/Source-Sans-Pro/SourceSansPro-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Source Sans Pro';
	src: url('https://cdn.sweap.io/assets/commons/fonts/Source-Sans-Pro/SourceSansPro-Semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Source Sans Pro';
	src: url('https://cdn.sweap.io/assets/commons/fonts/Source-Sans-Pro/SourceSansPro-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}


/* ---- Brand tokens ------------------------------------------------------- */
:root {
	--ihk24-primary:              #003366;
	--ihk24-primary-hover:        #335C85;
	--ihk24-secondary:            #56BD66;
	--ihk24-secondary-intense:    #247929;
	--ihk24-white:                #ffffff;
	--ihk24-background:           #ffffff;

	--ihk24-error:                #D54048;
	--ihk24-error-dimmed:         #f7d9da;
	--ihk24-warning:              #FDC600;
	--ihk24-warning-dimmed:       #FFF4CC;
	--ihk24-success:              #56BD66;
	--ihk24-success-dimmed:       #E4F1E4;

	--ihk24-grey-light:           #EFF3F6;
	--ihk24-accent-blue:          #335C85;
	--ihk24-accent-blue-light:    #B0C4D6;
	--ihk24-accent-blue-lighter:  #CCD7E6;
	--ihk24-accent-blue-lightest: #E3EBF5;
	--ihk24-accent-green:         #9AD7A3;
	--ihk24-accent-olive:         #AFCC7A;
	--ihk24-accent-teal:          #4BA490;

	--ihk24-font-title:  var(--ihk24-font-title-custom, 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif); /* hook: set --ihk24-font-title-custom to add a licensed font */
	--ihk24-font-body:   'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif;

	--ihk24-grey-050:             #F0F2F5; /* primary/050, replaces Bootstrap greys */

	--ihk24-radius-pill:  24px;
	--ihk24-radius-small-btn: 18px; /* IHK24 --radius-button-small */
	--ihk24-radius-box:   18px; /* IHK24 --radius-large */
	--ihk24-radius-image: 12px; /* IHK24 --radius-medium (images, cards) */
	--ihk24-radius-input:  4px;
	/* Secondary-intensed green, used for input placeholders. */
	--ihk24-focus-glow:   #247929;
	/* IHK24 focus indicator (Storybook, Nov 2026): 2px white gap + 2px
	   primary ring. On coloured surfaces IHK24 swaps the colours; Sweap
	   pages are white, so one variant is enough for now. */
	--ihk24-focus-ring:   0 0 0 2px #ffffff, 0 0 0 4px var(--ihk24-primary);

	/* IHK24 type scale (zeroheight "Schriften" / Storybook html vars).
	   Desktop >1339px; steps down at 1339, 999 and 767px below. */
	--ihk24-fs-h1: 64px;
	--ihk24-fs-h2: 42px;
	--ihk24-fs-h3: 36px;
	--ihk24-fs-h4: 28px;
	--ihk24-fs-h5: 22px;
	--ihk24-fs-copy: 22px;
	--ihk24-fs-small: 18px;
	--ihk24-letter-spacing: 0.2px;
}
@media (max-width: 1339px) {
	:root {
		--ihk24-fs-h1: 54px; --ihk24-fs-h2: 36px; --ihk24-fs-h3: 32px;
		--ihk24-fs-h4: 24px; --ihk24-fs-h5: 20px;
		--ihk24-fs-copy: 20px; --ihk24-fs-small: 17px;
	}
}
@media (max-width: 999px) {
	:root {
		--ihk24-fs-h1: 46px; --ihk24-fs-h2: 32px; --ihk24-fs-h3: 28px;
		--ihk24-fs-h4: 22px; --ihk24-fs-h5: 20px;
		--ihk24-fs-copy: 18px; --ihk24-fs-small: 16px;
	}
}
@media (max-width: 767px) {
	:root {
		--ihk24-fs-h1: 36px; --ihk24-fs-h2: 28px; --ihk24-fs-h3: 24px;
		--ihk24-fs-h4: 20px; --ihk24-fs-h5: 18px;
		--ihk24-fs-copy: 18px; --ihk24-fs-small: 16px;
	}
}

/* ---- Base typography ---------------------------------------------------- */
/* `html body` (0.0.0.2) beats the wrapper's inline `body { font-family: Lato }`,
   which is injected after this stylesheet. */
html body {
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	line-height: 1.5;
	letter-spacing: var(--ihk24-letter-spacing);
	color: var(--ihk24-primary);
	background-color: var(--ihk24-background);
}
/* IHK24 "Copy small" */
small, .small {
	font-size: var(--ihk24-fs-small);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--ihk24-font-title);
	font-weight: 400;
	color: var(--ihk24-primary);
	letter-spacing: 0;
}
/* `body` prefix: module CSS (e.g. .section-heading h1) is inlined later. */
body :is(h1, .h1) { font-size: var(--ihk24-fs-h1); line-height: 1.1; }
body :is(h2, .h2) { font-size: var(--ihk24-fs-h2); line-height: 1.2; }
body :is(h3, .h3) { font-size: var(--ihk24-fs-h3); line-height: 1.2; }
body :is(h4, .h4) { font-size: var(--ihk24-fs-h4); line-height: 1.2; }
body :is(h5, .h5) { font-size: var(--ihk24-fs-h5); line-height: 1.2; }
body :is(h6, .h6) { font-size: inherit; line-height: 1.4; font-family: var(--ihk24-font-body); font-weight: 600; }
/* IHK24 headlines are never bold, even with <strong> inside. */
:is(h1, h2, h3, h4, h5) strong { font-weight: 400; }

.sweap-module-hero h1, .sweap-module-hero .h1 {
	color: var(--ihk24-white);
} 

p { margin-bottom: 1rem; }

/* Bootstrap's .lead is weight 300 — too thin to read (IHK24 copy is 400).
   Popovers/tooltips default to Bootstrap's system font stack. */
.lead {
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
}
.popover, .tooltip {
	font-family: var(--ihk24-font-body);
}
/* Rich-text content pasted with inline `font-weight:300` reads too thin. */
[style*="font-weight:300"], [style*="font-weight: 300"] {
	font-weight: 400 !important;
}

/* Field labels / form notes in any module (e.g. withdrawalButton): primary,
   regular weight — IHK24 labels are never grey or bold. */
body .form-group > label,
body .form-control-static {
	color: var(--ihk24-primary);
	font-weight: 400;
}

/* Intro text directly above the registration form belongs to it: drop the
   form wrapper's 45px top padding so the gap isn't doubled. */
.sweap-module-textEditor + .sweap-module-simpleForm .sweap-module-wrapper {
	padding-top: 0;
}

a {
	color: var(--ihk24-primary);
	text-decoration: underline;
}
/* IHK24 brand link hover is the secondary-intensed green (--theme-color-link-hover
   in the storybook), NOT a darker blue. --ihk24-primary-hover is kept as the
   darker blue for *button* hovers, where a tonal darken reads better. */
a:hover,
a:focus {
	color: var(--ihk24-secondary-intense);
}

/* ---- Focus ring --------------------------------------------------------- */
/* IHK24's global focus indicator (white gap + primary ring) for every keyboard-
   focusable element. Bootstrap's own .btn:focus shadow is replaced too.
   !important: wrapper/module inline CSS sets box-shadow on buttons/links. */
:is(a, button, .btn, [role="button"], [tabindex]:not([tabindex="-1"]), summary):focus-visible {
	box-shadow: var(--ihk24-focus-ring) !important;
	outline: 0;
}
.btn:focus:not(:focus-visible) {
	box-shadow: none;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	padding: 20px 24px;
	border-radius: var(--ihk24-radius-pill);
	border-width: 1px;
	border-style: solid;
}

.btn-primary,
.btn-custom-code {
	background-color: var(--ihk24-primary);
	border-color: var(--ihk24-primary);
	color: var(--ihk24-white);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-custom-code:hover,
.btn-custom-code:focus {
	background-color: var(--ihk24-primary-hover);
	border-color: var(--ihk24-primary-hover);
	color: var(--ihk24-white);
}

/* Main call to action ("Zusagen"): IHK24 standard button is green
   (secondary/500) with primary/500 text. Hover keeps the colour and adds
   the storybook's translucent halo ring instead. */
body .btn-custom-accept {
	background-color: var(--ihk24-secondary);
	border-color: var(--ihk24-secondary);
	color: var(--ihk24-primary);
	transition: box-shadow 0.3s;
}
body .btn-custom-accept:is(:hover, :focus, :active) {
	background-color: var(--ihk24-secondary);
	border-color: var(--ihk24-secondary);
	color: var(--ihk24-primary);
}
body .btn-custom-accept:hover {
	box-shadow: 0 0 0 6px rgba(86, 189, 102, 0.4);
}

/* IHK24 "Standard/Small" button: 45px high, 18px radius. Module CSS
   (.sweap-module-withdrawalButton .withdrawalButton__trigger) sets
   16px 24px padding and weight 600, so match its scope + `body`. */
body .sweap-module-withdrawalButton .withdrawalButton__trigger {
	min-height: 45px;
	padding: 10px 18px;
	border-radius: var(--ihk24-radius-small-btn);
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
	line-height: 1.1;
}

/* Gallery arrows as IHK24 "Square small" buttons (45 × 45, 18px radius),
   separated instead of fused into one btn-group pill. */
body .sweap-module-picturesSlideshow .btn-group {
	gap: 8px;
}
body .sweap-module-picturesSlideshow .btn-group > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0 !important;
	border-radius: var(--ihk24-radius-small-btn) !important;
}
.btn-primary:disabled,
.btn-primary.disabled {
	background-color: var(--ihk24-accent-blue-light);
	border-color: var(--ihk24-accent-blue-light);
	color: var(--ihk24-white);
}

.btn-secondary,
.btn-outline-primary,
.btn-custom-decline {
	background-color: transparent;
	border-color: var(--ihk24-primary);
	color: var(--ihk24-primary);
}
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-custom-decline:hover,
.btn-secondary:focus,
.btn-outline-primary:focus,
.btn-custom-decline:focus {
	background-color: var(--ihk24-accent-blue-lightest);
	border-color: var(--ihk24-primary);
	color: var(--ihk24-primary);
}

.btn-success {
	background-color: var(--ihk24-success);
	border-color: var(--ihk24-success);
	color: var(--ihk24-white);
}
.btn-danger {
	background-color: var(--ihk24-error);
	border-color: var(--ihk24-error);
	color: var(--ihk24-white);
}
.btn-warning {
	background-color: var(--ihk24-warning);
	border-color: var(--ihk24-warning);
	color: var(--ihk24-primary);
}

/* ---- Form inputs -------------------------------------------------------- *
   Mirrors the IHK24 storybook (Components → Form Element → Form Centric)
   spec but targets the markup sweap actually emits: native elements +
   Bootstrap form classes (.form-control, .form-select, .form-check-input).
   The focus state is the IHK24 focus ring (white gap + primary ring).
   outline:0 because the shadow IS the indicator.
   ------------------------------------------------------------------------- */

/* Text-like inputs, textareas, selects — base */
input:is([type="text"], [type="email"], [type="password"], [type="number"],
         [type="date"], [type="datetime"], [type="datetime-local"],
         [type="tel"], [type="url"], [type="search"]),
textarea, select,
.form-control, .form-select {
	display: block;
	width: 100%;
	height: 60px;
	background-color: var(--ihk24-white);
	border: 1px solid var(--ihk24-primary);
	border-radius: var(--ihk24-radius-input);
	padding: 10px 15px;
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	line-height: 1.4;
	transition: box-shadow 0.3s, border-color 0.3s;
}
/* Textareas grow vertically */
textarea {
	height: auto;
	min-height: 60px;
	padding: 14px 15px;
	line-height: 1.5;
	resize: vertical;
}

/* Focus — the signature double-glow */
input:is([type="text"], [type="email"], [type="password"], [type="number"],
         [type="date"], [type="datetime"], [type="datetime-local"],
         [type="tel"], [type="url"], [type="search"]):focus,
textarea:focus, select:focus,
.form-control:focus, .form-select:focus {
	box-shadow: var(--ihk24-focus-ring);
	outline: 0;
	border-color: var(--ihk24-primary);
}

/* Placeholder */
:is(input, textarea, .form-control)::placeholder {
	color: var(--ihk24-focus-glow);
	opacity: 1;
}
:is(input, textarea, .form-control):focus::placeholder {
	color: var(--ihk24-success-dimmed);
}

/* Disabled / readonly */
:is(input, textarea, select, .form-control, .form-select):is(:disabled, [readonly]) {
	background-color: var(--ihk24-grey-light);
	color: var(--ihk24-accent-blue);
	cursor: not-allowed;
}

/* Custom dropdown chevron for <select> (inline SVG, primary fill) */
select, .form-select {
	padding-right: 42px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003366'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}
select[multiple], .form-select[multiple] { background-image: none; height: auto; }

/* Labels — above the input, 18px primary */
.form-label, legend {
	display: block;
	font-family: var(--ihk24-font-body);
	font-weight: 400;
	font-size: var(--ihk24-fs-small);
	color: var(--ihk24-primary);
	margin-bottom: 6px;
}

/* Hint text — right-aligned 16px / weight 600 per storybook */
.form-text {
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
	font-size: 16px;
	font-weight: 600;
	text-align: end;
	margin-top: 6px;
}

/* ---- Error / valid states ---------------------------------------------- */
/* Bootstrap's .is-invalid / :invalid both trigger the red double-glow. */
:is(.form-control, .form-select).is-invalid,
.was-validated :is(.form-control, .form-select):invalid {
	border-color: var(--ihk24-error);
	background-image: none;
	box-shadow: 0 0 0 2px var(--ihk24-error), 0 0 8px 2px var(--ihk24-error);
}
.invalid-feedback, .invalid-tooltip {
	color: var(--ihk24-error);
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-small);
	margin-top: 8px;
}
:is(.form-control, .form-select).is-valid {
	border-color: var(--ihk24-success);
	background-image: none;
}
.valid-feedback { color: var(--ihk24-secondary-intense); }

/* ---- Checkboxes & radios ----------------------------------------------- */
/* 20px square checkbox / 22px circle radio with primary border + brand
   check/dot SVGs when checked. Same IHK24 focus ring on focus. */
input:is([type="checkbox"], [type="radio"]),
.form-check-input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: relative;
	display: inline-block;
	vertical-align: top;
	width: 20px;
	height: 20px;
	background-color: var(--ihk24-white);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px;
	border: 1px solid var(--ihk24-primary);
	border-radius: var(--ihk24-radius-input);
	margin: 0 9px 0 0;
	transition: background-color 0.25s, box-shadow 0.25s;
	cursor: pointer;
}
input[type="radio"] {
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked {
	background-color: var(--ihk24-primary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 8.5l3.5 3.5L13 5'/%3e%3c/svg%3e");
}
input[type="radio"]:checked,
.form-check-input[type="radio"]:checked {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%23003366'/%3e%3c/svg%3e");
}

:is(input[type="checkbox"], input[type="radio"], .form-check-input):is(:focus-visible, :focus) {
	box-shadow: var(--ihk24-focus-ring);
	outline: 0;
}

.form-check-label {
	display: inline-block;
	vertical-align: top;
	margin-left: 8px;
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	line-height: 1.2;
	color: var(--ihk24-primary);
}

/* Reset default fieldset chrome (browser padding + border) so radio/checkbox
   groups can use the same flexbox column layout as text-field groups. */
fieldset {
	padding: 0;
	border: 0;
	margin: 0 0 24px 0;
}

/* ---- Cards / containers ------------------------------------------------- */
.card {
	border: 1px solid var(--ihk24-accent-blue-lighter);
	border-radius: var(--ihk24-radius-box);
	background-color: var(--ihk24-white);
	color: var(--ihk24-primary);
}
.card-header {
	background-color: var(--ihk24-grey-light);
	border-bottom: 1px solid var(--ihk24-accent-blue-lighter);
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-title);
	font-weight: 400;
}
.card-footer {
	background-color: var(--ihk24-grey-light);
	border-top: 1px solid var(--ihk24-accent-blue-lighter);
}

/* ---- Alerts / toasts --------------------------------------------------- */
.alert {
	border-radius: var(--ihk24-radius-box);
	border-width: 1px;
	padding: 16px 20px;
	font-family: var(--ihk24-font-body);
}
.alert-success {
	background-color: var(--ihk24-success-dimmed);
	border-color: var(--ihk24-success);
	color: var(--ihk24-secondary-intense);
}
.alert-warning {
	background-color: var(--ihk24-warning-dimmed);
	border-color: var(--ihk24-warning);
	color: var(--ihk24-primary);
}
.alert-danger {
	background-color: var(--ihk24-error-dimmed);
	border-color: var(--ihk24-error);
	color: var(--ihk24-error);
}
.alert-info,
.alert-primary {
	background-color: var(--ihk24-accent-blue-lightest);
	border-color: var(--ihk24-accent-blue);
	color: var(--ihk24-primary);
}

.sweap__toast,
.toast {
	border-radius: var(--ihk24-radius-box);
	font-family: var(--ihk24-font-body);
}

/* ---- Badges ------------------------------------------------------------- */
.badge {
	font-family: var(--ihk24-font-body);
	font-weight: 400;
	border-radius: var(--ihk24-radius-pill);
	padding: 4px 12px;
}
.badge.bg-primary    { background-color: var(--ihk24-primary)  !important; color: var(--ihk24-white); }
.badge.bg-secondary  { background-color: var(--ihk24-accent-blue) !important; color: var(--ihk24-white); }
.badge.bg-success    { background-color: var(--ihk24-success)  !important; color: var(--ihk24-white); }
.badge.bg-danger     { background-color: var(--ihk24-error)    !important; color: var(--ihk24-white); }
.badge.bg-warning    { background-color: var(--ihk24-warning)  !important; color: var(--ihk24-primary); }
.badge.bg-info       { background-color: var(--ihk24-accent-blue-lightest) !important; color: var(--ihk24-primary); }
.badge.bg-light      { background-color: var(--ihk24-grey-light) !important; color: var(--ihk24-primary); }

/* ---- Navigation (registration wrapper) ---------------------------------- */
/* Mirrors the IHK24 storybook header: white navbar with subtle hairline
   below, brand title font, primary-color Source Sans Pro nav links, underline on
   hover, and a 3px primary border-bottom under the active item (tab
   indicator pattern, matches the program-module day tabs). */
.navbar.bg-light,
.navbar.navbar-custom,
header.fixed-top .navbar {
	background-color: var(--ihk24-white) !important;
	border-bottom: 1px solid var(--ihk24-accent-blue-lighter);
	padding: 16px 0;
}

.navbar-brand {
	font-family: var(--ihk24-font-title);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.2;
	color: var(--ihk24-primary);
	letter-spacing: 0;
}
.navbar-brand:hover,
.navbar-brand:focus {
	color: var(--ihk24-primary);
	text-decoration: none;
}

/* Main nav links — Source Sans Pro, primary color, no underline.
   Per the IHK24 storybook (.page-header nav .primary a:hover):
   hover turns text GREEN (secondary-intensed) with NO underline and a
   subtle blue tint background. !important is needed because the wrapper's
   inline `.navbar-custom .nav-link.active { color: ... }` would otherwise
   win for the active item's color. */
.navbar-nav .nav-link,
.navbar-custom .nav-link {
	font-family: var(--ihk24-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ihk24-primary) !important;
	padding: 10px 16px;
	text-decoration: none;
	/* registration_wrapper/style.css (line 109) sets
	   `.navbar-custom .nav-link { text-transform: uppercase; font-weight: 600 }`
	   at the same specificity. Explicitly reset both so the IHK24 brand
	   sentence-case + regular weight always win regardless of load order. */
	text-transform: none !important;
	border-bottom: 3px solid transparent;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
	color: var(--ihk24-secondary-intense) !important;
	text-decoration: none;
	/*background-color: rgba(0, 51, 102, 0.06);*/
}
/* Active item keeps the primary underline indicator + bolder weight even
   when hovered, but text still turns green to match brand link affordance. */
.navbar-nav .nav-link.active,
.navbar-custom .nav-link.active {
	color: var(--ihk24-primary) !important;
	font-weight: 600;
	border-bottom-color: var(--ihk24-primary);
}
.navbar-nav .nav-link.active:hover,
.navbar-nav .nav-link.active:focus,
.navbar-custom .nav-link.active:hover,
.navbar-custom .nav-link.active:focus {
	color: var(--ihk24-secondary-intense) !important;
	border-bottom-color: var(--ihk24-primary);
}

/* Hamburger (mobile) — primary color */
.navbar-toggler {
	border-color: var(--ihk24-primary);
}
.hamburger-toggle .hamburger span {
	background-color: var(--ihk24-primary) !important;
}

/* ---- VEP sidebar / navigation ------------------------------------------ */
.sweap-navigation {
	background-color: var(--ihk24-white);
}
.sweap-sidebar {
	background-color: var(--ihk24-grey-light);
	font-family: var(--ihk24-font-body);
}
.sweap-sidebar-link,
.sweap-sidebar-navigation a {
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
}
.sweap-sidebar li a.active,
#sweap-sidebar li a.active,
.nav .active .sweap-glyphicon-overlay {
	color: var(--ihk24-primary) !important;
	border-bottom: 2px solid var(--ihk24-primary);
}
.sweap-nav-icon {
	color: var(--ihk24-primary);
}

/* ---- Sweap custom selectors (used by both wrappers' inline CSS) -------- */
.sweapPrimaryColor                  { color: var(--ihk24-primary) !important; }
.sweapPrimaryColor__link            { color: var(--ihk24-primary) !important; }
.sweapPrimaryColor__background      { background-color: var(--ihk24-primary) !important; color: var(--ihk24-white); }
.sweapPrimaryColor__border          { border-color: var(--ihk24-primary) !important; }

/* ---- Draft banner ------------------------------------------------------- */
.sweap-draft--banner {
	background-color: var(--ihk24-warning-dimmed);
	border-bottom: 1px solid var(--ihk24-warning);
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
}
.sweap-draft--txt-section {
	color: var(--ihk24-primary);
}

/* ---- Footer ------------------------------------------------------------- */
.sweap-footer {
	background-color: var(--ihk24-grey-light);
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
	font-size: 16px;
	padding: 24px;
	border-top: 1px solid var(--ihk24-accent-blue-lighter);
}
.sweap-footer a {
	color: var(--ihk24-primary);
	text-decoration: underline;
}
.sweap-footer a:hover {
	color: var(--ihk24-primary-hover);
}

/* ---- Sections / modules ------------------------------------------------- */
.sweap-section { background-color: var(--ihk24-white); }
.sweap-module  { color: var(--ihk24-primary); }

/* ---- Program module accordion (mimics IHK24 storybook accordion) -------
   Bootstrap 5 accordion markup (.accordion-item / .accordion-button /
   .accordion-collapse / .accordion-body) inside .sweap-module-program is
   restyled to match the storybook pattern: white toggler with brand text,
   bottom hairline divider, light-green reveal panel. */

.sweap-module-program .accordion {
	border: 0;
	background: transparent;
}
.sweap-module-program .accordion-item {
	border: 0;
	background: transparent;
	margin: 0;
}
.sweap-module-program .accordion-header {
	margin: 0;
}

/* Toggler: always white background + primary text in both states.
   Uses !important because the wrapper's inline CSS sets
   .sweapPrimaryColor__link--background { background-color: ... !important } */
.sweap-module-program .accordion-button,
.sweap-module-program .accordion-button:not(.collapsed),
.sweap-module-program .accordion-button.sweapPrimaryColor__link--background {
	background-color: var(--ihk24-white) !important;
	color: var(--ihk24-primary) !important;
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
	line-height: 33px;
	padding: 14px 20px;
	border: 0;
	border-radius: 0;
	box-shadow: 0 1px 0 0 var(--ihk24-accent-blue-light);
	transition: background-color 0.2s, color 0.2s;
}
.sweap-module-program .accordion-button:hover,
.sweap-module-program .accordion-button.sweapPrimaryColor__link--background:hover {
	background-color: var(--ihk24-accent-blue-lightest) !important;
	color: var(--ihk24-primary) !important;
}
.sweap-module-program .accordion-button:focus {
	box-shadow: 0 1px 0 0 var(--ihk24-accent-blue-light);
	outline: none;
}
/* Keyboard focus: global ring (via :focus-visible above), lifted above the
   neighbouring rows so the outer ring isn't covered. */
.sweap-module-program .accordion-button:focus-visible {
	z-index: 3;
}

/* Revealed content panel: light-green box with rounded corners, no hairlines
   (IHK24 feedback: their light-green info boxes are rounded and frameless).
   !important on radius: the module's inline accordion CSS sets
   `0 0 4px 4px` at higher specificity. */
.sweap-module-program .accordion-collapse {
	background-color: var(--ihk24-success-dimmed);
	border: 0;
	border-radius: var(--ihk24-radius-box) !important;
}
.sweap-module-program .accordion-collapse.show {
	margin: 8px 0 16px;
}
.sweap-module-program .accordion-body {
	color: var(--ihk24-primary);
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	line-height: 1.5;
	padding: 20px;
}
.sweap-module-program .accordion-body p,
.sweap-module-program .accordion-body span {
	color: var(--ihk24-primary);
}

/* Accordion icon: the module rotates a Font Awesome "+" by -135° when open,
   which leaves × and + at different heights. Replace it with IHK24-style
   plus / minus SVGs in a fixed, centred 20px box (no rotation). */
body .sweap-module-program .accordion-button::after {
	content: "" !important;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-left: 12px !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' stroke='%23003366' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M10 3v14M3 10h14'/%3e%3c/svg%3e") !important;
	background-size: 20px !important;
	background-repeat: no-repeat;
	background-position: center;
	transform: none !important;
	transition: none !important;
}
body .sweap-module-program .accordion-button:not(.collapsed)::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' stroke='%23003366' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M3 10h14'/%3e%3c/svg%3e") !important;
}

/* Day tabs above the accordion (Tag 1 / Tag 2), styled like the IHK24
   Content-Tabs buttons: tertiary pills, active = dark primary fill.
   `body` prefix + !important on colour: the module CSS and Bootstrap's
   .nav-tabs .nav-link.active (#495057) are inlined after this file. */
body .sweap-module-program .nav-tabs {
	border-bottom: 0;
	gap: 8px;
	margin-bottom: 24px;
}
body .sweap-module-program .nav-tabs .nav-link,
body .sweap-module-program .nav-tabs .nav-link.sweapPrimaryColor__link {
	color: var(--ihk24-primary) !important;
	background: var(--ihk24-accent-blue-lighter);
	border: 0;
	border-radius: var(--ihk24-radius-small-btn);
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
	min-height: 45px;
	padding: 8px 20px;
	transition: box-shadow 0.3s;
}
body .sweap-module-program .nav-tabs .nav-link:hover {
	box-shadow: 0 0 0 4px rgba(204, 215, 230, 0.5);
}
body .sweap-module-program .nav-tabs .nav-link.active,
body .sweap-module-program .nav-tabs .nav-link.sweapPrimaryColor__link.active {
	color: var(--ihk24-white) !important;
	background: var(--ihk24-primary);
}
body .sweap-module-program .nav-tabs .nav-link span {
	color: inherit !important;
}

/* ---- Countdown ---------------------------------------------------------- */
/* The module draws the digit circles in #F3F3F3, invisible on white. */
body .countdownWrapper .count-digits p {
	border: 4px solid var(--ihk24-secondary);
	font-family: var(--ihk24-font-title);
	font-weight: 400;
	color: var(--ihk24-primary);
}

/* "Add to Calendar" (add-to-calendar-button web component, shadow DOM).
   Only its CSS custom properties reach inside; set on the host element.
   Its corner radius is hard-coded (6px) in the library and can't be changed
   here (module ticket). */
add-to-calendar-button {
	--font: 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif;
	--base-font-size-l: 20px;
	--base-font-size-m: 20px;
	--base-font-size-s: 18px;
	--keyboard-focus: #003366;
	--btn-background: #003366;
	--btn-background-hover: #003366;
	--btn-text: #ffffff;
	--btn-text-hover: #ffffff;
	--btn-border: #003366;
	--btn-shadow: none;
	--btn-shadow-hover: 0 0 0 6px rgba(0, 51, 102, 0.3);
	--btn-shadow-active: none;
	--list-background: #ffffff;
	--list-background-hover: #E3EBF5;
	--list-text: #003366;
	--list-text-hover: #003366;
	--list-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.25);
	--list-close-background: #CCD7E6;
	--list-close-text: #003366;
}

/* ---- IHK24 icons (from the agency, Nov 2026) ----------------------------
   Font Awesome glyphs swapped for IHK24 SVGs via CSS masks: the <i> keeps
   its markup, the glyph is replaced by the SVG painted in currentColor, so
   colours and sizes stay as before. No IHK24 equivalent yet for the map pin
   and the social-network icons (Facebook, LinkedIn, …); they stay Font
   Awesome. The calendar-add icon sits inside the add-to-calendar-button
   shadow DOM and can't be reached from here (module ticket). */
body :is(.fa-angle-left, .fa-angle-right, .fa-envelope, .fa-phone, .fa-globe, .fa-map-marker)::before {
	content: "" !important;
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: var(--ihk24-icon) center / contain no-repeat;
	mask: var(--ihk24-icon) center / contain no-repeat;
}
body :is(.fa-angle-left, .fa-angle-right) { --ihk24-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3e%3cpath d='M6.47 2.47a.75.75 0 0 1 1.06 0l6 6a.75.75 0 0 1 0 1.06l-6 6a.75.75 0 1 1-1.06-1.06L11.94 9 6.47 3.53a.75.75 0 0 1 0-1.06'/%3e%3c/svg%3e"); }
body .fa-angle-left::before { transform: scaleX(-1); }
body .fa-envelope { --ihk24-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3e%3cpath fill-rule='evenodd' d='m15.337 3.176.062.003a2 2 0 0 1 .762.206c.22.11.463.288.65.567.189.284.29.63.29 1.023v8.415l-.001.021a2 2 0 0 1-.026.251 2 2 0 0 1-.184.573c-.11.22-.288.464-.567.65-.284.189-.629.29-1.022.29H2.686l-.022-.001a2 2 0 0 1-.25-.026 2 2 0 0 1-.574-.183 1.7 1.7 0 0 1-.65-.567 1.8 1.8 0 0 1-.29-1.023V4.938l.003-.062a2 2 0 0 1 .206-.762c.11-.22.288-.463.568-.65.284-.188.629-.29 1.022-.29h12.615zm-4.469 6.113a3.07 3.07 0 0 1-3.738 0L2.4 5.65v7.725c0 .13.03.179.038.19.011.016.03.037.073.058a.5.5 0 0 0 .198.052h12.592c.13 0 .179-.03.19-.038a.2.2 0 0 0 .057-.072.6.6 0 0 0 .053-.199V5.648zM8.045 8.1a1.57 1.57 0 0 0 1.91 0l4.452-3.424H3.592z' clip-rule='evenodd'/%3e%3c/svg%3e"); }
body .fa-phone    { --ihk24-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19'%3e%3cpath d='M2.585.462A1.95 1.95 0 0 1 4.64.17l.613.274c.512.228.9.666 1.067 1.202l.44 1.417.015.048.01.05.28 1.661a1.95 1.95 0 0 1-.55 1.71l-.87.862c.373.917.885 1.781 1.5 2.547l.301.357.004.004a10.3 10.3 0 0 0 2.609 2.151l.973-.743a1.95 1.95 0 0 1 1.77-.31l1.607.505.048.016.046.021 1.343.631a1.95 1.95 0 0 1 1.044 1.222l.186.645a1.95 1.95 0 0 1-.571 1.995l-.79.708a3.75 3.75 0 0 1-3.61.79l-1.53-.473c-2.541-.784-4.816-2.334-6.487-4.258-1.675-1.918-2.904-4.38-3.332-7.006L.497 4.613a3.75 3.75 0 0 1 1.278-3.465zM4.028 1.54a.45.45 0 0 0-.473.068l-.81.685c-.604.51-.895 1.3-.768 2.08l.26 1.581c.356 2.186 1.342 4.264 2.703 5.934l.278.329c1.5 1.726 3.54 3.113 5.799 3.81l1.532.473a2.25 2.25 0 0 0 2.165-.474l.79-.708a.45.45 0 0 0 .132-.46l-.187-.645a.45.45 0 0 0-.241-.282l-1.3-.611-1.557-.49a.45.45 0 0 0-.409.071l-1.362 1.043-.383.292-.55-.293a11.8 11.8 0 0 1-3.33-2.658 11.8 11.8 0 0 1-2.205-3.687l-.215-.585.343-.339 1.218-1.207a.45.45 0 0 0 .128-.395l-.274-1.613-.424-1.368a.45.45 0 0 0-.246-.277z'/%3e%3c/svg%3e"); }
body .fa-globe    { --ihk24-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3e%3cpath fill-rule='evenodd' d='M9 .375a8.625 8.625 0 1 1 0 17.25A8.625 8.625 0 0 1 9 .374M6.688 12.25c.269 1.593.724 2.916 1.272 3.798a7.1 7.1 0 0 0 2.08 0c.547-.882 1.003-2.205 1.273-3.798zm-4.026 0c.335.654.77 1.259 1.3 1.788a7.1 7.1 0 0 0 2.046 1.426c-.37-.932-.656-2.024-.84-3.214zm10.17 0c-.184 1.19-.47 2.282-.84 3.214a7.1 7.1 0 0 0 2.046-1.426c.53-.53.965-1.134 1.3-1.788zm-10.738-5a7.1 7.1 0 0 0 0 3.5h2.9a22 22 0 0 1 .004-3.5zm4.409 0a20.5 20.5 0 0 0-.006 3.5h5.006a20.3 20.3 0 0 0-.006-3.5zm6.499 0q.072.878.073 1.785-.001.874-.07 1.715h2.901a7.1 7.1 0 0 0 0-3.5zM6.02 2.53a7.1 7.1 0 0 0-2.058 1.432 7.1 7.1 0 0 0-1.3 1.788h2.515c.186-1.192.472-2.29.843-3.22M9 1.874q-.515 0-1.019.073c-.55.855-1.011 2.19-1.286 3.802h4.61c-.275-1.612-.738-2.947-1.287-3.802A7 7 0 0 0 9 1.875m2.98.654c.37.93.657 2.029.843 3.221h2.515a7.1 7.1 0 0 0-1.3-1.788 7.1 7.1 0 0 0-2.059-1.433' clip-rule='evenodd'/%3e%3c/svg%3e"); }
body .fa-map-marker { --ihk24-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3e%3cpath d='M14.25 6.871c0-2.813-2.335-5.121-5.25-5.121S3.75 4.058 3.75 6.871c0 .866.32 1.895.86 2.993.536 1.088 1.257 2.185 1.992 3.172a35 35 0 0 0 2.02 2.461c.137.154.266.29.378.41q.17-.18.379-.41a35 35 0 0 0 2.02-2.46c.734-.988 1.455-2.085 1.99-3.173.541-1.098.861-2.127.861-2.993m1.5 0c0 1.198-.43 2.468-1.015 3.655-.59 1.199-1.368 2.377-2.133 3.406a37 37 0 0 1-2.801 3.32l-.197.204-.053.054-.02.02a.75.75 0 0 1-1.005.052l-.056-.052-.02-.02-.054-.054-.197-.204a37 37 0 0 1-2.8-3.32c-.766-1.03-1.545-2.207-2.134-3.406C2.68 9.34 2.25 8.07 2.25 6.871 2.25 3.2 5.288.25 9 .25s6.75 2.95 6.75 6.621'/%3e%3cpath d='M10.25 7a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m1.5 0a2.75 2.75 0 1 1-5.499 0 2.75 2.75 0 0 1 5.499 0'/%3e%3c/svg%3e"); }

/* ---- Images: IHK24 rounded corners (--radius-medium) -------------------- */
body .sweap-module-picturesSlideshow .picturesSlideshow__image,
body .sweap-module-video .video-wrapper {
	border-radius: var(--ihk24-radius-image);
	overflow: hidden;
}

/* ---- Speakers as IHK24 "Personen-Teaser" cards --------------------------
   Light-blue card (#E3EBF5, 12px radius), square photo across the full card
   width, name as a headline, function in small text. Bootstrap's .col
   padding is the gutter, so the card surface is painted on the children
   rather than on the .col itself. */
body .sweap-module-ruc_speaker .speaker {
	text-align: left;
	margin-bottom: 24px;
}
body .sweap-module-ruc_speaker .speaker > * {
	background-color: var(--ihk24-accent-blue-lightest);
	margin: 0;
}
body .sweap-module-ruc_speaker .speaker > :first-child {
	border-radius: var(--ihk24-radius-image) var(--ihk24-radius-image) 0 0;
	overflow: hidden;
}
body .sweap-module-ruc_speaker .speaker > :last-child {
	border-radius: 0 0 var(--ihk24-radius-image) var(--ihk24-radius-image);
	flex-grow: 1;
}
/* Module CSS: `.speaker .speaker-img img` (round, 10px padding, grey
   border) and `.speaker .speaker-desc .speaker-name` (0.3.0) — matched
   with `body .sweap-module-ruc_speaker .speaker …`. */
body .sweap-module-ruc_speaker .speaker .speaker-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
}
body .sweap-module-ruc_speaker .speaker .speaker-desc {
	text-align: left;
	padding: 16px 20px 8px;
}
body .sweap-module-ruc_speaker .speaker .speaker-desc .speaker-name {
	font-family: var(--ihk24-font-title);
	font-size: var(--ihk24-fs-h4);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--ihk24-primary);
}
body .sweap-module-ruc_speaker .speaker .speaker-desc .speaker-org {
	font-size: var(--ihk24-fs-small);
	font-weight: 400;
	margin: 0;
	color: var(--ihk24-primary);
}
body .sweap-module-ruc_speaker .speaker-social {
	padding: 0 12px 12px;
}
body .sweap-module-ruc_speaker .speaker-social ul {
	justify-content: flex-start !important;
}

/* ---- Greys outside the IHK24 palette ------------------------------------ */
.popover-header, .popover-title {
	background-color: var(--ihk24-grey-050);
	color: var(--ihk24-primary);
}

/* ---- Module-scoped form-field overrides --------------------------------- *
   simpleForm and popupForm ship CSS with `.sweap-module-<X> … input/select/
   textarea` selectors (specificity 0.0.3.1) that beat the generic .form-*
   rules above. Module CSS is inlined AFTER this stylesheet, so a tie loses:
   every override below is prefixed with `body` (+0.0.0.1). The `form`
   module is a hero-overlay design with intentional transparency, left
   alone unless you confirm otherwise.
   ------------------------------------------------------------------------- */

/* Form width: full container width by default. Optional narrower and/or
   centred form via custom properties (see header comment). Bootstrap's
   percentage columns (½, ⅓, ⅔) scale along. Text colour: simpleForm sets
   #303030 on the whole form. */
body .sweap-module-simpleForm .simpleForm form {
	max-width: var(--ihk24-form-max-width, none);
	margin-inline: var(--ihk24-form-margin-inline, 0);
}
body .sweap-module-simpleForm .simpleForm {
	color: var(--ihk24-primary);
}

/* Shorthand for the two override scopes. :is() keeps specificity at 0.0.3.0
   so with `body` + a child element this beats the modules' 0.0.3.1 rules.
   Checkboxes and radios are excluded — they get a dedicated block below
   (otherwise text-input properties like height:60px would balloon them). */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
	height: 60px;
	background-color: var(--ihk24-white);
	color: var(--ihk24-primary);
	border: 1px solid var(--ihk24-primary);
	border-radius: var(--ihk24-radius-input);
	padding: 10px 15px;
	font-family: var(--ihk24-font-body);
	font-size: var(--ihk24-fs-copy);
	line-height: 1.4;
	box-shadow: none;
	transition: box-shadow 0.3s, border-color 0.3s;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) textarea {
	height: auto;
	min-height: 60px;
	padding: 14px 15px;
	line-height: 1.5;
	resize: vertical;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) :is(input:not([type="checkbox"], [type="radio"]), select, textarea):focus,
body .sweap-module-simpleForm .simpleForm .form-control:focus {
	box-shadow: var(--ihk24-focus-ring);
	border-color: var(--ihk24-primary);
	outline: 0;
	background-color: var(--ihk24-white);
	color: var(--ihk24-primary);
	/* simpleForm's :focus rule pulls padding-left to 8px (causing text
	   to shift on focus). Re-set to match the base 10px / 15px padding. */
	padding-left: 15px;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) :is(input, select, textarea)::placeholder,
body .sweap-module-simpleForm .simpleForm .form-control::placeholder {
	color: var(--ihk24-focus-glow);
	opacity: 1;
}
/* Match-specificity focus override so the placeholder fades on active state */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) :is(input, select, textarea):focus::placeholder,
body .sweap-module-simpleForm .simpleForm .form-control:focus::placeholder {
	color: var(--ihk24-success-dimmed);
}

/* simpleForm strips the native <select> chevron — restore the brand one */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003366'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) label {
	font-family: var(--ihk24-font-body);
	font-weight: 400;
	font-size: var(--ihk24-fs-small);
	color: var(--ihk24-primary);
}
/* Checkbox / radio labels are bigger (22px) and need vertical-align: top
   so they sit next to the box. simpleForm sometimes emits labels without
   a class (e.g. the privacy_statement checkbox), so we target every label
   inside a .form-check / .checkbox wrapper instead of relying on a class. */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group)
  :is(.form-check, .checkbox, .radio) label {
	display: inline-block;
	vertical-align: top;
	font-size: var(--ihk24-fs-copy);
	font-weight: 400;
	line-height: 1.2;
	color: var(--ihk24-primary);
}

/* Validation states */
body .sweap-module-simpleForm .simpleForm .form-control.is-invalid,
body .sweap-module-simpleForm .simpleForm .was-validated .form-control:invalid,
body .sweap-module-popupForm .form-group :is(input, select, textarea).is-invalid {
	background-color: var(--ihk24-white);
	background-image: none;
	border-color: var(--ihk24-error);
	box-shadow: 0 0 0 2px var(--ihk24-error), 0 0 8px 2px var(--ihk24-error);
}
body .sweap-module-popupForm .form-group :is(input, select, textarea).is-valid {
	background-color: var(--ihk24-white);
	border-color: var(--ihk24-success);
}

/* Checkboxes & radios inside simpleForm / popupForm — re-apply the IHK24
   square/circle styling at matching specificity. simpleForm's blanket
   `.form-group input { border:0; background:#eaeaea; padding-left:8px }`
   (0.0.3.1) would otherwise turn checkboxes into gray rectangles. */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) input:is([type="checkbox"], [type="radio"]) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	/* Bootstrap's `.form-check .form-check-input` floats the input left,
	   which forces computed display to block and breaks vertical-align.
	   Disable the float so the checkbox sits inline next to the label.
	   The 2px margin-top matches the storybook's small nudge to align the
	   box with the label's cap-height. */
	float: none;
	display: inline-block;
	vertical-align: top;
	width: 20px;
	height: 20px;
	background-color: var(--ihk24-white);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px;
	border: 1px solid var(--ihk24-primary);
	border-radius: var(--ihk24-radius-input);
	padding: 0;
	margin: 2px 9px 0 0;
	box-shadow: none;
	transition: background-color 0.25s, box-shadow 0.25s;
	cursor: pointer;
}

/* Bootstrap .form-check has padding-left: 1.5em to accommodate the floated
   input. We un-floated the input above, so replace that padding with the
   IHK24 brand indent (0 15px — top:0, left/right:15px — per the storybook
   checkbox/radio group spec).

   Flex layout (not block) so a long label wraps its text in place instead
   of getting pushed to a new line below the checkbox. The 9px gap matches
   the checkbox's previous margin-right; the label gets flex:1 so it fills
   the remaining space. */
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) .form-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 0 15px;
	min-height: 0;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) .form-check
  input:is([type="checkbox"], [type="radio"]) {
	flex: 0 0 auto;
	margin: 2px 0 0 0;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) .form-check label {
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 0;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) input[type="radio"] {
	width: 22px;
	height: 22px;
	border-radius: 50%;
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) input[type="checkbox"]:checked {
	background-color: var(--ihk24-primary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 8.5l3.5 3.5L13 5'/%3e%3c/svg%3e");
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) input[type="radio"]:checked {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%23003366'/%3e%3c/svg%3e");
}
body :is(.sweap-module-simpleForm .simpleForm .form-group,
    .sweap-module-popupForm .form-group) input:is([type="checkbox"], [type="radio"]):focus-visible {
	box-shadow: var(--ihk24-focus-ring);
	outline: 0;
}
