/* =====================================================================
   Kellerer Agrar – Design-Layer auf Basis Crafto (Green-Energy-Demo)
   Ruhiger, klarer Stil: Grün + Weiß, viel Weißraum, einheitlicher Container
   ===================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
    --primary-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --alt-font: "Urbanist", "Inter", system-ui, sans-serif;
    --base-color: #1d4d2f;
    --dark-gray: #0f1a13;
    --medium-gray: #5b665e;

    --g-900: #0f2a19;
    --g-800: #163b24;
    --g-700: #1d4d2f;
    --g-600: #26633b;
    --g-100: #e9f0e6;
    --g-50: #f5f7f3;
    --ink: #0f1a13;
    --muted: #5b665e;
    --line: #e3e8e0;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    --shadow: 0 18px 40px -24px rgba(15, 42, 25, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--primary-font); font-size: 16px; line-height: 1.7; color: var(--muted); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--alt-font); color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 18px; }
h2, .h2 { font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); }
a { color: var(--g-600); transition: color .25s var(--ease); }
a:hover { color: var(--g-800); }
::selection { background: var(--g-700); color: #fff; }
img { max-width: 100%; height: auto; }
section { padding-top: 100px; padding-bottom: 100px; }
@media (max-width: 991px) { section { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 575px) { section { padding-top: 56px; padding-bottom: 56px; } }
.container { max-width: 1240px; }
@media (max-width: 575px) { .container { padding-left: 20px; padding-right: 20px; } }

.bg-tint { background: var(--g-50); }
.text-green { color: var(--g-700) !important; }
.ka-todo { background: #fff3b0; color: #6b5200; padding: 0 5px; border-radius: 4px; font-weight: 600; }

/* ---------- Kicker & Lead ---------- */
.ka-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: var(--g-100); color: var(--g-700); font-weight: 600; font-size: 14px; line-height: 1.2; margin-bottom: 18px; }
.ka-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-600); }
.ka-kicker.light { background: rgba(255,255,255,.12); color: #fff; }
.ka-kicker.light::before { background: #fff; }
.ka-lead { font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.ka-lead.light { color: rgba(255,255,255,.75); }
.ka-head { margin-bottom: 48px; }
.ka-head h2 { margin-bottom: 0; }
@media (max-width: 991px) { .ka-head { margin-bottom: 36px; } .ka-head .ka-lead { margin-top: 14px; } }

/* ---------- Buttons ---------- */
.ka-btn {
    --bg: var(--g-700); --fg: #fff; --ibg: #fff; --ifg: var(--g-700);
    display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 22px; border-radius: 100px; border: 1px solid transparent;
    background: var(--bg); color: var(--fg) !important; font-family: var(--alt-font); font-weight: 600; font-size: 16px; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.ka-btn .i { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ibg); color: var(--ifg); font-size: 14px; transition: transform .35s var(--ease); }
.ka-btn:hover { background: var(--g-800); }
.ka-btn:hover .i { transform: rotate(-45deg); }
.ka-btn.outline { --bg: transparent; --fg: var(--ink); --ibg: var(--g-700); --ifg: #fff; border-color: var(--line); }
.ka-btn.outline:hover { background: var(--g-50); border-color: var(--g-100); }
.ka-btn.light { --bg: #fff; --fg: var(--ink); --ibg: var(--g-700); --ifg: #fff; }
.ka-btn.light:hover { background: var(--g-100); }
.ka-btn.sm { font-size: 15px; padding: 4px 4px 4px 18px; gap: 10px; }
.ka-btn.sm .i { width: 34px; height: 34px; font-size: 12px; }
.ka-btn[disabled] { opacity: .6; pointer-events: none; }
.ka-link { font-family: var(--alt-font); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ka-link i { transition: transform .3s var(--ease); color: var(--g-600); }
.ka-link:hover { color: var(--g-700); }
.ka-link:hover i { transform: translateX(4px); }
.ka-arrow { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); font-size: 14px; transition: all .35s var(--ease); }

/* ---------- Header ---------- */
header .navbar { padding: 0; border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
header.sticky .navbar { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15,42,25,.4); }
header .navbar > .container { padding-left: 12px; padding-right: 12px; }
header .navbar-brand { padding: 16px 0; margin-right: 0; }
header .navbar-brand img { max-height: 46px; width: auto; }
header.sticky .navbar-brand { padding: 16px 0; }
header .navbar.fixed-header, header.sticky .navbar.fixed-header { transform: none !important; }
.navbar .navbar-nav .nav-link { font-family: var(--alt-font); font-weight: 600; font-size: 16px; color: var(--ink); padding: 30px 16px; letter-spacing: 0; }
.navbar .navbar-nav .nav-item.active > .nav-link, .navbar .navbar-nav .nav-item:hover > .nav-link, .navbar .navbar-nav .nav-link.active { color: var(--g-600); }
@media (min-width: 992px) { .navbar .navbar-nav .dropdown .dropdown-toggle { display: none; } }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu { width: 270px; border-radius: var(--r-md); padding: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a { font-family: var(--alt-font); font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 10px; padding: 9px 10px; display: flex; align-items: center; }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i { width: 32px; height: 32px; font-size: 13px; margin-right: 10px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--g-100); color: var(--g-700); }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover { background: var(--g-50); color: var(--g-700); }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover i { background: var(--g-700); color: #fff; }
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.ka-dd-all a { color: var(--g-600); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.ka-header-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--alt-font); font-weight: 600; font-size: 15px; color: var(--ink); }
.ka-header-phone i { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--g-700); font-size: 14px; transition: all .25s var(--ease); }
.ka-header-phone:hover { color: var(--g-700); }
.ka-header-phone:hover i { background: var(--g-700); border-color: var(--g-700); color: #fff; }
@media (max-width: 1199px) { .ka-header-phone .num { display: none; } }
.navbar-toggler-line { background: var(--ink); }
@media (max-width: 1199px) { .navbar .navbar-nav .nav-link { padding-left: 11px; padding-right: 11px; } }
@media (max-width: 991px) {
    header .navbar-brand img { max-height: 38px; }
    .navbar .navbar-nav .nav-link { padding: 12px 0; font-size: 17px; }
    .navbar .navbar-collapse { border-radius: 0 0 var(--r-md) var(--r-md); }
}

/* ---------- Startseite: Hero ---------- */
.ka-hero { padding-top: 40px; padding-bottom: 56px; }
.ka-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 22px; }
.ka-hero h1 span { color: var(--g-600); }
.ka-hero .ka-lead { max-width: 520px; margin-bottom: 32px; }
.ka-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ka-hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; height: 600px; background: var(--g-100); }
.ka-hero-media .swiper, .ka-hero-media .swiper-wrapper, .ka-hero-media .swiper-slide { height: 100%; }
.ka-hero-media .slide-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease-out; }
.ka-hero-media .swiper-slide-active .slide-img { transform: scale(1); }
.ka-hero-card { position: absolute; z-index: 3; left: 20px; bottom: 20px; right: 20px; max-width: 360px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--muted); }
.ka-hero-card .ic { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--g-700); color: #fff; display: flex; align-items: center; justify-content: center; }
.ka-hero-card b { display: block; color: var(--ink); font-family: var(--alt-font); font-size: 17px; line-height: 1.2; }
.ka-hero-card span { font-size: 14px; line-height: 1.3; }
.ka-hero-pagination { position: absolute; z-index: 3; right: 20px !important; left: auto !important; bottom: 32px !important; width: auto !important; display: flex; gap: 6px; }
.ka-hero-pagination .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: #fff; opacity: .55; transition: all .3s var(--ease); }
.ka-hero-pagination .swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 8px; }
.ka-hero-stats { display: flex; gap: 0; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ka-hero-stats div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.ka-hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ka-hero-stats b { display: block; font-family: var(--alt-font); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.ka-hero-stats span { font-size: 14px; line-height: 1.4; }
@media (max-width: 1199px) { .ka-hero-media { height: 520px; } }
@media (max-width: 991px) { .ka-hero { padding-top: 24px; } .ka-hero-media { height: 420px; margin-top: 40px; } }
@media (max-width: 575px) { .ka-hero-media { height: 320px; } .ka-hero-stats div { padding-right: 16px; margin-right: 16px; } .ka-hero-stats b { font-size: 24px; } .ka-hero-card { display: none; } }

/* Dezentes Einblenden beim Laden */
.ka-fade-up { opacity: 0; transform: translateY(16px); animation: kaFadeUp .8s var(--ease) forwards; animation-delay: var(--d, .1s); }
@keyframes kaFadeUp { to { opacity: 1; transform: none; } }

/* ---------- Aktuelles ---------- */
.ka-news { padding-top: 0; padding-bottom: 0; }
.ka-news-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 40px; background: var(--g-50); }
.ka-news-date { display: inline-flex; align-items: center; gap: 8px; color: var(--g-700); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ka-news-box h2 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); margin-bottom: 10px; }
.ka-news-box p { margin: 0; }
.ka-news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ka-news-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.ka-news-list li i { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--g-700); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; border: 1px solid var(--line); }
.ka-news-list b { color: var(--ink); display: block; font-family: var(--alt-font); font-size: 16px; }
@media (max-width: 767px) { .ka-news-box { padding: 26px 22px; } }

/* ---------- Bereiche (Service-Karten im Agrico-Stil) ---------- */
.ka-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ka-area { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff !important; text-decoration: none; background: var(--g-100); isolation: isolate; }
.ka-area .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.ka-area::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,24,15,0) 45%, rgba(10,24,15,.78) 100%); }
.ka-area:hover .bg { transform: scale(1.05); }
.ka-area .ka-arrow { position: absolute; top: 14px; right: 14px; }
.ka-area:hover .ka-arrow { background: var(--g-700); color: #fff; transform: rotate(-45deg); }
.ka-area .body { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.ka-area h3 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.ka-area p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.45; margin: 0; }
@media (max-width: 1199px) { .ka-areas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .ka-areas { grid-template-columns: repeat(2, 1fr); } .ka-area { aspect-ratio: 4 / 5; } .ka-area p { display: none; } }
@media (max-width: 420px) { .ka-areas { grid-template-columns: 1fr; } .ka-area { aspect-ratio: 16 / 11; } .ka-area p { display: block; } }

/* Wald-Illustration (Forstwirtschaft, solange keine Fotos vorliegen) */
.ka-forest { background-color: var(--g-100); background-image: url("../images/forest.svg"); background-size: cover; background-position: center bottom; }

/* ---------- Über uns ---------- */
.ka-img { border-radius: var(--r-lg); overflow: hidden; background: var(--g-100); }
.ka-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ka-img.r45 { aspect-ratio: 4 / 5; }
.ka-img.r43 { aspect-ratio: 4 / 3; }
.ka-checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ka-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; line-height: 1.45; font-size: 15.5px; }
.ka-checks li i { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--g-100); color: var(--g-700); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ka-checks.one { grid-template-columns: 1fr; }
@media (max-width: 575px) { .ka-checks { grid-template-columns: 1fr; } }
.ka-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.ka-stat { padding: 24px 20px 0 0; }
.ka-stat + .ka-stat { padding-left: 20px; border-left: 1px solid var(--line); }
.ka-stat .n { font-family: var(--alt-font); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.ka-stat .l { font-size: 14px; line-height: 1.4; margin-top: 8px; }

/* ---------- Leistungs-Kacheln ---------- */
.ka-tile { display: flex; flex-direction: column; height: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--muted) !important; text-decoration: none; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.ka-tile:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.ka-tile .media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--r-md); background: var(--g-100); }
.ka-tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ka-tile:hover .media img { transform: scale(1.05); }
.ka-tile .media .ka-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; }
.ka-tile:hover .media .ka-arrow { background: var(--g-700); color: #fff; transform: rotate(-45deg); }
.ka-tile .content { padding: 18px 12px 10px; display: flex; flex-direction: column; flex: 1; }
.ka-tile .grp { font-size: 13px; font-weight: 600; color: var(--g-600); margin-bottom: 6px; }
.ka-tile h3 { font-size: 20px; margin-bottom: 8px; line-height: 1.25; letter-spacing: -.015em; }
.ka-tile p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.ka-facts { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.ka-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.ka-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.ka-facts li small { font-size: 14px; color: var(--muted); flex: 0 0 auto; }
.ka-facts li span { color: var(--ink); font-weight: 600; text-align: right; }
.ka-facts li span, .ka-tile h3, .ka-group h3, .ka-facts-card dd { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Bild-Platzhalter */
.ka-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--g-700); background: var(--g-100); }
.ka-ph .ph-ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--g-700); box-shadow: 0 8px 20px -12px rgba(15,42,25,.4); }
.ka-ph .ph-note { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .75; color: var(--g-800); }

/* Untergruppen-Auswahl */
.ka-group { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--muted) !important; text-decoration: none; transition: border-color .3s var(--ease), background .3s var(--ease); }
.ka-group .ic { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--g-100); color: var(--g-700); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .3s var(--ease); }
.ka-group .txt { flex: 1; min-width: 0; }
.ka-group h3 { font-size: 18px; margin: 0 0 2px; letter-spacing: -.01em; }
.ka-group p { font-size: 14px; line-height: 1.45; margin: 0; }
.ka-group .cnt { font-size: 13px; color: var(--g-600); font-weight: 600; white-space: nowrap; }
.ka-group:hover { border-color: var(--g-700); background: var(--g-50); }
.ka-group:hover .ic { background: var(--g-700); color: #fff; }

/* Sticky Untergruppen-Leiste */
.ka-subnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ka-subnav .inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.ka-subnav .inner::-webkit-scrollbar { display: none; }
.ka-subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; font-family: var(--alt-font); font-weight: 600; font-size: 15px; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: all .25s var(--ease); }
.ka-subnav a i { color: var(--g-600); font-size: 12px; }
.ka-subnav a:hover { border-color: var(--g-700); }
.ka-subnav a.active { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.ka-subnav a.active i { color: #fff; }
.ka-group-section { padding-top: 72px; padding-bottom: 0; }
.ka-group-section.last { padding-bottom: 100px; }
@media (max-width: 991px) { .ka-group-section { padding-top: 56px; } .ka-group-section.last { padding-bottom: 72px; } }
.ka-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; flex-wrap: wrap; }
.ka-group-head h2 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.ka-group-head p { margin: 0; max-width: 440px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.ka-page-head { padding-top: 48px; padding-bottom: 0; }
.ka-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; }
.ka-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ka-breadcrumb li + li::before { content: "/"; color: #c5ccc3; margin-right: 2px; }
.ka-breadcrumb a { color: var(--muted); }
.ka-breadcrumb a:hover { color: var(--g-700); }
.ka-breadcrumb li:last-child { color: var(--ink); font-weight: 500; }
.ka-page-head h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 0; }
.ka-page-head .ka-lead { margin: 0; }
.ka-page-head .media { margin-top: 44px; border-radius: var(--r-lg); overflow: hidden; height: 460px; background: var(--g-100); }
.ka-page-head .media .bg { width: 100%; height: 100%; background-size: cover; background-position: center; }
.ka-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ka-chips span { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 100px; background: var(--g-50); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.ka-chips span b { color: var(--g-700); font-weight: 600; }
@media (max-width: 991px) { .ka-page-head { padding-top: 32px; } .ka-page-head .ka-lead { margin-top: 16px; } .ka-page-head .media { height: 320px; margin-top: 32px; } }
@media (max-width: 575px) { .ka-page-head .media { height: 240px; } }

/* ---------- Detailseite ---------- */
.ka-detail-text p { font-size: 16.5px; }
.ka-detail-text .lead-first { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.ka-side { position: sticky; top: 110px; }
.ka-facts-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; padding: 28px; }
.ka-facts-card h2 { font-size: 20px; margin-bottom: 8px; }
.ka-facts-card dl { margin: 0; }
.ka-facts-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ka-facts-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ka-facts-card dt { font-weight: 400; color: var(--muted); font-size: 15px; }
.ka-facts-card dd { margin: 0; text-align: right; font-weight: 600; font-size: 15px; color: var(--ink); }
.ka-cta-card { margin-top: 16px; border-radius: var(--r-lg); background: var(--g-800); padding: 28px; color: rgba(255,255,255,.75); }
.ka-cta-card h3 { font-size: 20px; margin-bottom: 6px; color: #fff; }
.ka-cta-card p { font-size: 15px; margin-bottom: 18px; }
.ka-cta-card .tel { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--alt-font); font-weight: 600; font-size: 18px; color: #fff; }
.ka-cta-card .tel:hover { color: var(--g-100); }
.ka-scope { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ka-scope li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.ka-scope li i { color: var(--g-600); }
.ka-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.ka-step { padding: 22px 20px; border-radius: var(--r-md); background: var(--g-50); }
.ka-step::before { counter-increment: s; content: "0" counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; color: var(--g-700); font-family: var(--alt-font); font-weight: 700; font-size: 13px; margin-bottom: 14px; border: 1px solid var(--line); }
.ka-step h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.01em; }
.ka-step p { font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 991px) { .ka-steps { grid-template-columns: 1fr 1fr; } .ka-side { position: static; } }
@media (max-width: 575px) { .ka-steps { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.ka-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.ka-gallery-grid.c3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
.ka-gallery-grid .gallery-box { position: relative; }
.ka-gallery-grid .gallery-box.t { grid-row: span 2; }
.ka-gallery-grid .gallery-box.w { grid-column: span 2; }
.ka-gallery-grid a { display: block; position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; background: var(--g-100); }
.ka-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ka-gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 991px) { .ka-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 575px) { .ka-gallery-grid, .ka-gallery-grid.c3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; } }

/* ---------- Slider ---------- */
.ka-slider-nav { display: flex; gap: 8px; }
.ka-slider-nav > div { position: static; margin: 0; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; transition: all .25s var(--ease); }
.ka-slider-nav > div::after { display: none; }
.ka-slider-nav > div:hover { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.ka-slider-nav > div.swiper-button-disabled { opacity: .4; }
.ka-swiper .swiper-slide { height: auto; }

/* ---------- Produktliste ---------- */
.ka-product-row { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted) !important; }
.ka-product-row:first-child { border-top: 1px solid var(--line); }
.ka-product-row .thumb { flex: 0 0 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--g-100); }
.ka-product-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ka-product-row .thumb .ka-ph .ph-ic { width: 40px; height: 40px; font-size: 15px; box-shadow: none; }
.ka-product-row .thumb .ka-ph .ph-note { display: none; }
.ka-product-row h3 { font-size: 18px; margin: 0 0 2px; letter-spacing: -.01em; transition: color .25s; }
.ka-product-row p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ka-product-row .ka-arrow { margin-left: auto; border: 1px solid var(--line); }
.ka-product-row:hover h3 { color: var(--g-700); }
.ka-product-row:hover .thumb img { transform: scale(1.08); }
.ka-product-row:hover .ka-arrow { background: var(--g-700); border-color: var(--g-700); color: #fff; transform: rotate(-45deg); }

/* ---------- Info-Rubriken ---------- */
.ka-feature { padding: 26px; border-radius: var(--r-lg); background: var(--g-50); height: 100%; }
.ka-feature .ic { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--g-700); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 18px; border: 1px solid var(--line); }
.ka-feature h3 { font-size: 19px; margin-bottom: 8px; }
.ka-feature p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- CTA ---------- */
.ka-cta { padding-top: 0; }
.bg-tint + .ka-cta { padding-top: 100px; }
@media (max-width: 991px) { .bg-tint + .ka-cta { padding-top: 72px; } }
.ka-page-head + section.pt-5 { padding-top: 56px !important; }
.ka-cta .box { border-radius: var(--r-lg); background: var(--g-800); padding: 64px; }
.ka-cta h2 { color: #fff; margin-bottom: 10px; }
.ka-cta p { color: rgba(255,255,255,.72); font-size: 1.05rem; margin: 0; }
.ka-cta .phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--alt-font); font-weight: 600; font-size: 20px; }
.ka-cta .phone:hover { color: var(--g-100); }
@media (max-width: 991px) { .ka-cta .box { padding: 44px 28px; } }

/* ---------- Kontakt ---------- */
.ka-form-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 36px; }
@media (max-width: 575px) { .ka-form-card { padding: 24px 18px; } }
.ka-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ka-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575px) { .ka-form-grid { grid-template-columns: 1fr; } }
.ka-field label { display: block; font-weight: 500; color: var(--ink); font-size: 14.5px; margin-bottom: 6px; }
.ka-field .form-control, .ka-field .form-select {
    display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: #fff;
    font-size: 15.5px; line-height: 48px; color: var(--ink); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.ka-field .form-select { appearance: none; -webkit-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'%3e%3cpath fill='none' stroke='%235b665e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.ka-field textarea.form-control { height: auto; min-height: 140px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
.ka-field .form-control::placeholder { color: #9aa39c; }
.ka-field .form-control:focus, .ka-field .form-select:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(29,77,47,.12); outline: 0; }
.ka-field .form-control.is-invalid { border-color: #c2412f; background-image: none; }
.ka-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin: 0; cursor: pointer; }
.ka-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--g-700); }
.ka-consent.is-invalid { color: #c2412f; }
.ka-form-msg { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; font-size: 15px; }
.ka-form-msg.ok { display: block; background: var(--g-100); color: var(--g-800); }
.ka-form-msg.err { display: block; background: #fbeceb; color: #9c2b1d; }
.ka-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ka-contact-list { border-top: 1px solid var(--line); }
.ka-contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted) !important; text-decoration: none; }
.ka-contact-item .ic { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--g-100); color: var(--g-700); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .25s; }
.ka-contact-item small { display: block; font-size: 13px; color: var(--muted); }
.ka-contact-item b { color: var(--ink); font-family: var(--alt-font); font-size: 17px; font-weight: 600; }
a.ka-contact-item:hover .ic { background: var(--g-700); color: #fff; }

/* ---------- Rechtliches ---------- */
.ka-legal { max-width: 820px; }
.ka-legal h2 { font-size: 1.45rem; margin-top: 40px; margin-bottom: 12px; }
.ka-legal p, .ka-legal li { font-size: 16px; }
.ka-legal table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ka-legal td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ka-legal td:first-child { width: 36%; color: var(--ink); font-weight: 500; padding-right: 20px; }

/* ---------- Footer ---------- */
.ka-footer { background: var(--g-900); color: rgba(255,255,255,.62); padding: 80px 0 28px; font-size: 15px; }
.ka-footer a { color: rgba(255,255,255,.78); }
.ka-footer a:hover { color: #fff; }
.ka-footer .flogo img { max-width: 230px; }
.ka-footer h3 { color: #fff; font-size: 16px; letter-spacing: 0; margin-bottom: 16px; }
.ka-footer ul { list-style: none; padding: 0; margin: 0; }
.ka-footer ul li { margin-bottom: 8px; }
.ka-footer .fphone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--alt-font); font-weight: 600; font-size: 18px; }
.ka-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: 14px; }

/* Scroll-to-top */
.ka-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--g-700); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .35s var(--ease); box-shadow: var(--shadow); }
.ka-top.show { opacity: 1; transform: none; pointer-events: auto; }
.ka-top:hover { background: var(--g-800); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ka-fade-up { opacity: 1; transform: none; }
}
body, p, span, li, a { word-break: normal; overflow-wrap: break-word; }
.ka-hero-stats span { display: block; white-space: nowrap; }
@media (max-width: 575px) {
    .ka-hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
    .ka-hero-stats div { padding-right: 0; margin-right: 0; border-right: 0; }
    .ka-hero-stats span { font-size: 13px; white-space: normal; }
    .ka-hero-buttons .ka-btn { justify-content: space-between; }
}

/* ---------- Dezente Marken-Akzente ---------- */
.ka-footer { position: relative; overflow: hidden; }
.ka-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-70deg, #f6b700 0 64px, transparent 64px 76px); opacity: .85; }
.ka-footer .watermark { position: absolute; right: -1%; bottom: -5%; font-family: var(--alt-font); font-weight: 800; font-size: clamp(7rem, 20vw, 20rem); line-height: .8; letter-spacing: -.05em; color: rgba(255,255,255,.035); pointer-events: none; white-space: nowrap; user-select: none; }
.ka-cta-stripes { position: absolute; right: -60px; bottom: 28px; width: 420px; height: 70px; transform: rotate(-8deg); background: url("../images/stripes.svg") center / contain no-repeat; opacity: .14; pointer-events: none; }
.ka-cta .box > .row { position: relative; z-index: 1; }
@media (max-width: 767px) { .ka-cta-stripes { width: 260px; height: 44px; right: -40px; bottom: 16px; } }
header .left-nav .navbar-nav:before { display: none; }
@media (max-width: 767px) {
    .ka-group { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    .ka-group > .fa-arrow-down { display: none; }
    .ka-group .ic { flex: 0 0 auto; width: 40px; height: 40px; font-size: 15px; }
    .ka-group h3 { font-size: 16px; }
}
/* Untergruppen-Leiste klebt unter dem fixen Header */
.ka-subnav { top: var(--hdr, 81px); }
.ka-group-section { scroll-margin-top: 150px; }
@media (max-width: 991px) { .ka-group-section { scroll-margin-top: 140px; } }
.ka-detail-text .ka-steps { grid-template-columns: 1fr 1fr; }
@media (max-width: 575px) { .ka-detail-text .ka-steps { grid-template-columns: 1fr; } }
/* Untergruppen-Leiste direkt unter dem Seitenkopf (einzige Auswahl) */
.ka-page-head + .ka-subnav { margin-top: 56px; }
.ka-subnav .inner { align-items: center; }
.ka-subnav .lbl { flex: 0 0 auto; font-size: 14px; color: var(--muted); margin-right: 6px; }
.ka-subnav a .n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--g-100); color: var(--g-700); font-size: 12px; font-weight: 700; }
.ka-subnav a.active .n { background: rgba(255,255,255,.2); color: #fff; }
.ka-page-head + .ka-subnav + .ka-group-section { padding-top: 56px; }
@media (max-width: 991px) { .ka-page-head + .ka-subnav { margin-top: 40px; } .ka-subnav .lbl { display: none; } }

/* ---------- Header: sanfter Übergang beim Scrollen ---------- */
header .navbar.ka-nav {
    background-color: rgba(255,255,255,0) !important;
    border-bottom: 1px solid transparent;
    box-shadow: 0 10px 30px -22px rgba(15,42,25,0);
    -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
    transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease), -webkit-backdrop-filter .5s var(--ease);
}
header.ka-scrolled .navbar.ka-nav {
    background-color: rgba(255,255,255,.88) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -22px rgba(15,42,25,.45);
}
header .navbar.ka-nav .navbar-brand { padding: 18px 0; transition: padding .5s var(--ease); }
header.ka-scrolled .navbar.ka-nav .navbar-brand { padding: 12px 0; }
header .navbar.ka-nav .navbar-brand img { max-height: 46px; transition: max-height .5s var(--ease); }
header.ka-scrolled .navbar.ka-nav .navbar-brand img { max-height: 40px; }
@media (min-width: 992px) {
    header .navbar.ka-nav .navbar-nav .nav-link { transition: padding .5s var(--ease), color .25s var(--ease); }
    header.ka-scrolled .navbar.ka-nav .navbar-nav .nav-link { padding-top: 24px; padding-bottom: 24px; }
}
/* Mobil: geöffnetes Menü immer mit weißem Hintergrund */
header .navbar.ka-nav:has(.navbar-collapse.show), header .navbar.ka-nav:has(.navbar-collapse.collapsing) { background-color: #fff !important; }
.ka-subnav { transition: top .5s var(--ease); }
header .navbar .navbar-nav .nav-item.active > .nav-link, header .navbar .navbar-nav .nav-item:hover > .nav-link { color: var(--g-600) !important; opacity: 1 !important; }
header .navbar .navbar-nav .nav-link { opacity: 1 !important; }

/* =====================================================================
   Subtile Crafto-Details
   ===================================================================== */

/* Feines Hintergrund-Raster (läuft weich aus) */
.ka-grid { position: relative; isolation: isolate; }
.ka-grid::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(to right, rgba(15,26,19,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,26,19,.055) 1px, transparent 1px);
    background-size: 72px 72px; background-position: center -1px;
    -webkit-mask-image: radial-gradient(ellipse 65% 70% at 25% 10%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 65% 70% at 25% 10%, #000 15%, transparent 72%);
}
.ka-grid-light::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 90% at 90% 50%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 90% at 90% 50%, #000 10%, transparent 70%);
}

/* Button: Text rollt beim Hover nach oben (wie Crafto „double text“) */
.ka-btn .t { display: inline-block; overflow: hidden; position: relative; line-height: 1.25; vertical-align: middle; }
.ka-btn .t > span { display: inline-block; position: relative; transition: transform .5s cubic-bezier(.6,.05,.2,1); }
.ka-btn .t > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; }
.ka-btn:hover .t > span { transform: translateY(-100%); }

/* Lese-Fortschritt unter dem Header */
.ka-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--g-600); transform-origin: left center; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
header.ka-scrolled .ka-progress { opacity: .9; }

/* Dezente Bild-Parallaxe */
[data-ka-parallax] { overflow: hidden; }
[data-ka-parallax] > img, [data-ka-parallax] > .bg { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); transition: transform .2s linear; }
@media (max-width: 991px), (prefers-reduced-motion: reduce) { [data-ka-parallax] > img, [data-ka-parallax] > .bg { transform: none; } }

/* Statement mit Text-Reveal beim Scrollen */
.ka-statement-text { font-family: var(--alt-font); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.9rem); line-height: 1.25; letter-spacing: -.025em; color: var(--ink); margin: 0; }
.ka-statement { padding-bottom: 100px; }
.ka-grid::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 65% 75% at 25% 20%, #000 15%, transparent 72%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 65% 75% at 25% 20%, #000 15%, transparent 72%);
    mask-composite: intersect;
}
.ka-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ka-stat .l { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 575px) { .ka-stat { padding-right: 10px; } .ka-stat + .ka-stat { padding-left: 12px; } .ka-stat .l { font-size: 13px; } }
.ka-legal td { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 575px) {
    .ka-legal table, .ka-legal tbody, .ka-legal tr, .ka-legal td { display: block; width: 100% !important; }
    .ka-legal td:first-child { border-bottom: 0; padding: 12px 0 2px; }
    .ka-legal td + td { padding-top: 0; }
}
/* weiches Wort-Einblenden im Statement */
[data-ka-reveal] .rw { opacity: .16; transition: opacity .45s ease-out; }

/* ---------- Hintergrund wie Crafto „Scattered Portfolio“: feine vertikale Linien ---------- */
body { background: #fff url("../images/vertical-lines.svg") repeat center top; }
.ka-grid::before { display: none; }           /* Quadrat-Raster ersetzt durch vertikale Linien */
.ka-grid-light::before {
    background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 155px 100%; background-position: 77px 0;
    -webkit-mask-image: none; mask-image: none;
}
/* Schwebende Punkte (particles.js) – sehr dezent */
.ka-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ka-particles canvas { display: block; }
.ka-hero > .container, .ka-page-head > .container { z-index: 1; }
/* Weiße Flächen, die die Linien sauber abdecken sollen */
.ka-tile, .ka-form-card, .ka-facts-card, .ka-group { background-color: #fff; }

/* ---------- Hintergrund v2: weich statt Linien ---------- */
body { background: #fff; }
.ka-hero, .ka-page-head { overflow: hidden; }
/* sehr feines Punktmuster, läuft weich aus */
.ka-grid::before {
    display: block;
    background-image: radial-gradient(rgba(15,26,19,.16) 1px, transparent 1.3px);
    background-size: 26px 26px; background-position: 0 0;
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 18% 30%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 55% 60% at 18% 30%, #000 0%, transparent 70%);
    -webkit-mask-composite: source-over; mask-composite: add;
}
/* sanfte, langsam treibende Farbflächen */
.ka-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ka-glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.ka-glow span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -120px; background: #dcebd6; animation: kaDrift1 22s ease-in-out infinite alternate; }
.ka-glow span:nth-child(2) { width: 420px; height: 420px; left: 38%; top: 30%; background: #fbf0cf; opacity: .5; animation: kaDrift2 26s ease-in-out infinite alternate; }
.ka-glow span:nth-child(3) { width: 460px; height: 460px; right: -160px; top: -60px; background: #e4efe0; animation: kaDrift3 30s ease-in-out infinite alternate; }
@keyframes kaDrift1 { to { transform: translate3d(120px, 80px, 0) scale(1.08); } }
@keyframes kaDrift2 { to { transform: translate3d(-110px, -50px, 0) scale(.92); } }
@keyframes kaDrift3 { to { transform: translate3d(-90px, 110px, 0) scale(1.1); } }
.ka-page-head .ka-glow span:nth-child(2) { top: 10%; }
@media (max-width: 767px) { .ka-glow span { filter: blur(50px); } .ka-glow span:nth-child(1) { width: 320px; height: 320px; } .ka-glow span:nth-child(2), .ka-glow span:nth-child(3) { width: 280px; height: 280px; } }
@media (prefers-reduced-motion: reduce) { .ka-glow span { animation: none; } }
.ka-particles { z-index: -1; }
.ka-cta-stripes { opacity: .1; }
.ka-grid-light::before { display: none; }

/* ---------- Hintergrund v3: Raster, dessen Grau mit dem Scrollen nachlässt ---------- */
.ka-glow { display: none; }
.ka-grid::before {
    display: block;
    background-image: linear-gradient(to right, rgba(15,26,19,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,26,19,.06) 1px, transparent 1px);
    background-size: 72px 72px; background-position: center -1px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 70% 80% at 25% 25%, #000 15%, transparent 75%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 70% 80% at 25% 25%, #000 15%, transparent 75%);
    mask-composite: intersect;
    opacity: var(--grid-o, 1);
    transform: translate3d(0, var(--grid-y, 0px), 0);
    transition: opacity .25s linear;
}

/* ---------- Hintergrund v4: Raster + Partikel über die ganze Seite (fix hinter dem Inhalt) ---------- */
.ka-grid::before { display: none; }
.ka-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ka-bg-grid {
    position: absolute; inset: -80px 0;
    background-image: linear-gradient(to right, rgba(15,26,19,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,26,19,.055) 1px, transparent 1px);
    background-size: 72px 72px; background-position: center 0;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 80%);
    opacity: var(--grid-o, .8);
    transform: translate3d(0, var(--grid-y, 0px), 0);
    transition: opacity .6s ease-out;
    will-change: opacity, transform;
}
.ka-bg-particles { position: absolute; inset: 0; }
.ka-bg-particles canvas { display: block; }
/* Flächen mit eigenem Hintergrund decken das Raster ab */
.bg-tint, .ka-news-box, .ka-footer { position: relative; }
@media (prefers-reduced-motion: reduce) { .ka-bg-particles { display: none; } }

/* ---------- Zurück zu v3: Raster + Partikel nur in Hero/Seitenkopf ---------- */
.ka-bg { display: none; }
.ka-grid::before {
    display: block;
    background-image: linear-gradient(to right, rgba(15,26,19,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,26,19,.06) 1px, transparent 1px);
    background-size: 72px 72px; background-position: center -1px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 70% 80% at 25% 25%, #000 15%, transparent 75%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 120px), radial-gradient(ellipse 70% 80% at 25% 25%, #000 15%, transparent 75%);
    mask-composite: intersect;
    opacity: var(--grid-o, 1);
    transform: translate3d(0, var(--grid-y, 0px), 0);
    transition: opacity .25s linear;
}
.ka-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ka-footer::before { display: none; }

/* ---------- Startseite: Hero über die ganze Bildschirmbreite ---------- */
.ka-hero-full { padding: 0 16px; }
.ka-hero-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); background: var(--g-900);
    height: calc(100vh - 100px); min-height: 600px; max-height: 920px; display: flex; flex-direction: column; justify-content: flex-end; }
.ka-hero-frame > .swiper { position: absolute; inset: 0; z-index: -3; }
.ka-hero-frame .swiper-wrapper, .ka-hero-frame .swiper-slide { height: 100%; }
.ka-hero-frame .slide-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease-out; }
.ka-hero-frame .swiper-slide-active .slide-img { transform: scale(1); }
.ka-hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: linear-gradient(90deg, rgba(10,24,15,.78) 0%, rgba(10,24,15,.45) 45%, rgba(10,24,15,.05) 80%), linear-gradient(0deg, rgba(10,24,15,.6) 0%, rgba(10,24,15,0) 40%); }
.ka-hero-frame .ka-particles { z-index: -1; }
.ka-hero-body { flex: 1; display: flex; align-items: center; padding: 60px 0 20px; }
.ka-hero-text { max-width: 680px; color: #fff; }
.ka-hero-text h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 3.8vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 22px; }
.ka-hero-text h1 span { color: #b8dcae; }
.ka-hero-text p { color: rgba(255,255,255,.82); font-size: 1.12rem; line-height: 1.65; max-width: 540px; margin-bottom: 32px; }
.ka-btn.glass { --bg: rgba(255,255,255,.1); --fg: #fff; --ibg: #fff; --ifg: var(--g-700); border-color: rgba(255,255,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ka-btn.glass:hover { background: rgba(255,255,255,.2); }
.ka-hero-foot { padding: 0 0 28px; }
.ka-chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ka-chips-row .lbl { color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.ka-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 100px; color: #fff !important; font-family: var(--alt-font); font-weight: 600; font-size: 15px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s var(--ease), color .3s var(--ease); }
.ka-chip i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: all .3s var(--ease); }
.ka-chip:hover { background: #fff; color: var(--ink) !important; }
.ka-chip:hover i { background: var(--g-700); color: #fff; }
.ka-hero-dots { position: static !important; width: auto !important; display: flex; gap: 6px; flex: 0 0 auto; }
.ka-hero-dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: #fff; opacity: .5; transition: all .3s var(--ease); }
.ka-hero-dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 8px; }
@media (max-width: 1199px) { .ka-chips-row .lbl { display: none; } }
@media (max-width: 991px) {
    .ka-hero-full { padding: 0 10px; }
    .ka-hero-frame { height: auto; min-height: 0; max-height: none; }
    .ka-hero-body { padding: 110px 0 30px; }
    .ka-hero-frame::after { background: linear-gradient(0deg, rgba(10,24,15,.85) 0%, rgba(10,24,15,.5) 60%, rgba(10,24,15,.3) 100%); }
    .ka-hero-dots { display: none !important; }
}
@media (max-width: 575px) {
    .ka-hero-body { padding-top: 80px; }
    .ka-chips-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .ka-chip { font-size: 14px; }
    .ka-hero-buttons .ka-btn { justify-content: space-between; }
}
.ka-hero-full + .ka-news { padding-top: 56px; }
@media (min-width: 992px) { header .navbar > .container { padding-left: 0; padding-right: 0; } }
@media (max-width: 575px) {
    .ka-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
    .ka-chip { font-size: 13.5px; padding: 5px 12px 5px 5px; gap: 6px; }
    .ka-chip i { width: 24px; height: 24px; font-size: 11px; }
    .ka-hero-text .ka-kicker { font-size: 13px; }
}
/* Hero im gleichen Container wie die übrigen Abschnitte */
.ka-hero-full { padding: 0; }
.ka-hero-frame { height: calc(100vh - 120px); min-height: 580px; max-height: 820px; }
.ka-hero-inner { width: 100%; padding: 0 56px; }
.ka-hero-foot { padding-bottom: 32px; }
@media (max-width: 1199px) { .ka-hero-inner { padding: 0 40px; } }
@media (max-width: 991px) { .ka-hero-full { padding: 0; } .ka-hero-frame { height: auto; min-height: 0; max-height: none; } }
@media (max-width: 575px) { .ka-hero-inner { padding: 0 20px; } .ka-hero-full > .container { padding-left: 10px; padding-right: 10px; } }
