/*
Theme Name: TST Klar
Theme URI: https://tstimmobilien.de/
Author: SPET / TST Immobilien
Description: Schlankes, barrierearmes Block-Theme für die TST Immobilien GmbH. Ohne externe Fonts und Tracker.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: tst-klar
*/

/* Farbwelt: Anthrazit, Weiß und Dachgrün, aus dem vorliegenden TST-Logo abgeleitet. Exakten Grünton am Original-Logo verifizieren. */
:root {
  --tst-ink: #191b19;
  --tst-ink-soft: #292d29;
  --tst-green: #126f63;
  --tst-green-dark: #09574d;
  --tst-muted: #5d665f;
  --tst-bg: #f7f8f5;
  --tst-border: #dde6de;
  --tst-white: #fff;
  --tst-radius: 20px;
  --tst-shadow: 0 18px 50px rgb(17 47 53 / 6%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #e9b968;
  outline-offset: 4px;
}
.wp-site-blocks { overflow: clip; }
.wp-block-post-content > :first-child { margin-block-start: 0; }
.wp-block-post-content > :last-child { margin-block-end: 0; }
.tst-header {
  background: var(--tst-white);
  border-bottom: 1px solid var(--tst-border);
  position: relative;
  z-index: 5;
}
.tst-header .tst-header-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 19px clamp(20px, 4.2vw, 48px);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.tst-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.tst-brand-mark {
  background: var(--tst-ink);
  color: #fff;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1;
  padding: 11px 9px 10px;
  letter-spacing: -.07em;
  font-weight: 800;
}
.tst-brand-label { color: var(--tst-ink); font-size: 1.06rem; letter-spacing: -.018em; font-weight: 730; line-height: 1.22; }
.tst-brand-label a { color: var(--tst-ink); text-decoration: none; }\n.tst-brand .wp-block-site-logo { flex: 0 0 auto; }\n.tst-brand .wp-block-site-logo img { width: 58px; height: auto; display: block; }
.tst-header a { text-decoration: none; }
.tst-header .wp-block-navigation { font-size: .9rem; font-weight: 590; }
.tst-header .wp-block-navigation a { color: var(--tst-ink); }
.tst-header .wp-block-navigation a:hover { color: var(--tst-green); }
.tst-nav-cta { background: var(--tst-ink); padding: 10px 17px; border-radius: 9px; }
.tst-nav-cta a { color: var(--tst-white) !important; }
.tst-main { padding-block-end: 0; }
.tst-hero {
  max-width: 1180px !important;
  margin: 30px auto 0 !important;
  padding: clamp(34px, 5.5vw, 76px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 83% 20%, #26382b 0%, transparent 45%), var(--tst-ink);\n  border-top: 4px solid var(--tst-green);
  color: #fff;
  box-shadow: var(--tst-shadow);
  position: relative;
  overflow: hidden;
}
.tst-hero h1, .tst-hero h2, .tst-hero p { color: inherit; }
.tst-hero h1 { letter-spacing: -.052em; max-width: 720px; margin-block: 17px 22px; }
.tst-hero p.tst-lead { font-size: clamp(1.08rem, 1.45vw, 1.28rem); max-width: 595px; color: #e6eee6; }
.tst-hero-grid { align-items: center !important; gap: clamp(24px,5vw,70px) !important; }
.tst-hero-grid .wp-block-column:first-child { flex-basis: 62%; }
.tst-hero-grid .wp-block-column:last-child { flex-basis: 38%; }
.tst-eyebrow {
  font-size: .77rem !important;
  font-weight: 760 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tst-green) !important;
  margin-block: 0 11px;
}
.tst-hero .tst-eyebrow { color: #a3d3a6 !important; }
.tst-actions { margin-block-start: 29px; gap: 12px !important; }
.tst-actions .wp-block-button__link { padding: 13px 20px; border: 1px solid transparent; font-weight: 700; text-decoration: none; }
.tst-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--tst-ink); }
.tst-actions .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid #829889; color: #fff; background: transparent; }
.tst-actions .wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.tst-number-panel {
  min-height: 315px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  background: linear-gradient(140deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%));
  padding: 33px 32px 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.tst-number-panel::after {
  content: "";
  width: 170px; height: 100px; position: absolute; right: -18px; bottom: 44px;
  border: 1px solid rgb(138 208 145 / 30%); transform: skewY(-25deg); border-radius: 3px;
  pointer-events: none;
}
.tst-number-panel .tst-number { font-size: clamp(5rem, 9vw, 8rem); letter-spacing: -.11em; line-height: .95; color: #fff; font-weight: 730; margin: 0; }
.tst-number-panel .tst-stat-label { color: #e1efe2; font-size: .95rem; max-width: 210px; }
.tst-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 6px 12px;
  color: #3e5142 !important;
  background: #eaf1ea;
  border: 1px solid #d7e5d8;
  border-radius: 999px;
  font-size: .76rem !important;
  line-height: 1.35;
  font-weight: 690;
}
.tst-status::before { content: ""; background: #88a18c; width: 7px; height: 7px; border-radius: 50%; }
.tst-hero .tst-status { color: #eef5ef !important; background: #354c39; border-color: #5a765e; }
.tst-hero .tst-status::before { background: #a3caab; }
.tst-section { padding-block: clamp(46px, 7vw, 94px); }
.tst-section-tight { padding-block: clamp(32px, 5.5vw, 65px); }
.tst-section-title { font-size: clamp(2rem, 3.3vw, 2.85rem) !important; letter-spacing: -.045em; margin-block: 8px 18px !important; }
.tst-section-intro { color: var(--tst-muted); max-width: 650px; font-size: 1.06rem; }
.tst-card-grid { gap: 20px !important; margin-block-start: 32px !important; }
.tst-card-grid .wp-block-column { min-width: 0; }
.tst-card {
  border: 1px solid var(--tst-border);
  border-radius: var(--tst-radius);
  background: var(--tst-white);
  box-shadow: 0 5px 20px rgb(26 50 55 / 3%);
  padding: clamp(23px, 3vw, 35px);
  height: 100%;
}
.tst-card h2, .tst-card h3 { font-size: clamp(1.33rem,1.8vw,1.65rem); letter-spacing: -.028em; margin-block: 16px 10px; }
.tst-card p { color: var(--tst-muted); }
.tst-card .tst-card-number { color: var(--tst-green) !important; font-size: .78rem; font-weight: 760; letter-spacing: .13em; }
.tst-card .tst-card-link, .tst-card a { font-weight: 670; }
.tst-card .tst-card-bottom { margin-block-start: auto; }
.tst-card:hover { border-color: #b6d6bc; box-shadow: var(--tst-shadow); }
.tst-card .tst-status { margin-block-start: 8px; }
.tst-light-band { background: #edf2eb; }
.tst-cta-band {
  background: var(--tst-ink);
  color: #fff;
  border-radius: var(--tst-radius);
  padding: clamp(28px, 5vw, 55px);
}
.tst-cta-band h2, .tst-cta-band p { color: inherit; }
.tst-cta-band h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.tst-cta-band .wp-block-button__link { background: #fff; color: var(--tst-ink); font-weight: 740; }
.tst-page-header { padding-block: 70px 42px; }
.tst-page-header h1 { font-size: clamp(2.6rem, 5vw, 4rem) !important; max-width: 840px; letter-spacing: -.05em; }
.tst-page-header p:not(.tst-eyebrow) { color: var(--tst-muted); max-width: 730px; font-size: 1.12rem; }
.tst-steps { counter-reset: step; }
.tst-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--tst-border);
  padding-top: 19px;
}
.tst-step-number { font-size: .84rem !important; font-weight: 760 !important; color: var(--tst-green) !important; }
.tst-step h3 { margin: 0; font-size: 1.17rem; }
.tst-step p { color: var(--tst-muted); margin: 0; }
.tst-disclaimer {
  border-left: 3px solid var(--tst-green);
  background: #eef5ef;
  color: #455747;
  padding: 16px 20px;
  border-radius: 0 9px 9px 0;
  font-size: .93rem;
}
.tst-footer {
  border-top: 1px solid var(--tst-border);
  background: #fff;
  color: var(--tst-muted);
  padding-block: 40px;
  margin-block-start: 80px;
}
.tst-footer .tst-footer-inner { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px,4vw,48px); }
.tst-footer strong { color: var(--tst-ink); }
.tst-footer a { color: var(--tst-ink); }
.tst-footer .wp-block-navigation { font-size: .88rem; }
.tst-footer small { font-size: .8rem; }
.tst-readability { max-width: 760px; }
.tst-readability p { color: var(--tst-muted); }
.tst-missing-form {
  border: 1px dashed #a6bdaa; border-radius: 14px; padding: 25px;
  background: #eff5ef; color: #2c4932;
}
@media (max-width: 860px) {
  .tst-header .tst-header-inner { padding-inline: 22px; }
  .tst-hero { margin-inline: 18px !important; padding: 36px 30px; }
  .tst-hero-grid { flex-wrap: wrap !important; }
  .tst-hero-grid .wp-block-column:first-child, .tst-hero-grid .wp-block-column:last-child { flex-basis: 100% !important; }
  .tst-number-panel { min-height: 215px; }
  .tst-number-panel .tst-number { font-size: 5.7rem; }
  .tst-card-grid { flex-wrap: wrap !important; }
  .tst-card-grid .wp-block-column { flex-basis: calc(50% - 12px); }
}
@media (max-width: 600px) {
  .tst-header .tst-header-inner { padding-inline: 16px; }
  .tst-brand-label { font-size: .94rem; }
  .tst-brand .wp-block-site-logo img { width: 48px; }
  .tst-hero { margin: 15px 12px 0 !important; padding: 34px 23px; border-radius: 16px; }
  .tst-actions { flex-direction: column; align-items: stretch !important; }
  .tst-actions .wp-block-button, .tst-actions .wp-block-button__link { width: 100%; text-align: center; }
  .tst-card-grid .wp-block-column { flex-basis: 100%; }
  .tst-section { padding-block: 45px; }
  .tst-page-header { padding-block: 45px 22px; }
  .tst-footer .tst-footer-inner { gap: 24px; }
  .tst-number-panel::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tst-actions .wp-block-button .wp-block-button__link:hover { transform: none; }
}
