/*
Theme Name: Praxis Kashapova
Theme URI: https://kashapov.de/
Author: Praxis Kashapova
Description: Schlankes Block-Theme für die Praxis Kashapova. Schrift lokal, keine Google-Dienste, kein Tracking, keine Cookies für Besucher:innen. Deutsch und Russisch.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kashapova
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--wp--preset--color--coral-text); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Kopf ---------- */
.site-header { border-bottom: 1px solid var(--wp--preset--color--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header__inner { gap: 16px 28px; padding-top: 12px; padding-bottom: 12px; }
.site-logo img { display: block; height: 36px; width: auto; }
.site-header .wp-block-navigation { font-size: 16px; gap: 22px; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--coral-text); }
.site-header .wp-block-navigation .current-menu-item > a,
.site-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--coral-text); font-weight: 700; }
.kp-lang { font-size: 14px; color: #555; white-space: nowrap; }
.kp-lang a { color: #333; text-decoration: none; padding: 10px 2px; }
.kp-lang a:hover { color: var(--wp--preset--color--coral-text); }
.kp-lang strong { color: #222; }
.site-header .wp-block-button__link { padding: 10px 20px; font-size: 16px; }
.site-header .wp-block-navigation__responsive-container-open { background: var(--wp--preset--color--coral); border-radius: 14px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #000; }
@media (max-width: 899px) {
  .site-header .kp-header-cta { display: none; }
}
@media (min-width: 900px) {
  .site-header .wp-block-navigation__responsive-container-open { display: none; }
}

/* ---------- Abschnitte ---------- */
.kp-section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.kp-section.is-alt, .kp-alt { background: var(--wp--preset--color--light); }
.kp-eyebrow { font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--coral-text); font-weight: 700; margin-bottom: 8px !important; }
.kp-lead { font-size: clamp(18px, 2vw, 20px) !important; }
.kp-hero .wp-block-columns { align-items: center !important; gap: 56px; }
.kp-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: #555; padding: 0; margin: 0; list-style: none; }
.kp-facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.kp-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--coral); flex: none; }

/* Karten */
.kp-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.kp-cards > * { margin: 0 !important; }
.kp-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 28px !important; }
.kp-card h3 { margin-top: 0; }
.kp-card p { margin: 10px 0 0; }
.kp-card .kp-more a { font-weight: 600; text-decoration: none; }
.kp-card .kp-more a:hover { text-decoration: underline; }
.kp-num { font-size: 40px !important; font-weight: 600; color: var(--wp--preset--color--coral); line-height: 1 !important; margin: 0 0 14px !important; }

/* Bilder */
.kp-photo img { border-radius: 28px; width: 100%; object-fit: cover; }
.kp-photo.is-portrait img { aspect-ratio: 4 / 5; object-position: center 20%; }
.kp-photo.is-square img { aspect-ratio: 1 / 1; }

/* Hinweis- und Rahmenkasten */
.kp-hint { background: var(--wp--preset--color--light); border-radius: 16px; padding: 16px 20px !important; font-size: 16px; color: #444; }
.kp-box { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 28px !important; }
.kp-box table { width: 100%; border-collapse: collapse; }
.kp-box td { padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.kp-box td:last-child { text-align: right; font-weight: 600; padding-left: 12px; }
.kp-dark { background: var(--wp--preset--color--dark); color: #fff; }
.kp-dark h2, .kp-dark h3, .kp-dark p { color: #fff; }
.kp-dark .kp-eyebrow { color: var(--wp--preset--color--coral); }
.kp-coral { background: var(--wp--preset--color--coral); color: #000; }
.kp-coral h2, .kp-coral p { color: #000; }
.kp-coral a:not(.wp-block-button__link) { color: #000; }

/* Knöpfe */
.wp-block-button__link { box-shadow: 0 15px 30px -10px rgba(0, 11, 48, .2); transition: background-color .2s ease; }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--wp--preset--color--dark); color: #fff; box-shadow: none; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: #111; color: #fff; }
@media (max-width: 781px) {
  .kp-section .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .kp-section .wp-block-button, .kp-section .wp-block-button__link { width: 100%; text-align: center; }
}

/* Fragen */
.wp-block-details { background: #fff; border: 1px solid #E2E6EE; border-radius: 18px; padding: 18px 22px; margin-top: 12px !important; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: #222; }
.wp-block-details p { margin-bottom: 0; }

/* Listen in Karten */
.kp-qual { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.kp-qual li { counter-increment: q; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.kp-qual li::before { content: counter(q, decimal-leading-zero); color: var(--wp--preset--color--coral-text); font-weight: 700; min-width: 28px; }

/* ---------- Kontaktformular ---------- */
.kp-form { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 28px; }
.kp-field { display: flex; flex-direction: column; gap: 6px; }
.kp-field label { font-size: 16px; font-weight: 600; color: #222; }
.kp-field input, .kp-field select, .kp-field textarea { font: inherit; font-size: 17px; border: 1.5px solid #D5DBE6; border-radius: 12px; padding: 12px 14px; background: #fff; color: #222; min-height: 48px; box-sizing: border-box; width: 100%; }
.kp-field input:focus, .kp-field select:focus, .kp-field textarea:focus { border-color: var(--wp--preset--color--coral-text); outline: none; box-shadow: 0 0 0 3px rgba(255, 133, 98, .35); }
.kp-field small { font-size: 15px; color: #555; }
.kp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.kp-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.kp-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.kp-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.kp-submit { font: inherit; font-weight: 600; font-size: 18px; background: var(--wp--preset--color--coral); color: #000; border: 0; border-radius: 30px; padding: 15px 30px; cursor: pointer; box-shadow: 0 15px 30px -10px rgba(0, 11, 48, .2); min-height: 48px; }
.kp-submit:hover { background: #FA7650; }
.kp-form-note { font-size: 15px; color: #555; margin: 0; }
.kp-form-ok { background: var(--wp--preset--color--light); border-radius: 24px; padding: 28px; }
.kp-form-error { background: #FFF1EC; border: 1px solid #F3C2B2; border-radius: 12px; padding: 12px 16px; color: #7A2A12; font-size: 16px; }
@media (max-width: 781px) { .kp-submit { width: 100%; } }

/* ---------- Fuß ---------- */
.site-footer { background: var(--wp--preset--color--dark); color: #EEE; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.site-footer .wp-block-columns { gap: 28px; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
  .kp-hero .wp-block-column.kp-hero-photo { order: -1; }
  .kp-hero .kp-photo.is-portrait img { aspect-ratio: 1 / 1; max-height: 420px; }
}
@media (min-width: 900px) { .site-header .kp-nav-cta { display: none !important; } }
.kp-prices { width: 100%; border-collapse: collapse; margin: 0; }
.kp-prices td { padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.kp-prices td:last-child { text-align: right; font-weight: 600; padding-left: 12px; white-space: nowrap; }
.kp-prices small { font-size: 15px; color: #555; }
.kp-box > * + * { margin-top: 14px; }
.kp-box.kp-dark p { margin: 0; }
.wp-block-columns { gap: clamp(28px, 4vw, 56px); }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.kp-hero h1 { font-size: clamp(32px, 3.6vw, 46px); }
.kp-narrow { max-width: 760px; }
.kp-cards { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.kp-narrow { margin-left: max(0px, calc((100% - 1160px) / 2)) !important; margin-right: auto !important; }
.site-footer { border-top: 1px solid #4a4a4a; }
@media (min-width: 1000px) { .kp-cards.kp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main > .wp-block-post-content > * + * { margin-block-start: 0; }
