/* R8.4 1.7.1 – Child UX 1.7.5, ohne Eingriff in Eltern-Styles */
:root { --ffux-brand: #961981; --ffux-ink: #281b2c; }

/* Oben und im Expertenteil: bewusst zwei unterschiedliche Kundenbilder. */
main img[src*="krystyna-r84-hero-magenta.webp"] {
  display:block; width:100%; height:100%; min-height:0;
  aspect-ratio: 1 / 1; object-fit:cover; object-position:50% 26%;
}
main img[src*="krystyna-r84-portrait-white.webp"] {
  display:block; width:100%; height:auto; max-height:650px;
  aspect-ratio: 4 / 4.5; object-fit:cover; object-position:50% 22%;
}

/* Markierter dekorativer Strich im Hero ist kein eigener Inhalt. */
.hero .eyebrow::before, .hero .eyebrow::after { display:none!important; }
.hero .eyebrow { padding-left:0!important; }

/* Kontakt: die vorher zusätzlich über dem Formular eingesetzte Warnbox entfällt.
   Klare und kompakte Leistungsabgrenzung erscheint unter dem Formular. */
.ff-r84-scope-inline { display:none!important; }
.ff-r84-legal-under-contact {
  box-sizing:border-box; max-width:1120px; width:calc(100% - 48px);
  margin:16px auto 0; padding:0 0 4px;
  color:rgba(255,255,255,.9); font-size:12px; line-height:1.6;
  text-align:left; font-weight:400;
}
.ff-r84-legal-under-contact p {margin:0!important; max-width:100%; font-size:inherit!important; line-height:inherit!important; color:inherit!important;}
.ff-r84-legal-under-contact strong {color:#fff;font-weight:650;}
.contact-final {padding-bottom:clamp(26px,3.4vw,58px)!important;}
.ff-r84-form-shell {margin-bottom:0!important;}
.ff-r84-form-shell .wpcf7, .ff-r84-form-shell .wpcf7-form {margin-bottom:0;}
.ff-r84-form-shell .wpcf7-response-output {max-width:100%;}
.ff-r84-form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.ff-r84-form-shell textarea,
.ff-r84-form-shell select {box-sizing:border-box;max-width:100%;}

/* Footer: Rechtsblock nicht als dominierende Textwand. */
.ff-r84-footer-small-scope {
  border-top:1px solid rgba(255,255,255,.18); padding-top:16px;
  font-size:12px; line-height:1.6; color:rgba(255,255,255,.75);
}

/* Software-Sektion: vorhandene 6 Softwarekacheln bleiben, darunter
   eine kompakte, inhaltlich nützliche Hinweiskarte statt Leerfläche. */
.ff-r84-software-note {
  box-sizing:border-box; margin-top:16px; padding:18px 20px;
  border:1px solid #e9d6e5; border-left:3px solid var(--ffux-brand);
  border-radius:14px; background:#faf6fa; color:#493b4d;
  box-shadow:0 6px 20px rgba(64,22,59,.04);
}
.ff-r84-software-note strong {display:block; font-size:16px; line-height:1.35; color:#641355;}
.ff-r84-software-note p {font-size:14px;line-height:1.55;margin:8px 0 10px;}
.ff-r84-software-note a {font-size:14px;font-weight:700;color:#7b0f68;text-underline-offset:3px;}
.ff-r84-software-note a:focus-visible {outline:2px solid var(--ffux-brand);outline-offset:4px;}

/* Navigation und Scroll-Anker bleiben bei Sticky-Header zugänglich. */
html {scroll-padding-top:88px;}
main section[id], main [id="kontakt"], main [id="krystyna"] {scroll-margin-top:88px;}
@media (max-width:767px) {
  html {scroll-padding-top:82px;}
  body {overflow-x:hidden;}
  main, .panel, .hero, .contact-final {max-width:100%;}
  main section[id] {scroll-margin-top:82px;}
  .hero h1 {font-size:clamp(30px,8.5vw,43px)!important;line-height:1.11!important;letter-spacing:-.035em!important;}
  .hero .eyebrow {font-size:11px!important;letter-spacing:.1em!important;line-height:1.5!important;}
  .hero p, .panel p {font-size:clamp(15px,4.15vw,17px);line-height:1.62;}
  .panel h2 {font-size:clamp(25px,7vw,35px)!important;line-height:1.17!important;overflow-wrap:normal;}
  .offers-grid, .footer-grid {gap:18px!important;}
  .hero .hero-actions, .hero-actions {gap:10px!important;}
  .hero .hero-actions > a, .hero-actions > a {min-height:48px;box-sizing:border-box;}
  .ff-r84-legal-under-contact {width:calc(100% - 36px);margin-top:12px;font-size:11.5px;line-height:1.58;}
  .ff-r84-form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  .ff-r84-form-shell textarea, .ff-r84-form-shell select {font-size:16px!important;}
  .ff-r84-software-note {padding:15px 16px;}
  .ff-r84-software-note p {font-size:14px!important;}
  main img[src*="krystyna-r84-hero-magenta.webp"] {aspect-ratio:4/4.2;object-position:center 24%;}
  main img[src*="krystyna-r84-portrait-white.webp"] {aspect-ratio:4/4.4;object-position:center 22%;max-height:none;}
}
@media (max-width:390px) {
  .hero h1 {font-size:clamp(29px,8.2vw,34px)!important;}
  .panel h2 {font-size:clamp(23px,6.9vw,28px)!important;}
  .hero p, .panel p {font-size:15px!important;line-height:1.56!important;}
  .hero-actions {display:flex;flex-direction:column;align-items:stretch;}
  .hero-actions > a {width:100%!important;max-width:none!important;text-align:center!important;}
  .ff-r84-software-note {padding:14px!important;}
  .ff-r84-legal-under-contact {font-size:11px;}
}
@media (prefers-reduced-motion:reduce) {
  .ff-r84-software-note {scroll-behavior:auto;}
}

/* 1.7.3: verpflichtender, lesbarer Rechtshinweis auf allen übrigen Seitentypen. */
.ff-r84-footer-small-scope strong{color:#fff;font-weight:700}
.ff-r84-footer-small-scope{display:block;max-width:1120px;margin:20px auto 0;font-size:12px;line-height:1.6;color:rgba(255,255,255,.78)}


/* 1.7.4: beide Qualifikationen mit gemeinsamer Typografie und Unterzeile. */
.cred-grid{align-items:stretch}
.cred-grid .cred{
  box-sizing:border-box;display:flex;flex-direction:column;gap:7px;
  min-width:0;padding:16px 17px!important;text-align:left;
}
.cred-grid .cred strong{
  display:block;margin:0!important;min-height:2.7em;
  font-size:15px!important;font-weight:700;line-height:1.35!important;
  color:#43183e;overflow-wrap:normal;word-break:normal;hyphens:none!important;
}
.cred-grid .cred>span{display:block;margin:0;font-size:13px;line-height:1.5}
.cred-grid .cred strong .ff-r84-qualification-term{
  display:inline!important;white-space:nowrap;font:inherit!important;color:inherit;
}

/* 1.7.4: kurze, gleiche Links statt unterschiedlich hoher Zusatzboxen. */
.ff-r84-sector-grid{align-items:stretch;grid-auto-rows:1fr}
.ff-r84-sector-grid .segment{
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;
  min-width:0;padding:20px;gap:10px;
}
.ff-r84-sector-grid .segment h3{margin:0;font-size:20px;line-height:1.25}
.ff-r84-sector-grid .segment p{margin:0;font-size:15px;line-height:1.55}
.ff-r84-card-link{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  gap:7px;align-self:flex-start;flex:0 0 auto;max-width:100%;min-height:38px;
  padding:7px 12px;margin-top:auto;border:1px solid #961981;border-radius:8px;
  background:#fff;color:#7b0f68;text-decoration:none;
  font-size:14px!important;font-weight:700;line-height:1.35;text-align:center;
}
.ff-r84-card-link span{display:inline;font:inherit;color:inherit}
.ff-r84-card-link:hover{background:#faeff8;color:#661156}
.ff-r84-card-link:focus-visible{outline:3px solid #961981;outline-offset:3px}
.ff-r84-hub-grid{align-items:stretch}
.ff-r84-hub-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.ff-r84-hub-card h3{margin-bottom:0}
.ff-r84-hub-card .ff-r84-card-link{margin-top:4px}

/* Alltag und Gespräch bleiben innerhalb des vorhandenen dunklen Abschnitts. */
.ff-r84-everyday .pain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ff-r84-everyday .pain-side{padding:clamp(23px,2.5vw,31px);min-width:0}
.ff-r84-everyday .pain-side h3{font-size:23px;line-height:1.3;margin-bottom:16px}
.ff-r84-everyday .pain-side p{font-size:16px;line-height:1.6;color:#ecdfec;margin:0 0 14px}
.ff-r84-everyday .pain-side p:last-child{margin-bottom:0}
.ff-r84-everyday .pain-side .ff-r84-pain-result{color:#f2d658;font-weight:700}
/* 1.7.5: eine kompakte Gesprächsleiste direkt unter den Alltagskarten. */
.ff-r84-conversation{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:18px 28px;margin-top:20px;padding-top:20px;border-top:1px solid #68536e;
}
.ff-r84-conversation>div{min-width:0}
.ff-r84-conversation h3{color:#fff;font-size:24px;line-height:1.3;margin:0 0 8px}
.ff-r84-conversation p{color:#ecdfec;font-size:16px;line-height:1.6;max-width:64ch;margin:0}
.ff-r84-conversation .btn{justify-self:end;max-width:100%;margin:0;white-space:nowrap}

@media(max-width:980px){
  .ff-r84-everyday .pain-grid{grid-template-columns:1fr}
}
@media(max-width:860px){
  .ff-r84-conversation{grid-template-columns:1fr;gap:16px}
  .ff-r84-conversation .btn{justify-self:start;white-space:normal}
}
@media(max-width:640px){
  .ff-r84-sector-grid{grid-auto-rows:auto}
  .ff-r84-sector-grid .segment{padding:18px;gap:10px}
  .ff-r84-sector-grid .segment h3{font-size:19px}
  .ff-r84-card-link{min-height:44px;margin-top:3px}
  .ff-r84-everyday .pain-side h3{font-size:21px}
  .ff-r84-conversation h3{font-size:22px}
  .ff-r84-everyday .pain-side p,.ff-r84-conversation p{font-size:15px;line-height:1.56}
  .ff-r84-conversation .btn{width:100%;max-width:100%;text-align:center}
  .hero-links{display:flex;flex-wrap:wrap;gap:10px}
  .hero-links .btn{max-width:100%;white-space:normal}
}
@media(max-width:390px){
  .hero-links{flex-direction:column;align-items:stretch}
  .hero-links .btn{width:100%;text-align:center}
}

/* Softwarepraxis: sieben gleichwertige Programme, vier plus drei. */
#software-title{hyphens:none;overflow-wrap:normal;word-break:normal}
#software .ff-software-seven{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
#software .ff-software-seven>span{grid-column:span 2;display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:10px 7px;text-align:center;font-size:14px;line-height:1.35}
#software .ff-software-seven>span:nth-child(5){grid-column:2/span 2}
@media(max-width:760px){
#software .ff-software-seven>span{min-height:60px}
#software .ff-software-seven{grid-template-columns:repeat(6,minmax(0,1fr))}
#software .ff-software-seven>span:nth-child(4),#software .ff-software-seven>span:nth-child(6){grid-column:2/span 2}
#software .ff-software-seven>span:nth-child(5),#software .ff-software-seven>span:nth-child(7){grid-column:4/span 2}
}
