/*
Theme Name: CFM Child
Theme URI: https://cashflow-modelling.de
Description: Child theme for a premium cashflow modelling layout
Author: STRATON
Template: twentytwentyfive
Version: 1.0.0
Text Domain: cfm-child
*/

:root {
  --cfm-bg: #f2f6fb;
  --cfm-surface: #ffffff;
  --cfm-ink: #12253a;
  --cfm-muted: #5b6f84;
  --cfm-primary: #0f4c81;
  --cfm-primary-strong: #0b3a63;
  --cfm-border: #d6e0ec;
  --cfm-radius: 16px;
  --cfm-shadow: 0 14px 40px rgba(16, 45, 77, 0.10);
}

body {
  background: radial-gradient(1200px 500px at 100% -20%, #dfefff 0%, transparent 60%), var(--cfm-bg);
  color: var(--cfm-ink);
}

.wp-site-blocks {
  background: transparent;
}

main.wp-block-group {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-post-title {
  display: none;
}

.cfm-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.cfm-hero {
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--cfm-shadow);
  margin: 12px auto 26px;
}

.cfm-hero-home {
  background-image: linear-gradient(112deg, rgba(8, 24, 41, 0.86) 0%, rgba(8, 24, 41, 0.58) 48%, rgba(8, 24, 41, 0.35) 100%), url('/wp-content/uploads/2026/06/cashflow-hero-bg.png');
}

.cfm-hero-inner {
  padding: clamp(26px, 5.4vw, 66px);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: end;
}

.cfm-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.34);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.cfm-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cfm-lead {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.62;
  max-width: 64ch;
  margin: 0 0 20px;
}

.cfm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

a.wp-element-button,
.wp-element-button {
  background: var(--cfm-primary);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 650;
  text-decoration: none;
}

a.wp-element-button:hover,
.wp-element-button:hover {
  background: var(--cfm-primary-strong);
}

.cfm-btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.42);
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  text-decoration: none;
  backdrop-filter: blur(2px);
}

.cfm-hero-panel {
  background: rgba(255,255,255,0.93);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 16px;
}

.cfm-hero-panel h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.cfm-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.cfm-kpi {
  background: #f7fafe;
  border: 1px solid var(--cfm-border);
  border-radius: 10px;
  padding: 10px;
}

.cfm-kpi strong {
  display: block;
  font-size: 1.12rem;
  color: var(--cfm-primary-strong);
}

.cfm-section {
  margin: 20px auto;
}

.cfm-card {
  background: var(--cfm-surface);
  border: 1px solid var(--cfm-border);
  border-radius: var(--cfm-radius);
  box-shadow: var(--cfm-shadow);
  padding: clamp(16px, 2vw, 22px);
}

.cfm-section h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  margin: 0 0 12px;
}

.cfm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cfm-card-grid > .cfm-card {
  height: 100%;
}

.cfm-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.cfm-icon-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.cfm-icon-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--cfm-ink);
}

.cfm-icon-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  color: var(--cfm-primary);
  font-weight: 700;
}

.cfm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.cfm-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--cfm-border);
}

.cfm-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cfm-step {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--cfm-border);
  border-radius: 12px;
  padding: 14px;
}

.cfm-step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--cfm-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.cfm-cta-band {
  background: linear-gradient(135deg, #0f4c81 0%, #0b3a63 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  align-items: center;
}

.cfm-cta-band h3,
.cfm-cta-band p {
  color: #fff;
  margin: 0;
}

.cfm-cta-band .wp-element-button {
  background: #fff;
  color: var(--cfm-primary-strong) !important;
}

.cfm-titlebar {
  border-radius: 20px;
  padding: clamp(26px, 4vw, 52px);
  background-size: cover;
  background-position: center;
  box-shadow: var(--cfm-shadow);
  color: #fff;
}

.cfm-titlebar-services {
  background-image: linear-gradient(120deg, rgba(10, 30, 49, 0.82), rgba(10, 30, 49, 0.52)), url('/wp-content/uploads/2026/06/cashflow-hero-bg.png');
}

.cfm-titlebar h1,
.cfm-titlebar p {
  color: #fff;
  margin: 0 0 8px;
}

.cfm-faq details {
  border: 1px solid var(--cfm-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.cfm-faq summary {
  cursor: pointer;
  font-weight: 620;
}

@media (max-width: 980px) {
  .cfm-hero-inner,
  .cfm-split,
  .cfm-cta-band { grid-template-columns: 1fr; }
  .cfm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfm-card-grid { grid-template-columns: 1fr; }
  .cfm-hero-inner { min-height: 0; }
}

@media (max-width: 640px) {
  .cfm-steps { grid-template-columns: 1fr; }
}
