/* Content spacing and typography matched to toowie.de.
   Keep the existing navigation and angled product previews. */

:root{
  --content-max-width:1560px;
  --content-gutter:clamp(24px,3.5vw,48px);
  --hero-text-gold:#d8b77f;
}

@media (min-width:1051px){
  .hero > .shell.hero-grid,
  .lead-manager-page .lead-hero > .shell.lead-hero-grid{
    width:calc(100% - 2 * var(--content-gutter)) !important;
    max-width:var(--content-max-width) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .hero .hero-visual,
  .lead-manager-page .lead-hero-visual{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    justify-self:end !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .hero .hero-browser,
  .lead-manager-page .lead-hero-browser{
    width:100% !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:0 !important;
  }

  .hero .float-card-call{
    left:14px !important;
    right:auto !important;
  }

  .hero .float-card-leads,
  .hero .float-card-flow,
  .hero .float-card-notes{
    right:14px !important;
  }

  .home-page main > section:not(.hero) .shell,
  .lead-manager-page main .shell,
  .features-page main .shell,
  main.page,
  main.page .price-hero-shell{
    width:calc(100% - 2 * var(--content-gutter)) !important;
    max-width:var(--content-max-width) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

.shell.layout-shell{
  width:calc(100% - 2 * var(--content-gutter)) !important;
  max-width:var(--content-max-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.home-page main{
  font-family:Inter,Arial,sans-serif;
}

.home-page .hero h1{
  font-size:clamp(42px,4.15vw,71.2px);
  font-weight:780;
  line-height:.97;
  letter-spacing:-.055em;
  max-width:100%;
}

.home-page .hero h1 span,
.home-page .final-copy h2 span{
  color:var(--hero-text-gold);
}

.home-page .hero-subline{
  font-size:clamp(20px,1.6vw,25.6px);
  font-weight:700;
  line-height:1.35;
}

.home-page .hero-lead{
  font-size:19.2px;
  line-height:1.72;
}

/* Mirror column widths with the content: screenshots always get the wide side. */
@media(min-width:401px){
  .home-page #gespraech .phase-detail-reverse,
  .lead-manager-page .lead-feature-row.lead-feature-reverse{
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr) !important;
  }

  .home-page #gespraech .phase-detail-reverse .phase-detail-copy,
  .lead-manager-page .lead-feature-reverse .lead-feature-copy{
    width:100%;
    max-width:560px;
    min-width:0;
    justify-self:end;
    text-align:left;
  }
}

@media(min-width:1051px){
  .home-page #gespraech .phase-detail-reverse,
  .lead-manager-page .lead-feature-row.lead-feature-reverse{
    column-gap:clamp(56px,4.5vw,80px);
  }
}

/* Interactive screenshot callouts use the same click cue as the main website. */
:is(.home-page,.lead-manager-page) .hero .float-card.is-interactive{
  padding-right:40px !important;
  background:#fbf7ef;
  border-color:#cbd5e1;
  box-shadow:0 5px 16px rgba(15,23,42,.16);
  cursor:pointer;
}

:is(.home-page,.lead-manager-page) .hero .float-card > div{
  min-width:0;
}

:is(.home-page,.lead-manager-page) .hero .float-card b{
  color:#8a652d;
  font-size:12.5px !important;
  line-height:1.25 !important;
}

:is(.home-page,.lead-manager-page) .hero .float-card small{
  color:#526071;
  font-size:11px !important;
  line-height:1.35 !important;
}

:is(.home-page,.lead-manager-page) .hero .callout-click-icon{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:23px;
  height:23px;
  color:#8a652d;
  pointer-events:none;
}

.home-page .hero .float-card.is-interactive.is-active,
.lead-manager-page .hero .float-card.is-interactive:is(:hover,:focus-visible,.is-active){
  background:#f8efdf;
  border-color:#b88c49;
  box-shadow:0 7px 20px rgba(15,23,42,.21);
}

/* Keep callouts above the screenshot's dimming layer on small screens. */
@media(max-width:822px){
  .home-page .hero .hero-scroll-card{
    z-index:3;
  }
}

/* The same type hierarchy on all public product and order pages. */
body.readable-page main#page-content{
  font-family:Inter,Arial,sans-serif;
}

body.readable-page main#page-content .hero h1{
  font-size:clamp(42px,4.15vw,71.2px) !important;
  line-height:.97 !important;
  letter-spacing:-.055em;
}

body.readable-page main#page-content h2,
body.readable-page main#page-content :is(.section-head,.feature-detail-copy,.rejection-intro-copy,.final-copy) h2{
  font-size:var(--heading-size) !important;
  font-weight:780;
  line-height:1.08 !important;
  letter-spacing:-.045em;
  color:var(--blue);
  overflow-wrap:break-word;
}

body.readable-page main#page-content h2 span:not(.heading-blue){color:var(--gold);}
body.readable-page main#page-content h2 .heading-blue{color:var(--blue);}
body.readable-page main#page-content .final-copy h2{color:#fff;}
body.readable-page main#page-content .final-copy h2 span{color:var(--hero-text-gold);}
body.readable-page main#page-content .team-section .section-head h2{color:#fff;}
body.readable-page main#page-content .team-section h2 span{color:var(--hero-text-gold);}

body.readable-page main#page-content p:not(.hero-subline),
body.readable-page main#page-content :is(.check-list li,.final-cta-button){
  font-size:var(--reading-size) !important;
  line-height:1.72 !important;
}

body.readable-page main#page-content .final-benefits > span{
  font-size:12px !important;
  line-height:1.4 !important;
}

body.readable-page main#page-content .team-card-cta{
  font-size:15px !important;
  line-height:1.4 !important;
}

body.readable-page main#page-content :is(h3,.hero-subline,.final-action-label){
  font-size:var(--subheading-size) !important;
  line-height:1.35 !important;
  overflow-wrap:break-word;
}

body.readable-page main#page-content .feature-detail-rail{
  margin-top:40px;
}

body.readable-page main#page-content .feature-detail-rail b{
  font-size:16px !important;
  line-height:1.35 !important;
  overflow-wrap:break-word;
}

body.readable-page main#page-content .feature-detail-rail p{
  font-size:13.5px !important;
  line-height:1.6 !important;
}

body.readable-page main#page-content .feature-detail-rail article{
  padding-bottom:12px;
  margin-bottom:12px;
}

body.readable-page main#page-content :is(#anpassbar, #platzhalter, #rejection-tracker, #kontakt-dokumentieren, #kontakt-suche) .feature-detail-rail{
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
}

body.readable-page main#page-content :is(#anpassbar, #platzhalter, #rejection-tracker, #kontakt-dokumentieren, #kontakt-suche) .feature-detail-rail article{
  margin-bottom:0;
}

body.readable-page main#page-content :is(.section-kicker,.final-eyebrow){
  font-size:var(--kicker-size) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.10em !important;
}

body.readable-page main#page-content .final-cta-button{
  white-space:normal;
  height:auto;
  padding:10px 14px;
}

body.readable-page main#page-content .team-grid{
  max-width:1220px;
  align-items:stretch;
}

body.readable-page main#page-content .team-line{
  align-self:center;
}

body.readable-page main#page-content .team-grid article{
  height:auto;
  min-height:340px;
  padding:28px 26px;
}

body.readable-page main#page-content .team-option-card{
  padding-bottom:80px !important;
}

body.readable-page main#page-content .team-card-cta{
  right:26px;
  bottom:24px;
  color:var(--hero-text-gold);
}

body.readable-page main#page-content .check-list{gap:12px;}
body.readable-page main#page-content .check-list li > span{
  width:21px;
  height:21px;
  flex:0 0 21px;
  font-size:11px;
}

body.pricing-page main#page-content :is(label,input,select,textarea,button,.desc,.small,.muted,.option-bullets,.package-multi-note){
  font-size:var(--reading-size) !important;
  line-height:1.6;
}

body.pricing-page main#page-content :is(.option > strong,.setup-inline-title,.package-select-title){
  font-size:var(--subheading-size) !important;
  line-height:1.35;
}

@media(max-width:860px){
  body.readable-page main#page-content .hero h1{
    font-size:clamp(28px,5.9vw,47px) !important;
    line-height:1.08 !important;
  }

  body.readable-page main#page-content :is(.lead-feature-row,.feature-detail-top,.rejection-intro,.final-card){
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  body.readable-page main#page-content .lead-feature-copy{
    display:contents;
    width:100%;
    max-width:none;
  }
  body.readable-page main#page-content .lead-feature-copy .section-kicker{order:1;}
  body.readable-page main#page-content .lead-feature-copy h2{order:2;}
  body.readable-page main#page-content .lead-feature-browser{order:3 !important;}
  body.readable-page main#page-content .lead-feature-copy > p{order:4;}
  body.readable-page main#page-content .lead-feature-copy .check-list{order:5;}

  body.readable-page main#page-content :is(.rejection-detail-rail,.rejection-intro-copy){
    grid-column:1 !important;
    grid-row:auto !important;
  }

  body.readable-page main#page-content .rejection-intro-copy{order:-1;}

  body.readable-page main#page-content .team-grid{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)) !important;
    gap:18px !important;
  }

  body.readable-page main#page-content .team-grid > .team-line{display:none;}
  body.readable-page main#page-content .team-option-card{padding:22px;}
  body.readable-page main#page-content .feature-detail-rail article{
    grid-template-columns:40px minmax(0,1fr) !important;
    gap:12px !important;
  }
  body.readable-page main#page-content .placeholder-detail-rail article{
    grid-template-columns:1fr !important;
  }
  body.readable-page main#page-content .placeholder-code{
    width:auto !important;
    justify-self:start;
    font-size:12px !important;
  }
}

/* Team-Karten: direkt sauber untereinander statt 2+1 mit Leerraum. */
@media (max-width:820px){
  body.readable-page main#page-content .team-grid{
    grid-template-columns:1fr !important;
    justify-items:center;
    gap:20px !important;
  }

  body.readable-page main#page-content .team-grid article{
    width:100%;
    max-width:440px;
    min-height:0;
    height:auto;
  }

  body.readable-page main#page-content .team-option-card{
    padding-bottom:60px !important;
  }

  body.readable-page main#page-content .team-card-cta{
    bottom:18px;
    right:20px;
  }

  body.readable-page main#page-content .team-grid > .team-line{
    display:block !important;
    width:1px;
    height:28px;
    margin:0 auto;
    background:linear-gradient(180deg,rgba(198,154,87,.15),rgba(198,154,87,.7),rgba(198,154,87,.15));
  }
}

/* Shared reading sizes: hero copy and the main website's gold kickers. */
:is(.home-page,.readable-page){
  --heading-size:clamp(32px,4vw,48px);
  --reading-size:19.2px;
  --subheading-size:clamp(20px,1.6vw,25.6px);
  --kicker-size:clamp(11px,calc(.20vw + 10.2px),14px);
}

body.home-page #gespraech :is(.phase-head-copy p,.phase-card p,.phase-detail-copy > p,.check-list li),
body.home-page #anfrage :is(.final-lead,.final-actions > p){
  font-size:var(--reading-size) !important;
  line-height:1.72 !important;
}

body.home-page #anfrage .final-benefits > span{
  font-size:12px !important;
  line-height:1.4 !important;
}

body.home-page #gespraech :is(.section-head h2,.phase-detail-copy h2),
body.home-page #anfrage .final-copy h2{
  font-size:var(--heading-size) !important;
  font-weight:780;
  line-height:1.08 !important;
  letter-spacing:-.045em;
  overflow-wrap:break-word;
}

body.home-page #gespraech .phase-card h3,
body.home-page #anfrage .final-action-label{
  font-size:var(--subheading-size) !important;
  line-height:1.35 !important;
  overflow-wrap:break-word;
}

body.home-page #gespraech :is(.section-head h2,.phase-detail-copy h2){
  color:var(--blue);
}

body.home-page #gespraech h2 span{
  color:var(--gold);
}

body.home-page #gespraech .section-kicker,
body.home-page #anfrage .final-eyebrow{
  font-size:var(--kicker-size) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.10em !important;
}

body.home-page #gespraech .conversation-flow{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)) !important;
  gap:18px;
}

body.home-page #gespraech .phase-card{
  grid-column:auto !important;
  height:auto !important;
  padding:22px;
}

body.home-page #gespraech .phase-top > span{
  font-size:var(--kicker-size) !important;
}

body.home-page #gespraech .check-list{
  gap:12px;
}

body.home-page #anfrage .final-cta-button{
  font-size:var(--reading-size) !important;
  line-height:1.4;
  white-space:normal;
  height:auto;
  padding:14px 18px;
}

@media(max-width:860px){
  :is(.home-page,.readable-page){
    --heading-size:clamp(28px,4.5vw,38px);
    --reading-size:clamp(14px,2.2vw,17px);
    --subheading-size:clamp(16px,2.7vw,22px);
  }

  body.home-page #gespraech .section-head.split-head,
  body.home-page #anfrage .final-card{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  body.home-page #gespraech .phase-detail{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  body.home-page #gespraech .phase-detail-copy{
    display:contents;
  }

  body.home-page #gespraech .phase-detail-copy .section-kicker{order:1;}
  body.home-page #gespraech .phase-detail-copy h2{order:2; margin:0;}
  body.home-page #gespraech .phase-detail-browser{order:3 !important;}
  body.home-page #gespraech .phase-detail-copy > p{order:4;}
  body.home-page #gespraech .phase-detail-copy .check-list{order:5;}

  body.home-page #gespraech .check-list li > span{
    width:21px;
    height:21px;
    flex:0 0 21px;
    font-size:11px;
  }
}

/* Preserve the wide desktop preview without a jump at 1859px. */
@media(min-width:1051px){
  .home-page .hero > .shell.hero-grid{
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr) !important;
  }
}

/* Preserve a small overhang without clipping the right-hand callouts. */
@media(max-width:822px), (min-width:1051px) and (max-width:1859px){
  body.home-page .hero .float-card-call{
    left: min(calc(670px * var(--hero-ui-scale)), calc(100% - 200.453px * var(--hero-ui-scale) + 12px)) !important;
  }

  body.home-page .hero .float-card-flow{
    left: min(calc(614px * var(--hero-ui-scale)), calc(100% - 256.266px * var(--hero-ui-scale) + 12px)) !important;
  }

  body.home-page .hero .float-card-notes{
    left: min(calc(664px * var(--hero-ui-scale)), calc(100% - 206.531px * var(--hero-ui-scale) + 12px)) !important;
  }
}

/* Product heroes: title, subtitle, preview, description, actions, benefits through 860px. */
@media (max-width: 860px) {
  body:is(.home-page,.lead-manager-page,.features-page) .hero > .shell.hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: calc(100% - 48px) !important;
    max-width: 720px !important;
    gap: 0 !important;
    container-type: inline-size;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-copy {
    display: contents !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero h1 {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 10px !important;
    font-size: clamp(28px, 5.9vw, 47px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-visual {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    align-self: stretch !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .browser-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-subline {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 20px !important;
    font-size: clamp(16px, 2.7vw, 22px) !important;
    line-height: 1.4 !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-lead {
    order: 4 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(14px, 2.2vw, 17px) !important;
    line-height: 1.6 !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-actions {
    order: 5 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 10px !important;
    margin: 20px 0 0 !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-actions .btn {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: clamp(11px, 1.8vw, 13px) !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-points {
    order: 6 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px 16px !important;
    margin: 16px 0 0 !important;
    font-size: clamp(11px, 1.8vw, 14px) !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-points span {
    width: auto !important;
    gap: 6px !important;
    font-size: inherit !important;
  }
}


@media(max-width:860px){
  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-copy.reveal{
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-copy > .eyebrow{
    display:none !important;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-copy h1{
    font-size:clamp(28px,5.9vw,47px) !important;
    line-height:1.08 !important;
    letter-spacing:-.045em !important;
    overflow-wrap:break-word;
  }

  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-actions .btn{
    min-height:44px !important;
  }
}

@media(max-width:399px){
  body:is(.home-page,.lead-manager-page,.features-page) .hero .hero-actions .btn{
    width:100% !important;
  }
}

/* Sechs Gesprächsphasen: auf Desktop zwei gleichmäßige Reihen mit je drei Karten. */
@media (min-width: 761px) {
  body.home-page #gespraech .conversation-flow{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
