/* DE2Me – schlanke Ergänzungen zu Bootstrap 5.1.3 */
:root { --de-black: #000; --de-red: #dd0000; --de-gold: #ffce00; }

/* Logo: kleine Deutschlandflagge + Schriftzug */
.brand { display: inline-flex; align-items: center; font-weight: 700; letter-spacing: -.01em; }
.brand-flag { display: inline-block; width: 1.35em; height: .95em; margin-right: .45em; border-radius: 2px;
  background: linear-gradient(to bottom, var(--de-black) 0 33.4%, var(--de-red) 33.4% 66.7%, var(--de-gold) 66.7% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

/* Sprachumschalter mit Flaggen */
.lang-flags .flag-link { display: inline-flex; padding: 3px; border-radius: 4px; opacity: .55; transition: opacity .15s; border: 1px solid transparent; }
.lang-flags .flag-link:hover { opacity: .9; }
.lang-flags .flag-link.active { opacity: 1; border-color: rgba(255,255,255,.5); }
.lang-flags img { display: block; border-radius: 2px; }

/* Startseite */
.hero { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #084298 100%); }
.hero .lead { opacity: .92; }
.feature-icon { width: 3rem; height: 3rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.price-card .display-5 { font-weight: 700; font-size: 2.4rem; }

/* Logos */
.pay-logos { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pay-logos img { height: 26px; width: auto; background: #fff; border: 1px solid #dee2e6; border-radius: 4px; padding: 2px 4px; }
.pay-logos-dark img { border-color: transparent; }
.carrier-strip { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.carrier-strip-dark .carrier-logo { background: #fff; border-radius: 4px; padding: 3px 6px; box-sizing: content-box; }
.carrier-logo { width: auto; object-fit: contain; vertical-align: middle; }
.partner-logo { max-height: 90px; max-width: 100%; }

/* Chat (neutral, kein Messenger-Look) */
.chat-card { overflow: hidden; }
.chat-box { max-height: 70vh; min-height: 260px; overflow-y: auto; background: #f8f9fa; padding: 1rem; }
.msg { border-radius: .5rem; padding: .6rem .8rem; margin-bottom: .75rem; word-wrap: break-word; font-size: .95rem; }
.msg-head { font-size: .78rem; font-weight: 600; color: #495057; margin-bottom: .2rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.msg-time { font-weight: 400; color: #8a939b; margin-left: auto; }
.msg-row { display: flex; gap: .5rem; align-items: flex-start; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-row .msg { max-width: 82%; }
.msg-mine { background: #e7f1ff; border: 1px solid #cfe2ff; }
.msg-other { background: #fff; border: 1px solid #dee2e6; }
.msg-system { background: #fff; border: 1px solid #dee2e6; border-left: 4px solid #0d6efd; }
.msg-action { border-left-color: #198754; box-shadow: 0 .125rem .25rem rgba(0,0,0,.06); }
.msg-internal { background: #fff8e1; border-color: #ffe08a; }
.sys-icon { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #e7f1ff; color: #0d6efd; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.msg-avatar { flex-shrink: 0; }
.initials-avatar { border-radius: 50%; background: #adb5bd; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.addr-box { background: #f8f9fa; border: 1px dashed #adb5bd; border-radius: .375rem; padding: .6rem .8rem; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.option-row { display: flex; align-items: center; gap: .75rem; border: 1px solid #dee2e6; border-radius: .5rem; padding: .55rem .75rem; margin-bottom: .5rem; background: #fff; flex-wrap: wrap; }
.option-row:hover { border-color: #86b7fe; }
.option-logo { width: 84px; text-align: center; }
details summary { cursor: pointer; color: #0d6efd; }

/* Preisrechner */
.preset-btn { border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem; text-align: center; background: #fff; width: 100%; height: 100%; }
.preset-btn:hover, .btn-check:checked + .preset-btn { border-color: #0d6efd; background: #e7f1ff; }
.preset-btn i { font-size: 1.6rem; color: #0d6efd; }
.preset-btn .small { color: #6c757d; }
.rate-row { display: flex; align-items: center; gap: 1rem; border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem .9rem; margin-bottom: .5rem; background: #fff; }
.rate-row .rate-logo { width: 90px; text-align: center; }
.rate-row .rate-price { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

/* Sonstiges */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.object-fit-cover { object-fit: cover; }
.table-orders td, .table-orders th { white-space: nowrap; }
.unread-dot { width: .6rem; height: .6rem; background: #dc3545; border-radius: 50%; display: inline-block; }
.step-dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }
@media (max-width: 575px) {
  .msg-row .msg { max-width: 90%; }
  .option-row .btn { width: 100%; }
  .rate-row { flex-wrap: wrap; }
}
.table td.text-end, .table th.text-end { white-space: nowrap; }

/* ---------- Mobile ---------- */
.table-wide { min-width: 640px; }
.tabs-scroll { white-space: nowrap; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .nav-link { white-space: nowrap; }
@media (max-width: 767.98px) {
  .hero h1, .hero .display-5 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero .btn-lg { width: 100%; font-size: 1.05rem; }
  .hero { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  h1.fw-bold, .h1 { font-size: 1.75rem; }
  .lead { font-size: 1.05rem; }
  .price-card .display-5 { font-size: 2rem; }
  .carrier-strip { justify-content: center; }
  .carrier-strip .carrier-logo { height: 22px !important; }
  .pay-logos img { height: 24px; }
  .navbar .lang-flags { padding: .25rem 0; }
  .navbar-collapse .btn { width: 100%; margin-top: .5rem; }
  .chat-box { max-height: none; padding: .75rem; }
  .msg { font-size: .92rem; }
  .option-row { gap: .5rem; }
  .option-logo { width: auto; text-align: left; }
  .rate-row .rate-logo { width: auto; }
  .rate-row .rate-price { width: 100%; text-align: right; }
  .card-body.p-4, .card-body.p-5 { padding: 1.25rem !important; }
  footer .col-6 { margin-bottom: .5rem; }
  .legal { padding-top: 2rem !important; }
  .accordion-button { font-size: .95rem; }
}
