/*
Theme Name: KaDi Software
Theme URI: https://kadi-software.de
Author: Klaus Dieter Wieczorek
Author URI: https://kadi-software.de
Description: Firmen-Theme für KaDi Software – Apps nach Maß für Gastronomie und Handwerk. Schriften lokal, keine externen Dienste.
Version: 2.1.1
Requires at least: 6.6
Requires PHP: 7.4
License: Alle Rechte vorbehalten
Text Domain: kadi-software
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
:where(section[id], [id].kadi-section) { scroll-margin-top: 24px; }
a:focus-visible, .wp-element-button:focus-visible { outline: 3px solid #2F55D4; outline-offset: 3px; border-radius: 6px; }
.kadi-main { margin-block-start: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.kadi-main > .wp-block-group, .kadi-main > section { margin-block-start: 0 !important; }

/* ---------- Abschnitte ---------- */
.kadi-section { padding-top: 88px !important; padding-bottom: 88px !important; background: #FFFFFF; }
.kadi-section.is-light { background: #F5F7FA; }
.kadi-section.is-dark { background: #16223F; color: #FFFFFF; }
.kadi-section.is-dark h1, .kadi-section.is-dark h2, .kadi-section.is-dark h3 { color: #FFFFFF; }
.kadi-section.is-dark .kadi-eyebrow { color: #A9BDF7; }
.kadi-section.is-dark .kadi-lead { color: #D5DCEA; }
.kadi-section > * + * { margin-block-start: 40px !important; }

.kadi-intro > * { max-width: 760px; }
.kadi-intro > * + * { margin-block-start: 12px; }

.kadi-eyebrow { margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2F55D4; }
.kadi-hero-title { margin-top: 12px; font-size: clamp(2.375rem, 5vw, 3.5rem) !important; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.kadi-h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem) !important; text-wrap: balance; }
.kadi-h3 { font-size: 1.1875rem !important; margin: 0; }
.kadi-h4 { font-size: 1.125rem !important; margin: 0; }
.kadi-lead { font-size: 1.1875rem; color: #4A5670; text-wrap: pretty; }
.kadi-small, .kadi-muted { font-size: 0.9375rem; color: #4A5670; }

/* ---------- Hero ---------- */
.kadi-hero-section { padding-top: 96px !important; padding-bottom: 104px !important; }
.kadi-hero { align-items: center !important; gap: 56px !important; }
.kadi-hero .wp-block-buttons { margin-top: 28px; }
.kadi-area { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 0.9375rem; font-weight: 600; color: #33405C; }
.kadi-area svg { color: #2F55D4; flex: 0 0 auto; }
.kadi-hero-visual { display: flex; justify-content: center; }
.kadi-mock { width: 100%; max-width: 400px; background: #FFFFFF; border: 1px solid #E3E8F0; border-radius: 24px; box-shadow: 0 24px 60px rgba(22,34,63,0.12); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.kadi-mock__head { display: flex; justify-content: space-between; align-items: center; font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; }
.kadi-mock__badge { font-size: 0.8125rem; font-weight: 700; color: #1F7A4D; background: #E6F4EC; padding: 4px 10px; border-radius: 999px; }
.kadi-mock__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #F5F7FA; border-radius: 12px; font-weight: 600; }
.kadi-mock__row span:last-child { color: #4A5670; font-weight: 700; white-space: nowrap; }
.kadi-mock__btn { margin-top: 6px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #16223F; color: #FFFFFF; font-weight: 700; }

/* ---------- Karten & Raster ---------- */
.kadi-grid { gap: 20px !important; }
.kadi-card { background: #FFFFFF; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.kadi-card > * { margin: 0 !important; }
.kadi-card p { color: #4A5670; }
.kadi-card.is-bordered { border: 1px solid #E3E8F0; }
.kadi-card.is-tinted { background: #F5F7FA; }
.is-light .kadi-card.is-tinted { background: #FFFFFF; }
.kadi-card.is-large { padding: 40px; height: 100%; justify-content: center; }
.kadi-card.is-tinted.is-large { background: #EEF2FD; }
.kadi-card.is-tinted.is-large p { color: #33405C; }
.kadi-card.is-blue { background: #2F55D4; color: #FFFFFF; }
.kadi-card.is-blue h3, .kadi-card.is-blue p { color: #FFFFFF; }
.kadi-icon { color: #2F55D4; display: block; }

.kadi-point { padding-top: 16px; border-top: 2px solid #16223F; }
.kadi-point > * { margin: 0 !important; }
.kadi-point p { color: #4A5670; margin-top: 6px !important; }

.kadi-step-num { width: 40px; height: 40px; border-radius: 999px; background: #16223F; color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.kadi-center { align-items: center !important; }
.kadi-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 1.0625rem; font-weight: 600; }
.kadi-checklist li { display: flex; gap: 12px; align-items: center; }
.kadi-checklist li::before { content: ""; flex: 0 0 22px; height: 22px; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BDF7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.kadi-portrait img { width: 220px; height: 220px; max-width: 100%; border-radius: 999px; object-fit: cover; box-shadow: 0 16px 40px rgba(22,34,63,0.18); }

.kadi-contact a { font-weight: 700; }

/* ---------- FAQ ---------- */
.kadi-faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.kadi-faq > * { margin: 0 !important; }
.kadi-faq-item { background: #FFFFFF; border: 1px solid #E3E8F0; border-radius: 14px; padding: 0 24px; }
.kadi-faq-item summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 1.0625rem; font-weight: 700; color: #16223F; }
.kadi-faq-item summary::-webkit-details-marker { display: none; }
.kadi-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: #2F55D4; line-height: 1; }
.kadi-faq-item[open] summary::after { content: "–"; }
.kadi-faq-item summary:focus-visible { outline: 3px solid #2F55D4; outline-offset: 4px; border-radius: 6px; }
.kadi-faq-item p { margin: 0 0 20px; color: #4A5670; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: #FFFFFF; color: #16223F; border: 1px solid #C9D2E0; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #F5F7FA; color: #16223F; }
.wp-block-button.is-style-dark > .wp-block-button__link { background: #16223F; }
.wp-block-button.is-style-light > .wp-block-button__link { background: #FFFFFF; color: #16223F; font-weight: 800; }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #EEF2FD; color: #16223F; }

/* ---------- Kopfbereich ---------- */
.kadi-header { background: #FFFFFF; border-bottom: 1px solid #E3E8F0; padding-top: 14px !important; padding-bottom: 14px !important; }
.kadi-header-inner { align-items: center !important; gap: 16px !important; }
.kadi-header-right { gap: 28px !important; align-items: center !important; }
.kadi-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #16223F !important; }
.kadi-brand img { width: 44px; height: 44px; }
.kadi-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.kadi-brand__text strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.kadi-brand__text span { font-size: 0.8125rem; font-weight: 500; color: #4A5670; }
.kadi-nav { font-size: 0.9375rem; font-weight: 600; gap: 24px !important; }
.kadi-nav a { color: #16223F; text-decoration: none; }
.kadi-nav a:hover { color: #2F55D4; }
.kadi-header-cta .wp-block-button__link { padding: 0.6rem 1.2rem; font-size: 0.9375rem; }
@media (max-width: 600px) { .kadi-header-cta { display: none !important; } }

/* ---------- Fußbereich ---------- */
.kadi-footer { background: #16223F; color: #D5DCEA; padding-top: 32px !important; padding-bottom: 32px !important; font-size: 0.875rem; margin-top: 0 !important; }
.kadi-footer-inner { gap: 16px !important; align-items: flex-start !important; }
.kadi-footer-left > * { margin: 0 !important; }
.kadi-footer-left > * + * { margin-top: 4px !important; }
.kadi-footer a { color: #FFFFFF; }
.kadi-footer-links { margin: 0; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.kadi-page { padding-top: 72px !important; padding-bottom: 96px !important; }
.kadi-page-title { font-size: clamp(2.25rem, 4vw, 2.75rem) !important; }
.kadi-page h2 { font-size: 1.375rem !important; margin-top: 2.25rem; }
.kadi-page h3 { font-size: 1.125rem !important; margin-top: 1.5rem; }

/* ---------- Unterseiten (Vollbreite) ---------- */
.kadi-page-hero { padding-top: 80px !important; padding-bottom: 72px !important; }
.kadi-page-intro > * { max-width: 820px; }
.kadi-page-intro .wp-block-buttons { margin-top: 24px; }
.kadi-cta { padding-top: 64px !important; padding-bottom: 64px !important; }
.kadi-cta .wp-block-buttons { justify-content: flex-end; }
.kadi-more { margin-top: 28px !important; }
.kadi-ticks { list-style: none; padding: 0; margin: 4px 0 0 !important; display: flex; flex-direction: column; gap: 8px; }
.kadi-ticks li { position: relative; padding-left: 28px; color: #16223F; font-weight: 600; font-size: 0.975rem; }
.kadi-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F55D4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.kadi-card.is-blue .kadi-ticks li { color: #FFFFFF; }
.kadi-card.is-blue .kadi-ticks li::before { filter: brightness(0) invert(1); }
.kadi-ticks-lg li { font-size: 1.0625rem; }
.kadi-price { gap: 14px; }
.kadi-price-note { margin-top: auto !important; padding-top: 12px; border-top: 1px solid #E3E8F0; font-weight: 800; color: #16223F !important; }
.kadi-card.is-blue .kadi-price-note { border-top-color: rgba(255,255,255,0.35); color: #FFFFFF !important; }
.kadi-faq-group { margin-bottom: 48px !important; }
.kadi-faq-title { font-size: 1.375rem !important; margin: 0 0 16px !important; }
.kadi-faq-group .kadi-faq { margin-left: 0 !important; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
  .kadi-cta .wp-block-buttons { justify-content: flex-start; }
  .kadi-section { padding-top: 56px !important; padding-bottom: 56px !important; }
  .kadi-hero-section { padding-top: 56px !important; padding-bottom: 64px !important; }
  .kadi-card.is-large { padding: 28px; }
}

/* ---------- App-Einblick ---------- */
.kadi-phones { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; justify-content: safe center; max-width: 1180px; margin: 32px auto 0 !important; }
.kadi-phone { flex: 0 0 auto; width: 168px; margin: 0; scroll-snap-align: center; text-align: center; }
.kadi-phone img { display: block; width: 168px; height: auto; border-radius: 24px; border: 5px solid #16223f; background: #16223f; box-shadow: 0 18px 40px rgba(22,34,63,0.22); }
.kadi-phone figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.kadi-phone figcaption span { color: #5b6478; font-size: 0.88rem; }
@media (max-width: 700px) { .kadi-phones { justify-content: flex-start; gap: 18px; } .kadi-phone, .kadi-phone img { width: 165px; } }

/* ---------- Geschichte ---------- */
.kadi-story p { font-size: 1.08rem; line-height: 1.75; }
.kadi-story .kadi-h2 { margin-bottom: 0.6em; }

/* ---------- Praxisbeispiel-Bilder ---------- */
.kadi-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 36px 32px; max-width: 1180px; margin: 32px auto 0 !important; }
.kadi-shot { margin: 0; }
.kadi-shot__bar { display: flex; gap: 6px; padding: 10px 12px; background: #16223f; border-radius: 14px 14px 0 0; }
.kadi-shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.kadi-shot img { display: block; width: 100%; height: auto; border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(22,34,63,0.18); border: 1px solid #e3e7ef; border-top: 0; }
.kadi-shot figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.kadi-shot figcaption span { color: #5b6478; font-size: 0.95rem; }

/* ---------- Preise 1.5 ---------- */
.kadi-price-main { margin-top: 8px !important; }
.kadi-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; color: inherit; }
.kadi-per { font-size: 0.95rem; opacity: 0.8; }
.kadi-price-setup { font-weight: 700; margin-top: 0 !important; }
.kadi-price .kadi-price-note { font-weight: 600; font-size: 0.9rem; }
.kadi-web-extras { max-width: 1180px; margin: 28px auto 0 !important; }

/* ---------- Logo größer, Kopf immer sichtbar, Copyright (1.6) ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.kadi-header { box-shadow: 0 2px 12px rgba(22,34,63,0.06); }
.kadi-brand { gap: 14px; }
.kadi-brand img { width: 60px; height: 60px; border-radius: 14px; }
.kadi-brand__text strong { font-size: 1.75rem; }
.kadi-brand__text span { font-size: 0.95rem; }
@media (max-width: 600px) { .kadi-brand img { width: 48px; height: 48px; } .kadi-brand__text strong { font-size: 1.45rem; } }
.kadi-brand--footer { color: #FFFFFF !important; margin-bottom: 12px !important; }
.kadi-brand--footer img { width: 52px; height: 52px; }
.kadi-brand--footer .kadi-brand__text strong { font-size: 1.5rem; }
.kadi-brand--footer .kadi-brand__text span { color: #D5DCEA; }
.kadi-copyright { text-align: center; margin-top: 28px !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: #D5DCEA; }

/* ---------- Logo noch größer (1.7) ---------- */
.kadi-header { padding-top: 10px !important; padding-bottom: 10px !important; }
.kadi-brand { gap: 16px; }
.kadi-brand img { width: 84px; height: 84px; border-radius: 18px; }
.kadi-brand__text strong { font-size: 2.3rem; }
.kadi-brand__text span { font-size: 1.15rem; }
@media (max-width: 600px) { .kadi-brand img { width: 60px; height: 60px; border-radius: 14px; } .kadi-brand__text strong { font-size: 1.75rem; } .kadi-brand__text span { font-size: 0.95rem; } }
.kadi-brand--footer img { width: 64px; height: 64px; }
.kadi-brand--footer .kadi-brand__text strong { font-size: 1.8rem; }
/* Kopf bleibt einzeilig */
.kadi-header-inner { flex-wrap: nowrap !important; }
.kadi-header-right { flex-wrap: nowrap !important; }
.kadi-nav .wp-block-navigation__container { flex-wrap: nowrap !important; }
.kadi-nav a { white-space: nowrap; }
@media (max-width: 1280px) { .kadi-brand img { width: 68px; height: 68px; border-radius: 16px; } .kadi-brand__text strong { font-size: 1.9rem; } .kadi-nav { gap: 16px !important; font-size: 0.9rem; } .kadi-header-right { gap: 18px !important; } }
@media (max-width: 1080px) { .kadi-header-cta { display: none !important; } .kadi-nav { gap: 12px !important; font-size: 0.85rem; } }
@media (max-width: 1080px) {
  .kadi-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .kadi-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
/* 1.7.2: Logo größer, Knopf einzeilig */
.kadi-header-cta .wp-block-button__link { white-space: nowrap; }
@media (min-width: 1281px) { .kadi-brand img { width: 96px; height: 96px; border-radius: 20px; } .kadi-brand__text strong { font-size: 2.6rem; } .kadi-brand__text span { font-size: 1.25rem; } .kadi-header { padding-top: 8px !important; padding-bottom: 8px !important; } }
@media (min-width: 1081px) and (max-width: 1280px) { .kadi-brand img { width: 76px; height: 76px; } .kadi-brand__text strong { font-size: 2.1rem; } }
.kadi-brand--footer img { width: 64px !important; height: 64px !important; }
.kadi-brand--footer .kadi-brand__text strong { font-size: 1.8rem !important; }
.kadi-badge { display: inline-block; align-self: flex-start; background: #2F55D4; color: #FFFFFF !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin: 0 0 4px !important; }
/* Sprungziele nicht unter dem festen Kopf verstecken */
html { scroll-padding-top: 130px; }
@media (max-width: 900px) { html { scroll-padding-top: 100px; } }
.is-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.55); }
.is-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.kadi-footer-links { text-align: right; line-height: 1.9; }
@media (max-width: 700px) { .kadi-footer-links { text-align: left; } }

/* ---------- 2.1.1: iPhone / Mobil ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
/* Lange deutsche Wörter sauber umbrechen */
@media (max-width: 700px) {
  h1, h2, h3, .kadi-h1, .kadi-h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  p, li { overflow-wrap: break-word; }
  .kadi-header { padding-top: 6px !important; padding-bottom: 6px !important; }
  .kadi-brand { gap: 12px; }
  .kadi-brand img { width: 48px !important; height: 48px !important; border-radius: 12px !important; }
  .kadi-brand__text strong { font-size: 1.5rem !important; }
  .kadi-brand__text span { font-size: 0.85rem !important; }
  html { scroll-padding-top: 80px; }
  .kadi-amount { font-size: 2rem; }
  .kadi-per { display: inline-block; }
}
/* Admin-Leiste scrollt auf dem Handy mit – Kopf dann ganz oben */
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
/* Galerie: Safari kennt "safe center" nicht überall */
.kadi-phones { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
.kadi-phones > .kadi-phone:first-child { margin-left: auto; }
.kadi-phones > .kadi-phone:last-child { margin-right: auto; }
/* Geöffnetes Handy-Menü */
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: max(18px, env(safe-area-inset-top)) 24px 32px 24px !important;
  background: #FFFFFF !important;
}
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0 !important; }
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: max(18px, env(safe-area-inset-top)); right: 20px; }
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 64px !important; align-items: stretch !important;
}
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: stretch !important; gap: 0 !important; width: 100%;
}
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%; border-bottom: 1px solid #E3E7EF;
}
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 14px 4px !important; font-size: 1.2rem; font-weight: 700; color: #16223F; text-align: left;
}
.kadi-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > a { color: #2F55D4; }

/* ---------- 2.1.1: Logo auf der Startseite größer ---------- */
body.home .kadi-brand { gap: 18px; }
@media (min-width: 1281px) { body.home .kadi-brand img { width: 124px !important; height: 124px !important; border-radius: 26px !important; } body.home .kadi-brand__text strong { font-size: 3.2rem !important; } body.home .kadi-brand__text span { font-size: 1.5rem !important; } }
@media (min-width: 1081px) and (max-width: 1280px) { body.home .kadi-brand img { width: 100px !important; height: 100px !important; border-radius: 22px !important; } body.home .kadi-brand__text strong { font-size: 2.6rem !important; } }
@media (min-width: 701px) and (max-width: 1080px) { body.home .kadi-brand img { width: 88px !important; height: 88px !important; border-radius: 20px !important; } body.home .kadi-brand__text strong { font-size: 2.3rem !important; } }
@media (max-width: 700px) { body.home .kadi-brand img { width: 64px !important; height: 64px !important; border-radius: 15px !important; } body.home .kadi-brand__text strong { font-size: 1.85rem !important; } body.home .kadi-brand__text span { font-size: 1rem !important; } }

/* ---------- 2.1.1: Kapazitätshinweis ---------- */
.kadi-capacity-note { margin-top: auto !important; padding: 10px 12px; background: #FFF4E5; border: 1px solid #F5C77E; border-radius: 10px; font-size: 0.88rem; line-height: 1.5; color: #5C3B00; }
.kadi-capacity-note strong { color: #8A4B00; }

/* ---------- 2.1.1: Demo-Seite, Navigation ---------- */
.kadi-nav-demo { display: none !important; }
@media (max-width: 1080px) { .kadi-nav-demo { display: flex !important; } }
.kadi-demo-phone { width: 390px; max-width: 100%; height: 800px; margin: 0 auto; border: 12px solid #16223F; border-radius: 46px; overflow: hidden; background: #16223F; box-shadow: 0 30px 60px rgba(22, 34, 63, 0.25); }
.kadi-demo-phone iframe { display: block; width: 100%; height: 100%; border: 0; background: #F3F4F7; }
@media (max-width: 781px) {
  .kadi-demo-phone { width: 100%; height: 760px; border-width: 6px; border-radius: 24px; }
}
.kadi-cta-btns { flex-wrap: wrap; }

/* ---------- 2.1.1: Handybild der Demo-App im Startbereich ---------- */
.kadi-hero-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: #16223F; }
.kadi-hero-phone__frame { display: block; width: 270px; max-width: 100%; border: 10px solid #16223F; border-radius: 40px; overflow: hidden; background: #16223F; box-shadow: 0 28px 60px rgba(22, 34, 63, 0.22); transition: transform .2s ease; }
.kadi-hero-phone__frame img { display: block; width: 100%; height: auto; border-radius: 30px; }
.kadi-hero-phone:hover .kadi-hero-phone__frame { transform: translateY(-4px); }
.kadi-hero-phone__cap { font-weight: 700; font-size: 0.95rem; color: #2F55D4; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) { .kadi-hero-phone__frame { width: 240px; } }

/* ---------- 2.1.1: Design-Umschalter Demo ---------- */
.kadi-demo-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.kadi-demo-label { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; min-height: 3.2em; }
.kadi-demo-label strong { font-size: 1.15rem; font-weight: 800; color: #16223F; }
.kadi-demo-label span { font-size: 0.92rem; color: #4A5670; }
.kadi-demo-nav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; width: 100%; }
.kadi-demo-prev, .kadi-demo-next { white-space: nowrap; }
.kadi-demo-prev, .kadi-demo-next { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.kadi-demo-next { background: #2F55D4; color: #FFFFFF; }
.kadi-demo-next:hover { background: #1F3A9E; color: #FFFFFF; }
.kadi-demo-prev { background: #FFFFFF; color: #16223F; border: 1.5px solid #C9D2E0; }
.kadi-demo-prev:hover { border-color: #16223F; color: #16223F; }
.kadi-demo-dots { display: flex; gap: 6px; }
.kadi-demo-dot { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; text-decoration: none; color: #4A5670; background: #E8ECF3; }
.kadi-demo-dot.is-active { background: #16223F; color: #FFFFFF; }
@media (max-width: 1100px) { .kadi-demo-nav { flex-wrap: wrap; } .kadi-demo-dots { order: 3; width: 100%; justify-content: center; } }
.kadi-demo-cols .kadi-ticks + .kadi-h3 { margin-top: 28px; }

/* ---------- 2.1.1: Mietkoch24-Bereich im Originaldesign (Schwarz/Orange) ---------- */
.kadi-section.kadi-mk24 { background: #000000; color: #FFFFFF; }
.kadi-section.kadi-mk24 .kadi-eyebrow { color: #FF9829; }
.kadi-section.kadi-mk24 .kadi-lead { color: #CFCFCF; }
.kadi-mk24 .kadi-mk24-logo { margin: 0 0 22px; }
.kadi-mk24 .kadi-mk24-logo img { width: 300px; max-width: 100%; height: auto; display: block; }
.kadi-mk24 .wp-block-button.is-style-light > .wp-block-button__link,
.kadi-mk24 .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #FF9829; color: #000000; border-color: #FF9829; }
.kadi-mk24 .wp-block-button.is-style-light > .wp-block-button__link:hover { background: #FFB25E; color: #000000; }
.kadi-mk24 .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #FF9829; border: 1.5px solid #FF9829; }
.kadi-mk24 .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #FF9829; color: #000000; }
.kadi-mk24 .kadi-checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9829' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* ---------- 2.1.1: Seite Bausteine ---------- */
.kadi-video { margin: 0 auto; max-width: 1100px; }
.kadi-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: #16223F; box-shadow: 0 24px 60px rgba(22, 34, 63, 0.18); }
.kadi-video figcaption { margin-top: 10px; text-align: center; font-size: 0.9rem; color: #4A5670; }
.kadi-bgroup-wrap + .kadi-bgroup-wrap { margin-top: 56px; }
.kadi-bgroup { margin: 0 0 20px !important; font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; }
.kadi-baustein .kadi-ticks { margin-top: 10px; }
.kadi-step-num { width: 44px; height: 44px; border-radius: 999px; background: #2F55D4; color: #FFFFFF; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 0 12px !important; }
