/* Loaded after screen.css by fe_page.tpl, only at max-width: 900px. */
:root                           { --st-block-gap: 24px; --st-panel-padding: 20px; }
.st-theme #container            { display: block; padding: 32px 20px; }
.st-theme #main, .st-theme .aside { width: 100%; max-width: none; }
.st-theme h1                    { font-size: 32px; line-height: 42px; }
.st-theme h2, .st-theme .bh      { font-size: 26px; line-height: 34px; }
/* ==== HEADER ==== */
.st-theme #header               { padding: 14px 20px; }
.st-theme #header > .inside     { grid-template-columns: minmax(0,1fr) 44px; gap: 0 16px; }
.st-theme #header .st-brand     { width: 240px; }
.st-theme .st-site-navigation   { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
.st-theme .st-header-actions    { grid-column: 1 / -1; grid-row: 3; justify-content: stretch; margin-top: 16px; }
.st-theme .st-header-actions a  { flex: 1 1 auto; }
.st-theme #header .level_1      { flex-direction: column; align-items: stretch; gap: 0; }
.st-theme #header .level_1 a    { padding: 10px 0; }
.st-theme #header.st-menu-ready .st-menu-toggle { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: #fcf6eb; cursor: pointer; }
.st-theme .st-menu-toggle span  { display: block; flex: 0 0 3px; width: 24px; height: 3px; border-radius: 2px; background: currentColor; }
.st-theme #header.st-menu-ready:not(.st-menu-open) :is(.st-site-navigation,.st-header-actions) { display: none; }
.st-theme #header.st-menu-open .st-site-navigation { border-top: 1px solid var(--st-gold); padding-top: 12px; }
.st-theme .st-menu-open .st-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.st-theme .st-menu-open .st-menu-toggle span:nth-child(2) { opacity: 0; }
.st-theme .st-menu-open .st-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* ==== FOOTER ==== */
.st-theme #footer               { padding: 40px 28px 28px; }
.st-theme .st-footer__columns   { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 32px; }
.st-theme #footer .st-brand     { grid-column: 1 / -1; width: 270px; }
.st-theme #footer h2            { font-size: 15px; }
.st-theme #footer a             { display: inline-block; font-size: 13px; overflow-wrap: anywhere; }
.st-theme #footer li            { margin-bottom: 9px; }
.st-theme .st-footer__bottom    { margin-top: 28px; padding-top: 28px; }
.st-theme .st-footer__copyright { font-size: 12px; color: var(--st-paper); }

/* ==== BERATERSEITE UND REGISTRIERUNGSFELDER ==== */
#reg { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; margin-bottom: 40px; padding: 24px 20px; }
#reg div.phone { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
#reg input.text, #reg select, #reg textarea { padding-left: 12px; padding-right: 12px; }
#reg .pw_input input { padding-right: 48px; }
.st-hero { min-height: 560px; padding: 48px 20px; }
.st-prepage .st-hero h1 { font-size: 52px; line-height: 60px; }
.st-hero__text { max-width: 520px; }
.st-intro { padding: 40px 20px; }
.st-prepage .st-intro h2, .st-prepage .st-steps h2 { font-size: 32px; line-height: 42px; }
.st-steps { padding: 36px 20px; }
.st-steps__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
body:has(.st-prepage) #reg { margin-top: 40px; }
body:has(.st-prepage) #reg .st-form-intro { padding: 16px 0 24px; }
body:has(.st-prepage) #reg .ctrl_consultingCategories ul { grid-template-columns: minmax(0,1fr); gap: 8px; }

/* ==== REGISTRATION-ONLY TEMPLATE ==== */
.st-theme.st-registration #header { min-height: 72px; }
.st-theme.st-registration #footer { padding: 12px 20px; }
.st-theme.st-registration #footer ul { gap: 4px 20px; }

/* ==== CMS REGISTRATION FEEDBACK ==== */
.st-theme:has(.st-registration-feedback) #container { padding: 24px; }
.st-theme:has(.st-registration-feedback) #header { padding: 24px; }
.st-theme:has(.st-registration-feedback) #header .st-brand { width: 280px; }

/* ==== CATEGORY TEXT: responsive overrides, same CMS elements ==== */
.st-theme #container:has(.st-category-hero) { padding: 32px 24px; }
.st-theme #main .cte_text:is(.st-category-intro,.st-category-copy,.st-category-highlight,.st-category-quote) { font-size: 17px; line-height: 28px; }
.st-theme #main .st-category-copy .bh { font-size: 28px; line-height: 38px; }
.st-theme #main .cte_text.st-category-highlight { padding: 20px; font-size: 19px; line-height: 30px; }
.st-theme #main .st-category-highlight p { margin-bottom: 10px; }
.st-theme #main .cte_text.st-category-intro { line-height: 26px; }

/* ==== CATEGORY HERO ==== */
.st-theme #main .st-category-hero { min-height: 380px; padding: 32px 24px; }
.st-theme #main .st-category-hero .bh { font-size: 42px; line-height: 76px; }
.st-theme #main .st-category-hero p { font-size: 27px; line-height: 36px; }
.st-theme #main .st-category-hero .st-category-hero__eyebrow { font-size: 16px; line-height: 22px; }
/* ==== CATEGORY CTA ==== */
.st-theme #main .st-category-cta { padding: 28px 24px; }
.st-theme #main .st-category-cta .bh { font-size: 28px; line-height: 50px; }
.st-theme #main .st-category-cta p { font-size: 16px; line-height: 26px; }
.st-theme #main .st-category-cta p a { width: 100%; }
/* ==== FOOTER DIVIDER AND CATEGORY BACK LINK ==== */
.st-theme .st-footer-divider { height: 14px; }
.st-theme #main .st-category-back { margin-bottom: 32px; }
/* ==== PUBLIC MOBILE HEADER: FIGMA 521:1394 ==== */
.st-theme #header.st-public-header { padding: 16px 24px; }
.st-theme #header.st-public-header .level_1 { gap: 8px; }
.st-theme #header.st-public-header .level_1 a { justify-content: center; padding: 0; min-height: 44px; font-size: 18px; line-height: 44px; }
.st-theme #header.st-public-header .st-header-actions { flex-direction: column-reverse; gap: 18px; }
.st-theme #header.st-public-header .st-header-actions .st-button { width: 100%; min-height: 44px; }
.st-theme #header.st-public-header.st-menu-open { padding: 24px 24px 28px; }
.st-theme #header.st-public-header.st-menu-open > .inside { grid-template-columns: minmax(0,1fr); gap: 18px; }
.st-theme #header.st-public-header.st-menu-open .st-menu-toggle { grid-column: 1; grid-row: 1; width: 100%; padding: 10px 20px; }
.st-theme #header.st-public-header.st-menu-open .st-menu-toggle { border: 1.5px solid var(--st-gold); border-radius: 8px; }
.st-theme #header.st-public-header.st-menu-open .st-menu-toggle > span { display: none; }
.st-theme #header.st-public-header.st-menu-open .st-menu-toggle > .st-menu-label { display: block; width: auto; height: auto; flex: none; }
.st-theme #header.st-public-header.st-menu-open .st-menu-label { background: none; font: 600 15px/20px var(--font-family); }
.st-theme #header.st-public-header.st-menu-open .st-brand { grid-column: 1; grid-row: 2; justify-self: center; }
.st-theme #header.st-public-header.st-menu-open .st-site-navigation { grid-column: 1; grid-row: 3; margin: 0; padding: 0; border: 0; }
.st-theme #header.st-public-header.st-menu-open .st-header-actions { grid-column: 1; grid-row: 4; margin: 0; }

/* ==== HOME HERO MOBILE: FIGMA 521:886 ==== */
.st-theme #main > .inside:has(> .st-home-hero) > :not(.st-home-hero) { width: calc(100% - 48px); }
.st-theme #main .st-home-hero { min-height: 560px; justify-content: flex-start; gap: 10px; padding: 48px 24px 70px; margin-bottom: 24px; }
.st-theme #main .st-home-hero h1 { gap: 10px; font-size: 36px; text-shadow: 10px 10px 6px rgba(0,0,0,.8), 10px 10px 24px rgba(0,0,0,.75); }
.st-theme #main .st-home-hero h1 > span + span { font-size: clamp(32px,10.77vw,42px); }
.st-theme #main .st-home-hero__subtitle { font-size: 16px; }
.st-theme #main .st-home-hero__subtitle span { display: block; }
.st-theme #main .st-home-hero__actions { flex-direction: column; gap: 12px; padding-top: 14px; width: 320px; }
.st-theme #main .st-home-hero__actions > :is(a,span) { font-size: 16px; }
.st-theme #main .st-home-hero::after { left: -12px; bottom: -8px; width: calc(100% + 24px); height: 70px; }
.st-theme #main .st-home-hero::after { background-image: url('../img/Homepage/home-hero-pergament-mobil.png'); }

.st-theme #main .st-home-trust { padding: 28px 20px 28px 26px; margin-bottom: 24px; box-shadow: none; }
.st-theme #main .st-home-trust ul { grid-template-columns: minmax(0,1fr); gap: 14px; }
.st-theme #main .st-home-trust li { display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 12px; row-gap: 2px; text-align: left; align-items: start; }
.st-theme #main .st-home-trust li::before { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 38px; align-self: center; }
.st-theme #main .st-home-trust li strong, .st-theme #main .st-home-trust li span { grid-column: 2; }
.st-theme #main .st-home-trust strong { font-size: 15px; }

/* ==== MOBILE ADVISORS: FOUR PER SWIPE PAGE ==== */
.st-theme #main .st-advisor-section { padding: 36px 0; }
.st-theme #main .st-advisor-heading { font-size: 24px; margin-bottom: 20px; }
.st-theme #main .st-advisor-section > .tabnav a { padding: 8px 10px; font-size: 14px; }
.st-theme #main .st-advisor-section .agentlist { display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
.st-theme #main .st-advisor-page { display: flex; flex-direction: column; gap: 20px; flex: 0 0 min(318px,100%); min-width: 0; scroll-snap-align: start; }
.st-theme #main .st-advisor-section .profile { flex: 0 0 auto; padding: 80px 20px 20px; gap: 10px; }
.st-theme #main .st-advisor-status { left: -4px; top: 12px; width: 153px; font-size: 12px; line-height: 18px; }
.st-theme #main .st-advisor-section .profile .left > a, .st-theme #main .st-advisor-section .profile img.pic { width: 132px; }
.st-theme #main .st-advisor-section .profile img.pic { height: 132px; }
.st-theme #main .st-advisor-section .profile h3 { font-size: 28px; }


/* HOME CATEGORY CARDS: Figma 521:1179, native horizontal scrolling */
.st-theme #main .st-home-categories { padding: 40px 0; }
.st-theme #main .st-home-categories > .bh { margin: 0 24px 32px; font-size: 24px; }
.st-theme #main .st-category-rail { display: flex; gap: 16px; overflow-x: auto; padding: 0 24px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; }
.st-theme #main .st-home-categories .st-category-page { display: grid; flex: 0 0 100%; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 28px 16px; scroll-snap-align: start; margin: 0; }
.st-theme #main .st-home-categories:not(.st-categories-expanded) .st-category-page ~ .st-category-page { display: grid; }
.st-theme #main .st-category-page a { gap: 10px; }
.st-theme #main .st-category-page img { width: 140px; height: auto; aspect-ratio: 1; }
.st-theme #main .st-category-title { font-size: clamp(17px,5.64vw,22px); overflow-wrap: anywhere; }
.st-theme #main .st-category-teaser { font-size: 15px; line-height: 26px; }
.st-theme #main .st-category-expand { display: none; }

.st-theme #main > .inside:has(> .st-home-hero) > .st-home-categories { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

.st-theme #main .st-category-rail { scrollbar-width: thin; scrollbar-color: var(--st-gold) transparent; }

/* HOME HOW: Figma 521:1218 */
.st-theme #main .st-home-how { padding:32px 0 0; }
.st-theme #main .st-home-how h2 { margin:0 0 20px; font-size:26px; line-height:35px; }
.st-theme #main .st-home-how ol { grid-template-columns:minmax(0,1fr); gap:20px; padding:24px 16px; }
.st-theme #main .st-home-how li { padding:64px 40px 28px; border-radius:128px 128px 8px 8px; background-size:288.52% 100%; box-shadow:none; }
.st-theme #main .st-home-how h3 { font-size:17px; line-height:24px; }
.st-theme #main .st-home-how h3::after { width:56px; background:#f6c344; }
.st-theme #main .st-home-how p { font-size:14px; line-height:21px; }
@media(max-width:359px) { .st-theme #main .st-home-how li { padding-left:24px; padding-right:24px; } }


/* HOME FINAL SECTIONS MOBILE: Figma 521:1269/1278/1287 */
.st-theme #main .st-home-arrival { padding:24px 0 40px; }
.st-theme #main .st-arrival-panel { display:flex; flex-direction:column; gap:24px; min-height:0; padding:32px 28px; }
.st-theme #main .st-arrival-copy h2 { font-size:clamp(18px,5.38vw,24px); margin-bottom:8px; }
.st-theme #main .st-arrival-copy .st-arrival-tagline { font-size:clamp(18px,5.38vw,24px); margin-bottom:8px; }
.st-theme #main .st-arrival-copy p { font-size:14px; line-height:1.3; }
.st-theme #main .st-arrival-hut { width:280px; max-width:100%; aspect-ratio:280/153; }
.st-theme #main .st-arrival-sign { width:286px; max-width:100%; }
.st-theme #main .st-arrival-sign > img { display:none; }
.st-theme #main .st-arrival-sign a { padding:20px 12px; border:0; background-size:116.97% 100%; box-shadow:none; font-size:15px; }
.st-theme #main > .inside:has(> .st-home-hero) > .st-home-post { margin-left:0; margin-right:0; width:100%; }
.st-theme #main .st-home-post { padding:28px 24px; }
.st-theme #main .st-post-inner { flex-direction:column; gap:16px; text-align:center; }
.st-theme #main .st-post-inner > img { display:none; }
.st-theme #main .st-post-inner h2 { font-size:24px; }
.st-theme #main .st-post-inner a { margin:0; width:100%; padding:13px 12px; border:0; }
.st-theme #main > .inside:has(> .st-home-hero) > .st-home-join { margin-left:0; margin-right:0; width:100%; }
.st-theme #main .st-home-join { min-height:640px; padding:150px 24px; display:flex; align-items:center; justify-content:center; }
.st-theme #main .st-join-inner { width:100%; max-width:342px; padding:0 16px; grid-template-columns:minmax(0,1fr); gap:24px; }
.st-theme #main .st-join-inner > div:first-child { text-align:center; }
.st-theme #main .st-join-inner h2 { font-size:25px; line-height:30px; margin-bottom:8px; }
.st-theme #main .st-join-inner p { font-size:14px; line-height:20px; }
.st-theme #main .st-join-inner ul { margin-bottom:16px; }
.st-theme #main .st-join-inner li { font-size:14px; line-height:22px; }
.st-theme #main .st-join-inner a { min-height:48px; margin:0 auto; }
@media(max-width:359px) { .st-theme #main .st-arrival-panel { padding:28px 20px; } .st-theme #main .st-arrival-copy h2,.st-theme #main .st-arrival-copy .st-arrival-tagline { font-size:21px; } .st-theme #main .st-home-join { padding-left:16px; padding-right:16px; } .st-theme #main .st-join-inner { padding:0; } }

.st-theme #main .st-category-page:last-child > li:nth-child(3):last-child { grid-column: 1 / -1; width: calc((100% - 16px) / 2); justify-self: center; }

/* Compact mobile cookie notice; 44px native close control */
.st-theme #cookie { padding: 12px 68px 12px 16px; font-size: 12px; line-height: 18px; }
.st-theme #cookie > a.close { right: 12px; }


/* ==== CUSTOMER REGISTRATION AND CONTACT ==== */
.st-theme #main .st-customer-hero { min-height: 0; padding: 56px 24px 80px; }
.st-theme .st-customer-hero::before { background: rgba(19,14,11,.62); }
.st-theme .st-customer-hero::after { height: 70px; bottom: -8px; background-image: url('/files/img/Homepage/home-hero-pergament-mobil.png'); }
.st-theme .st-customer-hero h1 { font-size: clamp(36px,11.54vw,45px); line-height: 1.2; }
.st-theme #main .st-customer-intro { padding: 24px; }
.st-theme .st-customer-intro h2 { font-size: 40px; line-height: 50px; }
.st-theme .st-customer-intro > figure.image img { height: 228px; }
.st-theme #main .st-customer-steps { padding: 32px 24px; }
.st-theme .st-customer-steps h2 { font-size: 28px; line-height: 36px; }
.st-theme .st-customer-steps ol { grid-template-columns: minmax(0,1fr); gap: 32px; }
.st-theme .st-customer-steps h3 { line-height: 30px; }
.st-theme .st-customer-steps p { line-height: 26px; }
.st-theme .st-customer-register #reg { margin: 32px auto 24px; padding: 16px; }
.st-theme .st-customer-register #reg > .ctrl_city { grid-column: auto; }
.st-theme :is(.st-customer-form-intro,.st-contact-form-intro) { padding: 16px 0; }
.st-theme #container:has(.st-contact) { padding: 48px 24px; }
.st-theme .st-contact-heading { margin-bottom: 32px; }
.st-theme .st-contact-heading h1 { font-size: 40px; line-height: 50px; }
.st-theme .st-contact form { padding: 16px; }
.st-theme:has(.st-contact,.st-customer-feedback) #header::after { height: 24px; background-image: url('/files/img/Homepage/contact-edge-mobile.png'); }
.st-theme #main .st-customer-feedback { margin: 16px auto; }
.st-theme .st-customer-feedback h1 { font-size: 32px; line-height: 42px; }

/* Match the original mobile edge overhang without page overflow. */
.st-theme .st-customer-hero::after { left: -12px; right: -12px; }

/* The smaller mobile edge has a proportional blend zone. */
.st-theme #main :is(.st-home-hero,.st-customer-hero) > figure.image { clip-path: inset(0 0 29px 0); }
.st-theme #main .st-customer-hero::before { clip-path: inset(0 0 29px 0); }

.st-theme #main .st-login-page { padding: 32px 24px 48px; }
.st-theme .st-login-heading { margin-bottom: 32px; }
.st-theme .st-login-heading h1 { font-size: 40px; line-height: 50px; }
.st-theme .st-login-page form { padding: 16px; }
.st-theme .st-login-intro { padding: 16px; }
.st-theme:has(.st-login-page) #header::after { height: 24px; background-image: url('/files/img/Homepage/contact-edge-mobile.png'); }

.st-theme #main .mod_passreset { padding: 32px 4px 48px; }
.st-theme .mod_passreset h1 { font-size: 36px; }
.st-theme .mod_passreset form { padding: 16px; }
.st-theme:has(.mod_passreset) #header::after { height: 24px; background-image: url('/files/img/Homepage/contact-edge-mobile.png'); }

.st-theme:has(.cte_agent.detail) #container { padding: 48px 0 32px; }
.st-theme:has(.cte_agent.detail) #header::after { height: 24px; background-image: url('/files/img/Homepage/contact-edge-mobile.png'); }
.st-theme .st-profile-card { padding: 80px 24px 32px; }
.st-theme .st-profile-card .cte_agent.detail { display: flex; flex-direction: column; gap: 24px; }
.st-theme .st-profile-card .cte_agent > figure { width: min(100%,342px); align-self: center; }
.st-theme .st-profile-card .cte_agent > figure img { width: 100%; height: auto; aspect-ratio: 1; }
.st-theme .st-profile-card .st-profile-heading { width: 100%; }
.st-theme .st-profile-card h1 { font-size: 42px; }
.st-theme .st-profile-card h2 { font-size: 32px; }
.st-theme .st-profile-card .cte_agent .right { width: 100%; }
.st-theme .st-profile-card .longtext { font-size: 16px; line-height: 26px; }
.st-theme .st-profile-card .cats ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.st-theme .st-profile-card .cats img { width: min(100%,156px); height: auto; aspect-ratio: 1; }
.st-theme .st-profile-category-name { font-size: clamp(16px,5vw,22px); overflow-wrap: anywhere; }
.st-theme .st-profile-category-copy { font-size: 15px; line-height: 24px; }
.st-theme:has(.cte_agent.detail) .cte_tariffs { margin: 24px; overflow-x: auto; }

.st-theme .st-profile-card .st-profile-heading { display: contents; }
.st-theme .st-profile-card .cte_agent > figure { order: 1; }
.st-theme .st-profile-card .st-profile-heading > h1 { order: 2; margin-bottom: 0; }
.st-theme .st-profile-card .cte_agent .right { order: 3; }
.st-theme .st-profile-card .st-profile-heading > .pnotice { order: 4; }
.st-theme .st-profile-card .st-profile-heading > .teaser { order: 5; }

.st-theme .st-profile-about:has(.st-profile-personal) { display: flex; flex-direction: column; }
.st-theme .st-profile-about .st-profile-personal { float: none; order: 3; width: min(100%,342px); max-width: 100%; margin: 24px auto 0; }
