/*
Theme Name: Kriftel Spaces
Theme URI: https://kriftel-spaces.de
Author: Kriftel Spaces
Description: Block-Theme für Kriftel Spaces (Co-Working Kriftel). Farben, Schriften und Layout nach dem bisherigen Erscheinungsbild.
Version: 1.0.10121742
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kriftel-spaces
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }

/* ---------- Kopfbereich ---------- */
.ks-header { box-shadow: 0 2px 12px rgba(7,59,83,.08); position: sticky; top: 0; z-index: 50; }
.admin-bar .ks-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ks-header { top: 46px; } }
.ks-header .wp-block-navigation a { text-transform: uppercase; letter-spacing: .04em; }
.ks-header .wp-block-navigation a:hover,
.ks-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--orange); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { background-color: #d46f00 !important; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: #fff !important; }

/* ---------- Hero / Display-Schrift ---------- */
.ks-display { font-family: var(--wp--preset--font-family--cera); font-weight: 900; text-transform: uppercase; line-height: 1.12 !important; letter-spacing: .02em; }
.ks-display .ks-line { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.ks-hero .ks-display { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* ---------- Preiskacheln ---------- */
.ks-card { border-radius: 6px; flex: 1 1 auto; }
.wp-block-column:has(> .ks-card) { display: flex; flex-direction: column; }
.ks-card ul.ks-features { list-style: none; padding: 0; margin: 0; }
.ks-card ul.ks-features li { padding: .55rem 0; position: relative; }
.ks-card ul.ks-features li + li::before { content: ""; display: block; width: 28px; height: 2px; background: var(--wp--preset--color--navy); margin: 0 auto .55rem; }
.ks-price { font-size: 1.6rem !important; font-weight: 700; }

/* ---------- Ausstattung (Icons) ---------- */
.ks-icon { width: 34px; height: 34px; flex: 0 0 34px; color: var(--wp--preset--color--orange); }
.ks-icon svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Referenzen ---------- */
.ks-quote { border: 1px solid #dfe3e6; border-radius: 6px; position: relative; height: 100%; }
.ks-quote::after { content: "\201D"; position: absolute; right: 18px; bottom: -10px; font-size: 5rem; line-height: 1; color: var(--wp--preset--color--orange); font-weight: 900; }

/* ---------- FAQ ---------- */
.ks-faq details { border-bottom: 1px solid #dfe3e6; padding: 1rem 0; }
.ks-faq summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--navy); list-style: none; position: relative; padding-right: 2rem; }
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--wp--preset--color--orange); }
.ks-faq details[open] summary::after { content: "–"; }
.ks-faq details > *:not(summary) { margin-top: .75rem; }

/* ---------- Logos ---------- */
.ks-logos img { filter: grayscale(100%); opacity: .85; transition: all .2s ease; max-height: 110px; width: auto; object-fit: contain; }
.ks-logos img:hover { filter: none; opacity: 1; }

/* ---------- Tabellen ---------- */
.wp-block-table table { border-collapse: collapse; }
.wp-block-table th { background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-table td, .wp-block-table th { border: 1px solid #dfe3e6; padding: .7rem .9rem; }
.ks-tarife td:not(:first-child), .ks-tarife th:not(:first-child) { text-align: center; }

/* ---------- Galerie ---------- */
.ks-gallery img { border-radius: 4px; }

/* ---------- Fußbereich ---------- */
.ks-footer a { color: #fff; text-decoration: none; }
.ks-footer a:hover { color: var(--wp--preset--color--orange); }
.ks-footer .ks-footer-nav a { text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-weight: 700; color: var(--wp--preset--color--navy); margin-bottom: .9rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: .75rem .9rem; border: 1px solid #c5ccd2; border-radius: 4px; font: inherit; margin-top: .3rem; box-sizing: border-box; }
.wpcf7 .wpcf7-radio .wpcf7-list-item { display: inline-block; margin: .3rem 1.2rem .3rem 0; font-weight: 500; }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--orange); color: #fff; border: 0; border-radius: 999px; padding: .85rem 2rem; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #d46f00; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
  .ks-hero { min-height: 420px !important; }
  .ks-hide-mobile { display: none !important; }
}

/* ---------- Abstände zwischen Abschnitten ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.ks-main .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.ks-band-title { text-transform: uppercase; font-weight: 400 !important; line-height: 1.4 !important; margin: 0; }
.ks-page-title { margin: 0; }
.ks-box h3 { margin-top: 0; }
.ks-quote-title { font-weight: 700; margin-top: 0; }
.wp-block-cover.ks-hero p { font-size: 1.15rem; }
.ks-box, .ks-quote { padding-left: 2rem !important; padding-right: 2rem !important; }
.ks-hero .wp-block-columns { align-items: flex-end !important; }
.ks-hero .wp-block-column:last-child .wp-block-buttons { justify-content: flex-end; }
.ks-faq .wp-block-columns { gap: 3rem; }
.wpcf7 textarea { height: 150px; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin-left: 0; }

/* Rechtstexte IT-Recht Kanzlei (Code-Snippet) */
.itrk-legaltext h1{display:none}
.itrk-legaltext h2{font-size:1.35rem;margin-top:2rem}
.itrk-legaltext h3{font-size:1.1rem}
