
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(''),
       url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'),
       url('../fonts/open-sans-v34-latin-regular.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(''),
       url('../fonts/open-sans-v34-latin-600.woff2') format('woff2'),
       url('../fonts/open-sans-v34-latin-600.woff') format('woff');
}

/* Smooth Scroll & Page Transitions */
html {
  scroll-behavior: smooth;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
}

/* Basis */
html, body {
  color: #04367c;
  font-family: "Open Sans", Verdana, Arial, Helvetica, sans-serif;
  background-color: #FCFAE3;
  font-size: 14px;
  line-height: 1.5;
}
body {
  padding-top: 20px;
  padding-bottom: 20px;
}
.container {
  width: 98%;
  max-width: 1250px;
}

/* CSS-Variablen (Bildschirm) */
@media screen {
  :root {
    --menu-aktiv-farbe: #1B9EBB;
    --menu-aktiv-hg:    #FFFFFF;
  }
}

/* Grosse Bildschirme */
@media screen and (min-width: 1200px) {
  html, body {
    font-size: 16px;
  }
  .dropdown-menu {
    font-size: 15px;
  }
}

/* Header */
#Kopfteil {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 -15px 1.5em 0;
  padding: 1em;
  background-color: white;
  min-height: 90px;
  border: solid 1px #fff89b;
}
.kopfteil-logo {
  flex-shrink: 0;
}

#kopfzeile {
  font-size: 1.3em;
  text-align: right;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Sticky Header & Sidebar (grosse Bildschirme) */
@media screen and (min-width: 768px) and (min-height: 760px) {
  #Kopfteil {
    position: sticky;
    top: 0;
    z-index: 100;
    opacity: 0.95;
  }
  .sidebar-nav {
    position: sticky;
    top: 6.8em;
  }
}

/* Mobil */
@media screen and (max-width: 767px) {
  body {
    padding-top: 5px;
    padding-bottom: 10px;
  }
  #Kopfteil {
    display: none;
  }
  .navbar {
    margin-top: 0;
    margin-bottom: 5px;
  }
  .navbar-default {
    background-color: transparent;
    border: none;
  }
  .navbar-brand {
    padding-left: 0;
  }
  .navbar-nav .open .dropdown-menu > li > a,
  .navbar-nav .open .dropdown-menu .dropdown-header {
    padding: 5px;
  }
}

/* Navigation */
.navbar-nav > li > a {
  padding: 4px;
  font-size: 1.1em;
  font-weight: bold;
}
.navbar-nav > li > ul {
  padding-left: 15px;
  list-style-type: none;
}
.navbar-nav > li > ul > li > a {
  display: block;
  padding: 3px;
}
.navbar-nav > li > ul > li {
  padding-left: 10px;
}
.sidebar-nav {
  padding-right: 0;
}
@media screen and (min-width: 768px) {
  .container {
    padding-left: 0;
  }
  .sidebar-nav .navbar .navbar-collapse {
    padding: 0;
    max-height: none;
  }
  .sidebar-nav .navbar ul {
    float: none;
  }
  .sidebar-nav .navbar li {
    float: none;
    display: block;
  }
  .sidebar-nav .navbar li a {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .sidebar-nav .navbar li ul li a {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .navbar-default {
    background-color: transparent;
    border-color: transparent;
  }
  .navbar-brand {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav > li,
  .navbar-nav > li > a {
    line-height: 1.2em;
  }
}

/* Links */
a {
  text-decoration: none;
}
a:link,
a:visited,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-brand,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-nav > li > a:visited {
  color: #0FB057;
}
a:hover,
.navbar-default .navbar-nav > li > a:hover {
  color: white;
  background-color: #0FB057;
  text-decoration: none;
}
a:active,
.navbar-default .navbar-nav > li > a:active {
  background-color: #0FB057;
}
a.bild_link:hover {
  background-color: transparent;
}

/* Navbar Toggle */
.navbar-default .navbar-toggle {
  border-color: #0FB057;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #0FB057;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4em;
}
h1 {
  font-size: 1.7em;
  font-weight: normal;
  margin-top: 0;
}
h2 {
  font-size: 1.4em;
  font-weight: normal;
  margin-top: 10px;
  margin-bottom: 5px;
  padding-bottom: 0;
}
h3 {
  font-size: 1.2em;
  font-weight: bold;
}
h4 {
  font-size: 1.05em;
  font-weight: bold;
}

/* Inhaltsbereich */
#Inhalt {
  line-height: 1.7em;
  background-color: white;
  border: solid 1px #fff89b;
  padding: 1em;
  margin-bottom: 7em;
}
#Inhalt table {
  background-color: #FFF !important;
  max-width: 100%;
}
#Inhalt td {
  line-height: 2em;
  vertical-align: top;
  background-color: #FFF;
}
#Inhalt td p {
  font-size: 1em;
}
#Inhalt ul li ul li {
  font-size: 1em;
}
#Inhalt ul {
  padding-left: 1.4em;
}
#Inhalt ul {
  line-height: 1.8em;
}
#Inhalt img {
  vertical-align: bottom;
  margin-bottom: 0.4em;
}

/* Bilder */
img {
  border: none;
}
.album img[align="right"],
#Inhalt img[align="right"] {
  float: right;
  margin-left: 20px;
}
.album img[align="left"],
#Inhalt img[align="left"] {
  float: left;
  margin-right: 20px;
}
.bild_links {
  margin-right: 20px;
  float: left;
}
.bild_rechts {
  margin-left: 20px;
  float: right;
}
.bild_100 {
  max-width: 100%;
  height: auto;
}
.bild_70 {
  max-width: 70%;
  height: auto;
}
.bild_50 {
  max-width: 49%;
  height: auto;
}
.bild_30 {
  max-width: 30%;
  height: auto;
}

/* Schatten */
.schatten,
#Kopfteil,
#Inhalt,
img,
.back-to-top {
  box-shadow: 2px 2px 8px #aaaaaa80;
}
.keinschatten,
.nicht_drucken img {
  box-shadow: none;
}

/* Trauer-Rahmen */
.rahmen_trauer {
  outline: 8px solid black;
  outline-offset: -8px;
}

/* Trennlinie */
hr {
  border-color: #C2CFE6;
}

/* Footer */
.footer-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-mitte {
  text-align: center;
  flex: 1;
}
.back-to-top {
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #fff57f;
  color: #0FB057;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

/* Hilfsklassen */
.kleiner {
  font-size: 0.9em;
}
.aktiv {
  color: #04367c;
}
.rot {
  color: #f00;
}
.rot_blink {
  background-image: url(../grafik/weiss_rot_blink.gif);
}
.pfeil {
  font-size: 24px;
}
.stall_anm {
  color: #2A9FCC;
  font-style: italic;
}

/* Tabellen */
.abstand_listen {
  line-height: 1.2em;
}
.abstand_listen td {
  height: 3em;
  border-bottom: 1px solid #d4d4d4;
}
.resultate td,
.resultate tr {
  font-size: 1.0em;
  margin: 0;
  padding: 4px;
  border-color: transparent #70abdf #70abdf transparent;
  border-style: solid;
  border-width: 0 1px 1px 0;
}
#Inhalt .blinkend tr:hover td,
#Inhalt .blinkend tr:focus td,
#Inhalt .resultate tr:hover td,
#Inhalt .resultate tr:focus td {
  background-color: #e1ffe2;
}

/* Video */
.video_640 {
  width: 640px;
  height: 360px;
}
@media screen and (max-width: 850px) {
  .video_640 {
    width: 480px;
    height: 270px;
  }
}
@media screen and (max-width: 700px) {
  .video_640 {
    width: 320px;
    height: 180px;
  }
}

/* Bilder in Album */
@media screen {
  .album a img {
    transition: transform 0.3s;
  }
  .album a img:hover {
    transform: scale(1.02);
  }
}
@media screen and (max-width: 430px) {
  .album img {
    max-width: 120px;
    height: auto;
  }
}

/* Responsive Korrekturen */
@media screen and (max-width: 700px) {
  .resultate {
    font-size: 0.9em;
  }
  .resultate td,
  .resultate tr {
    padding: 1px;
  }
  .bild_links {
    margin-right: 7px;
  }
  .bild_rechts {
    margin-left: 7px;
  }
}

/* Mehrspaltig */
.spalten {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  gap: 1rem;
}
.spalte_250 {
  flex: 1 1 250px;
}
.spalten div > * {
  margin-top: 0;
}

/* Dark Mode */
@media only screen and (prefers-color-scheme: dark) {

  :root {
    --menu-aktiv-farbe: #1B9EBB;
    --menu-aktiv-hg:    #090909;
  }

  html, body {
    color: #00275E;
    background-color: #191919;
  }
  #Inhalt,
  #Kopfteil {
    background-color: #FCFAE3;
    border: solid 1px #FBEC21;
  }
  section {
    background: #FAF5E9;
  }
  #Inhalt td {
    background-color: #FCFAE3;
  }
  .blinkend tr:hover,
  .blinkend tr:focus {
    background-color: #FFFAC9;
  }
  .schatten,
  #Kopfteil,
  #Inhalt,
  img {
    box-shadow: none;
  }
  a:hover,
  .navbar-default .navbar-nav > li > a:hover {
    color: black;
    background-color: #1ECD6D;
  }
  .dropdown-menu {
    background-color: #000000;
  }
  .dropdown-menu .divider {
    background-color: #6D6D6D;
  }
  .navbar-default .navbar-collapse,
  .navbar-default .navbar-form {
    border-color: #6D6D6D;
  }
  table.links a img {
    background-color: #FFFFFF;
  }
  .blueimp-gallery {
    background: rgba(40, 40, 40, 0.95);
  }
  .blueimp-gallery > .close,
  .blueimp-gallery > .title {
    color: #D1D1D1;
    text-shadow: 1px 1px 2px #303030;
  }
  .blueimp-gallery > .close:hover {
    background-color: #DADADA;
  }
  .blueimp-gallery > .title,
  .blueimp-gallery > .title:hover {
    color: #DEDEDE;
    text-shadow: 1px 1px 3px #000000;
  }
  .blueimp-gallery > .title:hover {
    background-color: #292929;
  }
}

/* Druck */
@media print {
  @page {
    size: A4 portrait;
    margin: .8cm .8cm .8cm 2cm;
  }
  html,
  body{
    width: 100%;
    font-size: 11pt;
  }
  .nicht_drucken,
  .sidebar-nav,
  .back-to-top {
    display: none;
    visibility: hidden;
  }
  #Inhalt {
    width: auto;
    margin: 0 auto;
  }
  body {
    background-color: transparent;
    width: 100%;
    margin: 0 auto;
  }
  .container {
    width: auto;
  }
  #Kopfteil {
    display: flex;
    margin: 0;
    padding: 0;
    border: none;
    position: static;
  }
  #Inhalt {
    border: none;
  }
  a:link,
  a:visited {
    color: #008038;
  }
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  p, table, img {
    page-break-inside: avoid;
  }
  .schatten,
  #Kopfteil,
  #Inhalt,
  img {
    box-shadow: none;
  }
}
