/*
Theme Name: Kanzlei Buchholz
Theme URI: https://www.steuerberater-buchholz.de
Author: Steuerberatung Buchholz
Description: Schlankes Block-Theme für die Kanzlei-Website. Keine externen Schriften oder Dienste (DSGVO-freundlich).
Version: 1.2.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: kanzlei-buchholz
*/

/* Formular-Optik: Felder mit grüner Grundierung wie auf Steuervordrucken */
.kb-feld {
  background: var(--wp--preset--color--formular);
  border-left: 4px solid var(--wp--preset--color--akzent);
}
.kb-feld .kb-feldname {
  font-size: var(--wp--preset--font-size--klein);
  color: var(--wp--preset--color--akzent);
  margin: 0 0 .25rem;
}
.kb-tel a { text-decoration: none; color: var(--wp--preset--color--tinte); }
.kb-tel a:hover, .kb-tel a:focus-visible { text-decoration: underline; }

.kb-leistungen ul { padding-left: 1.1rem; margin: 0; }
.kb-leistungen li { margin-bottom: .45rem; }
.kb-leistungen li::marker { color: var(--wp--preset--color--akzent); }

.kb-gruppe { border-top: 2px solid var(--wp--preset--color--linie); padding-top: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--wp--preset--color--akzent);
  outline-offset: 2px;
}

.kb-header { border-bottom: 1px solid var(--wp--preset--color--linie); }
.kb-wortmarke a { text-decoration: none; color: inherit; }

.kb-iframe iframe { width: 100%; min-height: 900px; border: 0; }

/* Keine Lücken zwischen Kopf, Inhalt und Fuß */
.wp-site-blocks > * { margin-block-start: 0; }

/* ===== 1.1: Blautöne ===== */
.kb-header { border-bottom: 3px solid var(--wp--preset--color--akzent); }
.kb-header .wp-block-navigation a:hover { color: var(--wp--preset--color--akzent); }

/* Einstieg: Marineblauer Verlauf */
.kb-hero {
  background: linear-gradient(135deg, #0F2E4D 0%, #1A4F7D 100%) !important;
  color: #fff;
}
.kb-hero h1 { color: #fff; }
.kb-hero .kb-lead { color: #DCE8F4; }
.kb-hero .wp-block-button__link { background: #fff; color: var(--wp--preset--color--marine); border: 2px solid #fff; }
.kb-hero .wp-block-button__link:hover { background: #DCE8F4; border-color: #DCE8F4; color: var(--wp--preset--color--marine); }
.kb-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.kb-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.kb-hero .kb-feld {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Leistungen als hellblaue Karten */
.kb-gruppe {
  background: var(--wp--preset--color--flaeche);
  border-top: 4px solid var(--wp--preset--color--akzent) !important;
  border-radius: 6px;
  padding: 1.5rem !important;
}
.kb-feld { border-radius: 4px; }
.kb-hero .kb-feld { color: var(--wp--preset--color--tinte); }

/* ===== 1.2: Seitenkopf, Service-Karten, eingebundene Inhalte ===== */
.kb-seitenkopf {
  background: linear-gradient(135deg, #0F2E4D 0%, #1A4F7D 100%);
  color: #fff;
  padding-top: 3.25rem !important;
  padding-bottom: 3.25rem !important;
}
.kb-seitenkopf h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); }
.kb-kicker {
  color: #9CC3E6;
  font-size: var(--wp--preset--font-size--klein);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .5rem !important;
}
.kb-seitenkopf .kb-kicker + * { margin-top: 0; }

/* Eingebundene Inhalte als weiße Karte auf hellblauem Grund */
.kb-einbindung { background: var(--wp--preset--color--flaeche); }
.kb-iframe {
  background: #fff;
  border: 1px solid var(--wp--preset--color--linie);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(18,58,94,.08);
  padding: 1.25rem;
}
.kb-iframe iframe { display: block; min-height: 1000px; }

/* Service-Karten auf der Startseite */
.kb-karte {
  background: #fff;
  border: 1px solid var(--wp--preset--color--linie);
  border-radius: 8px;
  padding: 1.5rem !important;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.kb-karte:hover { box-shadow: 0 10px 28px rgba(18,58,94,.14); transform: translateY(-2px); }
.kb-karte h3 a { color: var(--wp--preset--color--marine); text-decoration: none; }
.kb-karte h3 a::after { content: " →"; color: var(--wp--preset--color--akzent); }
.kb-karte h3 a:hover, .kb-karte h3 a:focus-visible { text-decoration: underline; }
.kb-karte p { color: var(--wp--preset--color--grau); margin-bottom: 0; }

/* 1.2.1: Kopfzeile der Unterseiten – Kanzleiname bündig über dem Titel */
.kb-seitenkopf .kb-kicker {
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--klein);
  font-weight: 400;
  color: #9CC3E6;
}
