:root {
  --szk-yellow: #ffcc33;
  --szk-blue: #00488a;
  --szk-text: #606060;
  --szk-light: #f5f5f5;
  --szk-border: #d9d9d9;
}

html { scroll-behavior: smooth; }

body {
  min-width: 0;
  background: var(--szk-light);
  color: var(--szk-text);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: .875rem;
}

a { color: var(--szk-blue); }
a:hover { color: #002f5d; }

#header {
  width: 100%;
  height: auto;
  margin: 0;
  padding: .5rem 1rem;
  background: #6c757d;
}

#menu { float: none; }
#menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#menu li { padding: 0; }
#menu a {
  display: inline-block;
  padding: .25rem .45rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
#menu .language-link a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
#menu a:hover { background: var(--szk-yellow); color: #111; }
#menu img { max-height: 14px; width: auto; vertical-align: middle; }

#page {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 145px;
  gap: 1rem;
  width: min(100% - 2rem, 1320px);
  margin: 1rem auto;
  padding: 0;
  background: transparent;
}

.sidebar, .sidebar_right {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
  background: transparent !important;
}
.sidebar > div:first-child {
  width: auto !important;
  padding: 0 !important;
  text-align: left !important;
}
.sidebar a, .sidebarX a {
  display: block;
  width: auto;
  margin: .35rem 0 0;
  padding: .55rem .7rem;
  border: 1px solid var(--szk-border);
  border-radius: .375rem;
  background: #fff;
  color: var(--szk-blue);
  font-size: .875rem;
  font-weight: 600;
}
#sidebar1 > div a {
  background-color: #fff;
  background-image: url("images/boegen.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 25px;
  opacity: .5;
  transition: opacity .15s ease-in-out;
}
#sidebar1 > div a:hover,
#sidebar1 > div a:focus,
#sidebar1 > div a:active {
  opacity: 1;
}
#sidebar1 > div a.active {
  opacity: 1;
  background-color: var(--szk-yellow);
  color: #111;
}
.sidebar a:hover, .sidebarX a:hover {
  background-color: var(--szk-yellow);
  background-image: url("images/boegen.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 25px;
  color: #111;
  text-decoration: none;
}
.sidebar h2 { height: auto; margin: 0; padding: 0 0 .5rem; text-align: left !important; }
#sidebar1 br { display: none; }

#suchform {
	box-sizing: border-box;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--szk-border);
  border-radius: .5rem;
  background: #fff;
  text-align: left;
}
#suchform input[type="text"],
#suchform input[type="submit"] {
  box-sizing: border-box;
}
#suchform input[type="text"] { width: 100%; margin: .35rem 0; }
#suchform input[type="submit"] {
  width: 100%;
  padding: .45rem .7rem !important;
  border: 1px solid #d4a900 !important;
  border-radius: .375rem;
  background: var(--szk-yellow) !important;
}

#content {
  float: none;
  width: auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--szk-border);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 .125rem .35rem rgba(0,0,0,.05);
}
.szk-logo {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: #fff;
}
.szk-logo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.header-address {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  max-width: 48%;
  padding: .65rem .85rem;
  border-radius: .35rem;
  background: rgba(255, 255, 255, .52);
  color: var(--szk-text);
  text-align: right;
  line-height: 1.45;
}
.post { padding: 1.25rem; }
.content { max-width: 100%; overflow-wrap: anywhere; }
.content h2 { color: var(--szk-blue); }
.content img { max-width: 100%; height: auto; }
.content input, .content textarea, .content select { max-width: 100%; }
.rahmen { max-width: 100%; }

#sidebar2 { text-align: left; }
#sidebarX { padding: 0 !important; }
#footer {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 120px;
  min-height: 120px;
  overflow: hidden;
  margin: 0;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--szk-border);
  background: #fff url("images/footer.png") center center no-repeat;
  text-align: center;
}
.footer-meta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  white-space: nowrap;
  font-size: .8rem;
}

table { max-width: 100%; }
input, textarea, select { border: 1px solid #adb5bd; border-radius: .25rem; }
.inquiry-comments {
  box-sizing: border-box;
  width: 100%;
  padding: .5rem;
  line-height: 1.4;
}
input.button, .button { border: 1px solid #d4a900; border-radius: .375rem; background: var(--szk-yellow); }
.w3-table { width: 100%; }

@media (max-width: 991.98px) {
  #page { grid-template-columns: 1fr; width: min(100% - 1rem, 760px); }
  #sidebar1 { order: 1; }
  #content { order: 2; }
  #sidebar2 { order: 3; }
  #sidebarX { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .35rem; }
  #sidebarX a { margin: 0; text-align: center; }
}

@media (max-width: 575.98px) {
  #header { padding: .5rem; }
  #menu ul { justify-content: flex-start; gap: .15rem .35rem; }
  .post { padding: 1rem; }
  .header-address { top: .5rem; right: .5rem; max-width: 70%; padding: .35rem .5rem; font-size: .7rem; }
  .footer-meta { right: 5px; left: 5px; gap: .5rem; font-size: .65rem; }
  .rechts, .linksrahmen { float: none !important; display: block; margin: 0 auto .75rem !important; }
}
