/* ==========================================
   CSS VARIABLES (exact HEX values)
   ========================================== */
:root {
    --page-bg: #F3F5F7;
    --card-bg: #FFFFFF;
    
    --text-900: #0F172A;
    --text-800: #1F2937;
    --text-700: #334155;
    --text-600: #475569;
    --text-500: #64748B;
    --text-400: #94A3B8;
    --border-200: #E2E8F0;
    
    --hero-overlay-top: rgba(11, 26, 51, 0.92);
    --hero-overlay-bottom: rgba(17, 27, 46, 0.92);
    
    --teal-strip: #71C7C6;
    --teal-check: #3AAFA9;
    --btn-red: #D81E2A;
    --btn-red-hover: #BF1822;
    
    --star-gold: #F5B301;
    --star-empty: #E2E8F0;
    
    --winner-orange: #F5A623;
    --score-green: #2CC38A;
    
    --shadow-1: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 6px 18px rgba(15, 23, 42, 0.10);
    
    --radius-card: 6px;
    --radius-btn: 3px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-700);
    background-color: var(--page-bg);
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================
   TOP NAVIGATION
   ========================================== */
.top-nav {
    position: relative;
    background: #000000;
    padding: 8px 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    transform: translateY(-7%);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    min-height: auto;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.nav-caret {
    margin-left: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    padding-top: 54px;
    padding-bottom: 100px;
    margin-top: 0;
    min-height: 500px;
    background-color: var(--page-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/assets/hero.webp");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 520px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-avatrade-card {
    margin-top: 75px;
    position: relative;
    z-index: 20;
}

.hero-avatrade-card .ranking-card {
    position: relative;
    z-index: 20;
}

.hero-avatrade-card .ranking-card {
    min-height: 320px;
    height: auto;
}

.hero-title {
    font-size: 34.5px;
    line-height: 41px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.hero-subheadline {
    font-size: 16.1px;
    line-height: 25px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-additional-text {
    font-size: 12px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    margin-bottom: 0;
}

.hero-risk-disclaimer {
    font-size: 10px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

/* ==========================================
   RANKING SECTION
   ========================================== */
.ranking-section {
    margin-top: -66px;
    padding-top: 56px;
    padding-bottom: 0;
}

.ranking-card {
    display: grid;
    grid-template-columns: 34px 216px 0.86fr 205px;
    min-height: 290px;
    height: auto;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    margin-bottom: 22px;
    overflow: visible;
}

.ranking-stripe {
    width: 34px;
    background: var(--teal-strip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 700;
    color: #FFFFFF;
}

.ranking-logo {
    padding-left: 8px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ranking-logo::after {
    content: '';
    position: absolute;
    right: 7%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #EEF2F6;
}

.ranking-logo img {
    max-width: 140px;
    max-height: 40px;
    object-fit: contain;
}

.ranking-content {
    padding-top: 36px;
    padding-bottom: 28px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

.ranking-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #EEF2F6;
}

.ranking-description {
    font-size: 14px;
    line-height: 23px;
    color: var(--text-700);
    margin-bottom: 28px;
    font-weight: 500;
    word-spacing: 0.2em;
}

.ranking-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 12px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 22px;
    color: var(--text-500);
    font-weight: 600;
}

.bullet-icon {
    width: 14px;
    height: 14px;
    color: var(--teal-check);
    flex-shrink: 0;
}

.ranking-cta {
    padding-top: 36px;
    padding-bottom: 28px;
    padding-left: 63px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.cta-button {
    width: 185px;
    height: 54px;
    background: var(--btn-red);
    border-radius: 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
    margin: 0 auto 0 -9px;
}

.cta-button:hover {
    background: var(--btn-red-hover);
}

.rating-text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-500);
    text-align: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.risk-notice {
    font-size: 10px;
    line-height: 14px;
    color: var(--text-400);
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.risk-notice::before {
    content: '🔒 ';
    color: var(--star-gold);
    display: inline;
}

.stars {
    margin-top: 0.4px;
    display: flex;
    gap: 2px;
    justify-content: center;
    width: 185px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-9px);
}

.star {
    font-size: 24px;
    color: var(--star-empty);
    position: relative;
    display: inline-block;
}

.star.filled {
    color: var(--star-gold);
}

.star.partial {
    color: var(--star-empty);
}

.star.partial::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--star-gold);
    overflow: hidden;
    white-space: nowrap;
}

.star.partial-10::before { clip-path: inset(0 90% 0 0); }
.star.partial-30::before { clip-path: inset(0 70% 0 0); }
.star.partial-40::before { clip-path: inset(0 60% 0 0); }
.star.partial-50::before { clip-path: inset(0 50% 0 0); }
.star.partial-80::before { clip-path: inset(0 20% 0 0); }
.star.partial-90::before { clip-path: inset(0 10% 0 0); }

/* ==========================================
   PREMIUM SECTION
   ========================================== */
.premium-section {
    margin-top: 80px;
    padding-bottom: 60px;
}

.premium-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 40px;
    text-align: center;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
}

.premium-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    min-height: 420px;
    padding: 20px 22px 36px 22px;
}

.premium-winner {
    border: 3px solid var(--winner-orange);
    box-shadow: var(--shadow-2);
    transform: translateY(-6px);
    z-index: 1;
    min-height: 488px;
    padding-bottom: 59px;
}

.premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--winner-orange);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 12px 4px;
    border-radius: 2px;
}

.premium-logo {
    margin-top: 26px;
    text-align: center;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-logo img {
    max-height: 42px;
    object-fit: contain;
}

.premium-score {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-900);
    text-align: center;
}

.premium-score-bar {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 55%;
    height: 12px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.score-bar-fill {
    height: 12px;
    border-radius: 999px;
    background: var(--score-green);
}

.score-bar-orange {
    background: var(--winner-orange);
}

.premium-body-title {
    margin-top: 48px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-700);
    position: relative;
    padding-top: 30px;
}

.premium-body-title::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    height: 1px;
    background: #EEF2F6;
}

.premium-body-title::after {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: -18px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-body-text {
    font-size: 12px;
    line-height: 2;
    color: var(--text-600);
    margin-top: 10px;
    position: relative;
    font-style: italic;
}

.premium-body-text::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-bullets {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.premium-bullets::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.premium-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-500);
}

.premium-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -17px;
    width: auto;
    padding: 0 24px;
    height: 34px;
    background: var(--btn-red);
    border-radius: 0;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.premium-cta:hover {
    background: var(--btn-red-hover);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding-top: 56px;
    padding-bottom: 60px;
}

.faq-titlebox {
    width: 100%;
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    padding: 14px 18px;
    text-align: center;
}

.faq-titlebox h2 {
    font-size: 22.4px;
    font-weight: 800;
    color: var(--text-900);
}

.faq-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.faq-card {
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: var(--shadow-1);
    padding: 22px;
    min-height: 280px;
}


.faq-heading {
    font-size: 25.2px;
    line-height: 33.6px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 16px;
    margin-top: 24px;
}

.faq-heading:first-child {
    margin-top: 0;
}

.faq-subheading {
    font-size: 22.4px;
    line-height: 30.8px;
    font-weight: 700;
    color: var(--text-700);
    margin-top: 24px;
    margin-bottom: 16px;
}

.faq-text {
    font-size: 16.8px;
    line-height: 1.5;
    color: var(--text-500);
    margin-bottom: 16px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #0A0A0A;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 46px;
    padding-bottom: 28px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 11px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-divider {
    margin-top: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-disclaimer {
    margin-top: 18px;
}

.footer-disclaimer p {
    font-size: 10px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

.footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
    margin-top: 16px;
    text-align: center;
}

.footer-copyright p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================
   RESPONSIVE (optional, Desktop-first)
   ========================================== */
@media (max-width: 1024px) {
    .ranking-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .ranking-stripe {
        width: 100%;
        height: 40px;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   POPUP STYLES
   ========================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.popup-content {
    background: var(--card-bg);
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-500);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-900);
}

.popup-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-900);
    margin-bottom: 20px;
    margin-top: 0;
}

.popup-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-800);
    margin-top: 24px;
    margin-bottom: 12px;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-600);
    margin-bottom: 16px;
}

.popup-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.popup-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-600);
    margin-bottom: 12px;
}

.popup-content strong {
    color: var(--text-900);
    font-weight: 700;
}

/* ==========================================
   EXIT INTENT MODAL
   ========================================== */

.exit-intent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

.exit-intent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 16, 0.55);
    backdrop-filter: blur(2px);
}

.exit-intent-content {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-radius: 16px;
    width: 100%;
    max-width: 576px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px 24px;
    z-index: 10001;
}

.exit-intent-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10002;
}

.exit-intent-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.exit-intent-header {
    text-align: center;
    margin-bottom: 28px;
    margin-top: 20px;
}

.exit-intent-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.exit-intent-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.exit-intent-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.exit-decision-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 20px 20px 20px;
    padding-top: 10px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.exit-decision-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.exit-card-logo-top {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
    filter: brightness(0) invert(1);
}

.exit-card-header {
    margin-bottom: 16px;
    text-align: center;
}

.exit-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.exit-card-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    flex: 1;
    min-height: 0;
}

.exit-card-bullets li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.5;
}

.exit-card-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
}

.exit-card-cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--btn-red);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: auto;
}

.exit-card-cta:hover {
    background: var(--btn-red-hover);
}

.exit-intent-trust {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.exit-intent-trust p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Mobile: Bottom Sheet */
@media (max-width: 767px) {
    .exit-intent-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .exit-intent-content {
        max-width: 100%;
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
    }
    
    .exit-intent-title {
        font-size: 20px;
    }
    
    .exit-intent-cards {
        grid-template-columns: 1fr;
    }
    
    .exit-decision-card {
        padding: 16px;
    }
}

/* Desktop: 2 columns if space allows */
@media (min-width: 768px) and (max-width: 1023px) {
    .exit-intent-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .exit-intent-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   T10 HANDY + TABLET (<= 1024 px)
   --------------------------------------------------------------------------
   Desktop (>= 1025 px) bleibt unverändert: jede Regel dieses Blocks steht in
   einer Media-Query mit max-width <= 1024 px. Einzige Ausnahme ist die
   globale Regel für die Kurztexte (.t10-mobil), die nur neue Elemente betrifft.
   Der Block ist länderneutral (nur Klassen der gemeinsamen Vorlage, keine
   Texte) und kann 1:1 ans Ende jeder landing.css gehängt werden.

   Aufbau
     0  Kurztexte .t10-mobil – global unsichtbar
     1  Handy + Tablet gemeinsam        (max-width: 1024px)
     2  Handy                           (max-width: 767px)
     2a kleine Handys                   (max-width: 374px)
     2b große Handys / Phablets         (480–767px)
     3  Tablet                          (768–1024px)
        schmales Tablet, FAQ-Lesespalte (768–959px)
     3a breites Tablet                  (960–1024px)
     3b niedrige Fenster, Handy quer    (768–1024px, Höhe <= 500px)
     4  Merkmale 4 + 5 aus              (max-width: 959px)

   HTML dazu je Ranglisten-Karte, erstes Kind von .ranking-content:
     <p class="t10-mobil" hidden>Kurzübersicht in 1–2 Sätzen</p>
   Das Attribut hidden hält die Kurztexte auch bei veraltetem CSS im Cache
   unsichtbar; display:block weiter unten hebt es nur <= 1024 px auf.
   ========================================================================== */

/* --- 0  Kurztexte: außerhalb von Handy/Tablet nie sichtbar --- */
.t10-mobil {
    display: none;
}

/* ==========================================================================
   1  HANDY + TABLET GEMEINSAM (<= 1024 px)
   ========================================================================== */
@media (max-width: 1024px) {

    /* Kurztext statt Langtext */
    .ranking-card .t10-mobil {
        display: block;
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;                   /* geladen sind nur 400/600/700/800 */
        color: var(--text-700);
        text-wrap: pretty;                  /* kein einzelnes Wort in der letzten Zeile */
    }
    /* Langtext nur ausblenden, wenn ein Kurztext davorsteht; Unterseiten mit derselben landing.css, aber ohne
       Kurztext, zeigen den Langtext an dessen Stelle und im gleichen Stil (05.10.2026). */
    .ranking-card .t10-mobil + .ranking-description {
        display: none;
    }
    .ranking-card .ranking-description {
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;
        color: var(--text-700);
        text-align: left;
        word-spacing: normal;
        text-wrap: pretty;
    }

    /* Hero: kein Polster unter Karte 1 -> Abstand Karte 1 -> 2 wie zwischen allen Karten */
    .hero {
        padding-bottom: 0;
        min-height: 0;
    }
    /* Risikozeile im Hero gut lesbar (Pflichthinweis) */
    .hero-additional-text {
        color: rgba(255, 255, 255, 0.85);
    }
    #risk-disclosure-link {
        color: #FFFFFF !important;          /* Farbe steht als Inline-Stil im HTML; Tippfläche je Bereich unten */
    }
    .hero-avatrade-card .ranking-card {
        min-height: 0;
    }

    /* Rangliste: Karten ohne festen Versatz/Höhe, Bausteine frei im Raster */
    .ranking-section {
        margin-top: 0;
        padding-top: 0;
    }
    .ranking-card {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .ranking-logo::after {
        display: none;                      /* Trennstrich der Desktop-Spalte */
    }
    .ranking-cta {
        display: contents;                  /* CTA, Hinweis, Note, Sterne werden Rasterelemente der Karte */
    }
    .rating-text,
    .ranking-card .stars {
        width: auto;
        transform: none;
    }
    .bullet-item {
        align-items: flex-start;
        line-height: 20px;
        text-wrap: balance;                 /* zweizeilige Merkmale ohne einzelnes Wort in Zeile 2 */
    }
    .bullet-item .bullet-icon {
        margin-top: 3px;
    }
    /* "Votre capital est à risque" direkt unter jedem CTA, lesbar */
    .risk-notice {
        width: auto;
        transform: none;
        font-size: 12px;
        line-height: 16px;
        color: var(--text-500);
    }

    /* Sélection Premium: kein abgeschnittener Verdict-Text */
    .premium-body-title,
    .premium-body-text {
        display: none;
    }

    /* Überschriften und kurze Listenpunkte ohne verwaiste Einzelwörter (Browser ohne Unterstützung
       ignorieren es). Achtung: verhindert NICHT, dass eine Zahl von ihrem Wort getrennt wird –
       dafür in Texten &nbsp; setzen ("10&nbsp;millions"). Premium-Merkmale bewusst balance:
       mit normalem Umbruch reißt "100 | 000 €" in den Podiumsspalten. */
    .hero-subheadline,
    .premium-title,
    .faq-titlebox h2,
    .faq-heading,
    .faq-subheading,
    .popup-content h2,
    .popup-content h3,
    .premium-bullet,
    .exit-card-bullets li {
        text-wrap: balance;
    }

    /* Navigation: Abstand vor dem Pfeil von "POLITIQUES ▾" (Flex-Layout verschluckt das Leerzeichen) */
    .nav-caret {
        margin-left: 0.45em;
    }

    /* Header-Logo: die Bilddatei hat einen fast schwarzen Hintergrund rgb(7,5,6), der auf #000 als
       Kasten sichtbar wird; leichte Kontrastanhebung macht ihn schwarz, Schrift bleibt weiß (gemessen) */
    .header-logo {
        filter: contrast(1.06);
    }

    /* FAQ: Höhe nach Inhalt */
    .faq-card {
        min-height: 0;
    }

    /* Footer: Pflichtangaben >= 12 px, Links mit 44-px-Zeilen */
    .footer-brand,
    .footer-heading {
        font-size: 13px;
    }
    .footer-heading {
        margin-bottom: 4px;
    }
    .footer-description,
    .footer-contact {
        font-size: 13px;
        line-height: 20px;
    }
    .footer-contact {
        max-width: 22em;                    /* Adresse bricht immer "… 25, | 1190 Vienna, Austria · FN 602400 h"
                                               (Wert auf die Zeilenlänge abgestimmt, je Land prüfen) */
    }
    .footer-description {
        color: rgba(255, 255, 255, 0.6);
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .footer-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-size: 13px;
        line-height: 18px;
    }
    .footer-disclaimer p {
        font-size: 12px;
        line-height: 18px;
        color: rgba(255, 255, 255, 0.6);
    }
    .footer-copyright p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.45);
    }

    /* Popups: Schließen-Knopf 44 x 44, läuft in langen Popups mit (sticky).
       Lage je Bereich unten über top/margin: Chrome misst sticky-Abstände ab der Inhaltskante,
       der negative Wert gleicht das Popup-Polster aus. */
    .popup-close {
        position: sticky;
        float: right;
        right: auto;
        z-index: 2;
        width: 44px;
        height: 44px;
        background: #FFFFFF;
        border-radius: 50%;
    }
    .popup-content h2 {
        padding-right: 36px;                /* Platz für den Schließen-Knopf */
    }
    .exit-intent-close {
        top: 8px;
        right: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    .exit-card-logo-top {
        width: 140px;                       /* statt 160 x 160 px Leerfläche */
        height: 48px;
    }
}

/* ==========================================================================
   2  HANDY (<= 767 px)
   ========================================================================== */
@media (max-width: 767px) {

    /* --- Seitenrand --- */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* --- Header zweizeilig: Logo, darunter Navigation als Leiste aus gleich breiten
           Feldern (Text mittig, jedes Feld >= 44 px hoch) --- */
    .top-nav {
        padding: 10px 0 0;
    }
    .header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .header-logo {
        align-self: flex-start;
        height: 20px;
    }
    .nav-content {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);  /* beliebig viele Links, gleich breit, kein Überlauf */
        gap: 0;
        min-width: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-link {
        min-width: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 6px 4px;
        font-size: 11px;
        line-height: 14px;
        letter-spacing: 0.04em;
    }

    /* --- Hero: dunkles Bild hinter dem ganzen Text, Karte 1 überlappt den Auslauf --- */
    .hero {
        padding-top: 24px;
    }
    .hero::before {
        bottom: auto;
        height: 400px;
        background-size: cover;
        background-position: left top;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
    }
    .hero-title {
        font-size: 26px;
        line-height: 32px;
        letter-spacing: 0.02em;
        margin-bottom: 0;
    }
    .hero-subheadline {
        font-size: 15px;
        line-height: 22px;
        margin-top: 8px;
        margin-bottom: 0;
    }
    .hero-additional-text {
        font-size: 12px;
        line-height: 18px;
        margin-top: 8px;
    }
    #risk-disclosure-link {
        white-space: nowrap;                /* Link bleibt eine Einheit */
        padding: 15px 0;                    /* Tippfläche 44 px; inline -> Zeilenhöhe bleibt */
    }
    .hero-avatrade-card {
        margin-top: 16px;
    }

    /* --- Ranglisten-Karte kompakt ---
       | Rang | Logo            Note / Sterne |
       |      | Kurztext                      |
       |      | Merkmale 1–3                  |
       |      | [ Trader maintenant -> ]      |
       |      |   Votre capital est à risque  |  */
    .ranking-card {
        grid-template-columns: 28px 16px minmax(0, 1fr) auto 16px;
        grid-template-areas:
            "rank . logo note  ."
            "rank . logo stars ."
            "rank . kurz kurz  ."
            "rank . bul  bul   ."
            "rank . cta  cta   ."
            "rank . risk risk  .";
        padding: 16px 0;
        margin-bottom: 16px;
    }
    .ranking-stripe {
        grid-area: rank;
        width: 28px;
        height: auto;
        margin: -16px 0;                    /* Leiste bündig über die ganze Kartenhöhe */
        align-items: flex-start;
        padding-top: 28px;                  /* Rangnummer auf Höhe der Logo-Mitte */
        font-size: 20px;
        line-height: 1;
    }
    .ranking-logo {
        grid-area: logo;
        padding: 0;
        justify-content: flex-start;
        min-height: 44px;
    }
    .ranking-logo img {
        width: auto;
        height: 34px;
        max-width: 132px;
        max-height: none;
        margin-left: -8px;                  /* Logodateien haben ~8 % Innenrand -> Schrift fluchtet mit dem Text */
        object-fit: contain;
        object-position: left center;
    }
    .ranking-content {
        display: contents;                  /* Kurztext + Merkmale werden Rasterelemente der Karte */
    }
    .ranking-content::after {
        display: none;
    }
    .ranking-card .t10-mobil {
        grid-area: kurz;
        margin-top: 8px;
    }
    .ranking-card .ranking-description {
        grid-area: kurz;
        margin: 8px 0 0;
    }
    .rating-text {
        grid-area: note;
        align-self: end;
        margin: 0;
        padding-left: 12px;
        font-size: 13px;
        line-height: 18px;
        text-align: right;
    }
    .ranking-card .stars {
        grid-area: stars;
        align-self: start;
        margin: 2px 0 0;
        padding-left: 12px;
        justify-content: flex-end;
        gap: 1px;
    }
    .ranking-card .star {
        font-size: 17px;
        line-height: 1;
    }
    .ranking-bullets {
        grid-area: bul;
        grid-template-columns: 1fr;
        row-gap: 6px;
        margin-top: 12px;
    }
    .bullet-item {
        font-size: 14px;
        font-weight: 400;                   /* ruhiger neben dem Kurztext, dafür dunkler */
        color: var(--text-600);
    }
    .cta-button {
        grid-area: cta;
        width: 100%;
        height: 48px;
        margin: 16px 0 0;
        font-size: 16px;
    }
    .risk-notice {
        grid-area: risk;
        margin: 8px 0 0;
    }

    /* --- Sélection Premium: kompakte Liste, Gewinner zuerst --- */
    .premium-section {
        margin-top: 40px;
        padding-bottom: 0;
    }
    .premium-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 24px;
    }
    .premium-grid {
        gap: 32px;                          /* Luft für die Reiter auf der Oberkante */
    }
    .premium-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "logo  logo cta"
            "score bar  cta";
        align-items: center;
        column-gap: 12px;
        row-gap: 8px;
        min-height: 0;
        padding: 22px 16px 16px;
    }
    .premium-winner {
        order: -1;
        transform: none;
        min-height: 0;
        padding: 20px 13px 13px;            /* 3-px-Rahmen ausgeglichen */
    }
    .premium-badge {
        top: -10px;                         /* Reiter auf der Oberkante */
        left: 16px;
        padding: 4px 8px;
        font-size: 11px;
        line-height: 14px;
    }
    .premium-winner .premium-badge {
        left: 13px;
    }
    .premium-logo {
        grid-area: logo;
        margin-top: 0;
        height: 36px;
        justify-content: flex-start;
    }
    .premium-logo img {
        width: auto;
        height: 32px;
        max-width: 140px;
        max-height: none;
        margin-left: -8px;                  /* Innenrand der Logodatei ausgleichen, fluchtet mit der Note */
    }
    .premium-score {
        grid-area: score;
        margin-top: 0;
        font-size: 18px;
        line-height: 1;
    }
    .premium-score-bar {
        grid-area: bar;
        width: 100%;
        height: 8px;
        margin: 0;
    }
    .premium-score-bar .score-bar-fill {
        height: 8px;
    }
    .premium-bullets {
        display: none;                      /* stehen schon in der Rangliste */
    }
    .premium-cta {
        grid-area: cta;
        position: static;
        transform: none;
        width: 112px;
        height: 44px;
        font-size: 14px;
    }

    /* --- FAQ (Inhalt vollständig sichtbar) --- */
    .faq-section {
        padding-top: 40px;
        padding-bottom: 8px;
    }
    .faq-titlebox {
        padding: 16px;
    }
    .faq-titlebox h2 {
        font-size: 18px;
        line-height: 24px;
    }
    .faq-grid {
        margin-top: 16px;
        gap: 16px;
    }
    .faq-card {
        padding: 24px 16px 8px;
    }
    .faq-heading {
        font-size: 19px;
        line-height: 26px;
        margin-bottom: 8px;
    }
    .faq-subheading {
        font-size: 17px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    .faq-text {
        font-size: 15px;
        line-height: 24px;
    }

    /* --- Footer --- */
    .footer {
        margin-top: 32px;
        padding-top: 32px;
        padding-bottom: 24px;
    }
    .footer-grid {
        gap: 24px;
    }
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }
    [data-disclosure="operator"] {
        margin-top: 16px !important;        /* Abstand, Ausrichtung, Rand stehen als Inline-Stil im HTML */
        padding: 0 16px !important;
        text-align: left !important;
    }

    /* --- Info-Popups (Courtier / Politiques / Risques):
           Titelzeile mit Schließen-Kreuz läuft beim Scrollen mit --- */
    .popup-overlay {
        padding: 12px;
    }
    .popup-content {
        max-height: 88vh;
        padding: 24px 16px;
    }
    .popup-close {
        top: -12px;                         /* 12 px vom oberen Rand, auch gescrollt */
        margin: -12px -8px 0 0;             /* 8 px vom rechten Rand */
    }
    .popup-content h2 {
        position: sticky;
        top: -24px;                         /* = oberes Polster -> Titel klebt an der Oberkante */
        z-index: 1;
        margin: -24px -16px 16px;
        padding: 24px 60px 12px 16px;
        background: #FFFFFF;
        border-bottom: 1px solid #EEF2F6;
        font-size: 22px;
        line-height: 28px;
    }
    .popup-content h3 {
        font-size: 17px;
        margin-top: 16px;
        margin-bottom: 8px;
    }
    .popup-content p,
    .popup-content li {
        font-size: 15px;
        line-height: 1.6;
    }
    .popup-content ul {
        padding-left: 20px;
    }

    /* --- Exit-Intent (Bottom-Sheet; löst auf Touch-Geräten praktisch nie aus) --- */
    .exit-intent-content {
        max-height: 85vh;
    }
}

/* --- 2a  Kleine Handys (< 375 px): Subline aus, damit der eToro-CTA im ersten Bildschirm liegt;
         Navigationsfelder mit weniger Innenabstand, damit jeder Link zweizeilig bleibt --- */
@media (max-width: 374px) {
    .hero-subheadline {
        display: none;
    }
    .nav-link {
        padding-left: 2px;
        padding-right: 2px;
    }
}

/* --- 2b  Große Handys / Phablets (480–767 px): Deko-Icons ganz zeigen, CTA nicht über die volle Breite --- */
@media (min-width: 480px) and (max-width: 767px) {
    .hero::before {
        background-position: 46% top;
    }
    .cta-button,
    .risk-notice {
        justify-self: start;
        width: 320px;
    }
}

/* ==========================================================================
   3  TABLET (768–1024 px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* --- Header einzeilig wie Desktop: Navigation direkt hinter dem Logo, Links 44 px hoch --- */
    .top-nav {
        padding: 6px 0;
    }
    .header-left {
        justify-content: flex-start;
        gap: 24px;
    }
    .header-logo {
        height: 18px;
        flex-shrink: 0;
    }
    .nav-content {
        gap: 18px;
    }
    .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0;
        font-size: 12px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 48px;
    }
    .hero-title {
        font-size: clamp(31px, 4.15vw, 34px);  /* 768 px: 32 px -> Luft zu den Deko-Icons im Bild; ab 820 px 34 px */
        line-height: 42px;
    }
    .hero-subheadline {
        max-width: 500px;
        margin: 16px 0;
        font-size: 17px;
        line-height: 26px;
    }
    .hero-additional-text {
        max-width: 500px;
        font-size: 13px;
        line-height: 20px;
    }
    #risk-disclosure-link {
        display: inline-block;
        padding: 12px 0;                    /* Tippfläche 44 px ...                 */
        margin: -8px 0;                     /* ... ohne dass die Zeile höher wird */
    }
    .hero-avatrade-card {
        margin-top: 40px;
    }

    /* --- Ranglisten-Karte als Zeile wie Desktop ---
       | Rang | Logo + Note + Sterne | Kurztext + Merkmale | CTA + Risikohinweis | */
    .ranking-card {
        grid-template-columns: 34px clamp(144px, 17vw, 184px) minmax(0, 1fr) clamp(212px, 21vw, 220px);
        grid-template-rows: 1fr auto auto auto 1fr;    /* linke und rechte Spalte senkrecht zentriert */
        margin-bottom: 24px;
    }
    .ranking-stripe {
        grid-column: 1;
        grid-row: 1 / -1;
        width: 34px;
        height: auto;
        font-size: 22px;
    }
    .ranking-logo {
        grid-column: 2;
        grid-row: 2;
        padding: 0 16px 0 12px;
    }
    .ranking-logo img {
        max-width: 132px;
        max-height: 40px;
    }
    .ranking-content {
        grid-column: 3;
        grid-row: 1 / -1;
        padding: 28px 24px;
    }
    .ranking-content::before,
    .ranking-content::after {
        content: '';
        position: absolute;
        top: 24px;
        bottom: 24px;
        width: 1px;
        background: #EEF2F6;
    }
    .ranking-content::before {
        left: 0;
    }
    .ranking-content::after {
        right: 0;
    }
    .ranking-card .t10-mobil {
        margin-bottom: 16px;
    }
    .ranking-card .ranking-description {
        margin: 0 0 16px;
    }
    .ranking-bullets {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    .bullet-item {
        font-size: 14px;
    }
    .rating-text {
        grid-column: 2;
        grid-row: 3;
        margin: 12px 0 0;
        padding: 0 16px 0 12px;
    }
    .ranking-card .stars {
        grid-column: 2;
        grid-row: 4;
        margin: 2px 0 0;
        padding: 0 16px 0 12px;
    }
    .ranking-card .star {
        font-size: 20px;
    }
    .cta-button {
        grid-column: 4;
        grid-row: 2 / 4;
        align-self: end;
        width: calc(100% - 24px);
        max-width: 184px;
        height: auto;
        min-height: 52px;
        margin: 0 auto;
        padding: 8px 10px;
        gap: 8px;
        line-height: 1.25;
        text-align: center;                 /* längere CTA-Texte anderer Länder dürfen umbrechen */
    }
    .risk-notice {
        grid-column: 4;
        grid-row: 4;
        align-self: start;
        margin: 8px 12px 0;
    }

    /* --- Sélection Premium: 3er-Podium wie Desktop (#2 | #1 | #3) --- */
    .premium-section {
        margin-top: 64px;
        padding-bottom: 48px;
    }
    .premium-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 32px;
    }
    .premium-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }
    .premium-card {
        min-height: 0;
        padding: 20px 18px 48px;
    }
    .premium-winner {
        min-height: 0;
        padding-bottom: 54px;
        transform: none;                    /* statt Verschiebung nach oben verlängert:   */
        margin-top: -6px;                   /* Podium bleibt, Unterkanten und Buttons fluchten */
    }
    .premium-badge {
        top: 10px;
        left: 10px;
        padding: 6px 8px;
    }
    .premium-logo {
        margin-top: 28px;
    }
    .premium-logo img {
        max-width: 100%;
    }
    .premium-bullets {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid #EEF2F6;
    }
    .premium-bullets::before {
        left: -18px;                        /* weiße Hinterlegung an das Kartenpolster anpassen */
        right: -18px;
    }
    .premium-bullet {
        align-items: flex-start;
        font-size: 13px;
        line-height: 18px;
    }
    .premium-bullet .bullet-icon {
        margin-top: 2px;
    }
    .premium-cta {
        width: 152px;
        height: 44px;
        bottom: -22px;                      /* sitzt wie auf dem Desktop auf der Kartenkante */
        font-size: 13px;
    }
    .premium-winner .premium-cta {
        bottom: -25px;                      /* 3-px-Rahmen des Gewinners ausgeglichen */
    }

    /* --- FAQ (Inhalt vollständig sichtbar) --- */
    .faq-section {
        padding-top: 40px;
        padding-bottom: 48px;
    }
    .faq-titlebox {
        padding: 16px 24px;
    }
    .faq-titlebox h2 {
        font-size: 21px;
        line-height: 28px;
    }
    .faq-grid {
        margin-top: 24px;
        gap: 24px;
    }
    .faq-card {
        padding: 28px 32px 16px;
    }
    .faq-heading {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 12px;
    }
    .faq-subheading {
        font-size: 19px;
        line-height: 27px;
        margin-bottom: 12px;
    }
    .faq-text {
        font-size: 16px;
        line-height: 1.6;
    }

    /* --- Footer: Marke über volle Breite, darunter Liens utiles | Contact --- */
    .footer {
        margin-top: 16px;
        padding-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 40px;
    }
    .footer-col-1 {
        grid-column: 1 / -1;
    }
    .footer-contact {
        margin: 12px 0 0;
    }
    .footer-social {
        margin-top: 16px;
    }
    .footer-divider {
        margin-top: 32px;
    }
    .footer-disclaimer {
        margin-top: 24px;
    }
    [data-disclosure="operator"] {
        margin-top: 24px !important;        /* Abstand + Größe stehen als Inline-Stil im HTML */
        font-size: 13px !important;
    }

    /* --- Info-Popups: Schließen-Kreuz 8 px vom Rand, läuft mit (Polster 40 px) --- */
    .popup-close {
        top: -32px;
        margin: -32px -32px 0 0;
    }
}

/* --- Schmales Tablet (768–959 px): FAQ einspaltig -> Lesespalte höchstens 640 px (~85 Zeichen) --- */
@media (min-width: 768px) and (max-width: 959px) {
    .faq-card {
        padding-left: max(32px, calc(50% - 320px));
        padding-right: max(32px, calc(50% - 320px));
    }
}

/* --- 3a  Breites Tablet (960–1024 px: iPad quer, iPad Pro 12,9" hoch): alle 5 Merkmale (einspaltig,
         jede Zeile ohne Umbruch), FAQ zweispaltig wie Desktop, Navigation in Desktop-nahen Größen --- */
@media (min-width: 960px) and (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
    .faq-card {
        padding: 24px 24px 12px;
    }
    .header-logo {
        height: 20px;
    }
    .nav-content {
        gap: 24px;
    }
    .nav-link {
        font-size: 13px;
        letter-spacing: 0.05em;
    }
}

/* --- 3b  Niedrige Fenster (Handy quer, Breite 768–1024, Höhe <= 500 px): Hero verdichten,
         damit Karte 1 mit CTA früh im Bild ist --- */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 500px) {
    .hero {
        padding-top: 20px;
    }
    .hero-title {
        font-size: 26px;
        line-height: 32px;
    }
    .hero-content,
    .hero-subheadline,
    .hero-additional-text {
        max-width: none;                    /* Subline und Risikozeile je eine Zeile statt zwei */
    }
    .hero-subheadline {
        margin: 8px 0;
        font-size: 15px;
        line-height: 22px;
    }
    .hero-additional-text {
        margin-top: 4px;
    }
    .hero-avatrade-card {
        margin-top: 20px;
    }
    /* FAQ zweispaltig wie Desktop (einspaltig wären es ~100 Zeichen je Zeile) */
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
    .faq-card {
        padding: 24px 24px 12px;
    }
    .faq-heading {
        font-size: 20px;
        line-height: 28px;
    }
    .faq-subheading {
        font-size: 18px;
        line-height: 26px;
    }
    .faq-text {
        font-size: 15px;
    }
    /* Popups: weniger Polster bei ~350 px Fensterhöhe; Schließen-Kreuz wieder 8 px vom Rand */
    .popup-content {
        padding: 24px 32px;
    }
    .popup-close {
        top: -16px;
        margin: -16px -24px 0 0;
    }
}

/* --- 4  Handy + schmales Tablet (<= 959 px): nur die ersten 3 Merkmale --- */
@media (max-width: 959px) {
    .ranking-card .bullet-item:nth-child(n+4) {
        display: none;
    }
}

/* ==========================================================================
   T10 HANDY + TABLET – Ergänzung für die UK-Vorlage (uk, br, au, aus)
   --------------------------------------------------------------------------
   Nur <= 1024 px, Desktop unverändert. Gleicht aus, was diese Vorlage anders
   hat als /fr/: lange Premium-Buttons ("Pepperstone Trading Platform",
   Basisregel mit white-space: nowrap), lange Risikohinweise ("73% of retail
   investor accounts …"), längere Navigationstexte und das gestapelte
   Pepperstone-Logo (Datei ohne Innenrand, Inline-Stil max-width/max-height).
   ========================================================================== */
@media (max-width: 1024px) {

    /* Risikohinweis (2–4 Zeilen): gleichmäßig umbrechen, kein einzelnes Wort in der letzten Zeile */
    .risk-notice {
        text-wrap: balance;
    }
    .footer-copyright p {
        text-wrap: balance;
    }

    /* Premium-Buttons: lange Namen dürfen zweizeilig werden statt über den Rand zu laufen */
    .premium-cta {
        height: auto;
        min-height: 44px;
        padding: 6px 12px;
        line-height: 16px;
        text-align: center;
        white-space: normal;
        text-wrap: balance;
    }
}

@media (max-width: 767px) {

    /* Navigation: mittleres Feld ("FREQUENTLY ASKED QUESTIONS") breiter -> jeder Link höchstens zweizeilig */
    .nav-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
    }

    /* Pepperstone: gestapeltes Logo ohne Innenrand -> höher und ohne Ausgleich nach links */
    .ranking-logo img[src*="pepperstone"] {
        height: 42px;
        margin: 0 0 4px;                    /* etwas Luft zum Kurztext darunter */
    }
    .premium-logo:has(img[src*="pepperstone"]) {
        height: 44px;
    }
    .premium-logo img[src*="pepperstone"] {
        height: 42px;
        margin-left: 0;
    }

    .premium-cta {
        width: 148px;
    }
}

/* Tablet: Podium-Buttons einheitlich – schmal zweizeilig, breites Tablet einzeilig wie Desktop */
@media (min-width: 768px) and (max-width: 1024px) {

    .premium-cta {
        width: 168px;
    }

    /* Note neben schmalem Logo-Feld: "Avaliação – 9,8/10" (br) passt in eine Zeile; Mitte bleibt gleich */
    .rating-text {
        padding-left: 8px;
        padding-right: 12px;
    }
}

@media (min-width: 960px) and (max-width: 1024px) {

    .premium-cta {
        width: 240px;
    }
}

/* Portugiesisch (br lädt diese Datei mit): "Plataforma eToro" wäre einzeilig, "Plataforma Pepperstone"
   zweizeilig -> schmaler, damit alle drei Podium-Buttons gleich zweizeilig umbrechen */
@media (max-width: 959px) {

    html:lang(pt) .premium-cta {
        width: 128px;
    }
}

/* Schlusspruefung 05.10.: portugiesischer Tablet-CTA ausgewogen umbrochen */
@media (min-width: 768px) and (max-width: 1024px) {
    html:lang(pt) .cta-button {
        text-wrap: balance;
    }
}

/* ==========================================================================
   T10 BURGER-MENÜ (Handy <= 767 px, Operator 2026-10-06)
   Logo links, Burger rechts; die Menüpunkte klappen als Liste unter dem Header auf.
   Greift nur auf Seiten mit .t10-burger - der Button steht mit `hidden` im HTML und
   ist auf Tablet/Desktop (und bei veraltetem CSS) unsichtbar.
   ========================================================================== */
@media (max-width: 767px) {
    .top-nav:has(.t10-burger) {
        padding: 6px 0;
    }
    .header-left:has(.t10-burger) {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
    }
    .header-left:has(.t10-burger) .header-logo {
        align-self: center;
    }
    .header-left .t10-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        margin: 0 -11px 0 0;                /* Striche bündig mit dem Seitenrand, Tippfläche bleibt 44 px */
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .header-left .t10-burger:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.7);
        outline-offset: -4px;
    }
    .t10-burger-linie,
    .t10-burger-linie::before,
    .t10-burger-linie::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    .t10-burger-linie {
        position: relative;
    }
    .t10-burger-linie::before,
    .t10-burger-linie::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .t10-burger-linie::before {
        top: -7px;
    }
    .t10-burger-linie::after {
        top: 7px;
    }
    .t10-burger[aria-expanded="true"] .t10-burger-linie {
        background: transparent;
    }
    .t10-burger[aria-expanded="true"] .t10-burger-linie::before {
        transform: translateY(7px) rotate(45deg);
    }
    .t10-burger[aria-expanded="true"] .t10-burger-linie::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Menü zu: Navigation aus. Menü auf: Liste unter dem Header, über dem Inhalt. */
    .header-left .t10-burger ~ .nav-content {
        display: none;
    }
    .header-left .t10-burger[aria-expanded="true"] ~ .nav-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;               /* Punkte über die volle Breite, linksbündig an der Logo-Kante */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
        gap: 0;
        margin: 0;
        padding: 4px 16px 8px;
        background: #000000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    }
    .header-left .t10-burger[aria-expanded="true"] ~ .nav-content .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 48px;
        margin: 0;
        padding: 12px 0;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.04em;
        text-align: left;
        width: 100%;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .header-left .t10-burger[aria-expanded="true"] ~ .nav-content .nav-link:last-child {
        border-bottom: 0;
    }
}

/* ==========================================
   Top10-neu: Anbieter-Logos liegen auf einer einheitlichen Leinwand 480x150 (nach Flaeche ausgeglichen,
   kleiner Innenrand) -> etwas groesser anzeigen als die Vorlage, damit kompakte Logos (Wappen, Bildmarken)
   gleich gross wirken wie breite Schriftzuege. Fehlende Teil-Sterne 20/60/70 ergaenzt.
   ========================================== */
.ranking-logo img { width: 176px; max-width: 176px; height: auto; max-height: none; }
.premium-logo { height: 58px; }
.premium-logo img { width: 186px; height: auto; max-height: 58px; }
.exit-card-logo-top { width: 200px; height: 63px; }
.star.partial-20::before { clip-path: inset(0 80% 0 0); }
.star.partial-60::before { clip-path: inset(0 40% 0 0); }
.star.partial-70::before { clip-path: inset(0 30% 0 0); }
@media (min-width: 768px) and (max-width: 1024px) {
    .ranking-logo img { width: 150px; max-width: 150px; height: auto; max-height: none; }
}
@media (max-width: 767px) {
    .ranking-logo { min-height: 50px; }
    .ranking-logo img { width: auto; height: 46px; max-width: none; max-height: none; margin-left: -6px; }
    .premium-logo { height: 46px; }
    .premium-logo img { width: auto; height: 44px; max-width: none; max-height: none; margin-left: -6px; }
    .exit-card-logo-top { width: 160px; height: 50px; }
}
