/* ══ Design tokens ══════════════════════════════════════════ */
:root {
  --base: #fafaf7;
  --dark: #181c18;
  --accent: #00b4a0;
  --accent-light: #00d4bc;
  --text: #1a1a1a;
  --muted: #555;
  --radius: 6px;
  --container: 1100px;
}

/* ══ Reset & base ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--base);
}
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; margin-top: 0; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
ul,ol { padding-left: 1.5rem; }
li { margin-bottom: .4rem; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  padding-block: 4rem;
}

/* ══ Buttons ════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s;
  border: 2px solid transparent;
}
.btn:hover { filter: brightness(1.1); }
.btn--primary  { background: var(--accent); color: #fff; }
.btn--outline  { background: transparent; border-color: #fff; color: #fff; }
.btn--lg       { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--nav      { background: var(--accent); color: #fff !important; padding: .45rem 1.2rem; border-radius: var(--radius); font-size: .9rem; }

/* ══ Site header ════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a5060;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.site-logo img { height: 44px; width: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover { color: #fff; }

/* ══ Hero ═══════════════════════════════════════════════════ */
.hero {
  background-color: #317c92;
  background-image: url('img/murmuration.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  color: #fff;
  padding-block: 6rem 5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,18,28,.15);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding-block: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 720px; margin-bottom: 1.5rem; }
.hero-intro {
  font-size: 1.1rem;
  max-width: 680px;
  opacity: .9;
  margin-bottom: 1rem;
}
.hero-leitfrage {
  font-size: 1.25rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-intro .text-bg,
.hero-leitfrage .text-bg {
  background: rgba(0,18,28,.68);
}
.text-bg {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: rgba(0,18,28,.52);
  padding: .15em .45em;
  border-radius: 4px;
  line-height: 2.1;
}

/* ══ Intro section ══════════════════════════════════════════ */
.intro-section { background: var(--base); }
.intro-section h2 { color: var(--accent); font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 1.25rem; }
.intro-section p  { max-width: 740px; font-size: 1.05rem; }

/* ══ Schwerpunkte ═══════════════════════════════════════════ */
.schwerpunkte { background: #f4f1ec; }
.section-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2rem; }
.schwerpunkte__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 2rem;
}
.schwerpunkt-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.schwerpunkt-card .card-body { flex: 1; }
.schwerpunkt-card .kernaussage { margin-top: 0; }
.schwerpunkt-card .btn { align-self: flex-start; margin-top: 1.25rem; }
.schwerpunkt-card h3 { color: var(--accent); margin-bottom: 1rem; }
.schwerpunkt-card .leitfrage { font-style: italic; color: var(--accent-light); margin-bottom: .75rem; }
.kernaussage {
  background: rgba(38,106,126,.09);
  color: var(--dark);
  border-left: 3px solid var(--accent);
  padding: .875rem 1.25rem;
  margin-top: 1.25rem;
  font-style: italic;
  font-size: .9375rem;
  line-height: 1.6;
}
.subpage-hero .kernaussage,
.wirklogik .kernaussage,
.subpage-section--dark .kernaussage {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ══ Wirklogik ══════════════════════════════════════════════ */
.wirklogik {
  background-color: #317c92;
  background-image: url('img/murmuration.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  color: #fff;
}
.wirklogik::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,22,16,.70);
  pointer-events: none;
}
.wirklogik .container { position: relative; z-index: 1; }
.wirklogik h2 { color: #fff; margin-bottom: 2rem; }
.steps-list { padding-left: 0; list-style: none; counter-reset: step; }
.steps-list > li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: .9rem;
  top: 1.15rem;
  font-weight: 700;
  color: var(--accent-light);
  font-size: 1.1rem;
}
.steps-list--detailed > li { margin-bottom: 2rem; }
.wl-schluss { margin-top: 2rem; font-style: italic; opacity: .85; }
.steps-list > li > ul { list-style: none; padding-left: 0; margin: .75rem 0 0; }
.steps-list > li > ul li { padding: .35rem 0 .35rem 1.25rem; position: relative; font-size: .9rem; opacity: .85; }
.steps-list > li > ul li::before { content: –; position: absolute; left: 0; color: var(--accent-light); }

/* ══ CTA section ════════════════════════════════════════════ */
.hp-cta {
  background: #1e3426;
  color: #fff;
  text-align: center;
}
.hp-cta .container { padding-block: 5rem; }
.hp-cta h2 { color: #fff; font-size: clamp(1.5rem,4vw,2.5rem); margin-bottom: 1rem; }
.hp-cta p  { opacity: .9; margin-bottom: 2rem; }
.hp-cta .btn--primary { background: var(--accent); color: #fff; }
.hp-cta .btn--primary:hover { background: var(--accent-light); color: #fff; }

/* ══ Subpage templates ══════════════════════════════════════ */
.subpage-hero {
  background-color: #317c92;
  background-image: url('img/murmuration.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  position: relative;
  color: #fff;
}
.subpage-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,18,28,.15);
  pointer-events: none;
}
.subpage-hero .container { position: relative; z-index: 1; padding-block: 4rem 3rem; }
.subpage-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1.25rem; }
.subpage-hero__intro { font-size: 1.1rem; max-width: 700px; opacity: .9; }
.subpage-sub { color: var(--accent-light); font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }

.subpage-section { background: var(--base); }
.subpage-section--dark {
  background-color: #317c92;
  background-image: url('img/murmuration.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  color: #fff;
}
.subpage-section--dark::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,18,28,.15);
  pointer-events: none;
}
.subpage-section--dark .container { position: relative; z-index: 1; }
.subpage-section h2,
.subpage-section--dark h2 {
  font-size: clamp(1.4rem,3vw,2rem);
  margin-bottom: 1.5rem;
}
.subpage-section--dark h2 { color: #fff; }
.subpage-section--dark p  { opacity: .9; }
.subpage-section--dark ul li,
.subpage-section--dark ol li { color: rgba(255,255,255,.9); }
.subpage-h2 { color: var(--accent); }

/* ══ Two-column compare ─────────────────────────────────── */
.two-col-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 640px) { .two-col-compare { grid-template-columns: 1fr; } }
.compare-col { padding: 1.5rem; border-radius: var(--radius); }
.compare-col--old { background: #ede9e3; }
.compare-col--new { background: #1a5060; color: #fff; }
.compare-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.compare-col--old h3 { color: var(--muted); }
.compare-col--new h3 { color: var(--accent-light); }
.compare-col ul { margin: 0; }
.compare-col--new li { color: rgba(255,255,255,.9); }

/* ══ USP satz ───────────────────────────────────────────── */
.usp-satz {
  background: var(--accent);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-top: 2rem;
}

/* ══ Leistungen grid ────────────────────────────────────── */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.leistung-card {
  border: 1px solid #e4e7ec;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.leistung-card h3 { color: var(--accent); margin-bottom: .75rem; font-size: 1rem; }

/* ══ Team grid ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.team-card-new h3 { color: var(--accent); margin-bottom: .25rem; }
.team-rolle { color: var(--muted); font-weight: 600; margin-bottom: 1rem; font-size: .95rem; }

/* ══ Kontakt ────────────────────────────────────────────── */
.kontakt-fragen { margin: 1.5rem 0; }
.kontakt-fragen li { color: rgba(255,255,255,.85); }
.kontakt-form-wrap,
.kontakt-hinweis { max-width: 640px; }
.kontakt-hinweis { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e4e7ec; }

/* ══ Site footer ════════════════════════════════════════════ */
.site-footer {
  background: #1a5060;
  color: rgba(255,255,255,.7);
  padding-block: 2.5rem;
}
.site-footer .container { padding-block: 0; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-tagline { font-style: italic; margin: 0; opacity: .8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin: .75rem 0 0; font-size: .8rem; text-align: right; }

/* ══ Responsive ═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-nav ul { gap: 1rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-block: 4rem 3rem; }
  .hero-buttons { flex-direction: column; }
}

/* Lernen-Sektion */
.lernen-items { list-style: none; padding: 0; margin: 1.5rem 0; }
.lernen-items li { padding: .65rem 0 .65rem 1.5rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9375rem; line-height: 1.65; color: rgba(255,255,255,.8); }
.lernen-items li:last-child { border-bottom: none; }
.lernen-items li::before { content: '—'; position: absolute; left: 0; color: var(--accent-light); }
.lernen-items strong { color: #fff; }

/* ══ Section variants for visual separation ═════════════════ */
.subpage-section--alt { background: #f2ede7; }
.subpage-section--dark2 {
  background: #1a2e22;
  color: #fff;
}
.subpage-section--dark2 .subpage-h2,
.subpage-section--dark2 h2 { color: #fff; }
.subpage-section--dark2 .kernaussage { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.subpage-section--dark2 .lernen-items li { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.1); }
.subpage-section--dark2 .lernen-items li::before { color: var(--accent-light); }
.subpage-section--dark2 strong { color: #fff; }
.subpage-section--dark2 p { color: rgba(255,255,255,.82); }
.subpage-section--dark2 .subpage-intro { color: rgba(255,255,255,.82); }

/* Über uns – Kontrast-Liste im Hero */
.uu-kontrast-list { list-style: none; padding: 0; margin: 1.75rem 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.uu-kontrast-list li { color: rgba(255,255,255,.85); font-size: 1rem; padding-left: 1.5rem; position: relative; line-height: 1.5; }
.uu-kontrast-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-light); font-size: .9rem; }

/* ── Über uns: Team-Zwischentitel ── */
.subpage-zwischentitel { font-size: 1.15rem; font-weight: 600; color: rgba(255,255,255,.8); margin: 0 0 1rem; letter-spacing: .02em; }

/* ── Startseite: Wirklogik Intro ── */
.wl-intro { font-size: 1.05rem; color: rgba(255,255,255,.85); margin: 0 0 1.25rem; }

/* ── Footer: Kurztext ── */
.footer-brand { display: flex; flex-direction: column; gap: .75rem; max-width: 42rem; }
.footer-name { font-weight: 700; font-size: 1rem; margin: 0 0 .6rem; color: #fff; }
.footer-kurztext { font-size: .875rem; line-height: 1.6; opacity: .75; margin: 0; }

/* hervorgehobene Frage in Steps */
.steps-list--detailed .leitfrage {
  font-style: italic;
  color: var(--accent-light);
  font-size: 1.05rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: .75rem 0;
}

/* ══ Contact Form 7 ──────────────────────────────────────── */
.wpcf7 { width: 100%; }
.wpcf7 form { display: flex; flex-direction: column; gap: 1.25rem; }

.cf7-row { display: flex; flex-direction: column; gap: .4rem; }
.cf7-row label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: .01em;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius, 6px);
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38,106,126,.12);
}

.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23266a7e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.wpcf7 textarea { min-height: 140px; resize: vertical; }

/* Acceptance / Datenschutz */
.wpcf7 .wpcf7-acceptance { display: flex; align-items: flex-start; gap: .6rem; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem;
  margin-top: .15rem; flex-shrink: 0;
  accent-color: var(--accent);
  border: none; padding: 0;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: .875rem; color: #555; line-height: 1.5;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .8rem 2rem;
  border-radius: var(--radius, 6px);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .02em;
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-light); }

/* Validation & response */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: .8rem; color: #c0392b; margin-top: .2rem;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
  border-color: #c0392b;
}
.wpcf7 .wpcf7-response-output {
  margin-top: 1rem; padding: .75rem 1rem;
  border-radius: var(--radius, 6px);
  font-size: .9rem; border: none;
}
.wpcf7 .wpcf7-mail-sent-ok { background: #d4edda; color: #155724; }
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors { background: #f8d7da; color: #721c24; }

/* Two-col on wider screens */
@media (min-width: 640px) {
  .cf7-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* Form ausblenden nach Versand */
.wpcf7 form.sent .cf7-row,
.wpcf7 form.sent .cf7-grid-2,
.wpcf7 form.sent .wpcf7-acceptance,
.wpcf7 form.sent input[type="submit"] { display: none; }

.wpcf7 form.sent .wpcf7-response-output {
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius, 6px);
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  border: none;
}

/* ══ Legal pages ───────────────────────────────────────── */
.legal-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin: 2rem 0 .5rem; }
.legal-body h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 1.5rem 0 .4rem; }
.legal-body p  { line-height: 1.75; margin-bottom: 1rem; }
.legal-body ul { margin: .5rem 0 1rem 1.5rem; }
.legal-body ul li { margin-bottom: .35rem; line-height: 1.6; }

/* ══ Teal + Koralle: zweite Akzentfarbe, hellere Flaechen ════ */
:root {
  --accent2: #ff6b5c;
  --accent2-light: #ff8a7a;
  --tint-teal: #e9faf7;
  --tint-coral: #fff1ee;
}

/* grosse warmgraue Flaechen bekommen Farbe */
.intro-section { background: var(--tint-teal); }
.schwerpunkte  { background: var(--tint-teal); }
.subpage-section--alt { background: var(--tint-coral); }

/* Karten: farbiger Oberrand, abwechselnd Teal/Koralle */
.schwerpunkt-card, .leistung-card { border-top: 4px solid var(--accent); }
.schwerpunkte__grid > .schwerpunkt-card:nth-child(even),
.leistungen-grid > .leistung-card:nth-child(even) { border-top-color: var(--accent2); }
.schwerpunkte__grid > .schwerpunkt-card:nth-child(even) h3,
.leistungen-grid > .leistung-card:nth-child(even) h3 { color: var(--accent2); }
.schwerpunkte__grid > .schwerpunkt-card:nth-child(even) .leitfrage { color: var(--accent2-light); }
.schwerpunkte__grid > .schwerpunkt-card:nth-child(even) .kernaussage {
  border-left-color: var(--accent2);
  background: rgba(255,107,92,.08);
}
.schwerpunkte__grid > .schwerpunkt-card:nth-child(even) .btn--primary { background: var(--accent2); }

/* USP-Banner in Koralle, CTA in Teal (flach, kein Verlauf) */
.usp-satz { background: var(--accent2); }
.hp-cta   { background: var(--accent); }
.hp-cta .btn--primary { background: #fff; color: var(--accent); }
.hp-cta .btn--primary:hover { background: var(--accent2-light); color: #fff; }

/* Koralle als Akzent in Hero, Steps, Nav-Button */
.hero-leitfrage { color: #fff; }
.steps-list > li:nth-child(even) { border-left-color: var(--accent2); }
.steps-list > li:nth-child(even)::before { color: var(--accent2-light); }
.btn--nav { background: var(--accent2); }

/* ── Ueber uns: Team (Klassen uu-* waren ungestylt) ── */
.uu-team-intro { margin-bottom: 2.5rem; }
.uu-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.uu-person h3 { color: var(--accent); margin-bottom: .25rem; font-size: 1.15rem; }
.uu-team-grid > .uu-person:nth-child(even) h3 { color: var(--accent2); }
.uu-bio { margin-top: .75rem; }

.uu-person-photo {
  margin-bottom: 1.5rem;
}
.uu-person-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

/* Hero mit hellem Murmuration-Bild: Schrift lesbar halten */
.hero h1,
.hero-intro,
.hero-leitfrage { text-shadow: 0 1px 12px rgba(0,30,40,.45); }

/* ── Team: Social-Links ───────────────────────────── */
.uu-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.uu-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.uu-social__link:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}
.uu-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Footer: Social-Icons ─────────────────────────── */
.footer-social {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  transition: background .2s, transform .15s;
}
.footer-social__link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
