/*
Theme Name: Komplea
Theme URI: https://komplea.de
Author: Komplea
Description: Schlankes Block-Theme für die Komplea-Website – Farben und Schrift aus dem Logo, Schrift lokal (DSGVO), ohne Page-Builder.
Version: 1.6.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: komplea
*/

/* Kopf, Fuss und Startseite: assets/komplea.css (aus dem Entwurf). Hier nur die Bausteine der Unterseiten im selben Look. */

/* Knöpfe wie auf der Startseite */
.wp-block-button__link { box-shadow: 0 8px 20px -8px rgba(11,107,224,.7); transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid #C9D6EA; background: #fff; color: var(--wp--preset--color--marke); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--marke); background: #fff; }
.k-hell .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }

/* Kopfbereich der Unterseiten */
.k-held { background: radial-gradient(900px 520px at 88% 8%, rgba(22,200,255,.16), transparent 62%),
  linear-gradient(180deg, #F3F7FD 0%, #FFFFFF 100%); }
.k-held h1 { margin-top: .6rem; }
.k-dachzeile { font-size: 1rem; font-weight: 600; color: var(--wp--preset--color--blau); margin-bottom: 0; }

/* Programmbilder im Fensterrahmen */
.k-bildschirm { border-radius: 14px; overflow: hidden; border: 1px solid rgba(11,35,80,.08);
  box-shadow: 0 2px 4px rgba(11,35,80,.05), 0 40px 80px -30px rgba(11,35,80,.45); background: #fff; }
.k-bildschirm::before { content: ""; display: block; height: 28px; border-bottom: 1px solid #E3E9F2;
  background: #F1F4F9 radial-gradient(circle at 16px 14px, #D5DCE7 4.5px, transparent 5px),
  radial-gradient(circle at 31px 14px, #D5DCE7 4.5px, transparent 5px), radial-gradient(circle at 46px 14px, #D5DCE7 4.5px, transparent 5px); }
.k-handy img { border-radius: 26px; box-shadow: 0 24px 50px -16px rgba(11,35,80,.45), 0 0 0 6px #0B2350; }

/* Kacheln */
.k-kachel { background: #fff; border: 1px solid #E3E9F2; border-radius: 20px; padding: 28px; height: 100%;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.k-kachel:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(11,35,80,.06), 0 12px 32px -12px rgba(11,35,80,.22); }
.k-kachel h3 { margin: 0 0 .4rem; }
.k-kachel p { margin: 0; color: var(--wp--preset--color--leise); font-size: .95rem; }

/* Häkchen-Liste */
.k-haken { list-style: none; padding-left: 0; }
.k-haken li { position: relative; padding-left: 1.9rem; margin: .5rem 0; }
.k-haken li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #E8F1FD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6BE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.k-hell .k-haken li::before { background: rgba(22,200,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316C8FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Dunkle Abschnitte */
.k-hell, .k-hell h2, .k-hell h3 { color: #fff; }
.k-hell p, .k-hell li { color: #C9D6EA; }

/* Fragen */
.k-fragen details { border-bottom: 1px solid #E3E9F2; }
.k-fragen details:first-child { border-top: 1px solid #E3E9F2; }
.k-fragen summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--marke); list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative; }
.k-fragen summary::-webkit-details-marker { display: none; }
.k-fragen summary::after { content: "+"; position: absolute; right: 0; top: .9rem; color: var(--wp--preset--color--blau); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.k-fragen details[open] summary::after { transform: rotate(45deg); }
.k-fragen details p { margin: 0 0 1.15rem; color: var(--wp--preset--color--leise); max-width: 62ch; }

/* Rechtstexte (Impressum, Datenschutz, AGB): ruhige Lesegroessen wie auf veraqua.de */
.k-recht { --wp--style--block-gap: .9rem; }
.k-recht h1 { font-size: 1.9rem; line-height: 1.15; margin-bottom: .5rem; }
.k-recht h2 { font-size: 1.3rem; line-height: 1.2; margin-top: 2rem; margin-bottom: .2rem; }
.k-recht p, .k-recht li { font-size: .97rem; line-height: 1.75; }
.k-recht ul { padding-left: 1.2rem; }
.k-recht li { margin: .3rem 0; }

/* Ratgeber-Beitraege: gut lesbar */
.k-artikel-titel { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.k-artikel { --wp--style--block-gap: 1rem; }
.k-artikel h2 { font-size: 1.4rem; line-height: 1.25; margin-top: 2.2rem; }
.k-artikel p, .k-artikel li { font-size: 1.02rem; line-height: 1.75; }
.k-artikel li { margin: .35rem 0; }
.k-artikel a { text-decoration: underline; text-underline-offset: 2px; }

/* Lexikon */
.lx-leiste { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; background: #fff;
  border-bottom: 1px solid #E3E9F2; margin-bottom: 1.5rem; }
.lx-leiste a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #E3E9F2;
  font-weight: 600; color: var(--wp--preset--color--marke); text-decoration: none; font-size: .95rem; }
.lx-leiste a:hover { background: #E8F1FD; border-color: #B9CCE8; color: var(--wp--preset--color--blau); }
.lx-gruppe { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; padding: 1.4rem 0; border-bottom: 1px solid #E3E9F2;
  scroll-margin-top: 140px; }
.lx-gruppe > h2 { font-size: 2rem; color: var(--wp--preset--color--blau); margin: 0; line-height: 1; }
.lx-gruppe .lx-begriff { grid-column: 2; margin-bottom: 1.1rem; scroll-margin-top: 140px; }
.lx-begriff h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.lx-begriff p { margin: 0; color: #3A4760; font-size: .98rem; line-height: 1.7; max-width: 75ch; }
.lx-begriff:target h3 { color: var(--wp--preset--color--blau); }

@media (max-width: 781px) {
  .lx-gruppe { grid-template-columns: 1fr; }
  .lx-gruppe .lx-begriff { grid-column: 1; }
  .lx-gruppe > h2 { margin-bottom: .8rem; }
  .lx-leiste a { width: 32px; height: 32px; }
  .k-bildschirm { border-radius: 10px; }
  .k-kachel { padding: 22px; }
}
