/* ==========================================================================
   KDS Salscheider – main.css
   Farbcode aus dem Logo: Magenta = Schädlingsbekämpfung, Cyan = Gebäudereinigung,
   Gelb = Facility Management.
   ========================================================================== */

/* Fonts (lokal, WOFF2) ---------------------------------------------------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Tokens ------------------------------------------------------------------ */
:root {
	--ink: #221f20;
	--ink-2: #45403f;
	--muted: #5d6266;
	--line: #e1e5e8;
	--mist: #f2f5f7;
	--white: #ffffff;
	--dark: #1d1b1c;
	--dark-2: #2a2728;

	--mag: #d12d89;
	--mag-ink: #b0216f;
	--mag-soft: #fbe8f2;
	--cya: #4ba6e5;
	--cya-ink: #1a6fae;
	--cya-soft: #e6f2fb;
	--yel: #f6dc3c;
	--yel-ink: #7d6400;
	--yel-soft: #fdf8d8;

	--tone: var(--cya);
	--tone-ink: var(--cya-ink);
	--tone-soft: var(--cya-soft);

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--sec: clamp(64px, 9vw, 128px);
	--sec-sm: clamp(44px, 6vw, 80px);
	--gap: clamp(20px, 2.6vw, 36px);
	--radius: 16px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(34, 31, 32, .04), 0 10px 30px -12px rgba(34, 31, 32, .14);
	--shadow-hover: 0 2px 4px rgba(34, 31, 32, .05), 0 22px 44px -18px rgba(34, 31, 32, .24);
	--header-h: 84px;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: clamp(15.5px, 1.05vw, 16px); line-height: 1.78; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 500; line-height: 1.14; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.25; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cya-ink); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.kds-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.kds-skip:focus { top: 12px; }
.kds-main:focus { outline: none; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--full { max-width: none; padding-inline: clamp(16px, 3.2vw, 56px); } /* Header und Footer immer volle Breite */
.kds-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.kds-sec { padding-block: var(--sec); background: var(--white); }
.kds-sec--mist { background: var(--mist); }
.kds-sec--dark { background: var(--dark); color: #e9e6e7; }
.kds-sec--dark h2, .kds-sec--dark h3 { color: #fff; }

.kds-head { max-width: 720px; margin: 0 auto clamp(32px, 4.4vw, 56px); text-align: center; }
.kds-head p:last-child { margin-bottom: 0; color: var(--muted); }

.kds-split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kds-split--57 { grid-template-columns: 5fr 7fr; }
.kds-split--65 { grid-template-columns: 6fr 5fr; }
.kds-split--75 { grid-template-columns: 7fr 5fr; }
.kds-split--top { align-items: start; }
.kds-split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.kds-split__text > :last-child { margin-bottom: 0; }

/* Bildrahmen mit festen Seitenverhältnissen */
.kds-ratio { position: relative; overflow: hidden; }
.kds-ratio > .kds-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.kds-ratio--card { aspect-ratio: 4 / 3; }
.kds-ratio--portrait { aspect-ratio: 4 / 5; }
.kds-ratio--banner { aspect-ratio: 21 / 9; }
.kds-ratio--split { aspect-ratio: 16 / 10; }
.kds-img { width: 100%; height: 100%; object-fit: cover; }

/* Platzhalter-Fläche, solange kein Foto hinterlegt ist */
.kds-img--ph { display: grid; place-items: center; background:
	radial-gradient(60% 70% at 30% 30%, color-mix(in srgb, var(--ph, var(--cya)) 22%, transparent) 0, transparent 70%),
	linear-gradient(160deg, #f7f9fa, #e6ebee); }
.kds-img--mag { --ph: var(--mag); }
.kds-img--cya { --ph: var(--cya); }
.kds-img--yel { --ph: var(--yel); }
.kds-img__mark { width: clamp(64px, 18%, 120px); opacity: .55; }

/* Markenzeichen: drei Dächer */
.kds-mark__mag { fill: var(--mag); }
.kds-mark__cya { fill: var(--cya); }
.kds-mark__yel { fill: var(--yel); }

/* Typo-Bausteine ---------------------------------------------------------- */
.kds-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kds-eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--mag) 0 33.3%, var(--cya) 33.3% 66.6%, var(--yel) 66.6%); border-radius: 2px; }
.kds-head .kds-eyebrow::after { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--mag) 0 33.3%, var(--cya) 33.3% 66.6%, var(--yel) 66.6%); border-radius: 2px; }

.kds-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--tone-ink); text-decoration: none; }
.kds-link .kds-ico { width: 18px; height: 18px; transition: transform .2s ease; }
.kds-link:hover .kds-ico, a:hover > .kds-link .kds-ico { transform: translateX(4px); }

.kds-checks { display: grid; gap: 12px; margin: 22px 0 30px; }
.kds-checks li { display: flex; gap: 12px; align-items: flex-start; }
.kds-checks .kds-ico { flex: none; width: 22px; height: 22px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--cya-soft); color: var(--cya-ink); stroke-width: 2.4; }

/* Buttons ----------------------------------------------------------------- */
.kds-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kds-btns--center { justify-content: center; }
.kds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border: 1.5px solid transparent; border-radius: 999px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.kds-btn .kds-ico { width: 18px; height: 18px; }
.kds-btn--primary { background: var(--ink); color: #fff; }
.kds-btn--primary:hover { background: var(--mag-ink); }
.kds-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.kds-btn--ghost:hover { background: var(--ink); color: #fff; }
.kds-btn--light { background: #fff; color: var(--ink); }
.kds-btn--light:hover { background: var(--yel); }
.kds-btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.kds-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.kds-btn--sm { min-height: 42px; padding: 10px 20px; font-size: 12.5px; }

/* Header ------------------------------------------------------------------ */
.kds-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s ease; }
.kds-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(34, 31, 32, .25); }
.kds-header__line { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 3px; }
.kds-header__line span:nth-child(1) { background: var(--mag); }
.kds-header__line span:nth-child(2) { background: var(--cya); }
.kds-header__line span:nth-child(3) { background: var(--yel); }
.kds-header__in { display: flex; align-items: center; gap: 24px; min-height: calc(var(--header-h) - 3px); }
.kds-logo { flex: none; display: block; }
.kds-logo img { width: clamp(132px, 13vw, 158px); height: auto; }

.kds-nav { margin-left: auto; }
.kds-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.kds-nav__list a { position: relative; display: inline-flex; align-items: center; min-height: 40px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.kds-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--item, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.kds-nav__list a:hover::after, .kds-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.kds-nav__list a[aria-current="page"] { color: var(--ink); }
.kds-nav__item--mag { --item: var(--mag); }
.kds-nav__item--cya { --item: var(--cya); }
.kds-nav__item--yel { --item: var(--yel); }
.kds-nav__mobile-cta, .kds-nav__item--mobile { display: none; }

.kds-header__actions { display: flex; align-items: center; gap: 14px; }
.kds-header__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.kds-header__tel .kds-ico { width: 18px; height: 18px; color: var(--cya-ink); }
.kds-burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.kds-burger .kds-ico { width: 22px; height: 22px; }
.kds-burger__close { display: none; }
.kds-burger[aria-expanded="true"] .kds-burger__open { display: none; }
.kds-burger[aria-expanded="true"] .kds-burger__close { display: block; }

/* Hero (Startseite) ------------------------------------------------------- */
.kds-hero { position: relative; background: var(--white); }
.kds-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: clamp(520px, calc(100svh - var(--header-h)), 760px); }
.kds-hero__text { align-self: center; padding: clamp(48px, 7vw, 96px) clamp(28px, 4.5vw, 72px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.kds-hero__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: .38em; }
.kds-hero__sub { max-width: 34em; font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--ink-2); }
.kds-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.kds-hero__facts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.kds-hero__facts .kds-ico { width: 20px; height: 20px; color: var(--mag); }
.kds-hero__media { position: relative; margin: 0; overflow: hidden; border-bottom-left-radius: clamp(28px, 4vw, 56px); background: var(--line); }
.kds-hero__media .kds-img { position: absolute; inset: 0; }
.kds-hero__mark { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: clamp(86px, 9vw, 120px); padding: 14px 16px 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }

/* Page-Hero (Unterseiten) ------------------------------------------------- */
.kds-phero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6.5vw, 84px); text-align: center; background: var(--white); }
.kds-phero__in { max-width: calc(860px + 2 * var(--gutter)); }
.kds-phero__mark { width: 64px; margin: 0 auto 22px; }
.kds-phero__title { margin-bottom: .32em; }
.kds-phero__sub { max-width: 40em; margin: 0 auto; font-size: clamp(1.02rem, 1.25vw, 1.12rem); color: var(--muted); }
.kds-phero .kds-eyebrow { justify-content: center; }
.kds-phero .kds-eyebrow::after { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--mag) 0 33.3%, var(--cya) 33.3% 66.6%, var(--yel) 66.6%); border-radius: 2px; }
.kds-phero--mag, .kds-tone--mag, .kds-area--mag { --tone: var(--mag); --tone-ink: var(--mag-ink); --tone-soft: var(--mag-soft); }
.kds-phero--cya, .kds-tone--cya, .kds-area--cya { --tone: var(--cya); --tone-ink: var(--cya-ink); --tone-soft: var(--cya-soft); }
.kds-phero--yel, .kds-tone--yel, .kds-area--yel { --tone: var(--yel); --tone-ink: var(--yel-ink); --tone-soft: var(--yel-soft); }
.kds-phero--mag .kds-eyebrow::before, .kds-phero--mag .kds-eyebrow::after,
.kds-phero--cya .kds-eyebrow::before, .kds-phero--cya .kds-eyebrow::after,
.kds-phero--yel .kds-eyebrow::before, .kds-phero--yel .kds-eyebrow::after { background: var(--tone); }

/* Leistungsbereiche (Startseite) ----------------------------------------- */
.kds-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.kds-area { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.kds-area:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.kds-area__media { display: block; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.kds-area__media .kds-img { position: absolute; inset: 0; transition: transform .6s ease; }
.kds-area:hover .kds-area__media .kds-img { transform: scale(1.03); }
.kds-area__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 36px clamp(22px, 2.2vw, 30px) 28px; }
.kds-area__roof { position: absolute; top: -22px; left: clamp(22px, 2.2vw, 30px); width: 50px; height: 30px; background: var(--tone); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kds-area__roof::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 15px; transform: translateX(-50%); background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kds-area h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: .4em; }
.kds-area h3 a { text-decoration: none; }
.kds-area h3 a:hover { color: var(--tone-ink); }
.kds-area__body > p { color: var(--muted); }
.kds-area__list { display: grid; gap: 2px; margin: 6px 0 22px; border-top: 1px solid var(--line); }
.kds-area__list a { display: flex; align-items: center; gap: 10px; min-height: 42px; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; color: var(--ink-2); }
.kds-area__list a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.kds-area__list a:hover { color: var(--ink); }
.kds-area .kds-link { margin-top: auto; }

/* Werte ------------------------------------------------------------------- */
.kds-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.kds-value { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.kds-sec:not(.kds-sec--mist) .kds-value { background: var(--mist); border-color: transparent; }
.kds-value__ico { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.kds-value:nth-child(3n+1) .kds-value__ico { background: var(--mag); }
.kds-value:nth-child(3n+2) .kds-value__ico { background: var(--cya-ink); }
.kds-value:nth-child(3n) .kds-value__ico { background: var(--yel); color: var(--ink); }
.kds-value__ico .kds-ico { width: 24px; height: 24px; }
.kds-value p { margin: 0; color: var(--muted); font-size: 15px; }

/* Ablauf ------------------------------------------------------------------ */
.kds-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); counter-reset: step; }
.kds-step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.kds-step__no { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--ink); }
.kds-step:nth-child(1) { border-color: var(--mag); }
.kds-step:nth-child(2) { border-color: var(--cya); }
.kds-step:nth-child(3) { border-color: var(--yel); }
.kds-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Kundenstimmen ----------------------------------------------------------- */
.kds-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.kds-voice { display: flex; flex-direction: column; padding: 30px 28px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.kds-voice blockquote p { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.3rem); font-style: italic; line-height: 1.4; color: var(--ink); }
.kds-voice blockquote p::before { content: "\201E"; }
.kds-voice blockquote p::after { content: "\201C"; }
.kds-voice figcaption { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* CTA --------------------------------------------------------------------- */
.kds-cta { position: relative; overflow: hidden; text-align: center; }
.kds-cta__in { max-width: calc(760px + 2 * var(--gutter)); }
.kds-cta__mark { width: 74px; margin: 0 auto 26px; }
.kds-cta p { color: #c9c4c6; font-size: clamp(1rem, 1.2vw, 1.1rem); }

/* Leistungsseite: Karten + Kacheln --------------------------------------- */
.kds-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.kds-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.kds-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.kds-card__body { position: relative; flex: 1; padding: 26px 26px 24px; border-top: 4px solid var(--tone); }
.kds-card__body p { margin: 0; color: var(--muted); font-size: 15px; }
.kds-cards--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kds-cards--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kds-cards--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kds-cards--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kds-cards--n5 > :nth-child(-n+2) { grid-column: span 3; }
.kds-cards--n5 > :nth-child(n+3) { grid-column: span 2; }
.kds-cards--n5 > :nth-child(-n+2) .kds-card__media { aspect-ratio: 16 / 9; }
.kds-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: var(--gap); }
.kds-tiles--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kds-tile { position: relative; padding: 24px 24px 22px 66px; background: var(--mist); border-radius: 14px; }
.kds-tile__roof { position: absolute; left: 24px; top: 28px; width: 26px; height: 16px; background: var(--tone); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kds-tile h3 { font-size: 1.12rem; margin-bottom: .3em; }
.kds-tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.kds-card:target, .kds-tile:target { outline: 2px solid var(--tone); outline-offset: 4px; }

/* FAQ */
.kds-faq { display: grid; gap: 12px; }
.kds-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.kds-faq summary { position: relative; display: block; padding: 20px 60px 20px 24px; font-family: var(--serif); font-size: 1.14rem; font-weight: 500; cursor: pointer; list-style: none; }
.kds-faq summary::-webkit-details-marker { display: none; }
.kds-faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.kds-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.kds-faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Weitere Bereiche */
.kds-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.kds-more__item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 46px 30px 28px; background: var(--mist); border-radius: var(--radius); text-decoration: none; transition: transform .3s ease, background-color .3s ease; }
.kds-more__item:hover { transform: translateY(-4px); background: var(--tone-soft); }
.kds-more__item .kds-area__roof { top: 0; left: 30px; width: 40px; height: 24px; }
.kds-more__item .kds-area__roof::after { background: var(--mist); width: 18px; height: 12px; }
.kds-more__item:hover .kds-area__roof::after { background: var(--tone-soft); }
.kds-more__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.kds-more__text { color: var(--muted); font-size: 15px; }
.kds-more__item .kds-link { margin-top: auto; padding-top: 10px; }

/* Team -------------------------------------------------------------------- */
.kds-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kds-person { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 18px; padding: 16px; background: var(--mist); border-radius: var(--radius); }
.kds-person__media { grid-row: span 2; aspect-ratio: 1; border-radius: 12px; background: #fff; }
.kds-person__mono { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 14px; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); background: #fff; }
.kds-person__mono::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 20px; height: 12px; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kds-person__mono--mag::after { background: var(--mag); }
.kds-person__mono--cya::after { background: var(--cya); }
.kds-person__mono--yel::after { background: var(--yel); }
.kds-person h3 { align-self: end; margin: 0; font-size: 1.12rem; }
.kds-person p { align-self: start; margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Galerie ----------------------------------------------------------------- */
.kds-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.kds-gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--line); }
.kds-gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
.kds-gallery__item a, .kds-gallery__item > .kds-img { position: absolute; inset: 0; display: block; }
.kds-gallery__item .kds-img { transition: transform .5s ease; }
.kds-gallery__item a:hover .kds-img { transform: scale(1.04); }

.kds-lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: clamp(16px, 4vw, 48px); background: rgba(20, 18, 19, .94); }
.kds-lb[hidden] { display: none; }
.kds-lb__img { max-width: min(1400px, 100%); max-height: calc(100svh - 140px); width: auto; height: auto; border-radius: 10px; }
.kds-lb__cap { margin-top: 14px; color: #ddd; font-size: 14.5px; text-align: center; }
.kds-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.kds-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.kds-lb__btn .kds-ico { width: 22px; height: 22px; }
.kds-lb__close { top: 16px; right: 16px; }
.kds-lb__prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.kds-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Kontakt ----------------------------------------------------------------- */
.kds-form-wrap h2 { margin-bottom: .8em; }
.kds-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 24px; }
.kds-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kds-field--full { grid-column: 1 / -1; }
.kds-field label { font-size: 14px; font-weight: 500; }
.kds-field input, .kds-field select, .kds-field textarea { width: 100%; min-height: 48px; padding: 13px 16px; border: 1px solid #cfd5d9; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.kds-field textarea { resize: vertical; min-height: 150px; }
.kds-field input:focus, .kds-field select:focus, .kds-field textarea:focus { outline: none; border-color: var(--cya-ink); box-shadow: 0 0 0 3px var(--cya-soft); }
.kds-field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.kds-field--check input { flex: none; width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.kds-field--check label { font-weight: 400; line-height: 1.55; }
.kds-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kds-notice { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.kds-notice--ok { background: var(--cya-soft); color: var(--cya-ink); }
.kds-notice--err { background: var(--mag-soft); color: var(--mag-ink); }

.kds-contact-card { position: relative; padding: clamp(28px, 3vw, 40px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kds-contact-card__mark { width: 58px; margin-bottom: 20px; }
.kds-contact-list { display: grid; gap: 18px; margin: 8px 0 28px; }
.kds-contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.kds-contact-list .kds-ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--cya-ink); }
.kds-contact-list strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kds-contact-list a { text-decoration: none; font-weight: 500; }
.kds-contact-list a:hover { text-decoration: underline; }

/* Rechtstexte */
.kds-legal { max-width: calc(760px + 2 * var(--gutter)); }
.kds-legal h2 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin-top: 2em; }
.kds-legal h2:first-child { margin-top: 0; }
.kds-legal p { color: var(--ink-2); }
.kds-legal__date { margin-top: 2.4em; font-size: 14px; color: var(--muted); }

/* Footer (volle Breite) --------------------------------------------------- */
.kds-footer { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--dark); color: #bdb7b9; font-size: 15px; }
.kds-footer a { color: #e9e5e6; text-decoration: none; }
.kds-footer a:hover { color: #fff; text-decoration: underline; }
.kds-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px); }
.kds-footer__brand img { width: 168px; height: auto; margin-bottom: 20px; }
.kds-footer__brand p { max-width: 30em; line-height: 1.7; }
.kds-footer__h { margin-bottom: 18px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.kds-footer__col ul { display: grid; gap: 10px; }
.kds-footer__tone { display: inline-flex; align-items: center; gap: 10px; }
.kds-footer__tone::before { content: ""; width: 12px; height: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kds-footer__tone--mag::before { background: var(--mag); }
.kds-footer__tone--cya::before { background: var(--cya); }
.kds-footer__tone--yel::before { background: var(--yel); }
.kds-footer__addr { margin-bottom: 16px; font-style: normal; line-height: 1.7; }
.kds-footer__contact li { display: flex; align-items: center; gap: 10px; }
.kds-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.kds-footer__contact .kds-ico { flex: none; width: 18px; height: 18px; color: var(--cya); }
.kds-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.kds-footer__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 22px; }
.kds-footer__bar p { margin: 0; }
.kds-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kds-footer__by a { color: #bdb7b9; }

/* Mobiles Kontakt-Dock */
.kds-dock { display: none; }

/* ==========================================================================
   Breakpoints: 1120 (Burger), 860 (Splits/Footer), 640 (Buttons)
   ========================================================================== */
/* Desktop: Telefon nur als Icon-Button */
.kds-header__tel { justify-content: center; width: 42px; border: 1.5px solid var(--line); border-radius: 50%; }
.kds-header__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kds-header__tel:hover { border-color: var(--ink); }

@media (max-width: 1280px) {
	.kds-header__cta { display: none; }
	.kds-nav__list a { letter-spacing: .05em; }
}

@media (max-width: 1120px) {
	.kds-burger { display: inline-flex; }
	.kds-header__cta { display: none; }
	.kds-nav__item--mobile { display: block; }
	.kds-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0; padding: 18px var(--gutter) 40px; background: #fff; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
	.kds-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
	.kds-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.kds-nav__list a { display: flex; min-height: 58px; font-size: 15px; border-bottom: 1px solid var(--line); }
	.kds-nav__list a::after { bottom: -1px; }
	.kds-nav__item--mag a::before, .kds-nav__item--cya a::before, .kds-nav__item--yel a::before { content: ""; width: 14px; height: 9px; margin-right: 12px; background: var(--item); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
	.kds-nav__mobile-cta { display: grid; gap: 16px; margin-top: 28px; }
	.kds-nav__tel { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-weight: 600; text-decoration: none; }
	.kds-nav__tel .kds-ico { width: 20px; height: 20px; }
	body.kds-nav-open { overflow: hidden; }
}

@media (max-width: 860px) {
	:root { --header-h: 72px; }
	.kds-split, .kds-split--57, .kds-split--65, .kds-split--75 { grid-template-columns: 1fr; }
	.kds-split__media { order: -1; }
	.kds-split__text { text-align: center; }
	.kds-split__text .kds-checks { text-align: left; max-width: 460px; margin-inline: auto; }
	.kds-split__text .kds-btns { justify-content: center; }
	.kds-hero__grid { grid-template-columns: 1fr; min-height: 0; }
	.kds-hero__media { order: -1; aspect-ratio: 4 / 3; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
	.kds-hero__text { padding: 40px var(--gutter) 56px; text-align: center; }
	.kds-hero__text .kds-btns, .kds-hero__facts { justify-content: center; }
	.kds-hero__mark { left: 16px; bottom: 16px; width: 76px; padding: 10px 12px 8px; border-radius: 12px; }
	.kds-form-wrap { order: 0; }
	.kds-contact-card { order: 1; }
	.kds-footer__grid { grid-template-columns: 1fr 1fr; }
	.kds-footer__brand { grid-column: 1 / -1; }
	.kds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kds-gallery__item--wide { grid-column: auto; aspect-ratio: 4 / 3; }
	.kds-cards--n3, .kds-cards--n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kds-cards--n5 > :nth-child(n) { grid-column: auto; }
	.kds-cards--n5 > :first-child { grid-column: 1 / -1; }
	.kds-cards--n3 > :first-child { grid-column: 1 / -1; }
	.kds-tiles, .kds-tiles--c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kds-team { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
	.kds-dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 8px; background: rgba(29, 27, 28, .94); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
	.kds-dock a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
	.kds-dock a span { white-space: nowrap; }
	.kds-dock .kds-ico { width: 18px; height: 18px; }
	.kds-dock a:not(.kds-dock__main) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.kds-dock__main { background: #fff; color: var(--ink) !important; letter-spacing: .06em; text-transform: uppercase; }
	.kds-footer { padding-bottom: 84px; }
	.kds-nav-open .kds-dock { display: none; }
}

@media (max-width: 640px) {
	.kds-btn { white-space: normal; max-width: 100%; text-align: center; }
	.kds-btns .kds-btn { flex: 1 1 100%; }
	.kds-form__grid { grid-template-columns: 1fr; }
	.kds-footer__grid { grid-template-columns: 1fr; }
	.kds-footer__bar-in { flex-direction: column; align-items: flex-start; }
	.kds-gallery { grid-template-columns: 1fr; }
	.kds-areas, .kds-cards, .kds-cards--n2, .kds-cards--n3, .kds-cards--n4, .kds-cards--n5, .kds-more, .kds-tiles, .kds-tiles--c3 { grid-template-columns: 1fr; }
	.kds-cards--n5 > :nth-child(n), .kds-cards--n3 > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
