:root{
    --sam-bg:#edf3fb;
    --sam-panel:#ffffff;
    --sam-panel-soft:#f4f7fc;
    --sam-text:#162033;
    --sam-muted:#5d6a7f;
    --sam-line:#c9d4e4;
    --sam-blue:#1f5bd8;
    --sam-blue-dark:#174aa8;
    --sam-focus:#ffcc00;
    --page-zoom:1;
    --sam-desktop-ad-height:140px;
    --sam-mobile-ad-height:100px;
    --sam-ad-gap:clamp(10px,1.4vw,22px);
    color-scheme:light;
}
html.dark-mode{
    --sam-bg:#090d14;
    --sam-panel:#151b25;
    --sam-panel-soft:#202938;
    --sam-text:#f5f7fb;
    --sam-muted:#c3ccdb;
    --sam-line:#46556b;
    --sam-blue:#74a5ff;
    --sam-blue-dark:#98bcff;
    color-scheme:dark;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--sam-bg);scroll-behavior:smooth}
body{
    min-height:100vh;
    margin:0;
    background:var(--sam-bg);
    color:var(--sam-text);
    font:16px/1.5 Arial,Helvetica,sans-serif;
    zoom:var(--page-zoom);
}
a{color:var(--sam-blue)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{touch-action:manipulation}
[hidden]{display:none!important}
.skip-link{position:fixed;z-index:2147483647;left:12px;top:-80px;padding:12px 16px;border-radius:10px;background:#fff;color:#000;font-weight:700}
.skip-link:focus{top:12px}
.site-shell{display:flex;flex-direction:column;width:100%;min-height:100vh;margin:0 auto}
.site-header{position:relative;z-index:40;width:100%;background:var(--sam-bg)}
.utility-bar{
    position:sticky;
    z-index:80;
    top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    min-height:62px;
    padding:max(7px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left));
    border-bottom:1px solid var(--sam-line);
    background:color-mix(in srgb,var(--sam-panel) 94%,transparent);
    backdrop-filter:blur(14px);
    box-shadow:0 4px 16px rgba(9,20,40,.12);
}
.utility-actions,.weather-strip{display:flex;align-items:center;gap:7px;min-width:0}
.sam-brand-ad-strip,
.sam-member-header-media{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:var(--sam-ad-gap);
    min-width:0;
}
.sam-brand-ad-strip{
    width:min(100%,calc(var(--sam-desktop-ad-height) + var(--sam-ad-gap) + 730px));
    margin:22px auto 18px;
}
.sam-member-header-media{
    flex:1 1 auto;
    max-width:calc(var(--sam-desktop-ad-height) + var(--sam-ad-gap) + 730px);
    margin:0 auto;
}
.sam-brand-ad-logo,
.sam-member-header-logo{
    display:grid;
    place-items:center;
    width:var(--sam-desktop-ad-height);
    height:var(--sam-desktop-ad-height);
    min-width:0;
    overflow:hidden;
    text-decoration:none;
}
.sam-brand-ad-logo img,
.sam-member-header-logo img{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
.sam-member-header-ad{
    position:relative;
    display:grid;
    place-items:center;
    width:100%;
    max-width:none;
    min-width:0;
    aspect-ratio:73/14;
    overflow:hidden;
}
.sam-member-header-ad iframe{display:block;width:100%;height:100%;border:0;background:transparent}
.sam-member-header-ad .sam-consent-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:8px}
.utility-button{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:55px;
    min-height:48px;
    padding:5px 8px;
    border:1px solid var(--sam-line);
    border-radius:13px;
    background:var(--sam-panel-soft);
    color:var(--sam-text);
    font-weight:800;
    cursor:pointer;
}
.utility-button>span:first-child{font-size:18px;line-height:1}
.utility-app-store{overflow:hidden;text-decoration:none}
.utility-app-store-image{display:block;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(11,47,116,.25))}
html.dark-mode .utility-app-store,body.dark-mode .utility-app-store{background:color-mix(in srgb,var(--sam-panel-soft) 86%,#15396f 14%);border-color:color-mix(in srgb,var(--sam-line) 78%,#6ca9ff 22%)}
html.dark-mode .utility-app-store-image,body.dark-mode .utility-app-store-image{filter:drop-shadow(0 0 4px rgba(84,169,255,.55))}
body.anbita-app .utility-app-store,html.anbita-app-mode .utility-app-store{display:none!important}
.utility-label{font-size:11px;line-height:1.2;color:var(--sam-muted)}
.busbahn-weather{
    flex:0 0 auto;
    justify-content:flex-end;
    gap:8px;
    min-width:174px;
    min-height:48px;
    padding:6px 10px;
    border:1px solid var(--sam-line);
    border-radius:13px;
    background:var(--sam-panel-soft);
    color:var(--sam-text);
    white-space:nowrap;
}
.busbahn-weather-icon{display:grid;place-items:center;width:30px;height:30px;font-size:25px;line-height:1}
.busbahn-weather-copy{display:grid;min-width:0;line-height:1.08}
.busbahn-weather-place{font-size:13px}
.busbahn-weather-condition{max-width:105px;overflow:hidden;color:var(--sam-muted);font-size:11px;text-overflow:ellipsis}
.busbahn-weather-temperature{font-size:18px;line-height:1}
.welcome-row{width:100%;padding:14px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left))}
.welcome-media{display:grid;width:100%;max-width:1220px;margin:0 auto}
.sam-hero{display:block;width:100%;max-width:1200px;margin:0 auto}
.sam-hero img{display:block;width:100%;height:auto;object-fit:contain;border-radius:16px;border:1px solid var(--sam-line);background:#07101d}
.sam-brand-logo-dark{display:none!important}
html.dark-mode .sam-brand-logo-light,body.dark-mode .sam-brand-logo-light{display:none!important}
html.dark-mode .sam-brand-logo-dark,body.dark-mode .sam-brand-logo-dark{display:block!important}
.sam-page-ad{display:flex;justify-content:center;width:100%;margin:22px auto 18px}
.sam-brand-ad-strip .sam-page-ad{flex:1 1 auto;width:100%;margin:0;min-width:0}
.sam-ad-wrap{display:none;place-items:center;min-height:100px;overflow:hidden;width:100%}
.sam-ad-wrap iframe{display:block;max-width:100%;border:0;background:transparent}
.sam-consent-placeholder{margin:0;padding:14px;color:var(--sam-muted);text-align:center}
.sam-ad-desktop,.sam-ad-mobile{display:block;max-width:100%}
.sam-ad-wrap-desktop{display:grid;max-width:730px}
.sam-ad-wrap-mobile{display:none;max-width:330px}
.layout-grid{display:block;flex:1 1 auto;width:100%;min-height:0;margin:0;padding:28px max(10px,env(safe-area-inset-right)) 18px max(10px,env(safe-area-inset-left))}
.main-panel{width:100%;max-width:1400px;min-width:0;margin:0 auto;outline:none}
.site-footer{width:100%;margin:8px 0 0;padding:12px max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));border-top:1px solid var(--sam-line);background:var(--sam-panel);text-align:center}
.site-footer-links{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px 18px;min-width:0;white-space:nowrap}
.site-footer-copyright{display:flex;align-items:center;justify-content:center;margin:7px 0 0;color:var(--sam-muted);line-height:1.25}
.site-footer a,.footer-link{min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:3px 4px}
.site-footer-copyright a{display:inline;min-height:0;padding:0;font-weight:800}
.footer-link{border:0;background:transparent;color:var(--sam-blue);text-decoration:underline;cursor:pointer}
body.anbita-app .footer-busbahn-app-link,html.anbita-app-mode .footer-busbahn-app-link{display:none!important}
.legal-page{width:min(940px,100%);margin:0 auto;padding:clamp(18px,4vw,36px);border:1px solid var(--sam-line);border-radius:20px;background:var(--sam-panel);box-shadow:0 16px 42px rgba(12,30,55,.12)}
.legal-page h1{margin-top:0;font-size:clamp(28px,5vw,40px)}
.legal-page h2{margin-top:1.65em;font-size:22px}
.legal-page p,.legal-page li{line-height:1.7}
.legal-lead{font-size:18px;color:var(--sam-muted)}
.legal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.legal-block{padding:16px;border:1px solid var(--sam-line);border-radius:15px;background:var(--sam-panel-soft)}
.legal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.sam-text-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid var(--sam-blue);border-radius:12px;background:var(--sam-blue);color:#fff;text-decoration:none;font-weight:800}
.busbahn-entry-card-intro{width:min(720px,100%);text-align:center}
.busbahn-entry-card-intro h1{margin:0 0 18px}
.busbahn-welcome-logo{display:block;width:140px;max-width:38vw;margin:0 auto 20px}
.busbahn-welcome-logo img{display:block;width:100%;height:auto;object-fit:contain;background:transparent}
.busbahn-entry-copy{display:grid;gap:9px;max-width:590px;margin:0 auto 22px;font-size:17px}
.busbahn-entry-copy p{margin:0;line-height:1.65}
.busbahn-entry-card-intro .busbahn-entry-actions{justify-content:center;margin-top:4px}
.cookie-consent{
    position:fixed;
    z-index:2147483500;
    inset:0;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    background:rgba(0,0,0,.62);
}
.cookie-consent-window{width:min(680px,100%);max-height:88dvh;overflow:auto;padding:22px;border:1px solid var(--sam-line);border-radius:20px;background:var(--sam-panel);color:var(--sam-text);box-shadow:0 24px 80px rgba(0,0,0,.45)}
.cookie-consent-window h2{margin:0 0 10px}
.cookie-consent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.cookie-consent-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border:0;border-radius:13px;background:#ffd400;color:#111;font-weight:900;cursor:pointer}
.cookie-consent-button-secondary{border:1px solid var(--sam-line);background:var(--sam-panel-soft);color:var(--sam-text)}
:focus-visible{outline:3px solid var(--sam-focus);outline-offset:3px}

/* In der ausgelagerten Bus & Bahn-Seite gibt es bewusst keine linke Buttonleiste. */
.sam-standalone .layout-grid>.side-menu,.sam-standalone .side-menu,.sam-standalone .portal-sidebar,.sam-standalone .portal-navigation,.sam-standalone .anbita-navigation,.sam-standalone .anbita-mobile-symbol-nav,.sam-standalone .anbita-app-account-nav{display:none!important}
.sam-standalone .busbahn-page{width:100%;max-width:none;margin:0;padding:0}
.sam-standalone .busbahn-entry-card{color:var(--sam-text);background:var(--sam-panel);border-color:var(--sam-line)}
.sam-standalone.dark-mode .busbahn-entry-card,.dark-mode .sam-standalone .busbahn-entry-card{background:var(--sam-panel);color:var(--sam-text)}

/* Mitgliederbereich: Auf PC, Tablet und Laptop bleiben Logo, großes Banner, Wetter und Footer sichtbar. */
body.busbahn-member-area .welcome-row{display:none!important}
body.busbahn-member-area .layout-grid{padding:14px max(10px,env(safe-area-inset-right)) 18px max(10px,env(safe-area-inset-left))}
body.busbahn-member-area .main-panel{width:100%;max-width:1400px;min-height:0;margin:0 auto}
body.busbahn-member-area .busbahn-page{min-height:0}
body.busbahn-member-area .busbahn-app{height:clamp(620px,calc(100dvh - 260px),800px)}
body.anbita-app .sam-ad-wrap-desktop,html.anbita-app-mode .sam-ad-wrap-desktop{display:none!important}
body.anbita-app .sam-ad-wrap-mobile,html.anbita-app-mode .sam-ad-wrap-mobile{display:grid!important}

/* In der installierten App wird der Mitgliederbereich bildschirmfüllend; Logo, Banner und Footer verschwinden. */
body.busbahn-member-area.anbita-app .sam-member-header-media,
html.anbita-app-mode body.busbahn-member-area .sam-member-header-media,
body.busbahn-member-area.anbita-app .site-footer,
html.anbita-app-mode body.busbahn-member-area .site-footer{display:none!important}
body.busbahn-member-area.anbita-app .layout-grid,
html.anbita-app-mode body.busbahn-member-area .layout-grid{flex:1 1 auto;min-height:0;padding:0;overflow:hidden}
body.busbahn-member-area.anbita-app .main-panel,
html.anbita-app-mode body.busbahn-member-area .main-panel{width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:0}
body.busbahn-member-area.anbita-app .busbahn-page,
html.anbita-app-mode body.busbahn-member-area .busbahn-page{height:100%;min-height:0;overflow:hidden}
body.busbahn-member-area.anbita-app .busbahn-app,
html.anbita-app-mode body.busbahn-member-area .busbahn-app{width:100%;max-width:none;height:calc(var(--busbahn-viewport-height,100dvh) - 62px);min-height:0;max-height:none;margin:0;border-radius:0;border-left:0;border-right:0;border-bottom:0}
body.busbahn-member-area.anbita-app .site-shell,
html.anbita-app-mode body.busbahn-member-area .site-shell{height:var(--busbahn-viewport-height,100dvh);min-height:0;overflow:hidden}


/* Nur Smartphone-Browser und App blenden Mitglieder-Logo, Banner und Footer aus. Tablets behalten den normalen Footer. */
body.busbahn-member-area.sam-handset .sam-member-header-media,
body.busbahn-member-area.sam-handset .site-footer{display:none!important}
body.busbahn-member-area.sam-handset .layout-grid{flex:1 1 auto;min-height:0;padding:0;overflow:hidden}
body.busbahn-member-area.sam-handset .main-panel{width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:0}
body.busbahn-member-area.sam-handset .busbahn-page{height:100%;min-height:0;overflow:hidden}
body.busbahn-member-area.sam-handset .busbahn-app{width:100%;max-width:none;height:calc(var(--busbahn-viewport-height,100dvh) - 58px)!important;min-height:0;max-height:none;margin:0;border-radius:0;border-left:0;border-right:0;border-bottom:0}
body.busbahn-member-area.sam-handset .site-shell{height:var(--busbahn-viewport-height,100dvh);min-height:0;overflow:hidden}
@media(max-width:599px){
    body.busbahn-member-area .sam-member-header-media,body.busbahn-member-area .site-footer{display:none!important}
}

/* Dateivorschau und Eingabe bleiben auf schmalen Displays bedienbar. */
.sam-standalone .busbahn-composer-entry{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:6px}
.sam-standalone .busbahn-composer textarea{flex:none;width:100%}


@media(min-width:761px) and (max-width:1100px){
    .utility-bar{gap:7px;padding-left:7px;padding-right:7px}
    .utility-button{min-width:48px;padding-left:5px;padding-right:5px}
    .utility-label{font-size:10px}
    .sam-member-header-media{gap:8px;max-width:none}
    .sam-brand-ad-strip{gap:8px;width:min(100%,calc(120px + 8px + 730px))}
    .sam-brand-ad-logo,.sam-member-header-logo{width:120px;height:120px}
    .weather-strip{gap:3px}
    .busbahn-weather{min-width:142px;gap:5px;padding:5px 7px}
    .busbahn-weather-icon{width:25px;height:25px;font-size:21px}
    .busbahn-weather-condition{max-width:76px;font-size:10px}
    .busbahn-weather-temperature{font-size:16px}
    .site-footer{font-size:14px;padding-left:8px;padding-right:8px}
    .site-footer-links{gap:4px 10px}
    .site-footer a,.footer-link{padding-left:2px;padding-right:2px}
}

@media(max-width:760px){
    .utility-bar{min-height:58px;gap:5px;padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}
    .utility-actions,.weather-strip{gap:4px}
    .utility-button{min-width:44px;min-height:43px;padding:4px}
    .utility-label{display:none}
    .busbahn-weather{min-width:118px;min-height:43px;gap:5px;padding:4px 6px}
    .busbahn-weather-icon{width:24px;height:24px;font-size:20px}
    .busbahn-weather-place{font-size:11px}
    .busbahn-weather-condition{max-width:62px;font-size:9px}
    .busbahn-weather-temperature{font-size:15px}
    .welcome-row{padding:9px 6px 2px}
    .sam-brand-ad-strip{gap:8px;width:100%;margin:16px auto 14px}
    .sam-brand-ad-logo,.sam-member-header-logo{width:100px;height:100px}
    .sam-hero img{border-radius:10px}
    .sam-ad-wrap-desktop{display:none!important}
    .sam-ad-wrap-mobile{display:grid!important}
    .sam-page-ad{margin:16px auto 14px}
    .layout-grid{padding:18px 6px 12px}
    .site-footer{padding:9px max(7px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));font-size:14px}
    .site-footer-links{flex-wrap:wrap;gap:2px 10px;line-height:1.15;white-space:normal}
    .site-footer a,.footer-link{min-height:34px;padding:2px 3px}
    .site-footer-copyright{margin-top:4px}
}
@media(max-width:400px){
    .busbahn-weather{min-width:76px;gap:3px;padding:4px 5px}
    .busbahn-weather-copy{display:none}
    .busbahn-weather-icon{width:21px;height:21px;font-size:18px}
    .busbahn-weather-temperature{font-size:14px}
    .utility-button{min-width:41px}
}

@media(max-width:520px){
    .busbahn-entry-card-intro h1{margin-bottom:14px;font-size:clamp(27px,8vw,34px)}
    .busbahn-welcome-logo{width:108px;margin-bottom:16px}
    .busbahn-entry-copy{gap:7px;max-width:420px;margin-bottom:18px;font-size:16px}
    .busbahn-entry-card-intro .busbahn-entry-actions{gap:8px}
    .cookie-consent-actions{grid-template-columns:1fr}
}

@media(min-width:761px){body.busbahn-member-area .site-footer{display:block!important}}

body.busbahn-member-area .anbita-left-nav,
body.busbahn-member-area .anbita-side-navigation,
body.busbahn-member-area .anbita-navigation,
body.busbahn-member-area .portal-navigation,
body.busbahn-member-area .left-navigation,
body.busbahn-member-area .sidebar-navigation,
body.busbahn-member-area .community-left-nav,
body.busbahn-member-area .site-sidebar:not(.busbahn-sidebar),
body.busbahn-member-area aside:not(.busbahn-sidebar):not(.busbahn-chat):not(.busbahn-overview-panel){display:none!important}

@media(min-width:761px){
    body.busbahn-member-area .site-footer{width:100%;margin-top:8px;padding:12px max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));border-top:1px solid var(--sam-line);background:var(--sam-panel);text-align:center}
    body.busbahn-member-area .site-footer-links{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px 18px;white-space:nowrap}
}


@media(max-width:760px), (max-height:600px) and (pointer:coarse){
    .busbahn-entry-card-intro .busbahn-entry-actions{
        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
    }
    .busbahn-entry-card-intro .busbahn-entry-actions .busbahn-button{
        width:min(220px,100%)!important;
        margin:0 auto!important;
    }
}

/* Impressum: klare, gut lesbare Anbieterkennzeichnung für Web, Smartphone und App. */
.legal-page-imprint{width:min(980px,100%);padding:clamp(18px,4vw,38px)}
.legal-page-heading{max-width:760px;margin:0 0 clamp(20px,4vw,32px)}
.legal-page-heading h1{margin:3px 0 9px;line-height:1.12}
.legal-eyebrow{margin:0;color:var(--sam-blue);font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.legal-page-imprint .legal-lead{max-width:720px;margin:0;font-size:clamp(16px,2.2vw,18px);line-height:1.6}
.imprint-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,18px)}
.imprint-card{min-width:0;padding:clamp(17px,2.8vw,24px);border:1px solid var(--sam-line);border-radius:17px;background:var(--sam-panel-soft)}
.imprint-card-wide{grid-column:1/-1}
.legal-page-imprint .imprint-card h2{margin:0 0 13px;font-size:clamp(19px,2.5vw,23px);line-height:1.25}
.imprint-card p{margin:0;line-height:1.65}
.imprint-card p+p{margin-top:11px}
.imprint-address{margin:0;color:var(--sam-text);font-style:normal;line-height:1.7}
.imprint-details{display:grid;gap:0;margin:0}
.imprint-details>div{display:grid;grid-template-columns:minmax(90px,.38fr) minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--sam-line)}
.imprint-details>div:first-child{padding-top:0}
.imprint-details>div:last-child{padding-bottom:0;border-bottom:0}
.imprint-details dt{color:var(--sam-muted);font-weight:800}
.imprint-details dd{min-width:0;margin:0;overflow-wrap:anywhere}
.imprint-details a{font-weight:800}
.imprint-note{margin-top:16px!important;padding-top:14px;border-top:1px solid var(--sam-line);color:var(--sam-muted);font-size:14px}
.imprint-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:clamp(20px,4vw,30px)}
.imprint-updated{margin:0;color:var(--sam-muted);font-size:14px}
.legal-page-imprint .legal-actions{margin:0}
.legal-page-imprint .sam-text-button{min-height:44px;padding:9px 15px}
@media(max-width:700px){
    .legal-page-imprint{padding:18px 14px;border-radius:16px}
    .imprint-grid{grid-template-columns:1fr}
    .imprint-card-wide{grid-column:auto}
    .imprint-card{padding:17px 15px;border-radius:14px}
    .imprint-details>div{grid-template-columns:1fr;gap:2px;padding:11px 0}
    .imprint-footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:380px){
    .legal-page-imprint{padding-left:11px;padding-right:11px}
    .imprint-card{padding-left:13px;padding-right:13px}
}

/* Version 347: eigenständige Bus & Bahn-Rechtsseiten und Cookie-Einstellungen. */
.legal-page-structured{width:min(1000px,100%);padding:clamp(18px,4vw,38px)}
.legal-page-structured .legal-page-heading{max-width:800px;margin-bottom:clamp(20px,4vw,32px)}
.legal-page-structured .legal-page-heading h1{margin:3px 0 9px;line-height:1.12}
.legal-page-structured .legal-lead{max-width:780px;margin:0;font-size:clamp(16px,2.2vw,18px);line-height:1.65}
.legal-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,18px)}
.legal-card{min-width:0;padding:clamp(17px,2.7vw,24px);border:1px solid var(--sam-line);border-radius:17px;background:var(--sam-panel-soft)}
.legal-card-wide{grid-column:1/-1}
.legal-card h2,.legal-section h2,.cookie-category-card h2{margin:0 0 12px;font-size:clamp(19px,2.5vw,23px);line-height:1.28}
.legal-card p,.legal-section p{margin:0;line-height:1.7}
.legal-card p+p,.legal-section p+p{margin-top:12px}
.legal-address{margin:0;color:var(--sam-text);font-style:normal;line-height:1.72}
.legal-address-spaced{margin-top:12px}
.legal-detail-list{display:grid;gap:0;margin:0}
.legal-detail-list>div{display:grid;grid-template-columns:minmax(105px,.4fr) minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--sam-line)}
.legal-detail-list>div:first-child{padding-top:0}
.legal-detail-list>div:last-child{padding-bottom:0;border-bottom:0}
.legal-detail-list dt{color:var(--sam-muted);font-weight:800}
.legal-detail-list dd{min-width:0;margin:0;overflow-wrap:anywhere}
.legal-detail-list a{font-weight:800}
.legal-note{margin-top:15px!important;padding-top:13px;border-top:1px solid var(--sam-line);color:var(--sam-muted);font-size:14px}
.legal-section-stack{display:grid;gap:14px}
.legal-section{min-width:0;padding:clamp(17px,2.7vw,24px);border:1px solid var(--sam-line);border-radius:17px;background:var(--sam-panel-soft)}
.legal-section h3{margin:0 0 6px;font-size:17px}
.legal-list{margin:10px 0 0;padding-left:22px}
.legal-list li+li{margin-top:8px}
.legal-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:16px 0}
.legal-list-grid>div{min-width:0;padding:14px;border:1px solid var(--sam-line);border-radius:13px;background:var(--sam-panel)}
.legal-list-grid p{color:var(--sam-muted);font-size:15px}
.legal-page-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:clamp(20px,4vw,30px)}
.legal-updated{margin:0;color:var(--sam-muted);font-size:14px}
.legal-page-footer .legal-actions{justify-content:flex-end;margin:0}
.sam-text-button-secondary{border-color:var(--sam-line);background:var(--sam-panel-soft);color:var(--sam-text)}
.legal-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--sam-line);border-radius:13px;background:var(--sam-panel)}
.legal-table{width:100%;min-width:660px;border-collapse:collapse;text-align:left}
.legal-table th,.legal-table td{padding:12px 13px;border-bottom:1px solid var(--sam-line);vertical-align:top}
.legal-table th{background:var(--sam-panel-soft);font-size:14px}
.legal-table tr:last-child td{border-bottom:0}
.legal-table code{overflow-wrap:anywhere}

.cookie-settings-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:14px 16px;border:1px solid var(--sam-line);border-radius:15px;background:var(--sam-panel-soft)}
.cookie-settings-status span{color:var(--sam-muted);font-weight:700}
.cookie-settings-status strong{text-align:right}
.cookie-category-list{display:grid;gap:12px}
.cookie-category-card{padding:18px;border:1px solid var(--sam-line);border-radius:16px;background:var(--sam-panel-soft)}
.cookie-category-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.cookie-category-heading h2{margin-bottom:5px}
.cookie-category-heading p{margin:0;color:var(--sam-muted);line-height:1.55}
.cookie-category-state{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:34px;padding:5px 10px;border:1px solid var(--sam-line);border-radius:999px;background:var(--sam-panel);color:var(--sam-muted);font-size:13px;font-weight:800;white-space:nowrap}
.cookie-switch{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;cursor:pointer;user-select:none}
.cookie-switch input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.cookie-switch>span{position:relative;width:46px;height:26px;border:1px solid var(--sam-line);border-radius:999px;background:var(--sam-panel);transition:.18s ease}
.cookie-switch>span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--sam-muted);transition:.18s ease}
.cookie-switch input:checked+span{border-color:var(--sam-blue);background:var(--sam-blue)}
.cookie-switch input:checked+span::after{left:23px;background:#fff}
.cookie-switch input:focus-visible+span{outline:3px solid var(--sam-focus);outline-offset:3px}
.cookie-switch>strong{font-size:14px}
.cookie-page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:15px 0 24px}
.cookie-page-actions .cookie-consent-button{width:auto;min-height:43px;padding:8px 14px}
.cookie-details{margin-top:0}

/* Das Bus & Bahn-Cookiefenster bleibt unten rechts und blockiert die Seite nicht. */
.cookie-consent{position:fixed;z-index:2147483500;inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto;display:block;width:min(430px,calc(100vw - 24px));padding:0;background:transparent;pointer-events:none}
.cookie-consent-window{position:relative;width:100%;max-height:min(78dvh,680px);overflow:auto;padding:19px;border:1px solid var(--sam-line);border-radius:18px;background:var(--sam-panel);color:var(--sam-text);box-shadow:0 18px 55px rgba(0,0,0,.38);pointer-events:auto;overscroll-behavior:contain}
.cookie-consent-window h2{margin:2px 34px 8px 0;font-size:22px;line-height:1.2}
.cookie-consent-window p{line-height:1.55}
.cookie-consent-eyebrow{margin:0;color:var(--sam-blue);font-size:12px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.cookie-consent-close{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--sam-line);border-radius:50%;background:var(--sam-panel-soft);color:var(--sam-text);font-size:24px;line-height:1;cursor:pointer}
.cookie-consent-categories{display:grid;gap:8px;margin-top:14px}
.cookie-consent-category{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid var(--sam-line);border-radius:13px;background:var(--sam-panel-soft)}
.cookie-consent-category>div,.cookie-consent-category>span:first-child{display:grid;gap:2px;min-width:0}
.cookie-consent-category span,.cookie-consent-category small{color:var(--sam-muted);font-size:13px;line-height:1.35}
.cookie-consent-category-switch{cursor:pointer}
.cookie-consent-category-switch .cookie-switch{display:inline-flex}
.cookie-consent-links{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 0;font-size:14px}
.cookie-consent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:13px}
.cookie-consent-button{width:auto;min-height:43px;padding:8px 12px;border-radius:11px;white-space:nowrap}
.cookie-consent-button-secondary{border:1px solid var(--sam-line);background:var(--sam-panel-soft);color:var(--sam-text)}

@media(max-width:700px){
    .legal-page-structured{padding:18px 12px;border-radius:16px}
    .legal-card-grid,.legal-list-grid{grid-template-columns:1fr}
    .legal-card-wide{grid-column:auto}
    .legal-card,.legal-section{padding:17px 14px;border-radius:14px}
    .legal-detail-list>div{grid-template-columns:1fr;gap:2px;padding:11px 0}
    .legal-page-footer{align-items:flex-start;flex-direction:column}
    .legal-page-footer .legal-actions{justify-content:flex-start}
    .cookie-category-heading{align-items:flex-start;flex-direction:column}
    .cookie-settings-status{align-items:flex-start;flex-direction:column;gap:4px}
    .cookie-settings-status strong{text-align:left}
}
@media(max-width:520px){
    .cookie-consent{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));width:auto}
    .cookie-consent-window{max-height:72dvh;padding:15px;border-radius:15px}
    .cookie-consent-category{align-items:flex-start;flex-direction:column}
    .cookie-consent-category-switch .cookie-switch{align-self:flex-end}
    .cookie-consent-actions{gap:7px}
    .cookie-consent-button{flex:1 1 130px;min-width:0;white-space:normal}
    .cookie-page-actions .cookie-consent-button{flex:1 1 130px}
}
@media(max-width:380px){
    .legal-page-structured{padding-left:9px;padding-right:9px}
    .legal-card,.legal-section{padding-left:12px;padding-right:12px}
    .cookie-consent-window{padding:13px}
    .cookie-consent-button{font-size:14px}
}


/* Bus & Bahn Update 368: kompaktes Kunstwetter auf Smartphone und in der App. */
@media(max-width:760px){
    body.busbahn-member-area .busbahn-weather,
    body.anbita-app .busbahn-weather{
        flex:0 0 auto;
        width:auto;
        min-width:102px;
        max-width:116px;
        height:43px;
        min-height:43px;
        max-height:43px;
        margin-left:auto;
        margin-right:6px;
        padding:4px 6px;
        gap:4px;
        box-sizing:border-box;
        overflow:hidden;
    }
    body.busbahn-member-area .busbahn-weather-copy,
    body.anbita-app .busbahn-weather-copy{
        display:flex!important;
        flex:0 1 auto;
        min-width:0;
        align-items:center;
    }
    body.busbahn-member-area .busbahn-weather-place,
    body.anbita-app .busbahn-weather-place{
        display:block;
        min-width:0;
        font-size:11px;
        line-height:1;
        white-space:nowrap;
    }
    body.busbahn-member-area .busbahn-weather-condition,
    body.anbita-app .busbahn-weather-condition{
        display:none!important;
    }
    body.busbahn-member-area .busbahn-weather-icon,
    body.anbita-app .busbahn-weather-icon{
        flex:0 0 22px;
        width:22px;
        height:22px;
        font-size:19px;
    }
    body.busbahn-member-area .busbahn-weather-temperature,
    body.anbita-app .busbahn-weather-temperature{
        flex:0 0 auto;
        font-size:14px;
        white-space:nowrap;
    }
}
@media(max-width:360px){
    body.busbahn-member-area .busbahn-weather,
    body.anbita-app .busbahn-weather{
        min-width:96px;
        max-width:102px;
        margin-right:3px;
        padding-left:4px;
        padding-right:4px;
    }
    body.busbahn-member-area .busbahn-weather-place,
    body.anbita-app .busbahn-weather-place{font-size:10px;}
}

/* Bus & Bahn nutzt das runde Bereichslogo im Bannerbereich. Gruppenbilder
   werden weiterhin ausschließlich über die Gruppeneinstellungen gepflegt. */
.busbahn-text-brand,.busbahn-welcome-text-logo,.busbahn-hero-text{
    display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;text-align:center;color:inherit
}
.busbahn-text-brand strong,.busbahn-welcome-text-logo strong,.busbahn-hero-text strong{font-size:clamp(1.35rem,3vw,2.35rem);line-height:1.05;font-weight:900}
.busbahn-text-brand span,.busbahn-welcome-text-logo span,.busbahn-hero-text span{font-size:.9rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-top:.25rem}
.busbahn-hero-text{min-height:110px;padding:18px 24px}
.busbahn-welcome-text-logo{min-height:150px;margin:10px auto 18px}

@media(max-width:430px){
    .sam-brand-ad-strip{gap:6px}
    .sam-brand-ad-logo,.sam-member-header-logo{width:84px;height:84px}
}
