/* ==========================================================================
   Müllfach.de – klassisches Bootstrap-Theme (alles lokal)
   ========================================================================== */

:root,
[data-bs-theme="light"] {
  --mf-brand: #337ab7;
  --mf-brand-rgb: 51, 122, 183;
  --mf-brand-dark: #286090;
  --mf-ink: #333;
  --mf-surface: #fff;
  --mf-surface-2: #fff;
  --mf-border: #ddd;
  --mf-panel-head: #f5f5f5;
  --mf-well: #f5f5f5;
  --mf-shadow: none;
  --mf-shadow-lg: 0 1px 2px rgba(0,0,0,.05);

  --bs-primary: #337ab7;
  --bs-primary-rgb: 51, 122, 183;
  --bs-link-color: #337ab7;
  --bs-link-color-rgb: 51, 122, 183;
  --bs-link-hover-color: #23527c;
  --bs-link-hover-color-rgb: 35, 82, 124;
  --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-font-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
  --bs-body-font-size: 15px;
  --bs-body-line-height: 1.5;
  --bs-body-color: #333;
  --bs-body-bg: #fff;
  --bs-border-color: #ddd;
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: 6px;
  --bs-border-radius-xl: 6px;
  --bs-secondary-color: #777;
  --bs-tertiary-bg: #f5f5f5;
}

[data-bs-theme="dark"] {
  --mf-brand: #5b9bd5;
  --mf-brand-rgb: 91, 155, 213;
  --mf-brand-dark: #79b0e0;
  --mf-ink: #ddd;
  --mf-surface: #222;
  --mf-surface-2: #1b1b1b;
  --mf-border: #3a3a3a;
  --mf-panel-head: #2a2a2a;
  --mf-well: #2a2a2a;
  --bs-primary: #5b9bd5;
  --bs-primary-rgb: 91, 155, 213;
  --bs-link-color: #6fa8dc;
  --bs-link-color-rgb: 111, 168, 220;
  --bs-link-hover-color: #9cc3e6;
  --bs-body-color: #ccc;
  --bs-body-bg: #1b1b1b;
  --bs-border-color: #3a3a3a;
  --bs-secondary-color: #999;
  --bs-tertiary-bg: #2a2a2a;
  --bs-secondary-bg: #2a2a2a;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 500; color: var(--mf-ink); }
.mono, code, kbd, pre { font-family: var(--bs-font-monospace); }
code { color: #c7254e; background: #f9f2f4; padding: 2px 4px; border-radius: 3px; font-size: 90%; }
[data-bs-theme="dark"] code { background: #2d2328; color: #e88aa5; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.min-w-0 { min-width: 0; }
[hidden] { display: none !important; }

/* ── Buttons (Bootstrap-3-Optik) ───────────────────────────────────────── */
.btn { border-radius: 4px; font-weight: 400; }
.btn-primary {
  --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4;
  --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74;
  --bs-btn-active-bg: #204d74; --bs-btn-active-border-color: #122b40;
  --bs-btn-disabled-bg: #337ab7; --bs-btn-disabled-border-color: #2e6da4;
  --bs-btn-focus-shadow-rgb: 51, 122, 183;
}
.btn-success {
  --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c;
  --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439;
  --bs-btn-active-bg: #398439; --bs-btn-active-border-color: #255625;
}
.btn-soft, .btn-default {
  --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad;
  --bs-btn-active-color: #333; --bs-btn-active-bg: #d4d4d4; --bs-btn-active-border-color: #8c8c8c;
  --bs-btn-disabled-color: #333; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #ccc;
}
[data-bs-theme="dark"] .btn-soft, [data-bs-theme="dark"] .btn-default {
  --bs-btn-color: #ddd; --bs-btn-bg: #2b2b2b; --bs-btn-border-color: #444;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #363636; --bs-btn-hover-border-color: #555;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #3d3d3d;
}
.btn-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: transparent; color: #777; padding: 0; border-radius: 4px; }
.btn-icon:hover, .btn-icon:focus-visible { color: #333; background: #e7e7e7; }
[data-bs-theme="dark"] .btn-icon:hover { color: #fff; background: #333; }
.btn-lg { font-size: 18px; padding: 10px 16px; border-radius: 6px; }
.form-control, .form-select { border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); }
.form-control:focus, .form-select:focus { border-color: #66afe9; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }

/* ── Navbar (navbar-default) ───────────────────────────────────────────── */
.site-notice { background: #fcf8e3; color: #8a6d3b; border-bottom: 1px solid #faebcc; }
.site-header { background: #f8f8f8; border-bottom: 1px solid #e7e7e7; }
[data-bs-theme="dark"] .site-header { background: #222; border-color: #080808; }
.site-header .navbar { padding-top: 6px; padding-bottom: 6px; }
.site-header .nav-link { color: #777; padding: 10px 15px !important; }
.site-header .nav-link:hover { color: #333; }
.site-header .nav-link.active { color: #555; background: #e7e7e7; border-radius: 4px; }
[data-bs-theme="dark"] .site-header .nav-link { color: #9d9d9d; }
[data-bs-theme="dark"] .site-header .nav-link:hover, [data-bs-theme="dark"] .site-header .nav-link.active { color: #fff; background: #080808; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--mf-ink); text-decoration: none; }
.brand:hover { color: var(--mf-ink); }
.brand img { width: 32px; height: 32px; }
.brand-text { font-size: 20px; font-weight: 700; color: #555; letter-spacing: -.01em; }
[data-bs-theme="dark"] .brand-text { color: #ddd; }
.brand-tld { color: var(--mf-brand); }

/* ── Jumbotron ─────────────────────────────────────────────────────────── */
.jumbotron { background: #eee; padding: 48px 0 40px; margin-bottom: 30px; border-bottom: 1px solid #e3e3e3; }
[data-bs-theme="dark"] .jumbotron { background: #262626; border-color: #333; }
.jumbotron h1 { font-size: 44px; font-weight: 500; margin-bottom: 15px; }
.jumbotron .lead { font-size: 19px; color: #555; }
[data-bs-theme="dark"] .jumbotron .lead { color: #bbb; }
.jumbotron .logo-big { width: 110px; height: 110px; }
@media (max-width: 767.98px) { .jumbotron h1 { font-size: 30px; } .jumbotron { padding: 30px 0; } }

/* ── Panels ────────────────────────────────────────────────────────────── */
.card-x, .panel { background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.panel-heading { background: var(--mf-panel-head); border-bottom: 1px solid var(--mf-border); padding: 10px 15px; border-radius: 3px 3px 0 0; }
.panel-heading h2, .panel-heading h3 { font-size: 16px; margin: 0; font-weight: 500; }
.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { background: #337ab7; border-color: #337ab7; color: #fff; }
.panel-primary > .panel-heading h2 { color: #fff; }
.panel-body { padding: 15px; }
.well { background: var(--mf-well); border: 1px solid #e3e3e3; border-radius: 4px; padding: 19px; box-shadow: inset 0 1px 1px rgba(0,0,0,.05); }
[data-bs-theme="dark"] .well { border-color: #333; }
.page-header { padding-bottom: 9px; margin: 25px 0 20px; border-bottom: 1px solid #eee; }
[data-bs-theme="dark"] .page-header { border-color: #333; }
.page-header h1 { font-size: 34px; margin: 0; }
.page-header .small { font-size: 60%; color: #777; font-weight: 400; }
.breadcrumb { background: #f5f5f5; padding: 8px 15px; border-radius: 4px; font-size: 14px; margin-bottom: 0; }
[data-bs-theme="dark"] .breadcrumb { background: #262626; }
.badge-soft { display: inline-block; font-size: 12px; padding: 3px 7px; border-radius: 3px; background: #f5f5f5; border: 1px solid #ddd; color: #555; }
[data-bs-theme="dark"] .badge-soft { background: #2a2a2a; border-color: #444; color: #bbb; }

/* ── Generator ─────────────────────────────────────────────────────────── */
.addr-box { display: flex; align-items: center; gap: 8px; }
.addr-box .addr { flex: 1; font-family: var(--bs-font-monospace); font-size: 17px; padding: 8px 12px; background: var(--mf-surface); border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); word-break: break-all; min-height: 44px; color: var(--mf-ink); }
.at { color: inherit; }
.custom-wrap { display: flex; }
.custom-wrap input { flex: 1; min-width: 0; font-family: var(--bs-font-monospace); font-size: 16px; padding: 8px 12px; border: 1px solid #ccc; border-right: 0; border-radius: 4px 0 0 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); background: var(--mf-surface); color: var(--mf-ink); }
.custom-wrap input:focus { outline: 0; border-color: #66afe9; }
.custom-wrap .suffix { display: flex; align-items: center; padding: 0 12px; background: #eee; border: 1px solid #ccc; border-radius: 0 4px 4px 0; color: #555; font-family: var(--bs-font-monospace); white-space: nowrap; }
[data-bs-theme="dark"] .custom-wrap .suffix { background: #333; border-color: #444; color: #bbb; }
[data-bs-theme="dark"] .custom-wrap input, [data-bs-theme="dark"] .addr-box .addr { border-color: #444; }
.validation { min-height: 22px; font-size: 14px; }
.gen-tabs .nav-link { color: #555; }

/* ── Startseite ────────────────────────────────────────────────────────── */
.features h2 { font-size: 21px; }
.features .bi { color: #337ab7; }
.seo-text h2 { font-size: 26px; }
.seo-text h3 { font-size: 19px; margin-top: 24px; }
.seo-text p, .seo-text li { line-height: 1.7; }
.featurette-divider { margin: 40px 0; }
.faq .accordion-button { font-weight: 500; }
.faq .accordion-button:not(.collapsed) { background: #f5f5f5; color: #333; box-shadow: none; }
[data-bs-theme="dark"] .faq .accordion-button:not(.collapsed) { background: #2a2a2a; color: #ddd; }

/* ── Postfach ──────────────────────────────────────────────────────────── */
.inbox-page { padding: 20px 0 30px; }
.inbox-addr { font-family: var(--bs-font-monospace); font-size: 20px; word-break: break-all; color: var(--mf-ink); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #5cb85c; display: inline-block; }
.live-dot.paused { background: #999; }
.live-dot.error { background: #d9534f; }
.inbox-grid { display: grid; grid-template-columns: minmax(270px, 360px) 1fr; gap: 20px; margin-top: 20px; }
.inbox-panel { display: flex; flex-direction: column; min-width: 0; min-height: 520px; }
.panel-head { background: var(--mf-panel-head); border-bottom: 1px solid var(--mf-border); padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head h2 { font-size: 16px; margin: 0; }
.mail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; max-height: calc(100vh - 230px); }
.mail-list li { border-bottom: 1px solid var(--mf-border); }
.mail-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 15px; color: inherit; border-left: 3px solid transparent; }
.mail-item:hover { background: #f5f5f5; }
[data-bs-theme="dark"] .mail-item:hover { background: #2a2a2a; }
.mail-item.active { background: #eaf2fa; border-left-color: #337ab7; }
[data-bs-theme="dark"] .mail-item.active { background: #23303d; }
.mail-item .from { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mf-ink); }
.mail-item .subj { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mf-ink); }
.mail-item .prev { font-size: 13px; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item .time { font-size: 12px; color: #777; white-space: nowrap; }
.mail-item.unread .subj { font-weight: 700; }
.mail-item.unread { border-left-color: #5cb85c; }
.mail-item.new { background: #dff0d8; }
.avatar { display: none !important; }
.viewer-empty, .list-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; color: #777; }
.viewer-empty .ic, .list-empty .ic { font-size: 40px; color: #bbb; margin-bottom: 10px; }
.mail-head { padding: 15px 20px; border-bottom: 1px solid var(--mf-border); }
.mail-head h2 { font-size: 20px; word-break: break-word; }
.mail-meta { font-size: 14px; color: #777; }
.mail-meta strong { color: var(--mf-ink); }
.mail-tools { padding: 8px 20px; border-bottom: 1px solid var(--mf-border); background: var(--mf-panel-head); }
.mail-body { background: #fff; flex: 1; }
.mail-frame { width: 100%; border: 0; display: block; min-height: 400px; background: #fff; }
.att-list { padding: 10px 20px; border-top: 1px solid var(--mf-border); display: flex; flex-wrap: wrap; gap: 8px; background: var(--mf-panel-head); }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #ccc; border-radius: 4px; background: var(--mf-surface); color: #333; text-decoration: none; font-size: 13px; max-width: 100%; }
[data-bs-theme="dark"] .att { color: #ddd; border-color: #444; }
.att:hover { background: #e6e6e6; color: #333; }
.att .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15rem; }
.att .size { color: #777; font-size: 12px; }
.att.disabled { opacity: .55; pointer-events: none; }
.ext-banner { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.skeleton { background: #eee; border-radius: 3px; }
[data-bs-theme="dark"] .skeleton { background: #333; }
@media (max-width: 991.98px) {
  .inbox-grid { grid-template-columns: 1fr; }
  .inbox-grid[data-view="mail"] .list-col { display: none; }
  .inbox-grid[data-view="list"] .view-col { display: none; }
  .mail-list { max-height: none; }
  .inbox-panel { min-height: 300px; }
}
@media (min-width: 992px) { .only-mobile { display: none !important; } }

/* ── Doku / Texte ──────────────────────────────────────────────────────── */
.prose { max-width: 860px; }
.prose h2 { font-size: 24px; margin-top: 35px; margin-bottom: 12px; }
.prose h3 { font-size: 18px; margin-top: 22px; }
.prose p, .prose li { line-height: 1.7; }
.code { position: relative; background: #f5f5f5; color: #333; border: 1px solid #ccc; border-radius: 4px; padding: 9.5px; font-size: 13px; overflow-x: auto; margin-bottom: 15px; }
[data-bs-theme="dark"] .code { background: #262626; color: #ddd; border-color: #444; }
.code pre { margin: 0; white-space: pre; color: inherit; font-size: 13px; }
.code .copy { position: absolute; top: 5px; right: 5px; font-size: 12px; padding: 1px 7px; border: 1px solid #ccc; background: #fff; border-radius: 3px; color: #333; }
.code .c { color: #999; }
.method { display: inline-block; font-family: var(--bs-font-monospace); font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 3px; background: #5cb85c; color: #fff; margin-right: 6px; }
.endpoint { font-family: var(--bs-font-monospace); font-weight: 700; word-break: break-all; }
.doc-nav { position: sticky; top: 20px; }
.doc-nav a { display: block; padding: 4px 15px; color: #767676; text-decoration: none; font-size: 14px; border-left: 2px solid transparent; }
.doc-nav a:hover { color: #337ab7; border-left-color: #337ab7; }
.table-x th { font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: #f5f5f5; border-top: 1px solid #e5e5e5; color: #777; font-size: 14px; }
[data-bs-theme="dark"] .site-footer { background: #222; border-color: #333; color: #999; }
.footer-title { font-size: 14px; font-weight: 700; color: #555; margin-bottom: 10px; }
[data-bs-theme="dark"] .footer-title { color: #ccc; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: #777; text-decoration: none; }
.footer-links a:hover { color: #337ab7; text-decoration: underline; }

.err-code { font-size: 100px; font-weight: 700; color: #ccc; line-height: 1; }
.spin { animation: mfspin .8s linear infinite; display: inline-block; }
@keyframes mfspin { to { transform: rotate(360deg); } }
