/*
Theme Name: Kinderarztpraxis Krahnhof
Theme URI: https://www.kinderarztpraxis-krahnhof.de/
Author: Kinderarztpraxis Krahnhof
Description: Editoriales WordPress-Theme für die Kinderarztpraxis Krahnhof. Bricolage Grotesque + DM Sans, klares Weiß mit Rot-Akzent, Foto-Kreis-Hero, Long-Scroll Landingpage und vollständig gestaltete Unterseiten.
Version: 4.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-3.0-or-later
Text Domain: kinderarztpraxis-krahnhof
*/
:root {
    --kk-white: #ffffff;
    --kk-off-white: #fafaf7;
    --kk-red: #e63946;
    --kk-red-deep: #c22b38;
    --kk-red-pale: #fce4e6;
    --kk-yellow: #f4b41a;
    --kk-yellow-pale: #fdf2cf;
    --kk-ink: #1a1a1a;
    --kk-ink-soft: #5a5a5a;
    --kk-ink-light: #9a9a9a;
    --kk-line: rgba(0,0,0,0.08);
    --kk-radius-sm: 10px;
    --kk-radius-md: 18px;
    --kk-radius-lg: 24px;
    --kk-radius-xl: 28px;
    --kk-radius-pill: 100px;
    --kk-shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --kk-shadow-md: 0 20px 50px rgba(0,0,0,0.08);
    --kk-shadow-lg: 0 30px 80px rgba(0,0,0,0.1);
    --kk-font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    --kk-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --kk-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--kk-font-body);
    background: var(--kk-white);
    color: var(--kk-ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--kk-transition); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--kk-font-display);
    color: var(--kk-ink);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 34px); margin-top: 1.2em; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 13px; font-family: var(--kk-font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--kk-red-deep); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.3em; }
strong, b { font-weight: 600; color: var(--kk-ink); }
em, i { font-style: italic; }
.kk-italic, .italic { font-style: italic; color: var(--kk-red-deep); }
::selection { background: var(--kk-red); color: var(--kk-white); }
.kk-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
/* HEADER */
.kk-site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--kk-line);
    min-height: 92px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.kk-header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.kk-logo-link { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.kk-logo-mark {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--kk-red);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-family: var(--kk-font-display); font-style: italic;
    font-size: 19px; font-weight: 500; flex-shrink: 0;
}
.kk-logo-text { font-family: var(--kk-font-display); font-size: 21px; font-weight: 500; color: var(--kk-ink); letter-spacing: -0.02em; }
.kk-logo-text small { display: block; font-family: var(--kk-font-body); font-size: 11px; font-weight: 400; color: var(--kk-ink-light); letter-spacing: 0.08em; text-transform: uppercase; }
.custom-logo, .kk-custom-logo-link img { max-height: 44px; width: auto; }
.kk-main-navigation { display: flex; align-items: center; }
.kk-main-navigation ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.kk-main-navigation > ul > li, .kk-main-navigation > div > ul > li { position: relative; }
.kk-main-navigation a {
    color: var(--kk-ink); font-size: 14px; font-weight: 400;
    padding: 8px 0; display: inline-flex; align-items: center; gap: 4px;
    transition: color var(--kk-transition);
}
.kk-main-navigation a:hover,
.kk-main-navigation .current-menu-item > a,
.kk-main-navigation .current-menu-parent > a,
.kk-main-navigation .current_page_ancestor > a { color: var(--kk-red-deep); }
.kk-main-navigation .menu-item-has-children > a::after {
    content: '▾'; font-size: 9px; margin-left: 4px; color: var(--kk-ink-light);
}
.kk-main-navigation .sub-menu {
    position: absolute !important; top: 100% !important; left: -16px !important;
    min-width: 260px;
    background: var(--kk-white);
    border: 1px solid var(--kk-line);
    border-radius: var(--kk-radius-md);
    padding: 22px 10px 10px;
    margin-top: -12px;
    box-shadow: var(--kk-shadow-md);
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity var(--kk-transition), visibility var(--kk-transition);
    display: flex !important; flex-direction: column !important; gap: 1px;
    list-style: none;
    background-clip: padding-box;
    z-index: 101;
}
/* Hover/Focus/Klick öffnet — verschiedene Selektoren als Fallback */
.kk-main-navigation li:hover > .sub-menu,
.kk-main-navigation li:focus-within > .sub-menu,
.kk-main-navigation > ul > li:hover > ul,
.kk-main-navigation > ul > li:focus-within > ul,
.kk-main-navigation .menu-item-has-children:hover > .sub-menu,
.kk-main-navigation .menu-item-has-children:hover > ul,
.kk-main-navigation li.kk-submenu-active > .sub-menu,
.kk-main-navigation li.kk-submenu-active > ul,
.kk-main-navigation .sub-menu.kk-submenu-open {
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
}
.kk-main-navigation .sub-menu li { width: 100%; margin: 0; }
.kk-main-navigation .sub-menu a { display: block; padding: 9px 12px; font-size: 13.5px; color: var(--kk-ink-soft); border-radius: 8px; }
.kk-main-navigation .sub-menu a::after { display: none; }
.kk-main-navigation .sub-menu a:hover { background: var(--kk-off-white); color: var(--kk-ink); }
.kk-nav-cta {
    background: var(--kk-ink); color: var(--kk-white);
    padding: 11px 20px; border-radius: var(--kk-radius-pill);
    font-size: 14px; font-weight: 500;
    transition: all var(--kk-transition); flex-shrink: 0;
}
.kk-nav-cta:hover { background: var(--kk-red-deep); color: var(--kk-white); transform: translateY(-1px); }
.kk-menu-toggle {
    display: none; background: var(--kk-off-white); border: 1px solid var(--kk-line);
    color: var(--kk-ink); width: 44px; height: 44px;
    border-radius: var(--kk-radius-sm); cursor: pointer;
    font-size: 20px; align-items: center; justify-content: center;
}
/* HERO front-page */
.kk-hero { padding: 80px 0; position: relative; overflow: hidden; }
.kk-hero-bg-blob {
    position: absolute; top: -100px; right: -200px;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, var(--kk-off-white) 0%, transparent 70%);
    z-index: 0;
}
.kk-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 80px; align-items: center;
}
.kk-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--kk-off-white); color: var(--kk-red-deep);
    padding: 8px 16px; border-radius: var(--kk-radius-pill);
    font-size: 13px; margin-bottom: 28px; font-weight: 500;
}
.kk-hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kk-red); }
.kk-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 28px; }
.kk-hero p.kk-lead { font-size: 18px; color: var(--kk-ink-soft); max-width: 520px; margin-bottom: 36px; }
.kk-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.kk-btn-primary {
    background: var(--kk-ink); color: var(--kk-white);
    padding: 14px 28px; border-radius: var(--kk-radius-pill);
    font-weight: 500; font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all var(--kk-transition);
    border: 1px solid var(--kk-ink); cursor: pointer;
}
.kk-btn-primary:hover { background: var(--kk-red-deep); border-color: var(--kk-red-deep); color: var(--kk-white); transform: translateY(-2px); }
.kk-btn-secondary {
    color: var(--kk-ink); padding: 14px 26px;
    font-weight: 500; font-size: 15px;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--kk-ink);
    border-radius: var(--kk-radius-pill);
    background: transparent;
    transition: all var(--kk-transition);
}
.kk-btn-secondary:hover { background: var(--kk-ink); color: var(--kk-white); }
.kk-hero-visual { position: relative; aspect-ratio: 1/1; }
.kk-hero-image-wrap {
    width: 100%; height: 100%;
    border-radius: 50%; overflow: hidden;
    background: var(--kk-off-white);
    box-shadow: var(--kk-shadow-lg);
}
.kk-hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.kk-hero-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--kk-red-pale) 0%, var(--kk-off-white) 100%);
    color: var(--kk-red-deep);
    font-family: var(--kk-font-display);
    font-size: 88px; font-style: italic; font-weight: 500;
}
.kk-hero-card {
    position: absolute; background: white;
    border-radius: var(--kk-radius-md);
    box-shadow: var(--kk-shadow-md);
    padding: 16px 22px;
    display: flex; align-items: center; gap: 14px;
}
.kk-hero-card-1 { bottom: 60px; left: -50px; }
.kk-hero-card-2 { top: 70px; right: -40px; background: var(--kk-red-deep); color: white; }
.kk-hero-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--kk-red-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--kk-red-deep);
    flex-shrink: 0;
}
.kk-hero-card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kk-hero-card-2 .kk-hero-card-icon { background: rgba(255,255,255,0.18); color: white; }
.kk-hero-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.kk-hero-card span { font-size: 12px; color: var(--kk-ink-light); }
.kk-hero-card-2 span { color: rgba(255,255,255,0.78); }
/* INFO BAR */
.kk-info-bar {
    background: var(--kk-yellow-pale);
    padding: 22px 28px; text-align: center;
    font-size: 14.5px; color: var(--kk-ink);
    border-radius: var(--kk-radius-md);
    margin: 0 32px 40px;
    border-left: 3px solid var(--kk-yellow);
}
@media (min-width: 1281px) { .kk-info-bar { margin-left: auto; margin-right: auto; max-width: 1216px; } }
.kk-info-bar strong { font-weight: 600; }
/* SECTION */
.kk-section { padding: 100px 0; }
.kk-section--alt { background: var(--kk-off-white); }
.kk-section-header { margin-bottom: 56px; }
.kk-section-eyebrow {
    font-size: 12px; color: var(--kk-red-deep);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 20px; font-weight: 500;
}
.kk-section-title { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; margin-bottom: 22px; max-width: 820px; }
.kk-section-lead { font-size: 18px; color: var(--kk-ink-soft); max-width: 620px; }
.kk-section-header--split { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; }
.kk-section-header--split .kk-section-title { margin-bottom: 0; }
/* WELCOME */
.kk-welcome { padding: 100px 0; background: var(--kk-off-white); }
.kk-welcome-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.kk-welcome p { font-size: 17px; color: var(--kk-ink-soft); margin-bottom: 20px; }
.kk-welcome-signature {
    margin-top: 36px; font-family: var(--kk-font-body);
    font-style: italic; font-weight: 400; font-size: 19px;
    color: var(--kk-red-deep);
}
/* SERVICES GRID */
.kk-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kk-service-card {
    background: white; border: 1px solid var(--kk-line);
    border-radius: var(--kk-radius-lg);
    padding: 32px 28px;
    transition: all var(--kk-transition);
    position: relative; overflow: hidden;
    display: block; color: var(--kk-ink);
}
.kk-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kk-shadow-md);
    border-color: var(--kk-red-pale);
    color: var(--kk-ink);
}
.kk-service-card:hover .kk-service-arrow { transform: translate(4px, -4px); color: var(--kk-red-deep); }
.kk-service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--kk-off-white);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    color: var(--kk-ink);
    transition: background var(--kk-transition), color var(--kk-transition);
}
.kk-service-card:hover .kk-service-icon { background: var(--kk-red-pale); color: var(--kk-red-deep); }
.kk-service-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.kk-service-card h4 {
    font-family: var(--kk-font-display);
    font-size: 24px;
    margin: 0 0 10px;
    letter-spacing: -0.01em; line-height: 1.15;
    color: var(--kk-ink);
}
.kk-service-card p { color: var(--kk-ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }
.kk-service-arrow {
    position: absolute; top: 28px; right: 28px;
    color: var(--kk-ink-light); font-size: 18px;
    transition: all var(--kk-transition);
}
/* PHILOSOPHIE SPLIT */
.kk-phil-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.kk-phil-visual { position: relative; aspect-ratio: 4/5; }
.kk-phil-image { width: 100%; height: 100%; border-radius: var(--kk-radius-lg); overflow: hidden; background: var(--kk-off-white); }
.kk-phil-image img { width: 100%; height: 100%; object-fit: cover; }
.kk-phil-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--kk-red-pale) 0%, var(--kk-off-white) 100%);
    color: var(--kk-red-deep);
    font-family: var(--kk-font-display);
    font-size: 96px; font-style: italic;
}
.kk-phil-deco {
    position: absolute; top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 1.5px solid var(--kk-red);
    border-radius: var(--kk-radius-lg);
    z-index: -1;
}
.kk-phil-quote {
    font-family: var(--kk-font-body);
    font-style: italic; font-weight: 400;
    font-size: 24px; line-height: 1.4;
    color: var(--kk-ink);
    margin: 28px 0;
    padding-left: 22px;
    border-left: 2px solid var(--kk-red);
    letter-spacing: -0.015em;
}
.kk-cred-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.kk-cred-item { border-top: 1px solid var(--kk-line); padding-top: 14px; }
.kk-cred-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--kk-ink); margin-bottom: 4px; }
.kk-cred-item span { font-size: 13px; color: var(--kk-ink-soft); line-height: 1.45; }
/* HOURS */
.kk-hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.kk-hours-card { background: white; border: 1px solid var(--kk-line); border-radius: var(--kk-radius-lg); padding: 40px; }
.kk-hours-card--dark { background: var(--kk-ink); color: white; border-color: var(--kk-ink); }
.kk-hours-card h3 { font-family: var(--kk-font-display); font-size: 30px; margin: 0 0 24px; letter-spacing: -0.01em; }
.kk-hours-card--dark h3 { color: white; }
.kk-hours-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--kk-line); font-size: 15px; }
.kk-hours-card--dark .kk-hours-row { border-color: rgba(255,255,255,0.1); }
.kk-hours-row:last-child { border-bottom: none; }
.kk-hours-day { font-weight: 500; }
.kk-hours-time { color: var(--kk-ink-soft); }
.kk-hours-card--dark .kk-hours-time { color: rgba(255,255,255,0.7); }
.kk-hours-note { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--kk-line); font-size: 13.5px; color: var(--kk-ink-soft); }
.kk-hours-card--dark .kk-hours-note { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.kk-termin-list { margin-top: 18px; }
.kk-termin-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: flex-start; }
.kk-termin-item:last-child { border-bottom: none; }
.kk-termin-num {
    width: 28px; height: 28px;
    background: var(--kk-red); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0; font-weight: 500; margin-top: 2px;
}
.kk-termin-item p { font-size: 14.5px; color: rgba(255,255,255,0.85); line-height: 1.5; margin: 0; }
.kk-termin-item p strong { color: white; font-weight: 600; }
/* NOTFALL BANNER */
.kk-notfall {
    background: linear-gradient(135deg, var(--kk-red) 0%, var(--kk-red-deep) 100%);
    color: white; border-radius: var(--kk-radius-xl);
    padding: 50px 60px;
    margin: 60px 32px 100px;
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 40px; align-items: center;
}
@media (min-width: 1281px) { .kk-notfall { margin-left: auto; margin-right: auto; max-width: 1216px; } }
.kk-notfall-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.kk-notfall-icon svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kk-notfall h3 { font-family: var(--kk-font-display); font-size: 36px; margin: 0 0 8px; color: white; letter-spacing: -0.02em; }
.kk-notfall p { font-size: 15px; opacity: 0.95; max-width: 580px; margin: 0; color: white; }
.kk-notfall-phone {
    background: white; color: var(--kk-ink);
    padding: 18px 28px; border-radius: var(--kk-radius-pill);
    font-weight: 600; font-size: 17px;
    display: inline-flex; flex-direction: column; align-items: center;
    min-width: 200px; flex-shrink: 0;
}
.kk-notfall-phone small {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--kk-ink-light); font-weight: 500; margin-bottom: 2px;
}
.kk-notfall-phone:hover { color: var(--kk-red-deep); }
/* GALLERY */
.kk-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kk-gallery-item {
    aspect-ratio: 1/1.2; border-radius: var(--kk-radius-md);
    overflow: hidden; background: var(--kk-off-white);
    transition: transform 0.4s var(--kk-transition);
    display: block; cursor: pointer;
}
.kk-gallery-item:nth-child(odd) { aspect-ratio: 1/1.4; transform: translateY(20px); }
.kk-gallery-item:hover { transform: translateY(-4px); }
.kk-gallery-item:nth-child(odd):hover { transform: translateY(16px); }
.kk-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--kk-transition); }
.kk-gallery-item:hover img { transform: scale(1.05); }
.kk-gallery-empty {
    background: var(--kk-off-white); border: 1px dashed var(--kk-line);
    border-radius: var(--kk-radius-lg);
    padding: 60px 24px; text-align: center;
    color: var(--kk-ink-soft);
}
/* LIGHTBOX */
.kk-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.kk-lightbox.is-open { display: flex; }
.kk-lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--kk-radius-md); }
.kk-lightbox-close, .kk-lightbox-arrow {
    position: absolute; background: rgba(255,255,255,0.15); border: none;
    color: white; width: 48px; height: 48px; border-radius: 50%;
    font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--kk-transition);
}
.kk-lightbox-close:hover, .kk-lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.kk-lightbox-close { top: 20px; right: 24px; }
.kk-lightbox-arrow--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.kk-lightbox-arrow--next { right: 24px; top: 50%; transform: translateY(-50%); }
/* KONTAKT */
.kk-kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.kk-info-item {
    padding: 22px 0; border-bottom: 1px solid var(--kk-line);
    display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: start;
}
.kk-info-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kk-ink-light); padding-top: 4px; }
.kk-info-content { font-size: 16px; line-height: 1.6; }
.kk-info-content a { color: var(--kk-red-deep); }
.kk-info-content a:hover { text-decoration: underline; }
.kk-map-box {
    aspect-ratio: 4/5; border-radius: var(--kk-radius-lg);
    overflow: hidden; background: var(--kk-off-white); border: 1px solid var(--kk-line);
}
.kk-map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }
.kk-anfahrt-notes { margin-top: 30px; background: var(--kk-off-white); border-radius: var(--kk-radius-md); padding: 24px 28px; }
.kk-anfahrt-notes h5 { font-family: var(--kk-font-display); font-size: 22px; margin-bottom: 12px; }
.kk-anfahrt-notes ul { list-style: none; padding: 0; margin: 0; }
.kk-anfahrt-notes li { padding: 6px 0; font-size: 14.5px; color: var(--kk-ink-soft); display: flex; gap: 10px; }
.kk-anfahrt-notes li::before { content: '→'; color: var(--kk-red); flex-shrink: 0; }
/* PAGE HERO */
.kk-page-hero {
    padding: 60px 0 50px;
    background: var(--kk-off-white);
    border-bottom: 1px solid var(--kk-line);
    position: relative; overflow: hidden;
}
.kk-page-hero--with-image {
    padding: 0; background: var(--kk-ink);
    min-height: 360px;
    display: flex; align-items: flex-end;
    border-bottom: none;
}
.kk-page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.kk-page-hero--with-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0) 30%, rgba(26,26,26,0.75) 100%);
    z-index: 1;
}
.kk-page-hero .kk-container { position: relative; z-index: 2; padding-top: 50px; padding-bottom: 50px; width: 100%; }
.kk-page-hero--with-image .kk-container { padding-top: 80px; padding-bottom: 50px; }
.kk-page-hero--with-image h1, .kk-page-hero--with-image .kk-breadcrumb { color: white; }
.kk-page-hero--with-image .kk-breadcrumb a { color: rgba(255,255,255,0.85); }
.kk-page-hero--with-image .kk-page-hero-lead { color: rgba(255,255,255,0.9); }
.kk-breadcrumb { font-size: 13px; color: var(--kk-ink-light); margin-bottom: 18px; }
.kk-breadcrumb a { color: var(--kk-ink-soft); transition: color var(--kk-transition); }
.kk-breadcrumb a:hover { color: var(--kk-red-deep); }
.kk-breadcrumb .kk-bc-sep { margin: 0 8px; opacity: 0.5; }
.kk-page-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
.kk-page-hero-lead { margin-top: 18px; font-size: 18px; color: var(--kk-ink-soft); max-width: 640px; }
/* PAGE CONTENT */
.kk-page-content { padding: 80px 0; }
.kk-entry-content { font-size: 17px; line-height: 1.7; color: var(--kk-ink-soft); max-width: 760px; }
.kk-entry-content > * + * { margin-top: 0.9em; }
.kk-entry-content h2 { margin-top: 2em; color: var(--kk-ink); font-size: clamp(26px, 3vw, 36px); }
.kk-entry-content h3 { margin-top: 1.5em; color: var(--kk-ink); font-size: clamp(20px, 2.4vw, 26px); }
.kk-entry-content p { margin-bottom: 1em; }
.kk-entry-content ul, .kk-entry-content ol { margin: 1em 0 1em 1.5em; }
.kk-entry-content li { margin-bottom: 0.5em; line-height: 1.6; }
.kk-entry-content strong { color: var(--kk-ink); }
.kk-entry-content a { color: var(--kk-red-deep); text-decoration: underline; text-underline-offset: 3px; }
.kk-entry-content a:hover { color: var(--kk-red); }
.kk-entry-content img { border-radius: var(--kk-radius-md); margin: 1.4em 0; }
.kk-entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.kk-entry-content th, .kk-entry-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--kk-line); }
.kk-entry-content th { background: var(--kk-off-white); font-weight: 600; color: var(--kk-ink); font-size: 14px; }
/* INFO BOX in entry */
.kk-info-box {
    background: var(--kk-off-white);
    border-left: 3px solid var(--kk-red);
    border-radius: var(--kk-radius-md);
    padding: 24px 28px;
    margin: 32px 0;
}
.kk-info-box h3 { margin: 0 0 10px; color: var(--kk-ink); font-size: 22px; }
.kk-info-box p { margin-bottom: 0.6em; }
.kk-info-box p:last-child { margin-bottom: 0; }
.kk-info-box--urgent {
    background: linear-gradient(135deg, var(--kk-red) 0%, var(--kk-red-deep) 100%);
    border-left: none; color: white;
}
.kk-info-box--urgent h3 { color: white; }
.kk-info-box--urgent p { color: rgba(255,255,255,0.95); }
.kk-info-box--urgent a { color: white; text-decoration: underline; }
/* LEISTUNG DETAIL */
.kk-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.kk-detail-sidebar { position: sticky; top: 100px; }
.kk-detail-sidebar-card {
    background: var(--kk-off-white);
    border-radius: var(--kk-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.kk-detail-sidebar-card h4 { font-family: var(--kk-font-display); font-size: 18px; margin: 0 0 16px; }
.kk-related-list { list-style: none; padding: 0; margin: 0; }
.kk-related-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--kk-line); }
.kk-related-list li:last-child { border-bottom: none; }
.kk-related-list a {
    display: block; padding: 11px 0;
    font-size: 14px; color: var(--kk-ink-soft);
    transition: color var(--kk-transition);
}
.kk-related-list a:hover, .kk-related-list .is-active a { color: var(--kk-red-deep); }
.kk-related-list .is-active a { font-weight: 600; color: var(--kk-ink); }
.kk-leistung-cta {
    background: var(--kk-ink); color: white;
    border-radius: var(--kk-radius-lg);
    padding: 28px;
}
.kk-leistung-cta h4 { color: white; font-family: var(--kk-font-display); font-size: 22px; margin: 0 0 8px; }
.kk-leistung-cta p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.kk-leistung-cta .kk-btn-light {
    background: white; color: var(--kk-ink);
    padding: 12px 22px; border-radius: var(--kk-radius-pill);
    font-weight: 500; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--kk-transition);
}
.kk-leistung-cta .kk-btn-light:hover { background: var(--kk-red-pale); color: var(--kk-red-deep); }
.kk-detail-lead {
    font-size: 21px; line-height: 1.5;
    color: var(--kk-ink);
    font-weight: 400;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--kk-line);
    letter-spacing: -0.01em;
}
/* FOOTER */
.kk-site-footer {
    background: var(--kk-ink);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 30px;
    margin-top: 80px;
}
.kk-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.kk-footer-brand .kk-logo-link { color: white; }
.kk-footer-brand .kk-logo-text { color: white; }
.kk-footer-brand .kk-logo-text small { color: rgba(255,255,255,0.5); }
.kk-footer-brand p { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,0.65); max-width: 320px; }
.kk-footer-col h6 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
    color: white; margin-bottom: 22px; font-weight: 600;
}
.kk-footer-col ul { list-style: none; padding: 0; margin: 0; }
.kk-footer-col li { padding: 6px 0; margin: 0; }
.kk-footer-col a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color var(--kk-transition); }
.kk-footer-col a:hover { color: white; }
.kk-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: rgba(255,255,255,0.5);
}
/* PAGINATION */
.pagination, .nav-links {
    display: flex; justify-content: center; gap: 8px;
    margin: 40px 0; flex-wrap: wrap;
}
.pagination a, .pagination span, .nav-links a {
    display: inline-block; padding: 9px 14px;
    background: var(--kk-off-white); border-radius: var(--kk-radius-sm);
    color: var(--kk-ink); font-weight: 500;
    border: 1px solid var(--kk-line);
    transition: all var(--kk-transition);
}
.pagination .current, .pagination a:hover, .nav-links a:hover {
    background: var(--kk-ink); color: white; border-color: var(--kk-ink);
}
/* 404 */
.kk-404 { text-align: center; padding: 80px 20px; }
.kk-404-num { font-family: var(--kk-font-display); font-size: 120px; font-weight: 500; color: var(--kk-red); margin-bottom: 16px; letter-spacing: -0.04em; line-height: 1; }
.kk-404 h1 { margin-bottom: 16px; }
.kk-404 p { font-size: 17px; color: var(--kk-ink-soft); margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }
/* SEARCH */
.kk-search-form { display: flex; gap: 10px; max-width: 480px; }
.kk-search-field {
    flex: 1; padding: 12px 18px;
    border: 1px solid var(--kk-line); border-radius: var(--kk-radius-pill);
    font-family: var(--kk-font-body); font-size: 15px;
    background: white;
}
.kk-search-field:focus { outline: none; border-color: var(--kk-ink); }
/* ACCESSIBILITY */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--kk-red); clip: auto !important; clip-path: none;
    color: white; display: block; font-size: 14px; font-weight: 600;
    height: auto; left: 5px; line-height: normal; padding: 14px 22px;
    text-decoration: none; top: 5px; width: auto; z-index: 100000;
    border-radius: var(--kk-radius-pill);
}
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--kk-red); outline-offset: 3px; border-radius: 4px;
}
/* RESPONSIVE */
@media (max-width: 1024px) {
    .kk-main-navigation { display: none; }
    .kk-menu-toggle { display: flex; }
    .kk-main-navigation.toggled {
        display: block; position: absolute; top: 100%; left: 0; right: 0;
        background: white; border-top: 1px solid var(--kk-line);
        box-shadow: var(--kk-shadow-md);
        padding: 16px 24px; max-height: calc(100vh - 78px); overflow-y: auto;
    }
    .kk-main-navigation.toggled ul { flex-direction: column; gap: 4px; }
    .kk-main-navigation.toggled li { width: 100%; }
    .kk-main-navigation.toggled a { display: block; padding: 12px 14px; border-radius: var(--kk-radius-sm); }
    .kk-main-navigation.toggled .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: var(--kk-off-white);
        padding: 4px 8px; margin: 4px 0 8px 16px;
        display: none;
    }
    .kk-main-navigation.toggled .sub-menu.kk-submenu-open { display: flex; }
    .kk-hero-grid { grid-template-columns: 1fr; gap: 60px; }
}
@media (max-width: 900px) {
    body { padding-top: 84px; }
    .kk-container { padding: 0 20px; }
    .kk-section { padding: 70px 0; }
    .kk-section-header { margin-bottom: 40px; }
    .kk-services-grid { grid-template-columns: 1fr; }
    .kk-phil-split { grid-template-columns: 1fr; gap: 50px; }
    .kk-cred-grid { grid-template-columns: 1fr; }
    .kk-hours-grid { grid-template-columns: 1fr; }
    .kk-hours-card { padding: 30px 24px; }
    .kk-notfall { grid-template-columns: 1fr; padding: 40px 28px; margin: 50px 20px 80px; text-align: center; }
    .kk-notfall-icon { margin: 0 auto; }
    .kk-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .kk-kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
    .kk-info-item { grid-template-columns: 1fr; gap: 4px; }
    .kk-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .kk-detail-sidebar { position: static; }
    .kk-hero-card-1 { left: 8px; }
    .kk-hero-card-2 { right: 8px; }
    .kk-hero { padding: 50px 0 50px; }
    .kk-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .kk-logo-text { font-size: 18px; }
    .kk-logo-text small { font-size: 10px; }
    .kk-nav-cta { display: none; }
}
@media (max-width: 480px) {
    .kk-footer-grid { grid-template-columns: 1fr; }
    .kk-hero-card-1 { left: 0; bottom: 30px; }
    .kk-hero-card-2 { right: 0; top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
 *  V4 — Accordion-Toggle (für native Container-Accordions)
 * ============================================================ */
.kk-acc-trigger {
  cursor: pointer;
  position: relative;
  padding-right: 64px !important;
  transition: background 0.15s;
}
.kk-acc-trigger:hover { background: rgba(0,0,0,0.02); }
.kk-acc-item { transition: border-color 0.2s, box-shadow 0.2s; }
.kk-acc-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
.kk-acc-item.kk-acc-item--open { box-shadow: 0 4px 18px rgba(0,0,0,0.05); }

/* Chevron: absolute rechts, vertikal zentriert — immer gleiche Position */
.kk-acc-chevron {
  position: absolute !important;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: auto !important;
  padding: 0 !important;
  transition: transform 0.3s !important;
}
.kk-acc-item--open .kk-acc-chevron {
  transform: translateY(-50%) rotate(180deg);
}
/* Chevron-Farbe: passiv grau, aktiv rot */
.kk-acc-item .kk-acc-chevron svg,
.kk-acc-item .kk-acc-chevron i { color: #9a9a9a !important; fill: #9a9a9a !important; }
.kk-acc-item--open .kk-acc-chevron svg,
.kk-acc-item--open .kk-acc-chevron i { color: #c22b38 !important; fill: #c22b38 !important; }

/* Icon-Box: passiv blasses Rot mit rotem Icon, aktiv rot mit weißem Icon */
.kk-acc-item .kk-acc-icon { background: #fce4e6 !important; transition: background 0.2s; }
.kk-acc-item .kk-acc-icon svg,
.kk-acc-item .kk-acc-icon i { color: #c22b38 !important; fill: #c22b38 !important; transition: color 0.2s, fill 0.2s; }
.kk-acc-item--open .kk-acc-icon { background: #e63946 !important; }
.kk-acc-item--open .kk-acc-icon svg,
.kk-acc-item--open .kk-acc-icon i { color: #ffffff !important; fill: #ffffff !important; }

/* Body Display-Toggle */
.kk-acc-body { display: none !important; }
.kk-acc-body.kk-acc-body--open { display: flex !important; }


/* ============================================================
 *  V4.1 — Layout-Reset + Accordion-Fixes
 * ============================================================ */

/* 1) Banner direkt unter dem Header — keine grauen Lücken */
.kk-site-main { margin: 0; padding: 0; }
.kk-elementor-page {
  margin: 0;
  padding: 0;
  max-width: none;
}
.kk-elementor-page > .elementor,
.kk-elementor-page > .elementor > .elementor-section:first-child,
.kk-elementor-page > .elementor > .e-con:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Sicherheits-Reset für default page-content padding (von alter v3) */
.kk-elementor-page .kk-page-content { padding: 0 !important; }

/* 2) Rote Umrandungen weg — border konstant grau */
.kk-acc-item,
.kk-acc-item.kk-acc-item--open {
  border-color: #eaeaea !important;
}
.kk-acc-item:hover,
.kk-acc-item.kk-acc-item--open {
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* 4) Chevron immer ganz rechts mit konsistentem Abstand (CSS-Backup zu Flex-Settings) */
.kk-acc-chevron {
  margin-left: auto !important;
  text-align: right;
}
.kk-acc-chevron .elementor-icon {
  text-align: right;
}
/* Sicherstellen dass title flex-grow:1 wirklich greift */
.kk-acc-trigger > .kk-acc-title {
  flex: 1 1 auto !important;
}
