/* kim-betcher.de: gemeinsames Stylesheet für Startseite, Private Einblicke, Impressum und Datenschutz.
   SmartADM (Sales/Office) nutzt diese Datei nicht. */

/* Archivo liegt lokal (SIL Open Font License, siehe ressources/fonts/OFL.txt): kein Abruf bei Google */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url(ressources/fonts/archivo-latin.woff2) format('woff2');
}

:root {
    --schiefer: #222B33;      /* Dachschiefer: dunkle Flächen */
    --schiefer-tief: #171D23;
    --tinte: #161B20;         /* Text */
    --leise: #5B6670;         /* Nebentext */
    --nebel: #F2F3F1;         /* ruhige Fläche */
    --linie: #D8DBD7;
    --gelb: #FFF02D;          /* Gelb aus dem Schwäbisch-Hall-Logo */
    --rot: #E6002D;           /* Rot aus dem Logo: nur für die Handlung */
    --rot-tief: #B80024;
}

body { font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, h4 { font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Von den Unterseiten (Impressum, Datenschutz, Private Einblicke) weiter genutzt */
.bg-bsh-red { background-color: #E6002D; }
.bg-bsh-yellow { background-color: #FFF02D; }
.text-bsh-red { color: #E6002D; }
.hover\:bg-bsh-red:hover { background-color: #B80024; }
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.reveal-ready.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.card-lift { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12), 0 8px 20px -8px rgba(0,0,0,0.08); }
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Startseite ============ */
.kb { color: var(--tinte); background: #fff; font-size: 17px; line-height: 1.55; }
.kb *, .kb *::before, .kb *::after { box-sizing: border-box; }
.kb h1, .kb h2, .kb h3, .kb p, .kb ol, .kb ul, .kb table { margin: 0; padding: 0; }
.kb ol, .kb ul { list-style: none; }
.kb a { color: inherit; text-decoration: none; }
.kb img { display: block; max-width: 100%; }
.kb-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kb a:focus-visible, .kb button:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

.kb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.5em; border: 2px solid transparent; border-radius: 4px;
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.kb-btn svg { width: 1.15em; height: 1.15em; flex: none; }
.kb .kb-btn-rot { background: var(--rot); color: #fff; }
.kb .kb-btn-rot:hover { background: var(--rot-tief); }
.kb .kb-btn-hell { border-color: rgba(255,255,255,.4); color: #fff; }
.kb .kb-btn-hell:hover { background: #fff; border-color: #fff; color: var(--schiefer); }

/* --- Kopf --- */
.kb-nav {
    position: absolute; inset: 0 0 auto 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px clamp(20px, 4vw, 56px); color: #fff;
}
.kb-brand { display: flex; align-items: center; gap: 14px; font-weight: 750; font-size: 1.35rem; }
.kb .kb-brand-mark { display: block; flex: none; width: 80px; height: 42px; }
.kb-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); font-weight: 550; font-size: .98rem; }
.kb-links a { padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.kb-links a:hover { border-bottom-color: var(--gelb); }
.kb-links-trenner { flex: none; width: 1px; height: 1.15em; background: rgba(255,255,255,.55); }
.kb-menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 4px; background: rgba(23,29,35,.55); color: #fff; cursor: pointer; }
.kb-mobile { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 4px 20px 18px; background: var(--schiefer-tief); }
.kb-mobile.hidden { display: none; }
.kb-mobile a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 550; }
.kb-mobile .kb-mobile-kontakt { border-bottom: 0; color: var(--gelb); }
.kb-mobile .kb-mobile-privat { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.4); border-bottom: 0; }
@media (max-width: 940px) {
    .kb-links { display: none; }
    .kb-menu-btn { display: grid; }
}
@media (min-width: 941px) { .kb-mobile { display: none; } }

/* --- Der erste Bildschirm: Dach | First | Bank --- */
.kb-hero {
    position: relative; display: grid; overflow: hidden;
    grid-template-columns: 1fr 6px 1fr; grid-template-rows: minmax(0, 1fr) auto;
    min-height: max(100svh, 620px); background: var(--schiefer-tief);
}
.kb-half { position: relative; overflow: hidden; min-height: 0; }
.kb-half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-dach img { object-position: 50% 55%; filter: saturate(.8) contrast(1.05); }
.kb-bank img { object-position: 50% 16%; }
.kb-half::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.kb-dach::after { background: linear-gradient(180deg, rgba(23,29,35,.66) 0%, rgba(23,29,35,.42) 34%, rgba(23,29,35,.86) 100%); }
.kb-bank::after { background: linear-gradient(180deg, rgba(23,29,35,.5) 0%, rgba(23,29,35,0) 24%, rgba(23,29,35,0) 46%, rgba(23,29,35,.9) 100%); }
.kb-first { background: var(--gelb); transform-origin: top; }
.kb-half-text { position: absolute; z-index: 2; bottom: clamp(28px, 7.5vh, 76px); color: #fff; }
.kb-dach .kb-half-text { right: clamp(16px, 2.4vw, 40px); text-align: right; }
.kb-bank .kb-half-text { left: clamp(16px, 2.4vw, 40px); }
.kb-wort {
    display: block; white-space: nowrap;
    font-size: clamp(2.5rem, 5.6vw, 7rem); font-weight: 800; font-stretch: 112%;
    line-height: .95; letter-spacing: -.02em;
}
.kb-rolle { margin-top: .9em !important; font-size: clamp(.95rem, 1.25vw, 1.2rem); font-weight: 500; }
.kb-hero-fuss {
    grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
    padding: 20px clamp(20px, 4vw, 56px); background: #fff;
}
.kb-claim { flex: 1; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 650; line-height: 1.3; }
.kb-gebiet { color: var(--leise); font-size: .98rem; }

@media (prefers-reduced-motion: no-preference) {
    .kb-dach img { animation: kb-bild 1.4s cubic-bezier(.2,.7,.2,1) both; }
    .kb-bank img { animation: kb-bild 1.4s cubic-bezier(.2,.7,.2,1) both; }
    .kb-first { animation: kb-first .7s cubic-bezier(.2,.7,.2,1) .15s both; }
    .kb-dach .kb-half-text { animation: kb-von-links .8s cubic-bezier(.2,.7,.2,1) .35s both; }
    .kb-bank .kb-half-text { animation: kb-von-rechts .8s cubic-bezier(.2,.7,.2,1) .55s both; }
}
@keyframes kb-bild { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes kb-first { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kb-von-links { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes kb-von-rechts { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .kb-hero { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 6px minmax(0, 1.2fr) auto; }
    .kb-half { min-height: 34svh; }
    .kb-first { transform-origin: left; }
    .kb-dach .kb-half-text, .kb-bank .kb-half-text { left: 20px; right: 20px; text-align: left; bottom: 22px; }
    .kb-wort { font-size: clamp(2.3rem, 12vw, 3.8rem); }
    .kb-hero-fuss { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; }
    .kb-hero-fuss .kb-btn { width: 100%; }
    @keyframes kb-first { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* --- Abschnitte --- */
.kb-sec { padding: clamp(64px, 9vw, 124px) 0; }
.kb-h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; font-stretch: 108%; line-height: 1.07; letter-spacing: -.015em; text-wrap: balance; }
.kb-lead { margin-top: 1.1em !important; max-width: 58ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--leise); }
.kb-h3 { font-size: 1.3rem; font-weight: 750; line-height: 1.2; }

/* Mehrwert */
.kb-usp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.kb-punkte { display: grid; gap: 26px; margin-top: 44px !important; }
.kb-punkte li { padding-left: 22px; border-left: 4px solid var(--gelb); }
.kb-punkte p { margin-top: 6px; color: var(--leise); }
.kb-vergleich { width: 100%; border-collapse: collapse; }
.kb-vergleich caption { text-align: left; padding-bottom: 22px; font-size: 1.3rem; font-weight: 750; }
.kb-vergleich th { width: 50%; padding: 0 20px 14px 0; border-bottom: 3px solid var(--tinte); text-align: left; vertical-align: bottom; font-weight: 650; font-size: .95rem; color: var(--leise); }
.kb-vergleich th + th { padding-left: 20px; color: var(--tinte); }
.kb-vergleich td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--linie); vertical-align: top; color: var(--leise); }
.kb-vergleich td + td { padding-left: 20px; background: var(--nebel); color: var(--tinte); font-weight: 650; }
.kb-vergleich tr:last-child td { border-bottom: 0; }

/* Weg */
.kb-weg-sec { background: var(--nebel); }
.kb-weg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px) !important; border-top: 3px solid var(--tinte); }
.kb-weg li { position: relative; padding: 38px clamp(20px, 3vw, 44px) 0 0; }
.kb-weg li::before { content: ""; position: absolute; top: -10px; left: 0; width: 36px; height: 17px; background: var(--rot); }
.kb-weg p { margin-top: 10px; color: var(--leise); }

/* Werte */
.kb-stein { position: relative; overflow: hidden; background: var(--schiefer); color: #fff; }   /* dunkel, damit der Fuchs im gelben Shirt sich abhebt */
.kb-stein-text { max-width: 720px; }
.kb-zitat { margin-top: 1em !important; max-width: 34ch; font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.35; }
.kb-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px !important; padding-top: 22px !important; border-top: 3px solid var(--gelb); }
.kb-werte strong { display: block; font-weight: 750; font-size: 1.08rem; line-height: 1.25; }
.kb-werte span { display: block; margin-top: 4px; font-size: .98rem; color: rgba(255,255,255,.78); }
/* Der Fuchs steht frei auf dem dunklen Grund, senkrecht mittig. --f ist seine Höhe. */
.kb-fuchs-feld {
    --f: clamp(340px, 34vw, 470px);
    position: absolute; top: 50%; right: max(24px, calc((100vw - 1180px) / 2 + 40px));
    width: calc(var(--f) * .46); height: var(--f); transform: translateY(-50%); pointer-events: none;
}
.kb .kb-fuchs { position: absolute; left: 50%; bottom: 0; height: var(--f); width: auto; max-width: none; transform: translateX(-50%); }

/* Kontakt */
.kb-kontakt { background: var(--gelb); color: var(--tinte); }
.kb-kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: center; }
.kb .kb-kontakt .kb-lead { color: var(--tinte); }
.kb .kb-kontakt .kb-btn-hell { border-color: var(--tinte); color: var(--tinte); }
.kb .kb-kontakt .kb-btn-hell:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.kb .kb-kontakt a:focus-visible, .kb .kb-kontakt button:focus-visible { outline-color: var(--tinte); }
.kb-wege { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px !important; }
.kb-karte { width: 232px; padding: 18px 18px 16px; border-radius: 4px; background: #fff; color: var(--tinte); text-align: center; }
.kb-karte img { width: 100%; height: auto; }
.kb-karte p { margin-top: 12px; font-weight: 650; font-size: .98rem; line-height: 1.3; }
.kb-karte span { display: block; margin-top: 2px; font-weight: 400; font-size: .88rem; color: var(--leise); }
.kb .kb-buero { margin-top: 30px; max-width: 58ch; color: var(--tinte); }
.kb .kb-buero + .kb-wege { margin-top: 16px !important; }
.kb .kb-buero a { color: var(--tinte); font-weight: 650; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Fuß */
.kb-fuss { padding: 44px 0; background: var(--schiefer-tief); color: rgba(255,255,255,.66); font-size: .93rem; }
.kb-fuss-raster { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.kb-fuss strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 750; }
.kb-sh { display: inline-block; margin-bottom: 20px; }
.kb .kb-sh svg { display: block; width: 313px; height: 32px; }
.kb .kb-sh path { fill: #fff; }   /* Schriftzug hell, damit er auf dem dunklen Grund lesbar ist */
.kb-fuss-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.kb-fuss a:hover { color: #fff; }
.kb-sozial { display: flex; gap: 16px; margin-top: 16px; }
.kb-sozial svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
    .kb-usp { grid-template-columns: 1fr; }
    .kb-kontakt-raster { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .kb { font-size: 16px; }
    .kb-weg { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--tinte); }
    .kb-weg li { padding: 0 0 34px 28px; }
    .kb-weg li:last-child { padding-bottom: 0; }
    .kb-weg li::before { top: 4px; left: -11px; width: 19px; height: 12px; }
    .kb-werte { grid-template-columns: 1fr; gap: 18px; }
    .kb-fuchs-feld { --f: 300px; position: relative; top: auto; right: auto; transform: none; margin: 36px auto 0; }
    .kb-wege .kb-btn { width: 100%; }
    .kb-karte { width: 100%; max-width: 260px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .kb-stein-text { max-width: 58%; }
}

/* =====================================================================
   Unterseiten: Private Einblicke, Impressum, Datenschutz
   Gleiche Bausteine wie die Startseite (Kopf, Knöpfe, Fuß), dazu das
   Nötige für Fließtext, Galerie und Hobbys.
   ===================================================================== */
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.kb-seite ::selection { background: var(--gelb); color: var(--tinte); }
.kb-seite svg { display: block; }
.kb-seite button { font: inherit; color: inherit; }
.kb-menu-btn svg { width: 24px; height: 24px; }
.kb-fuss-links a[aria-current="page"] { color: #fff; }
.kb-links a[aria-current="page"] { border-bottom-color: var(--gelb); }

/* Seitenwechsel weich überblenden (wo der Browser es kann) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}

/* --- Seitenkopf: Schiefer, darunter der gelbe First --- */
.kb-kopf { position: relative; background: var(--schiefer); color: #fff; border-bottom: 6px solid var(--gelb); }
.kb-kopf .kb-nav { position: relative; }
.kb-kopf-text { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 84px); }
.kb .kb-titel {
    max-width: 18ch; font-size: clamp(2.3rem, 5.6vw, 4.75rem); font-weight: 800; font-stretch: 112%;
    line-height: .98; letter-spacing: -.02em; text-wrap: balance;
}
.kb .kb-kopf .kb-lead, .kb .kb-auftakt .kb-lead { color: rgba(255,255,255,.8); }

/* --- Private Einblicke: Auftakt, geteilt wie die Startseite --- */
.kb-auftakt {
    position: relative; display: grid; overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 6px minmax(0, 1fr);
    min-height: clamp(460px, 62svh, 640px); background: var(--schiefer); color: #fff;
}
.kb-auftakt-text {
    align-self: end;
    padding: 132px clamp(24px, 4vw, 64px) clamp(36px, 7vh, 72px) max(24px, calc((100vw - 1180px) / 2));
}
.kb-auftakt .kb-half::after { background: linear-gradient(180deg, rgba(23,29,35,.72) 0%, rgba(23,29,35,0) 34%); }
@media (max-width: 760px) {
    .kb-auftakt { grid-template-columns: 1fr; grid-template-rows: auto 6px auto; min-height: 0; }
    .kb-auftakt-text { padding: 104px 24px 32px; }
    .kb-auftakt .kb-half { min-height: 0; height: 42svh; }
    .kb-auftakt .kb-half::after { background: none; }
}

/* --- Bild, das eine Galerie öffnet --- */
.kb-ich { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.kb-ich .kb-punkte { margin-top: 36px !important; }
.kb-bildknopf {
    position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px;
    overflow: hidden; background: var(--nebel); cursor: pointer;
}
.kb-bildknopf img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.kb-bildzahl {
    position: absolute; z-index: 3; right: 12px; top: 12px;
    display: inline-flex; align-items: center; gap: .45em; padding: .4em .7em; border-radius: 4px;
    background: var(--gelb); color: var(--tinte); font-size: .88rem; font-weight: 650; line-height: 1.2;
}
.kb-bildzahl svg { width: 1.05em; height: 1.05em; }
.kb-bildzahl[hidden] { display: none; }
.kb-bildknopf .kb-bildzahl { top: auto; bottom: 12px; }

/* --- Hobbys --- */
.kb-hobbys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4.5vw, 56px) !important; }
.kb-hobby {
    position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 4px;
    overflow: hidden; background: var(--schiefer); text-align: left; cursor: pointer;
}
.kb .kb-hobby, .kb .kb-hobby:disabled { color: #fff; }
.kb .kb-hobby:disabled { cursor: default; }
.kb-hobby img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-hobby::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23,29,35,0) 42%, rgba(23,29,35,.9) 100%); }
.kb-hobby-text { position: absolute; z-index: 2; left: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); bottom: clamp(14px, 1.6vw, 22px); }
.kb-hobby-name { display: block; font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 800; font-stretch: 110%; line-height: 1.05; letter-spacing: -.01em; }
.kb-hobby-satz { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.35; color: rgba(255,255,255,.86); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .kb-hobby img, .kb-bildknopf img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
    .kb-hobby:hover img, .kb-bildknopf:hover img { transform: scale(1.04); }
}
.kb .kb-hobby:focus-visible, .kb .kb-bildknopf:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

/* --- Coding & AI-Automatisierung: Projekte mit Bildschirmfoto --- */
.kb-code-sec { background: var(--schiefer); color: #fff; }
.kb .kb-code-sec .kb-lead { color: rgba(255,255,255,.78); }
.kb-projekte { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(30px, 3.6vw, 48px) clamp(16px, 2vw, 28px); margin-top: clamp(36px, 4.5vw, 56px) !important; }
.kb-projekte > li { grid-column: span 2; }
.kb-projekte > li:nth-child(-n+2) { grid-column: span 3; }
.kb-schirm {
    display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
    background: var(--schiefer-tief); box-shadow: 0 0 0 1px rgba(255,255,255,.18); cursor: zoom-in;
}
.kb-schirm img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; }
.kb .kb-schirm:hover, .kb .kb-schirm:focus-visible { box-shadow: 0 0 0 3px var(--gelb); outline: 0; }
.kb .kb-projekte .kb-h3 { margin-top: 16px; }
.kb .kb-projekte p { margin-top: 6px; max-width: 46ch; color: rgba(255,255,255,.78); }
.kb .kb-projekte .kb-hinweis { font-size: .88rem; color: rgba(255,255,255,.58); }
/* Letzter Punkt, etwas abgesetzt: gemeinsames Projekt und die Seite des Partners */
.kb-partner {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center;
    margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.2);
}
.kb .kb-partner .kb-h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; font-stretch: 108%; line-height: 1.12; text-wrap: balance; }
.kb .kb-partner p { margin-top: 12px; max-width: 52ch; color: rgba(255,255,255,.78); }
.kb .kb-projekt-link { display: inline-block; margin-top: 8px; color: #fff; font-weight: 650; text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Eigenschaften: gleiche Tabelle wie „Der Unterschied in der Beratung“ */
.kb-vergleich td strong { display: block; margin-bottom: 4px; color: var(--tinte); font-size: 1.15rem; font-weight: 750; line-height: 1.2; }

/* --- Rechtstexte: Überschrift links, Text rechts --- */
.kb-recht { padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 9vw, 124px); }
.kb-abschnitt {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px clamp(24px, 5vw, 80px);
    padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--linie);
}
.kb-abschnitt:first-child { border-top: 0; }
.kb .kb-abschnitt > h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 750; font-stretch: 106%; line-height: 1.2; text-wrap: balance; }
.kb-text { max-width: 66ch; }
.kb .kb-text > * + * { margin-top: 1em; }
.kb .kb-text h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.kb .kb-text > * + h3 { margin-top: 1.9em; }
.kb .kb-text > h3 + * { margin-top: .3em; }
.kb .kb-text a { text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.kb .kb-text a:hover { color: var(--rot-tief); }
.kb .kb-text a:focus-visible { outline-color: var(--rot); }
.kb .kb-gross { font-size: 1.18rem; font-weight: 650; line-height: 1.4; }
.kb .kb-klein { font-size: .93rem; color: var(--leise); }
.kb .kb-liste li { position: relative; padding-left: 1.2em; }
.kb .kb-liste li + li { margin-top: .35em; }
.kb .kb-liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 4px; background: var(--rot); }
.kb .kb-posten { display: grid; gap: 22px; }
.kb .kb-posten li { padding-left: 20px; border-left: 4px solid var(--gelb); }
.kb .kb-posten strong { display: block; margin-bottom: 4px; font-weight: 700; }
.kb .kb-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.kb .kb-zwei strong { display: block; margin-bottom: 4px; font-weight: 700; }
.kb .kb-stand { margin-top: clamp(28px, 3.6vw, 48px) !important; padding-top: 20px !important; border-top: 3px solid var(--tinte); }

/* --- Galerie --- */
.kb-licht {
    position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--schiefer-tief); color: #fff;
}
.kb-licht[hidden] { display: none; }
.kb-licht-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(14px, 3vw, 28px); }
.kb .kb-licht-titel { font-size: 1.05rem; font-weight: 750; }
.kb-licht-zahl { margin-left: .8em; font-weight: 400; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.kb-licht-buehne { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.kb .kb-licht-buehne img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.kb-licht-knopf {
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 4px;
    background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.kb-licht-knopf[hidden] { display: none; }
.kb .kb-licht-knopf:hover { background: var(--gelb); color: var(--tinte); }
.kb-licht-knopf svg { width: 26px; height: 26px; }
.kb-licht-zurueck, .kb-licht-weiter { position: absolute; top: 50%; transform: translateY(-50%); }
.kb-licht-zurueck { left: clamp(8px, 2vw, 24px); }
.kb-licht-weiter { right: clamp(8px, 2vw, 24px); }
.kb-licht-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 24px; padding: 16px clamp(14px, 3vw, 28px) 22px; }
.kb-licht-fuss:empty { padding-top: 0; }

@media (max-width: 900px) {
    .kb-ich { grid-template-columns: 1fr; }
    .kb-ich .kb-bildknopf { max-width: 520px; }
    .kb-hobbys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-projekte > li, .kb-projekte > li:nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 760px) {
    .kb-abschnitt { grid-template-columns: 1fr; }
    .kb .kb-zwei { grid-template-columns: 1fr; }
    .kb-partner { grid-template-columns: 1fr; }
    .kb-hobbys { gap: 10px; }
    .kb-hobby-name { font-size: clamp(1.02rem, 4.7vw, 1.3rem); }
    .kb-hobby-satz { font-size: .88rem; }
    .kb-projekte > li, .kb-projekte > li:nth-child(-n+2) { grid-column: 1 / -1; }
    .kb-licht-buehne { padding: 0 8px; }
    .kb-licht-zurueck, .kb-licht-weiter { top: auto; bottom: 8px; transform: none; background: rgba(23,29,35,.7); }
    .kb-licht-fuss .kb-btn { width: 100%; }
}
