/* Shared presentation for public pages and the customer account. Homepage tokens. */
/* Keep Google translation behind the site's own language controls.
   Do not hide nested .skiptranslate elements: they include the working widget. */
body.site-refresh { top: 0 !important; }
body.site-refresh > .skiptranslate,
body.site-refresh iframe.goog-te-banner-frame,
body.site-refresh iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
}
body.site-refresh {
    --primary: #003139;
    --primary-dark: #003139;
    --primary-light: #12464d;
    --primary-green: #003139;
    --accent-green: #56e341;
    --shell-green: #003139;
    --background-light: #f4f7f5;
    --sidebar-width: 264px;
    --site-ink: #003139;
    --site-muted: #52676c;
    --site-line: #dbe5e3;
    --site-green: #56e341;
    --site-soft: #eaf6e7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f4f7f5 !important;
    color: var(--site-ink);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}
.site-refresh *, .site-refresh *::before, .site-refresh *::after { box-sizing: border-box; }
.site-refresh *:not(.material-symbols-outlined) { font-family: inherit; }
.site-refresh .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; }
.site-refresh input, .site-refresh select, .site-refresh textarea, .site-refresh button { font-family: inherit; }
.site-refresh :focus-visible { outline: 3px solid #08747c !important; outline-offset: 4px; }
.site-refresh a { text-underline-offset: 4px; }
.site-refresh img { max-width: 100%; }
.site-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10001; background: white; padding: 12px 20px; color: #003139; }
.site-frame-header { background: white; border-bottom: 1px solid var(--site-line); position: relative; z-index: 10; }
.site-frame-inner { width: min(1200px, calc(100% - 64px)); min-height: 96px; margin: 0 auto; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.site-brand { display: inline-flex; gap: 12px; align-items: center; color: #003139; font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.site-brand img { width: 52px; height: 52px; object-fit: contain; }
.site-brand small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: #52676c; }
.site-frame-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-frame-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #003139; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-frame-nav a:hover, .site-frame-nav a[aria-current='page'] { text-decoration: underline; }
.site-frame-nav .site-nav-action { background: #56e341; color: #003139; border-radius: 8px; padding: 10px 18px; }
.site-frame-footer { border-top: 1px solid var(--site-line); background: white; padding: 24px 0; }
.site-footer-inner { width: min(1200px, calc(100% - 64px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #52676c; font-size: 13px; }
.site-footer-inner a { color: #003139; }
.site-footer-inner p { margin: 0; }

/* Account pages: petrol introduction and a form card with no nested scrolling. */
body.auth-page { display: block; }
.account-layout { width: min(1120px, calc(100% - 64px)); margin: 56px auto 64px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: start; }
.account-intro { padding: 42px; border-radius: 16px; background: #003139; color: white; }
.account-intro .account-eyebrow { margin: 0 0 24px; color: #bcd1d3; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.account-intro h2 { margin: 0 0 24px; color: white; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.account-intro h2 span { color: #56e341; }
.account-intro > p:not(.account-eyebrow) { margin: 0; color: #c3d6d8; font-size: 16px; line-height: 1.7; }
.account-intro ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.account-intro li { display: flex; align-items: start; gap: 12px; font-size: 14px; line-height: 1.6; }
.account-intro li::before { content: '✓'; color: #56e341; font-weight: 700; flex: 0 0 auto; }
.account-intro > a { display: inline-flex; margin-top: 28px; align-items: center; min-height: 44px; color: white; font-size: 14px; text-decoration: underline; }
.account-stage { min-width: 0; }
.auth-page .account-stage > :is(.login-container, .register-container, .forgot-container, .reset-container, .verify-container, .container) {
    width: 100%; max-width: none; height: auto; max-height: none; margin: 0; overflow: visible;
    padding: 36px; background: white; border: 1px solid var(--site-line); border-radius: 16px;
    box-shadow: 0 12px 36px rgb(0 49 57 / 6%); text-align: left;
}
.auth-page .account-stage > :is(.login-container, .register-container, .forgot-container, .reset-container, .verify-container, .container) > :is(.login-logo, .register-logo, .forgot-logo, .reset-logo, .verify-logo, .logo) { display: none; }
.auth-page .account-stage h1 { color: #003139; font-size: 30px; line-height: 1.18; letter-spacing: -.035em; text-align: left; margin: 0 0 12px; overflow-wrap: anywhere; }
.auth-page :is(.login-subtitle, .register-subtitle, .forgot-subtitle, .reset-subtitle, .verify-subtitle, .subtitle) { color: #52676c; font-size: 15px; line-height: 1.65; text-align: left; margin-bottom: 26px; }
.auth-page .form-group { min-width: 0; margin-bottom: 20px; }
.auth-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-page .form-row .form-group { width: auto; flex: initial; }
.auth-page :is(.form-label, .form-group > label) { color: #003139; font-size: 14px; font-weight: 600; }
.auth-page .account-stage input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not(.token-input),
.auth-page .account-stage select, .auth-page .account-stage textarea {
    width: 100%; max-width: 100%; min-height: 52px; border: 1px solid #82948e; border-radius: 8px;
    padding: 13px 14px; background: white; color: #003139; font-size: 16px; line-height: 1.4;
}
.auth-page .account-stage input::placeholder { color: #687b7e; opacity: 1; }
.auth-page .account-stage input[type='checkbox'] { accent-color: #003139; flex-shrink: 0; }
.auth-page :is(.btn-login, .btn-register, .btn-submit, .btn-verify, .btn-continue) { min-height: 52px; padding: 14px 20px; border: 1px solid #56e341; border-radius: 8px; background: #56e341 !important; color: #003139 !important; font-size: 16px; font-weight: 700; box-shadow: none; text-align: center; }
.auth-page :is(.btn-login, .btn-register, .btn-submit, .btn-verify, .btn-continue):hover { background: #49d335 !important; transform: none; box-shadow: none; }
.auth-page :is(.checkbox-group, .form-options) { font-size: 13px; line-height: 1.65; }
.auth-page :is(.forgot-password, .register-link a, .login-link a, .back-link, .checkbox-group a, .resend-link) { color: #003139; }
.auth-page :is(.btn-safepal, .btn-activation) { min-height: 48px; background: #f4f7f5; color: #003139; border: 1px solid #dbe5e3; border-radius: 8px; box-shadow: none; }
.auth-page :is(.info-box, .notice) { border-radius: 10px; box-shadow: none; }
.auth-page .token-input { min-width: 0; width: 100%; border: 1px solid #82948e; border-radius: 8px; color: #003139; font-size: 24px; }
.auth-page :is(.token-container, .token-input-group) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.auth-page .bonus { background: #eaf6e7; border: 1px solid #cbdcc6; box-shadow: none; }
.auth-page .bonus-amount { color: #003139; }

/* Existing authenticated layouts keep their routes, data and controls. */
.portal-page { background: #f4f7f5; }
.portal-page .main-content { min-width: 0; background: #f4f7f5; }
.portal-page .main-content :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.portal-page .main-content :is(.form-group, .card, .step-card, .upload-zone, .doc-preview) { min-width: 0; max-width: 100%; }
.portal-page .main-content :is(.card, .step-card, .upload-zone) { overflow-wrap: anywhere; }
.portal-page .content-wrapper { width: 100%; min-width: 0; max-width: 1440px; margin-inline: auto; padding: 32px; }
.portal-page :is(.portfolio-section, .portfolio-section > *, .header > *) { min-width: 0; max-width: 100%; }
.portal-page .main-content :is(.grid, [class*='-grid'], .flex) > * { min-width: 0; }
.portal-page .grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.portal-page .grid-cards > * { min-width: 0; max-width: 100%; }
.portal-page .main-content :is(canvas, svg, iframe, .tradingview-widget-container) { max-width: 100%; }
.portal-page :is(h1, h2, .header-title) { overflow-wrap: anywhere; }
.portal-page .sidebar { width: var(--sidebar-width); background: white; border-right: 1px solid #dbe5e3; }
.portal-page #sidebar-container.open .sidebar { transform: translateX(0); }
.portal-page .sidebar-header { justify-content: flex-start; padding: 22px 20px; border-bottom: 1px solid #dbe5e3; min-height: 100px; }
.portal-page .sidebar-header .site-brand { font-size: 15px; gap: 10px; }
.portal-page .sidebar-header .site-brand img { width: 44px !important; height: 44px !important; max-width: 44px !important; border-radius: 0 !important; }
.portal-page .sidebar-header .site-brand small { font-size: 12px; }
.portal-page .sidebar-nav { padding: 18px 12px; }
.portal-page .nav-section-title { color: #52676c; letter-spacing: .08em; font-size: 10px; }
.portal-page .nav-item { min-height: 44px; color: #36585e; border-radius: 8px; margin-bottom: 4px; }
.portal-page .nav-item .material-symbols-outlined { font-size: 20px; }
.portal-page .nav-item:hover { background: #f4f7f5; color: #003139; }
.portal-page .nav-item.active { background: #eaf6e7; color: #003139; border-left-color: #003139; font-weight: 700; }
.portal-page .sidebar-footer { border-top-color: #dbe5e3; }
.portal-page .header { margin-bottom: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.portal-page .header-title { color: #003139; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.2; }
.portal-page .header-subtitle { color: #52676c; font-size: 14px; line-height: 1.6; }
.portal-page .portal-home-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 600; text-decoration: underline; }
.portal-page :is(.card, .stat-card, .quick-action-card, .settings-card, .section-card, .bank-card, .product-card) { border: 1px solid #dbe5e3; border-radius: 16px; box-shadow: 0 8px 28px rgb(0 49 57 / 4%); }
.portal-page :is(.hero-section, .bank-header, .verify-header, .deposit-header, .stock-header, .cashback-header, .settings-header, .festgeld-header, .depot-header, .konto-header) { background: #003139 !important; border-radius: 16px; box-shadow: none; }
.portal-page .hero-section::before { display: none; }
.portal-page :is(.hero-section, .bank-header, .verify-header, .deposit-header, .stock-header, .cashback-header) :is(h1, h2) { color: white; }
.portal-page .page-header { background: #003139; border-radius: 16px; }
.portal-page .page-header .header-title { color: white; }
.portal-page .info-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.portal-page .limit-header { flex-wrap: wrap; gap: 12px; }
.portal-page .limit-value { overflow-wrap: anywhere; }
.portal-page :is(.btn-primary, .btn-success) { background: #56e341; color: #003139; border-radius: 8px; border: 1px solid #56e341; box-shadow: none; }
.portal-page :is(.btn-primary, .btn-success):hover { background: #49d335; box-shadow: none; }
.portal-page .btn-dark { background: #003139; color: white; border-radius: 8px; }
.portal-page :is(.btn-secondary, .btn-outline) { border-color: #dbe5e3; color: #003139; border-radius: 8px; }
.portal-page :is(.form-input, .form-select) { border: 1px solid #82948e; border-radius: 8px; min-height: 48px; color: #003139; font-size: 16px; }
.portal-page .mobile-toggle { border: 1px solid #dbe5e3; background: white; box-shadow: 0 4px 16px rgb(0 49 57 / 8%); color: #003139; }
.portal-page .logout-btn { background: #f4f7f5; color: #003139; }
.portal-page .nav-tabs { max-width: 100%; overflow-x: auto; }
.portal-page .nav-tabs .nav-tab { flex-shrink: 0; }
.portal-page .toggle-checkbox-wrapper { margin-bottom: 12px; position: relative; }
.portal-page .toggle-label { display: block; position: relative; width: 100%; min-height: 44px; height: auto; padding: 9px 68px 9px 0; background: transparent !important; font-size: 14px; line-height: 1.7; }
.portal-page .toggle-label::before { content: ''; position: absolute; right: 0; top: calc(50% - 15px); width: 52px; height: 30px; border-radius: 20px; background: #c6d2ce; }
.portal-page .toggle-label::after { left: auto; right: 24px; top: calc(50% - 12px); width: 24px; height: 24px; }
.portal-page .toggle-checkbox:checked + .toggle-label::before { background: #003139; }
.portal-page .toggle-checkbox:checked + .toggle-label::after { transform: translateX(20px); }
.portal-page .toggle-checkbox { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; clip-path: inset(50%); }
.portal-page .toggle-checkbox:focus-visible + .toggle-label::before { outline: 3px solid #08747c; outline-offset: 3px; }
@media (max-width: 1024px) { .portal-page.site-menu-open { overflow: hidden; } }

/* Public forms: common navigation and tokens, preserve all offer content. */
.public-page .public-content { width: min(1120px, calc(100% - 64px)); margin: 48px auto 64px; }
.appointment-page .public-content > .container { max-width: 850px; width: 100%; margin: 0 auto; }
.appointment-page :is(.hero-section, .form-header) { background: #003139; box-shadow: none; }
.appointment-page .hero-section { border-radius: 16px; padding: 36px; margin-bottom: 28px; }
.appointment-page .hero-section h1 { color: white; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.appointment-page .hero-section p { color: #c3d6d8; }
.appointment-page .form-card { border: 1px solid #dbe5e3; border-radius: 16px; box-shadow: 0 12px 36px rgb(0 49 57 / 6%); }
.appointment-page :is(input, select, textarea) { border: 1px solid #82948e; border-radius: 8px; font-size: 16px; color: #003139; }
.appointment-page .submit-btn { background: #56e341; color: #003139; border-radius: 8px; box-shadow: none; }
.appointment-page .submit-btn:hover { background: #49d335; transform: none; box-shadow: none; }
.public-table-page .public-content { max-width: 1000px; }
.public-table-page .public-content > table { margin-left: auto; margin-right: auto; max-width: 100%; }
.public-table-page .public-content > table[width='100%'] { background: transparent !important; }
.public-table-page .public-content table[width='650'] { width: 100% !important; max-width: 900px; }
.public-table-page .public-content table { table-layout: fixed; max-width: 100%; }
.public-table-page .public-content td, .public-table-page .public-content th { overflow-wrap: anywhere; }
.public-table-page .public-content :is(canvas, svg, img) { max-width: 100%; }
.site-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #dbe5e3; border-radius: 10px; }
.site-table-scroll > table { min-width: 620px; }
.public-table-page .public-content table[width='650'] > tbody > tr > td { padding: 28px !important; }
.public-table-page .public-content input:not([type='checkbox']):not([type='radio']),
.public-table-page .public-content select, .public-table-page .public-content textarea { min-width: 0; max-width: 100%; border: 1px solid #82948e !important; border-radius: 8px !important; font-size: 16px !important; color: #003139; }
.public-table-page .public-content button[type='submit'] { min-height: 52px; background: #56e341 !important; color: #003139 !important; border: 1px solid #56e341 !important; border-radius: 8px !important; }

@media (max-width: 1024px) {
    .account-layout { gap: 28px; }
    .account-intro { padding: 32px; }
    .auth-page .account-stage > :is(.login-container, .register-container, .forgot-container, .reset-container, .verify-container, .container) { padding: 28px; }
    .portal-page .content-wrapper { padding: 76px 24px 32px; }
}
@media (max-width: 760px) {
    .portal-page .main-content .grid > [class*='col-span'] { grid-column: auto !important; }
    .portal-page .main-content :is(.form-input, .form-select) { width: 100%; }
    .portal-page .main-content .flex { flex-wrap: wrap; }
    .portal-page .main-content :is(.grid, .grid-cards, [class*='-grid'], .portfolio-section) { grid-template-columns: minmax(0, 1fr) !important; }
    .portal-page .main-content :is(.grid, [class*='-grid']) > * { max-width: 100%; }
    .portal-page .main-content :is(.w-1\/3, .w-2\/3, .w-1\/2) { width: 100%; }
    .portal-page .main-content [style*='min-width'] { min-width: 0 !important; }
    .portal-page .main-content :is(.p-8, .p-6) { padding: 20px; }
    .portal-page :is(.hero-section, .bank-header, .verify-header, .deposit-header, .stock-header, .cashback-header, .settings-header, .festgeld-header, .depot-header, .konto-header) { padding: 24px; }
    .portal-page .hero-logo { position: static; margin-bottom: 20px; }
    .portal-page .hero-account, .portal-page .hero-verification { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .portal-page .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .portal-page :is(.hero-stat-value, .portfolio-value, .bonus-rate, .balance-value, .festgeld-rate) { font-size: 28px; }
    .portal-page :is(.amount-presets, .stock-actions, .trust-badges, .limit-actions, .limit-footer, .card-header, .settings-row) { flex-wrap: wrap; gap: 12px; }
    .portal-page .settings-row > div:first-child { flex: 1 1 160px; min-width: 0; }
    .portal-page :is(.trust-badge, .status-badge, .feature-value, .rate-label, .step-title) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .portal-page .info-item { min-width: 0; overflow-wrap: anywhere; }
    .portal-page .perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .site-frame-inner { width: calc(100% - 40px); min-height: 84px; gap: 12px 20px; padding-block: 16px; flex-wrap: wrap; }
    .site-brand { font-size: 16px; }
    .site-brand img { width: 44px; height: 44px; }
    .site-frame-nav { gap: 20px; }
    .account-layout { width: calc(100% - 40px); margin-block: 28px 40px; grid-template-columns: 1fr; gap: 22px; }
    .account-stage { order: -1; }
    .account-intro { padding: 28px; }
    .account-intro h2 { font-size: 32px; margin-bottom: 16px; }
    .account-intro .account-eyebrow { margin-bottom: 16px; }
    .account-intro ul { margin-top: 20px; gap: 10px; }
    .account-intro > a { margin-top: 16px; }
    .site-footer-inner { width: calc(100% - 40px); }
    .public-page .public-content { width: calc(100% - 40px); margin-block: 28px 40px; }
    .public-table-page .public-content table[width='650'] > tbody > tr > td { padding: 20px !important; }
}
@media (max-width: 480px) {
    .site-frame-nav { width: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid #dbe5e3; padding-top: 10px; }
    .site-frame-nav a { font-size: 13px; }
    .site-frame-nav .site-nav-action { padding-inline: 12px; }
    .account-intro { padding: 24px; }
    .account-intro ul { display: none; }
    .account-intro h2 { font-size: 30px; }
    .account-intro > p:not(.account-eyebrow) { font-size: 15px; }
    .auth-page .account-stage > :is(.login-container, .register-container, .forgot-container, .reset-container, .verify-container, .container) { padding: 24px 20px; }
    .auth-page .account-stage h1 { font-size: 27px; }
    .auth-page .form-row { grid-template-columns: 1fr; gap: 0; }
    .auth-page :is(.token-container, .token-input-group) { gap: 5px; }
    .auth-page .token-input { height: 46px; padding: 4px; font-size: 20px; }
    .portal-page .content-wrapper { padding: 76px 16px 24px; }
    .portal-page .page-header { padding: 24px; }
    .portal-page .limit-value { font-size: 23px; }
    .portal-page .sidebar-header { padding: 20px; }
    .portal-page .sidebar-header .site-brand { font-size: 14px; }
    .appointment-page .hero-section { padding: 28px 22px; }
    .public-table-page .public-content table[width='650'] > tbody > tr > td { padding: 18px 14px !important; }
    .public-table-page .public-content [style*='min-width'] { min-width: 0 !important; }
    .public-table-page .public-content [style*='display:flex'], .public-table-page .public-content [style*='display: flex'] { flex-wrap: wrap; }
    .public-table-page .public-content img[src='image/shell-logo.png'] { width: 64px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .site-refresh *, .site-refresh *::before, .site-refresh *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
