/* =========================================================
   Haus Karin Accordion – Porto-sicher / komplett bereinigt
   - kein oberer Versatz zwischen hk-panel__body und hk-box
   - sichtbare Gestaltung nur auf .hk-box
   - Abstand oberhalb der Box sitzt auf .hk-panel__body
   - Toggle veredelt: ruhiger, feiner, hochwertiger
========================================================= */
:root{ --hk-border: rgba(24, 57, 108, 0.45);}

.hk-acc{
	--hk-blue: #18396C;
	--hk-black: #111111;
	--hk-gray: #707070;
	--hk-green: #308426;

	--hk-shadow-soft: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.19);

	--r-24: clamp(1.5rem, 1.5rem, 1.5rem);
	--r-48: clamp(3rem, 3rem, 3rem);

	--pill-h: clamp(3.125rem, 3.125rem, 3.125rem);
	--pill-pad-x: clamp(1.75rem, 1.75rem, 1.75rem);

	--line-h: clamp(0.125rem, 0.125rem, 0.125rem);

	--toggle-sz: clamp(3.125rem, 3.125rem, 3.125rem);
	--toggle-r: clamp(0.875rem, 0.875rem, 0.875rem);

	/* Abstand zwischen Header/Toggle und Box */
	--body-gap-top: clamp(1.1rem, 1.1rem, 1.1rem);

	/* Innenabstand der sichtbaren Box */
	--box-pad: clamp(1.75rem, 1.75rem, 1.75rem);

	font-family: "source_sans_proregular", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: clamp(1.0625rem, 1.0625rem, 1.0625rem);
	line-height: 1.35;
	color: var(--hk-black);
}

.hk-acc,
.hk-acc *{
	box-sizing: border-box;
}

.hk-panel{
	margin-block: clamp(1.25rem, 1.25rem, 1.25rem);
}



/* =========================================================
   Header
========================================================= */

.hk-panel__header{
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	margin: 4rem 0 0 0;
	min-height: var(--pill-h);
	z-index: 2;
}

.hk-pill{
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: auto;
	height: var(--pill-h);
	padding-inline: var(--pill-pad-x);
	border-radius: var(--r-24);
	background: var(--hk-blue);
	color: #ffffff;
	font-family: "source_sans_proregular", Arial, sans-serif;
	font-weight: normal;
	font-size: clamp(1.3125rem, 1.3125rem, 1.3125rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hk-pill:hover {
  transform: translateY(-0.05rem);
	color: #FFF580;
}

.hk-pill:focus-visible {
  outline: 0.125rem solid #18396C;
  outline-offset: 0.2rem;
}
.hk-rule{
	flex: 1 1 auto;
	height: var(--line-h);
	border-radius: 999rem;
	background: var(--hk-blue);
	opacity: 0.9;
}

/* =========================================================
   Toggle – veredelte Variante
========================================================= */

.hk-toggle{
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translate(-50%, -50%);
	width: var(--toggle-sz);
	height: var(--toggle-sz);
	display: grid !important;
	place-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 0 var(--toggle-r) var(--toggle-r);
	appearance: none;
	-webkit-appearance: none;
	background: linear-gradient(
		to bottom,
		rgba(30, 72, 129, 1) 0%,
		rgba(24, 57, 108, 1) 68%,
		rgba(19, 46, 88, 1) 100%
	) !important;
	color: #ffffff !important;
	font: inherit !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow:
		0 0.125rem 0 rgba(255, 255, 255, 0.12) inset,
		0 -0.125rem 0 rgba(0, 0, 0, 0.08) inset,
		0 0.5rem 1.25rem rgba(17, 17, 17, 0.22),
		0 0.125rem 0.35rem rgba(17, 17, 17, 0.12);
	z-index: 3;
	transition:
		filter 180ms ease,
		box-shadow 220ms ease,
		background 220ms ease;
}

.hk-toggle:hover{
	filter: brightness(1.025);
	box-shadow:
		0 0.125rem 0 rgba(255, 255, 255, 0.14) inset,
		0 -0.125rem 0 rgba(0, 0, 0, 0.10) inset,
		0 0.75rem 1.6rem rgba(17, 17, 17, 0.24),
		0 0.18rem 0.45rem rgba(17, 17, 17, 0.14);
}

.hk-toggle:active{
	filter: brightness(0.98);
}

.hk-toggle:focus-visible{
	outline: 0.1875rem solid rgba(255, 245, 128, 0.95);
	outline-offset: 0.1875rem;
}

.hk-panel.is-open .hk-toggle{
	box-shadow:
		0 0.08rem 0 rgba(255, 255, 255, 0.10) inset,
		0 -0.08rem 0 rgba(0, 0, 0, 0.06) inset,
		0 0.35rem 0.9rem rgba(17, 17, 17, 0.18);
	filter: brightness(0.98);
}

.hk-toggle__icon{
	display: block;
	width: clamp(1.55rem, 1.45rem + 0.35vw, 1.95rem);
	height: clamp(1.55rem, 1.45rem + 0.35vw, 1.95rem);
	transition:
		transform 360ms cubic-bezier(0.22, 0.68, 0.28, 1) 60ms;
}

.hk-toggle__icon polyline{
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 180ms ease-in-out;
}

.hk-toggle:hover .hk-toggle__icon polyline{
	stroke: #FFF580;
}

.hk-panel.is-open .hk-toggle__icon{
	transform: rotate(180deg);
}

/* =========================================================
   Body Animation
   - .hk-panel__body ist nur technischer Animations-Container
   - Abstand sitzt hier, nicht auf .hk-box
   - keine sichtbare Gestaltung auf .hk-panel__body
========================================================= */

.hk-panel__body{
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	margin-top: var(--body-gap-top);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	transition:
		max-height 520ms cubic-bezier(0.22, 0.68, 0.28, 1),
		opacity 280ms ease-out;
	will-change: max-height, opacity;
	box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.19);
}

.hk-panel.is-open .hk-panel__body{
	opacity: 1;
}

/* =========================================================
   Sichtbare Hauptbox
========================================================= */

.hk-box{
	margin-top: 0;
	padding: var(--box-pad);
	background: #ffffff;
	border: 0.125rem solid var(--hk-border);
	border-radius: var(--r-24);
	overflow: hidden;
	background-clip: padding-box;
	box-shadow: var(--hk-shadow-soft);
}

/* =========================================================
   Cards
========================================================= */

.hk-cards{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.25rem, 2.25rem, 2.25rem);
}

@media (max-width: 56.25rem){
	.hk-cards{
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Card
========================================================= */

.hk-card{
	display: flex;
	align-items: flex-start;
	gap: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
}

.hk-card__media{
	flex: 0 0 auto;
}

.hk-card__content{
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 1rem;
}

.hk-card__img{
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(10rem, 9rem + 2vw, 14rem);
	object-fit: cover;
	border-radius: var(--r-24);
}

.hk-card-border{
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(10rem, 9rem + 2vw, 14rem);
	object-fit: cover;
	border-radius: var(--r-24);
	border: 0.125rem solid var(--hk-border);
}


.hk-card__img--ph{
	position: relative;
	overflow: hidden;
	border-radius: var(--r-24);
	background:
		radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, rgba(24, 57, 108, 0.20), rgba(48, 132, 38, 0.10));
}

.hk-card__img--ph::after{
	content: "";
	position: absolute;
	inset:
		clamp(1.8rem, 1.5rem + 0.8vw, 2.6rem)
		clamp(2.6rem, 2rem + 1.5vw, 4rem)
		clamp(2rem, 1.6rem + 0.8vw, 2.8rem)
		clamp(2.6rem, 2rem + 1.5vw, 4rem);
	border-radius: 999rem;
	background: rgba(17, 17, 17, 0.18);
	filter: blur(0.18rem);
}

/* =========================================================
   Typografie
========================================================= */

.hk-card__name{
	margin: 0 0 0.25rem 0;
	color: var(--hk-blue);
	font-family: "source_sans_prosemibold", Arial, sans-serif;
	font-weight: normal;
	font-size: clamp(1.375rem, 1.375rem, 1.375rem);
	line-height: 1.45;
}

.hk-card__name--black{
	color: var(--hk-black);
}

.hk-card__role{
	margin: 0 0 0.75rem 0;
	font-family: "Droid-Serif", Times, serif;
	font-weight: normal;
	font-size: clamp(0.8rem, 0.75rem + 0.4vw, 1rem);
	line-height: 1.35;
}

/* =========================================================
   Meta-Bereich
========================================================= */

.hk-card__meta{
	font-family: "Droid-Serif", Times, serif;
	font-weight: normal;
	font-size: 0.85rem;
	line-height: 1.55;
}

.hk-meta__link{
	display: inline-flex;
	align-items: center;
	gap: clamp(0.4rem, 0.35rem + 0.2vw, 0.6rem);
	max-width: 100%;
	color: var(--hk-blue);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.hk-meta__link + .hk-meta__link{
	margin-top: clamp(0.25rem, 0.2rem + 0.2vw, 0.4rem);
}

.hk-meta__link img{
	display: block;
	flex: 0 0 auto;
	width: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
	height: auto;
	transition: filter 180ms ease-in-out;
}

.hk-meta__link span{
	min-width: 0;
}

.hk-meta__link:hover{
	color: var(--hk-green);
}

.hk-meta__link:hover img{
	filter: brightness(0) saturate(100%) invert(37%) sepia(67%) saturate(796%) hue-rotate(72deg) brightness(92%) contrast(88%);
}

.hk-meta__link:focus-visible{
	outline: 0.125rem solid rgba(48, 132, 38, 0.35);
	outline-offset: 0.125rem;
	border-radius: 0.25rem;
}

/* Rückwärtskompatibilität */
.hk-meta__item{
	display: flex;
	align-items: center;
	gap: clamp(0.4rem, 0.35rem + 0.2vw, 0.6rem);
}

.hk-meta__item + .hk-meta__item{
	margin-top: clamp(0.25rem, 0.2rem + 0.2vw, 0.4rem);
}

.hk-meta__icon{
	display: block;
	flex-shrink: 0;
	width: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
	height: auto;
}

.hk-muted{
	margin: 0;
	color: var(--hk-gray);
}

/* =========================================================
   Visually hidden
========================================================= */

.hk-vh{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 36rem){

	.hk-acc{
		--pill-h: clamp(2.6rem, 2.6rem, 2.6rem);
		--pill-pad-x: clamp(1rem, 1rem, 1rem);
		--toggle-sz: clamp(2.5rem, 2.5rem, 2.5rem);
		--body-gap-top: clamp(0.9rem, 0.9rem, 0.9rem);
		--box-pad: clamp(1.1rem, 1.1rem, 1.1rem);
	}

	.hk-pill{
		font-size: clamp(0.95rem, 0.95rem, 0.95rem);
		letter-spacing: 0.18rem;
	}

	.hk-toggle{
		left: auto;
		right: 0;
		top: 100%;
		transform: translateY(-50%);
	}

	.hk-card{
		flex-direction: column;
		gap: 0.9rem;
	}

	.hk-card__media{
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.hk-card__img{
		width: auto;
		max-width: 100%;
		height: 25rem;
	}

	.hk-card__content,
	.hk-card__meta{
		padding-top: 0;
		overflow-wrap: anywhere;
		word-break: break-word;
		hyphens: auto;
	}

	.hk-meta__link{
		display: inline-flex;
		max-width: 100%;
	}
}
