/* ========== Wrapper & Filter ========== */
.tarif-tabelle-wrapper{margin-top:2rem;font-family:inherit}
.tarif-filter{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;align-items:center}
.tarif-filter input[type="number"]{padding:.4rem .5rem;border:1px solid #ccc;border-radius:8px;width:8ch;}
.tarif-filter select{padding:.4rem .5rem;border:1px solid #ccc;border-radius:8px}

/* ========== Desktop-Tabelle ========== */
.tarif-tabelle{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 0 10px rgba(0,0,0,.05);border-radius:10px}
.tarif-tabelle th,.tarif-tabelle td{padding:.75rem;text-align:center}
.tarif-tabelle th{background:#0077cc;color:#fff;cursor:pointer}
.tarif-tabelle tr:nth-child(even){background:#f2f2f2}

/* ========== Sichtbarkeit Desktop/Mobile (robust namespaced) ========== */
.ftth-desktop{display:table !important;width:100%}
.ftth-mobile{display:none !important}
@media (max-width:600px){
  .ftth-desktop{display:none !important}
  .ftth-mobile{display:block !important}
}

/* ========== Icons/Logo/Buttons ========== */
.tarif-icon-check{color:green;font-weight:700}
.tarif-icon-cross{color:red;font-weight:700}
.tarif-logo{height:32px;max-width:100px;object-fit:contain}

/* Button + Linkfarbe in allen Zuständen */
.tarif-btn,.tarif-btn:visited,.tarif-btn:active,.tarif-btn:focus{color:#cce9ff !important}
.tarif-btn:hover{color:#e6f4ff !important}
.tarif-btn{display:inline-block;padding:.5rem .75rem;border-radius:8px;background:#007BFF;text-decoration:none;font-size:.9rem;line-height:1}
@media (hover:hover){ .tarif-btn:hover{opacity:.9} }
.tarif-btn--disabled{background:#bdbdbd;pointer-events:none;color:#fff}

/* ========== A11y Helper ========== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ========== Mobile Cards (Basis) ========== */
.tarif-card-list{display:grid;gap:12px}
.tarif-card{background:#fff;border:1px solid #e9eef5;border-radius:14px;box-shadow:0 4px 12px rgba(0,0,0,.04);padding:12px}

/* Header (Desktop-Default) */
.tarif-card__header{display:grid;grid-template-columns:56px 1fr;gap:10px;align-items:center;margin-bottom:8px}
.tarif-card__logo{width:56px;height:32px;object-fit:contain}
.tarif-card__title{display:flex;flex-direction:column;gap:2px}
.tarif-card__brand{font-size:.9rem;color:#3a4a5e;font-weight:600}
.tarif-card__name{font-size:1rem;color:#1b2a3a}

/* Badges */
.tarif-card__facts{list-style:none;padding:0;margin:8px 0 10px;display:flex;flex-wrap:wrap;gap:8px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f4f8ff;border:1px solid #e0ebff;font-size:.88rem;color:#163a63}
.badge__label{opacity:.75}
.badge__value{font-weight:700}
.badge--speed{background:#eef8ff;border-color:#d9efff;color:#0c4a73}
.badge--tel{background:#f3fff3;border-color:#def7de;color:#2b6a2b}
.badge--price{background:#fff6ee;border-color:#ffe5cc;color:#7a3e00}
.badge--laufzeit{background:#fff3f3;border-color:#ffd6d6;color:#7a1f1f}
.badge--young{background:#f3f7ff;border-color:#d5e4ff;color:#203a7a;
}
/* CTA */
.tarif-card__cta{display:flex;justify-content:flex-end;margin-top:4px}

/* ========== Mobile Tweaks ========== */
@media (max-width:600px){
  /* Alternierender Hintergrund */
  .tarif-card--alt{background:#f9f9f9}

  /* Header: Logo + Titel in einer Zeile, Titel mittig, kein Umbruch */
  .tarif-card__header{display:flex;align-items:center;gap:14px}
  .tarif-card__logo{flex:0 0 56px;width:56px;height:32px}
  .tarif-card__title{
    flex:1 1 auto;min-width:0;
    display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:1.1rem;line-height:1.25
  }
  .tarif-card__brand,.tarif-card__name{display:inline;font:inherit;font-weight:600}

  /* Badges: Speed oben, Rest in neuer Zeile */
  .badge--speed{flex-basis:auto}
  .badge--young {background:#eaf1ff; border-color:#c2d6ff; color:#1a3a7a;font-size:.82rem;font-weight:600;}
  .tarif-card__facts .break{flex-basis:100%;height:0;margin:0;padding:0}

  /* CTA rechtsbündig */
  .tarif-card__cta{justify-content:flex-end}
}

/* Touch Active-Feedback */
@media (hover:none){ .tarif-btn:active{opacity:.9} }
