/*
 * bs3-compat.css – kenbak1registry.com
 * Bildet unter Bootstrap 5.3 die Grundwerte von Bootstrap 3 nach, auf denen das
 * Magnet-Template (styleNEU.css / style.css) aufbaut. Ziel: gleiches Aussehen wie vorher.
 * Reihenfolge: bootstrap 5 -> fonts.css -> bs3-compat.css -> Template-CSS -> theme-blue.css -> kenbak.css
 */

/* ---------- Grundtypografie (BS3: 14px, line-height 1.42857, keine Link-Unterstreichung) ---------- */
:root { --bs-body-font-size: 14px; --bs-body-line-height: 1.42857143; --bs-body-color: #333; --bs-link-decoration: none; }
body { font-size: 14px; line-height: 1.42857143; color: #333; }
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.1; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: 40px; }
address { margin-bottom: 20px; line-height: 1.42857143; font-style: normal; }
blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee; }
blockquote p:last-child { margin-bottom: 0; }
img { vertical-align: middle; }

/* ---------- Raster wie Bootstrap 3 (Container-Breiten, 30px Abstand) ---------- */
.container { padding-right: 15px; padding-left: 15px; max-width: 100%; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.row { --bs-gutter-x: 30px; --bs-gutter-y: 0; }
/* Container umschliessen gefloatete Spalten (BS3-Clearfix), nicht in der Flex-Navbar */
:not(.navbar) > .container::after { content: ""; display: table; clear: both; }
/* Spalten ausserhalb von .row: unter BS3 gefloatet (Text fliesst ums Bild) mit 15px Innenabstand.
   Zuordnung: BS3 xs/sm/md/lg = BS5 (ohne)/md/lg/xl */
:not(.row) > [class*="col-"] { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; }
:not(.row) > [class~="col-1"], :not(.row) > [class~="col-2"], :not(.row) > [class~="col-3"], :not(.row) > [class~="col-4"],
:not(.row) > [class~="col-5"], :not(.row) > [class~="col-6"], :not(.row) > [class~="col-7"], :not(.row) > [class~="col-8"],
:not(.row) > [class~="col-9"], :not(.row) > [class~="col-10"], :not(.row) > [class~="col-11"], :not(.row) > [class~="col-12"] { float: left; }
@media (min-width: 768px)  { :not(.row) > [class*="col-md-"] { float: left; } }
@media (min-width: 992px)  { :not(.row) > [class*="col-lg-"] { float: left; } }
@media (min-width: 1200px) { :not(.row) > [class*="col-xl-"] { float: left; } }

/* ---------- Von BS5 entfernte BS3-Klassen ---------- */
.hidden { display: none !important; }
.text-justify { text-align: justify !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; transition: border .2s ease-in-out; }
.thumbnail > img, .thumbnail a > img { display: block; max-width: 100%; height: auto; margin-right: auto; margin-left: auto; }
a.thumbnail:hover, a.thumbnail:focus { border-color: #337ab7; text-decoration: none; }

/* Jumbotron (in BS5 entfallen) */
.jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eee; }
.jumbotron h1 { color: inherit; }
.jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; }
.jumbotron .container { max-width: 100%; }
@media screen and (min-width: 768px) {
  .jumbotron { padding-top: 48px; padding-bottom: 48px; }
  .jumbotron h1 { font-size: 63px; }
}

/* ---------- Glyphicons (nur die genutzten Zeichen, Schrift liegt lokal) ---------- */
@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
       url('../fonts/glyphicons-halflings-regular.woff') format('woff');
  font-display: block;
}
.glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.glyphicon-menu-hamburger::before { content: "\e236"; }
.glyphicon-menu-down::before { content: "\e259"; }
.glyphicon-plus::before { content: "\002b"; }
.glyphicon-minus::before { content: "\2212"; }

/* ---------- Navigation: BS5-Navbar im Stil der BS3-Navbar ---------- */
.navbar.navbar-magnet { padding: 0; border-bottom: 1px solid transparent; }
.navbar-magnet > .container { flex-wrap: wrap; }
.navbar-magnet .navbar-brand { float: none; font-size: 18px; line-height: 20px; padding: 15px; margin-right: 0; }
.navbar-magnet .navbar-brand:hover, .navbar-magnet .navbar-brand:focus { text-decoration: none; }
@media (min-width: 768px) { .navbar-magnet > .container .navbar-brand { margin-left: -15px; } }
/* Hamburger-Schalter wie BS3 .navbar-toggle */
.navbar-magnet .navbar-toggler { padding: 9px 10px; margin: 8px -10px 8px 0; background-color: transparent; border: 1px solid transparent; border-radius: 4px; line-height: 1; }
.navbar-magnet .navbar-toggler:focus { box-shadow: none; outline: 0; }
/* Menue-Eintraege */
.navbar-magnet .navbar-nav .nav-link { display: block; line-height: 20px; }
.navbar-magnet .dropdown-toggle::after { display: none; } /* BS5-Pfeil aus, das Template nutzt die Glyphicon */
.navbar-magnet .dropdown-menu { --bs-dropdown-font-size: 14px; --bs-dropdown-min-width: 160px; --bs-dropdown-padding-y: 5px; --bs-dropdown-border-radius: 4px; --bs-dropdown-border-color: rgba(0,0,0,.15); --bs-dropdown-box-shadow: 0 6px 12px rgba(0,0,0,.175); box-shadow: var(--bs-dropdown-box-shadow); margin: 2px 0 0; }
.navbar-magnet .dropdown-menu > li > a { display: block; padding: 3px 20px; line-height: 1.42857143; white-space: nowrap; clear: both; font-weight: 400; color: #333; }
.navbar-magnet .dropdown-menu > li > a:hover, .navbar-magnet .dropdown-menu > li > a:focus { text-decoration: none; background-color: #f5f5f5; }
.navbar-magnet .dropdown-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; border: 0; opacity: 1; }
@media (max-width: 767.98px) {
  .navbar-magnet .navbar-collapse { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; max-height: 340px; overflow-y: auto; border-top: 1px solid transparent; }
  .navbar-magnet .navbar-nav { margin: 7.5px -15px; }
  .navbar-magnet .navbar-nav .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; }
  .navbar-magnet .navbar-nav .dropdown-menu > li > a { padding: 5px 15px; line-height: 20px; }
}

/* ---------- Karussell: BS3-Beschriftung ---------- */
.carousel-caption { z-index: 10; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
