/* tb-payment-providers, Grid aller akzeptierten Methoden.
   Dezent, hellgrauer Hintergrund pro Kachel, Logo zentriert, kleines Label
   darunter. Funktioniert in Light + Dark, weil SVGs ihre eigene Farbe haben. */

.tb-pp {
    max-width: 1080px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.tb-pp__title {
    margin: 0 0 .35rem;
    text-align: center;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    color: var(--tb-ink-900, #1a1a2e);
}
.tb-pp__subtitle {
    margin: 0 auto 2rem;
    max-width: 640px;
    text-align: center;
    color: var(--tb-ink-700, #4b5563);
    line-height: 1.55;
}

.tb-pp__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}
.tb-pp__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1rem .5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 96px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tb-pp__item:hover {
    border-color: var(--tb-primary-500, #2563eb);
    box-shadow: 0 4px 18px rgba(37, 99, 235, .1);
    transform: translateY(-1px);
}
.tb-pp__icon {
    width: auto;
    height: 32px;
    max-width: 90%;
    object-fit: contain;
    display: block;
}
.tb-pp__label {
    font-size: .75em;
    color: var(--tb-ink-700, #4b5563);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .tb-pp__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
    .tb-pp__item { padding: .75rem .35rem; min-height: 80px; }
    .tb-pp__icon { height: 24px; }
    .tb-pp__label { font-size: .7em; }
}

/* Dark-Mode-Anpassung wenn die Seite (z.B. /d8me/) selber dunkel ist */
body.tb-d8me-page .tb-pp__item {
    background: #14142a;
    border-color: rgba(255, 255, 255, .1);
}
body.tb-d8me-page .tb-pp__title { color: #f1f1f5; }
body.tb-d8me-page .tb-pp__subtitle,
body.tb-d8me-page .tb-pp__label { color: #9ca3af; }
