/* V33 | Editorial quality + responsive hero consistency | Approved originals only.
   No new UI screenshots, no imitation brand assets, no navigation or functional changes.
   Keep large editorial photo areas; never split a photograph into fake left/right tiles. */

/* Physical accessibility and dependable controls across the Reisefuehrer family. */
html:focus-within{scroll-behavior:smooth}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #cc0066!important;outline-offset:4px!important}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*{scroll-behavior:auto!important}}

/* A coherent single-stage desktop hero uses one original, full-width photo and a continuous shadow.
   Responsive art direction happens through photo position rather than a second fake image. */
@media(min-width:761px){
  html body main .rf-unified-hero[data-hero-role]{
    min-height:clamp(430px,37vw,530px)!important;
    height:clamp(430px,37vw,530px)!important;
    max-height:530px!important;isolation:isolate;overflow:hidden;background:#242329;
    align-items:center!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg{
    position:absolute!important;inset:0!important;display:block!important;
    z-index:0!important;width:100%!important;height:100%!important;overflow:hidden;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg picture,
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    display:block!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg img{
    object-fit:cover!important;object-position:var(--rf33-image-pos, center center)!important;
    -webkit-mask-image:none!important;mask-image:none!important;opacity:1!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg::before{content:none!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-shade{
    display:block!important;position:absolute!important;inset:0!important;z-index:1!important;
    background:linear-gradient(90deg,rgba(24,23,28,.95) 0%,rgba(24,23,28,.90) 17%,rgba(24,23,28,.76) 34%,rgba(24,23,28,.49) 51%,rgba(24,23,28,.16) 74%,rgba(24,23,28,.04) 100%)!important;
    pointer-events:none;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content{
    z-index:2!important;position:relative!important;min-width:0!important;
    max-width:1180px!important;width:calc(100% - 72px)!important;
    padding-block:36px!important;margin-inline:auto!important;transform:none!important;
    text-align:left!important;
  }
  html body main .rf-unified-hero[data-hero-role] h1{
    max-width:650px!important;margin:11px 0 14px!important;
    font-size:clamp(37px,3.7vw,54px)!important;line-height:1.115!important;
    text-wrap:balance!important;letter-spacing:-.045em!important;
    color:#fff!important;text-shadow:0 1px 10px rgba(20,12,16,.13);
  }
  html body main .rf-unified-hero[data-hero-role] h1 .rf-hero-line{display:block!important;white-space:normal!important}
  html body main .rf-unified-hero[data-hero-role] h1 em.rf-hero-line{color:#ff5aa2!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-subline{
    max-width:515px!important;margin:0 0 23px!important;white-space:normal!important;
    font-size:clamp(15px,1.2vw,17px)!important;line-height:1.55!important;color:#f8f0f5!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-eyebrow{font-size:11px!important;letter-spacing:.13em!important}
  html body main .rf-unified-hero[data-hero-role] .rf-image-credit{z-index:3!important}
  /* Image composition per subject, not page template defaults. */
  .rf-unified-hero[data-hero-role="start"]{--rf33-image-pos:55% 54%}
  .rf-unified-hero[data-hero-role="berufsstart"]{--rf33-image-pos:57% 47%}
  .rf-unified-hero[data-hero-role="checkliste"]{--rf33-image-pos:53% 45%}
  .rf-unified-hero[data-hero-role="gruendung"]{--rf33-image-pos:64% 55%}
  .rf-unified-hero[data-hero-role="arbeitsweise"]{--rf33-image-pos:67% 51%}
  .rf-unified-hero[data-hero-role="verguetung"]{--rf33-image-pos:67% 52%}
  .rf-unified-hero[data-hero-role="wissen"]{--rf33-image-pos:56% 48%}
  .rf-unified-hero[data-hero-role="literatur"]{--rf33-image-pos:59% 48%}
  .rf-unified-hero[data-hero-role="magazin"]{--rf33-image-pos:62% 53%}
  .rf-unified-hero[data-hero-role="praxis"]{--rf33-image-pos:56% 47%}
  .rf-unified-hero[data-hero-role="butler"]{--rf33-image-pos:55% 53%}
  .rf-unified-hero[data-hero-role="kontakt"]{--rf33-image-pos:57% 50%}
  /* Brand-specific contact photo was already a full-width image of the original butler logo.
     Preserve its compositional lock rather than force the universal picture crop. */
  html body main .rf-unified-hero[data-hero-role="kontakt"] .rf-unified-bg img{object-position:right center!important;object-fit:contain!important}
}
@media(min-width:761px) and (max-width:1100px){
  html body main .rf-unified-hero[data-hero-role]{height:clamp(390px,44vw,470px)!important;min-height:clamp(390px,44vw,470px)!important}
  html body main .rf-unified-hero[data-hero-role] h1{font-size:clamp(32px,4.15vw,46px)!important;max-width:min(58vw,570px)!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-subline{max-width:min(56vw,490px)!important;font-size:15px!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content{padding-block:24px!important;width:calc(100% - 58px)!important}
}
/* Tablets and smartphones get independent composition. All content remains in the document flow,
   never painted across an unverified dark image zone or squeezed onto a 2-column desktop stage. */
@media(max-width:760px){
  html body main .rf-unified-hero[data-hero-role]{
    position:relative!important;display:flex!important;flex-direction:column!important;
    min-height:0!important;height:auto!important;max-height:none!important;
    align-items:stretch!important;background:#292329!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg{
    position:relative!important;inset:auto!important;z-index:0!important;
    width:100%!important;height:clamp(195px,55vw,270px)!important;
    overflow:hidden!important;flex:0 0 auto!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg picture{
    position:relative!important;width:100%!important;height:100%!important;display:block!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-bg img{
    display:block!important;position:relative!important;width:100%!important;height:100%!important;
    object-fit:cover!important;object-position:var(--rf33-mobile-pos, center center)!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-shade{display:none!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content{
    width:calc(100% - 40px)!important;max-width:640px!important;margin:0 auto!important;
    position:relative!important;z-index:2!important;transform:none!important;
    padding:27px 0 35px!important;text-align:left!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content h1{
    font-size:clamp(30px,8vw,40px)!important;line-height:1.12!important;letter-spacing:-.045em!important;
    text-wrap:balance!important;margin:11px 0 15px!important;max-width:100%!important;
    overflow-wrap:break-word!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content h1 em.rf-hero-line{color:#ff67ab!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-subline{
    font-size:15px!important;line-height:1.56!important;max-width:100%!important;
    margin:0 0 22px!important;color:#f8eff4!important;
  }
  html body main .rf-unified-hero[data-hero-role] .rf-image-credit{
    position:absolute!important;z-index:3!important;
    top:calc(clamp(195px,55vw,270px) - 26px)!important;bottom:auto!important;right:9px!important;
    padding:3px 6px!important;font-size:9px!important;color:#fff!important;
    background:rgba(14,12,16,.68)!important;
  }
  html body main .rf-unified-hero[data-hero-role="butler"] .rf-image-credit{top:10px!important}
  .rf-unified-hero[data-hero-role="start"]{--rf33-mobile-pos:62% 50%}
  .rf-unified-hero[data-hero-role="berufsstart"]{--rf33-mobile-pos:56% 43%}
  .rf-unified-hero[data-hero-role="checkliste"]{--rf33-mobile-pos:48% 49%}
  .rf-unified-hero[data-hero-role="gruendung"]{--rf33-mobile-pos:52% 53%}
  .rf-unified-hero[data-hero-role="arbeitsweise"]{--rf33-mobile-pos:60% 53%}
  .rf-unified-hero[data-hero-role="verguetung"]{--rf33-mobile-pos:53% 54%}
  .rf-unified-hero[data-hero-role="wissen"]{--rf33-mobile-pos:44% 50%}
  .rf-unified-hero[data-hero-role="literatur"]{--rf33-mobile-pos:55% 50%}
  .rf-unified-hero[data-hero-role="magazin"]{--rf33-mobile-pos:47% 50%}
  .rf-unified-hero[data-hero-role="kontakt"]{--rf33-mobile-pos:66% 52%}
}
@media(max-width:350px){
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content h1{font-size:28px!important}
  html body main .rf-unified-hero[data-hero-role] .rf-unified-content{width:calc(100% - 34px)!important}
}

/* A consistent navigational grammar without repeated editorial questions.
   Subject-specific wording is in the HTML; colors and hierarchy belong to the system. */
.rf36-wayfinder{background:#fbf8fa!important}
.rf36-wayfinder .rf36-wayfinder-inner{padding-block:clamp(30px,3.4vw,47px)!important}
.rf36-wayfinder .rf36-wayfinder-intro h2{font-size:clamp(24px,2.14vw,31px)!important;line-height:1.18!important}
.rf36-wayfinder .rf36-wayfinder-eyebrow{color:#ba075c!important;letter-spacing:.1em!important}
.rf36-wayfinder .rf36-wayfinder-links a{font-weight:670!important}
@media(max-width:760px){
 .rf36-wayfinder .rf36-wayfinder-inner{padding-block:29px 36px!important;gap:21px!important}
 .rf36-wayfinder .rf36-wayfinder-intro h2{font-size:clamp(23px,6.4vw,29px)!important}
 .rf36-wayfinder .rf36-wayfinder-intro>p{font-size:13.5px!important}
}

/* The comparison + software guide are deliberate typographic editorial pages, not empty poster stages.
   Tighten excess top whitespace; no fake test seal, ranking or supplier logo. */
.seo31-page .seo31-hero{padding:clamp(57px,6vw,90px) 0 clamp(49px,5vw,74px)!important;background:linear-gradient(115deg,#fcf9fb,#f7f3f5)!important}
.seo31-page .seo31-hero h1{font-size:clamp(40px,4.4vw,65px)!important;line-height:1.095!important;letter-spacing:-.044em!important;max-width:920px!important}
.seo31-page .seo31-hero-deck{font-size:clamp(17px,1.45vw,20px)!important;max-width:720px!important;line-height:1.65!important}
.seo31-page .seo31-main{padding-top:clamp(30px,3.7vw,49px)!important}
.seo31-page .seo31-intro{font-size:clamp(17px,1.45vw,19px)!important;line-height:1.74!important}
.seo31-page .seo31-actions a{min-height:48px}
.seo31-page .seo31-overline{color:#af0057!important;font-size:11px!important}
@media(max-width:760px){
 .seo31-page .seo31-hero{padding:53px 0 43px!important}
 .seo31-page .seo31-hero h1{font-size:clamp(34px,9vw,43px)!important;line-height:1.11!important}
 .seo31-page .seo31-hero-deck{font-size:16px!important;line-height:1.63!important}
 .seo31-page .seo31-overline{font-size:10px!important;margin-bottom:17px!important}
 .seo31-page .seo31-actions{gap:10px!important}
}

/* Distinct referral film crop, preserving the original campaign photo and attribution. */
.ref3-hero img{object-position:50% 46%!important}

/* Standalone switch offer: protect its previously approved price, route and form story.
   Improve only whitespace rhythm; do not present as a separate brochure billboard. */
@media(min-width:761px){
 .um3-page .um3-opening{padding-block:clamp(63px,5.7vw,89px)!important}
 .um3-page .um3-logic{padding-block:clamp(65px,6.2vw,94px)!important}
}
@media(max-width:760px){
 .um3-page .um3-opening{padding-block:58px!important}
 .um3-page .um3-logic{padding-block:57px!important}
}
/* 320px regression repair: older V29 CSS forced wayfinder headings to nowrap.
   They must wrap, never push the entire page sideways. */
html body .rf36-wayfinder .rf36-wayfinder-intro h2{
 white-space:normal!important;text-wrap:balance!important;overflow-wrap:break-word!important;
 max-width:100%!important;
}
@media(max-width:390px){
 html body .rf36-wayfinder .rf36-wayfinder-intro{min-width:0!important;max-width:100%!important}
 html body .rf36-wayfinder .rf36-wayfinder-intro h2{font-size:clamp(23px,7vw,27px)!important}
 .book-entry,.book-entry:nth-child(2n){min-width:0!important;max-width:100%!important;grid-template-columns:minmax(0,1fr)!important}
 .book-entry .book-cover,.book-entry .book-info{min-width:0!important;max-width:100%!important}
 .book-entry .book-cover img{max-width:min(100%,250px)!important;height:auto!important}
 .book-entry .book-info{overflow-wrap:break-word!important}
}

/* Approved source photos replace pre-consent YouTube preview fetches. */
.rf-video-image{position:relative;overflow:hidden}
.rf-video-image img{object-fit:cover;object-position:center center}
.rf-video-credit{position:absolute;right:9px;bottom:8px;color:#fff;background:rgba(26,20,27,.76);padding:3px 7px;font-size:10px;line-height:1.3;letter-spacing:.01em;z-index:2}
