/*!
 * Theme Björn Deutschmann – TYPO3 14 / Bootstrap 5
 * Farben und Boxen-Stil übernommen aus theme_bd.css (2014), modernisiert.
 */

:root {
  --bd-red: #c63927;          /* aktive Navigation (Original) */
  --bd-red-dark: #a42e1f;     /* Link-Hover, besserer Kontrast */
  --bd-orange: #eea205;       /* Akzent (Original-Hover) */
  --bd-slate: #505455;        /* Navigation-Hover (Original) */
  --bd-box-bg: rgba(255, 255, 255, 0.92);
  --bd-box-shadow: inset 0 0 15px 5px rgba(200, 200, 200, 0.9);
  --bd-radius: 1.5rem;

  --bs-link-color: var(--bd-red);
  --bs-link-color-rgb: 198, 57, 39;
  --bs-link-hover-color: var(--bd-red-dark);
  --bs-link-hover-color-rgb: 164, 46, 31;
  --bs-body-font-size: 1rem;
}

body.bd-body {
  background: #e9e9e9 url("../Images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav .nav-link,
.bd-logo-link {
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
}

/* ---------- Kopf ---------- */
.bd-header {
  background: var(--bd-box-bg);
}

.bd-logo {
  max-height: 160px;
  width: auto;
}

.bd-navbar {
  background: var(--bd-box-bg);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bd-navbar .nav-link {
  border-radius: 999px;
  padding-inline: 1rem !important;
  color: #333;
}

.bd-navbar .nav-link:hover,
.bd-navbar .nav-link:focus-visible {
  background: var(--bd-slate);
  color: #fff;
}

.bd-navbar .nav-link.active,
.bd-navbar .nav-link.show {
  background: var(--bd-red);
  color: #fff;
}

.bd-navbar .dropdown-item.active,
.bd-navbar .dropdown-item:active {
  background: var(--bd-red);
}

.bd-breadcrumb {
  background: rgba(248, 249, 251, 0.95);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ---------- Inhalt ---------- */
.bd-main {
  flex: 1 0 auto;
  padding-top: 1.5rem;
}

.bd-box {
  background: var(--bd-box-bg);
  box-shadow: var(--bd-box-shadow);
  border-radius: var(--bd-radius);
  padding: 1.5rem 1.75rem;
}

.bd-box--small {
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
}

.bd-box img {
  max-width: 100%;
  height: auto;
}

.bd-sidenav__title {
  color: var(--bd-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bd-sidenav .nav-pills .nav-link {
  color: #333;
}

.bd-sidenav .nav-pills .nav-link:hover {
  background: var(--bd-slate);
  color: #fff;
}

.bd-sidenav .nav-pills .nav-link.active {
  background: var(--bd-red);
  color: #fff;
}

.bd-sidenav__sub {
  padding-left: 1rem;
  font-size: 0.85rem;
}

.bd-sidenav__sub .nav-link {
  padding-block: 0.2rem;
  color: #555;
}

.bd-sidenav__sub .nav-link.active {
  color: var(--bd-red);
  font-weight: 600;
}
.bd-sidenav__sub .bd-sidenav__sub {
  padding-left: 0.75rem;
  border-left: 2px solid rgba(198, 57, 39, 0.25);
  margin: 0.1rem 0 0.2rem 0.6rem;
}
.bd-sidenav__sub .nav-link.active:not([aria-current]) {
  font-weight: 500;
}

/* ---------- Fuß ---------- */
.bd-footer {
  background: #f5f5f5;
  border-top: 3px solid var(--bd-orange);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bd-footer__sep {
  margin: 0 0.35rem;
  color: #999;
}

.bd-skiplink {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* ---------- Druck ---------- */
@media print {
  body.bd-body {
    background: none;
  }
  .bd-box {
    box-shadow: none;
    padding: 0;
    text-align: justify;
  }
  .bd-header {
    background: none;
  }
  .bd-logo {
    max-height: 90px;
  }
}

/* ---------- Werbung ---------- */
.bd-ad__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.25rem;
}

/* Anzeigenbox nur sichtbar, wenn Google tatsächlich eine Anzeige geliefert hat */
.bd-ad:not(:has(ins[data-ad-status="filled"])) {
  background: none;
  box-shadow: none;
  padding: 0;
}
.bd-ad:not(:has(ins[data-ad-status="filled"])) .bd-ad__label {
  display: none;
}

/* ---------- Suche in der Navigation ---------- */
.bd-search .form-control {
  border-radius: 999px;
  min-width: 10rem;
}
.bd-search__btn {
  border-radius: 999px;
  background: var(--bd-red);
  color: #fff;
}
.bd-search__btn:hover,
.bd-search__btn:focus-visible {
  background: var(--bd-slate);
  color: #fff;
}

/* ---------- Hinweisbalken ---------- */
.bd-disclaimer {
  background: #fff3e6;
  border-bottom: 2px solid var(--bd-orange);
  font-size: 0.8rem;
  padding: 0.35rem 0;
}
.bd-disclaimer.is-hidden {
  display: none;
}
.bd-disclaimer .btn-close {
  font-size: 0.6rem;
}

/* ---------- Rechte Spalte: Trennlinie zwischen Elementen ---------- */
.bd-box--small > .frame + .frame {
  border-top: 1px solid rgba(80, 84, 85, 0.2);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* ---------- Partnerlinks im Footer ---------- */
.bd-footer__partner {
  font-size: 0.75rem;
  color: #777;
}

/* ---------- Finanzrechner ---------- */
.bd-rechner {
  margin: 1.5rem 0;
}
.bd-rechner .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}
.bd-rechner .form-text {
  font-size: 0.7rem;
}
.bd-rechner__ergebnis {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(238, 162, 5, 0.08);
}
.bd-rechner__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.bd-rechner__kpis > div {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.bd-rechner__kpis span {
  display: block;
  font-size: 0.75rem;
  color: #666;
}
.bd-rechner__kpis strong {
  font-size: 1.15rem;
}
.bd-rechner__kpis .is-pos strong { color: #2e7d32; }
.bd-rechner__kpis .is-neg strong { color: var(--bd-red); }
.bd-rechner__hinweis {
  font-size: 0.72rem;
  color: #777;
  margin: 0.5rem 0 0;
}
.bd-bars { display: grid; gap: 0.35rem; }
.bd-bar {
  display: grid;
  grid-template-columns: minmax(8rem, 1.4fr) 2fr minmax(7rem, auto);
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
}
.bd-bar__track { background: #eee; border-radius: 999px; height: 0.6rem; overflow: hidden; }
.bd-bar__fill { display: block; height: 100%; background: var(--bd-red); border-radius: 999px; }
.bd-bar__value { text-align: right; white-space: nowrap; }
@media (max-width: 575.98px) {
  .bd-bar { grid-template-columns: 1fr; gap: 0.15rem; }
  .bd-bar__value { text-align: left; }
}
.bd-chart { width: 100%; height: auto; margin-top: 1rem; }
.bd-chart__axis { stroke: #bbb; }
.bd-chart__area { fill: rgba(198, 57, 39, 0.12); }
.bd-chart__wert { fill: none; stroke: var(--bd-red); stroke-width: 2.5; }
.bd-chart__einzahlung { fill: none; stroke: var(--bd-slate); stroke-width: 2; stroke-dasharray: 5 4; }
.bd-chart__text { font-size: 12px; fill: #666; }
.bd-chart__legende { font-size: 0.75rem; margin: 0.25rem 0 0; }
.bd-chart__legende span { display: inline-block; width: 1.2rem; height: 3px; vertical-align: middle; margin: 0 0.3rem 0 0.8rem; }
.bd-chart__legende .is-wert { background: var(--bd-red); margin-left: 0; }
.bd-chart__legende .is-einzahlung { background: var(--bd-slate); }

/* ---------- Teilen-Leiste und Autorenbox ---------- */
.bd-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(80, 84, 85, 0.2);
  font-size: 0.8rem;
}
.bd-share__label {
  color: #666;
  margin-right: 0.2rem;
}
.bd-share__link {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(198, 57, 39, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--bd-red);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.4;
}
.bd-share__link:hover,
.bd-share__link:focus-visible {
  background: var(--bd-red);
  color: #fff;
}
.bd-author {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(238, 162, 5, 0.08);
  border-left: 3px solid var(--bd-orange);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.bd-author p {
  margin: 0 0 0.3rem;
}
.bd-author p:last-child {
  margin-bottom: 0;
}
.bd-author__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bd-author__linkedin img {
  display: block;
  height: 17px;
  width: auto;
}

/* ---------- Inhalts-Kästen (Formatvorlagen im Editor) ---------- */
.kasten {
  background: rgba(198, 57, 39, 0.07);
  border-left: 4px solid var(--bd-red);
  border-radius: 0.5rem;
  padding: 0.8rem 1.1rem;
  margin: 1.25rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.kasten strong:first-child,
.kasten > p:first-child > strong:first-child {
  color: var(--bd-red);
}
.hinweis-kasten {
  background: rgba(238, 162, 5, 0.12);
  border-left: 4px solid var(--bd-orange);
  border-radius: 0.5rem;
  padding: 0.8rem 1.1rem;
  margin: 1.25rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.kasten > :last-child,
.hinweis-kasten > :last-child {
  margin-bottom: 0;
}
/* Arbeitsnotizen aus den Entwürfen nie öffentlich anzeigen */
.todo {
  display: none;
}

/* ---------- Externe Inhalte (Klick zum Laden) ---------- */
.bd-extern {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border: 2px dashed rgba(198, 57, 39, 0.35);
  border-radius: 0.75rem;
  background: rgba(198, 57, 39, 0.04);
}
.bd-extern p { margin-bottom: 0.5rem; }
.bd-extern small, .bd-extern .small { color: #666; }
.bd-extern__load {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--bd-red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.bd-extern__load:hover { background: #a82f20; }
.bd-extern--aktiv { padding: 0; border: 0; background: none; }

/* ---------- Partner-Banner ---------- */
.bd-banner {
  margin: 1.5rem 0;
  text-align: center;
}
.bd-banner img { max-width: 100%; height: auto; }
.bd-banner::before {
  content: "Anzeige";
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 0.25rem;
}
