/* /kontakt/ - page layout only. Tokens from theme.css; no new colours or font sizes. */

/* 01 Hero: number-first. Text left, the phone-block "plate" with the huge number right. */
.ko-hero__inner { display: grid; gap: var(--sp-7); align-items: center; }
.ko-hero__inner > * { min-width: 0; }
.ko-hero .hero__content { max-width: 42rem; }
@media (min-width: 60em) {
	.ko-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
}
.ko-plate {
	background-color: var(--ink-950); border: 1px solid color-mix(in srgb, var(--violet-300) 40%, transparent);
	box-shadow: var(--sh-lg); padding-inline: var(--sp-4); padding-top: var(--sp-7);
}
@media (min-width: 40em) { .ko-plate { padding-inline: var(--sp-6); } }
.ko-plate .phone-block__number { font-size: var(--fs-2xl); }
.ko-plate__badge {
	position: absolute; top: var(--sp-4); right: var(--sp-4); display: grid; place-items: center;
	width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white);
}
.ko-plate .phone-block__mail { display: flex; gap: 0.6em; align-items: flex-start; }
.ko-plate .phone-block__mail .i { color: var(--violet-300); margin-top: 0.25em; }
.ko-plate .phone-block__mail a { color: var(--violet-200); font-weight: 700; overflow-wrap: anywhere; }

/* 02 Drei Anlässe: route cards, the first one dark (akut) */
.ko-routes__grid { display: grid; gap: var(--sp-5); }
.ko-routes__grid > * { min-width: 0; }
@media (min-width: 56em) { .ko-routes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ko-route {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3);
	padding: var(--sp-6) var(--sp-5) var(--sp-5); background: var(--c-surface); color: var(--c-fg);
	border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.ko-route__badge { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; clip-path: var(--oct); background: var(--violet-100); color: var(--violet-800); }
.ko-route__badge .i { width: 1.75rem; height: 1.75rem; }
.ko-route__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.ko-route a:not(.btn):not(.link-arrow) { font-weight: 700; color: var(--c-link); }
.ko-route__foot { margin-top: auto; padding-top: var(--sp-3); }
.ko-route--akut {
	background-color: var(--ink-900); background-image: var(--grad-spot); border-color: var(--ink-700); box-shadow: var(--sh-lg);
	--c-fg: var(--on-dark); --c-heading: var(--white); --c-muted: var(--on-dark-muted); --c-link: var(--violet-300);
	--c-line: var(--ink-700); --c-line-strong: var(--ink-600); --c-accent: var(--violet-300); --focus: var(--spark);
}
.ko-route--akut .ko-route__badge { background: var(--violet-500); color: var(--white); }
@media (min-width: 56em) { .ko-route--akut { transform: translateY(calc(var(--sp-3) * -1)); } }

/* 03 Ablauf: the numeral is the heading's own text, shown in the octagon */
.ko-steps .step__text { color: var(--c-fg); }
.ko-step__title { display: grid; gap: var(--sp-3); justify-items: start; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; }
.ko-step__n {
	display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white);
	font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1;
}
@media (min-width: 48em) { .ko-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 04 Adress-Zettel (signature): plan beside the intro, then light / dark contrast pair */
.ko-slip__head { display: grid; gap: var(--sp-6); margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.ko-slip__head > * { min-width: 0; }
.ko-slip__head .section-head { margin-bottom: 0; }
@media (min-width: 64em) {
	.ko-slip__head { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
}
.ko-slip__plan { position: static; width: 100%; max-width: 15rem; padding: var(--sp-4); }
@media (min-width: 64em) { .ko-slip__plan { max-width: 19rem; padding: var(--sp-5); } }
.ko-slip__pair { display: grid; gap: var(--sp-4); }
.ko-slip__pair > * { min-width: 0; }
@media (min-width: 64em) { .ko-slip__pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: stretch; } }
.ko-slip__or {
	align-self: center; justify-self: center; display: grid; place-items: center; width: 4rem; height: 4rem; clip-path: var(--oct);
	background: var(--violet-500); color: var(--white); font-family: var(--font-display); font-size: var(--fs-sm); line-height: 1;
}
.ko-slip__card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); color: var(--c-fg);
	border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-md);
}
.ko-slip__card--back {
	background: var(--ink-800); border-color: var(--ink-700);
	--c-fg: var(--on-dark); --c-heading: var(--white); --c-muted: var(--on-dark-muted); --c-link: var(--violet-300);
	--c-line: var(--ink-700); --c-line-strong: var(--ink-600); --c-surface-2: var(--ink-850); --c-accent: var(--violet-300); --focus: var(--spark);
}
.ko-slip__single { aspect-ratio: 16 / 10; }
@media (min-width: 64em) {
	/* the photo takes up the height difference to the taller sibling card, no empty white gap */
	.ko-slip__card--front .ko-slip__single { aspect-ratio: auto; flex: 1 1 16rem; min-height: 16rem; }
	.ko-slip__card--front .ko-slip__single > img, .ko-slip__card--front .ko-slip__single > .img-placeholder { position: absolute; inset: 0; }
	.ko-slip__card--front .ko-slip__body { flex: none; }
}
.ko-slip__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-3); background: var(--ink-900); }
.ko-slip__tile { display: grid; gap: var(--sp-2); margin: 0; min-width: 0; align-content: start; }
.ko-slip__tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); }
.ko-slip__tile-media > img, .ko-slip__tile-media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ko-slip__tile figcaption { text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--on-dark); overflow-wrap: anywhere; }
@media (min-width: 40em) { .ko-slip__tile figcaption { letter-spacing: 0.08em; text-transform: uppercase; } }
@media (max-width: 29.99em) {
	/* 320-360 px: "Quergebäude" must stay on one line (no mid-word break) */
	.ko-slip__trio { gap: var(--sp-1); padding: var(--sp-2); }
	.ko-slip__tile figcaption { font-size: calc(var(--fs-xs) * 0.9); overflow-wrap: normal; }
}
.ko-slip__body { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; padding: var(--sp-5); }
.ko-slip__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.ko-slip__label {
	display: flex; gap: 0.5em; align-items: center; margin-top: auto; padding-top: var(--sp-3);
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent);
}
.ko-slip__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ko-slip__fields li {
	display: flex; gap: 0.6em; align-items: flex-start; padding: var(--sp-2) var(--sp-3); background: var(--c-surface-2);
	border: 1px solid var(--c-line); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; color: var(--c-heading);
}
.ko-slip__fields .i { color: var(--c-accent); margin-top: 0.2em; }

/* 05 Einsatzgebiet: octagon photo with the twelve-segment Berlin emblem */
.ko-gebiet__split > * { min-width: 0; }
@media (min-width: 60em) { .ko-gebiet__split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.ko-gebiet__media { position: relative; padding-bottom: var(--sp-7); }
.ko-gebiet__frame { box-shadow: var(--sh-lg); }
.ko-gebiet__emblem { position: absolute; left: var(--sp-3); bottom: 0; width: min(11rem, 42vw); }

/* 06 Pointer: nothing special, a small notice */
.ko-legal .notice { max-width: none; }

/* 07 FAQ: centred accordion, call line below */
.ko-faq__call {
	display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: center;
	max-width: var(--container-narrow); margin: var(--sp-7) auto 0; padding: var(--sp-5);
	border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg);
}
.ko-faq__call-text { font-weight: 700; color: var(--c-heading); text-align: center; }
