/* =============================================
   Dr. Schumacher-Stock — Modern Design System
   Mobile-first · Pure CSS · No external fonts
   ============================================= */

/* --- Design Tokens --- */
:root {
  --c-primary: #0B7285;
  --c-primary-dark: #065666;
  --c-primary-light: #E6F4F7;
  --c-accent: #3A9E2F;
  --c-accent-light: #EBF5E9;
  --c-bg: #F5F8FA;
  --c-surface: #FFFFFF;
  --c-text: #1C2D3A;
  --c-text-soft: #4A5E6D;
  --c-text-muted: #7A8D9C;
  --c-border: #DAE3EA;
  --c-divider: #EDF1F4;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --max-w: 1100px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: clamp(0.938rem, 0.85rem + 0.25vw, 1.063rem);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: var(--c-primary);
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--c-primary-dark);
}
ul {
  list-style: none;
}
body.default,
body.large,
body.smaller {
  font-size: inherit;
}
main, aside, nav, article, section, header, footer {
  display: block;
}

/* --- Layout Shell --- */
#all {
  background: none;
  text-align: left;
  margin: 0;
}
#wrap_wide {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  text-align: left;
  position: relative;
}
#wrap_narrow,
#wrap {
  display: contents;
}

/* =========================================
   HEADER
   ========================================= */
header {
  background: var(--c-surface);
  border-bottom: 3px solid var(--c-primary);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
#topmenu_icons {
  display: none;
}

/* --- Banner: Logo + Name + Hamburger --- */
#baner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(10px, 1.5vw, 16px) clamp(16px, 3vw, 24px);
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: auto;
  position: static;
  width: 100%;
}
#baner img {
  margin: 0;
  padding: 0;
}
.banner-logo {
  flex-shrink: 0;
}
.banner-logo img {
  height: clamp(44px, 6vw, 68px);
  width: auto;
  border-radius: var(--radius-sm);
}
.banner-text {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0;
  text-align: left;
  display: block;
  height: auto;
  width: auto;
}
.banner-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 0.8rem + 1.5vw, 1.65rem);
  font-weight: 700;
  font-style: normal;
  color: var(--c-primary-dark);
  line-height: 1.25;
  padding: 0;
  margin: 0;
  width: auto;
  text-align: left;
}
.banner-text h2 {
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.58rem + 0.5vw, 0.88rem);
  font-weight: 400;
  font-style: normal;
  color: var(--c-text-soft);
  line-height: 1.35;
  margin-top: 2px;
  text-align: left;
}

/* =========================================
   CSS-ONLY HAMBURGER TOGGLE
   ========================================= */
.menu-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.menu-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 7px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
  flex-shrink: 0;
  order: 10;
  margin-left: auto;
}
.menu-toggle-label:hover {
  background: var(--c-primary-light);
}
.menu-toggle-label span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--c-primary-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.menu-toggle-input:checked ~ header .menu-toggle-label span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle-input:checked ~ header .menu-toggle-label span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle-input:checked ~ header .menu-toggle-label span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Specialty Nav Bar (#path) --- */
#path_fonts {
  background: var(--c-primary);
  border: none;
  padding: 0;
  width: 100%;
  display: none;
}
#path {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  width: 100%;
  text-align: left;
  color: #fff;
}
#path ul.menu-nav,
#path ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
}
#path li {
  list-style: none;
  margin: 0;
  white-space: nowrap;
}
#path a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
#path a:link,
#path a:visited {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}
#path a:hover,
#path a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
#path a span,
#path span {
  color: inherit;
}
.nav-flag {
  height: 18px;
  width: auto;
  vertical-align: middle;
  border-radius: 2px;
  display: inline-block;
}

/* =========================================
   PAGE LAYOUT
   ========================================= */
#contener {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(16px, 3vw, 40px) 0;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* =========================================
   SIDEBAR — hidden on mobile, toggled
   ========================================= */
#sidebar {
  min-width: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
  margin-bottom: 0;
}
.menu-toggle-input:checked ~ #contener #sidebar {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 20px;
}
div.moduletable_menu {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;
}
div.moduletable_menu h3 {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 20px;
  margin: 0;
  line-height: 1.3;
  text-align: left;
}
#sidebar ul.menu,
#sidebar nav ul {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
#sidebar ul.menu > li,
#sidebar nav > ul > li {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
}
#sidebar ul.menu > li > a,
#sidebar nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: all 0.2s var(--ease);
  background: none;
}
#sidebar ul.menu > li > a span {
  color: inherit;
}
#sidebar ul.menu > li > a:hover,
#sidebar nav > ul > li > a:hover {
  background: var(--c-primary-light);
  border-left-color: var(--c-primary);
  color: var(--c-primary-dark);
  text-decoration: none;
}
#sidebar ul.menu > li.active > a,
#sidebar ul.menu > li#current > a,
#sidebar nav > ul > li.active > a,
#sidebar nav > ul > li#current > a {
  background: var(--c-primary-light);
  border-left-color: var(--c-primary);
  color: var(--c-primary-dark);
  font-weight: 600;
}

/* Sub-menus (Leistungen) */
#sidebar ul.menu ul,
#sidebar nav ul ul {
  list-style: none;
  padding: 0 0 6px 0;
  margin: 0;
}
#sidebar ul.menu ul li,
#sidebar nav ul ul li {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
}
#sidebar ul.menu ul li a,
#sidebar nav ul ul li a {
  display: block;
  padding: 7px 20px 7px 38px;
  color: var(--c-text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: all 0.2s var(--ease);
  background: none;
}
#sidebar ul.menu ul li a span {
  color: inherit;
}
#sidebar ul.menu ul li a:hover,
#sidebar nav ul ul li a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  text-decoration: none;
}
#sidebar ul.menu ul li#current a,
#sidebar ul.menu ul li.active a,
#sidebar nav ul ul li#current a,
#sidebar nav ul ul li.active a {
  color: var(--c-primary-dark);
  font-weight: 600;
  border-left-color: var(--c-accent);
}

/* =========================================
   MAIN CONTENT
   ========================================= */
#content {
  min-width: 0;
  width: 100%;
}
.inside {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 44px);
}
h1.componentheading:empty {
  display: none;
}
h2.contentheading,
h1.componentheading:not(:empty),
.componentheading:not(:empty),
.componentheader {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1.3;
  margin: 0 0 20px 0;
  padding: 0 0 14px 0;
  border-bottom: 2px solid var(--c-divider);
  text-align: left;
}
#content p,
#page p {
  margin: 0 0 14px 0;
  padding: 0;
  line-height: 1.7;
}
#content a:link,
#content a:visited {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: inherit;
}
#content a:hover {
  color: var(--c-primary-dark);
  text-decoration: none;
}
.intro-text {
  font-size: 1.06em;
  color: var(--c-primary-dark);
  font-weight: 500;
  line-height: 1.65;
}
.text-justify p,
.text-justify > div {
  text-align: justify;
  hyphens: auto;
}
p.buttonheading:empty,
.leading_separator,
.componentheading:empty {
  display: none;
}
#page img,
.contentpaneopen td img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: none;
  margin: 8px 0;
}

/* =========================================
   OPENING HOURS — Card
   ========================================= */
.office-hours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 24px 0;
  background: var(--c-primary-light);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 28px);
  border-left: 4px solid var(--c-primary);
}
.office-hours-single {
  max-width: 440px;
  margin: 24px 0;
  background: var(--c-primary-light);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 28px);
  border-left: 4px solid var(--c-primary);
}
.office-hours-single > p:first-child,
.office-hours > div > p:first-child {
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 12px;
  font-size: 1.02em;
  padding: 0;
}
.hours-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px 14px;
}
.hours-grid dt {
  font-weight: 500;
  color: var(--c-text);
  margin: 0;
  padding: 0;
  text-align: left;
}
.hours-grid dd {
  margin: 0;
  padding: 0;
  text-align: right;
  color: var(--c-text-soft);
}

/* =========================================
   SERVICES GRID — Card
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  max-width: 540px;
  margin: 20px 0;
  background: var(--c-accent-light);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  border-left: 4px solid var(--c-accent);
}
.services-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services-grid li {
  margin: 0 0 5px 0;
  padding: 3px 0 3px 20px;
  position: relative;
  font-size: 0.93em;
  text-align: left;
  list-style: none;
}
.services-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  border: none;
  padding: 28px clamp(16px, 3vw, 24px);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  width: 100%;
}
#footer p {
  margin: 0 0 4px 0;
  padding: 0;
}
#footer a:link,
#footer a:visited {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: inherit;
}
#footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* =========================================
   LEGACY COMPAT
   ========================================= */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.topmenu-spacer {
  display: none;
}
#sidebar-2, #baner_module {
  display: none;
}
#logo_search, #logo, #search, #icons, #topmenu,
#fonts, #xhtml_css, #rss {
  display: none;
}
table.contentpaneopen {
  width: 100%;
  border-collapse: collapse;
}
.contentpane {
  width: 100%;
  text-align: left;
}
.contentpaneopen td img {
  border: none;
}
.link-list p {
  margin-left: 16px;
  padding: 0;
}
div.moduletable,
div.moduletable_text,
div.moduletable_bgh3,
div.moduletable_bg,
div.moduletable_arrow_bg,
div.moduletable_menu_bgh3,
div.moduletable_menu_bg,
div.moduletable_menu_arrow_bg {
  border: none;
  margin: 0;
  padding: 0;
  background: none;
}
div.moduletable h3,
div.moduletable_text h3,
div.moduletable_bgh3 h3,
div.moduletable_bg h3,
div.moduletable_arrow_bg h3 {
  background: none;
  padding: 0;
  margin: 0;
  line-height: inherit;
}
div.horizontal ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
div.horizontal li {
  list-style: none;
}
div.horizontal a {
  display: block;
}

/* =========================================
   RESPONSIVE — Desktop (min-width: 860px)
   ========================================= */
@media (min-width: 860px) {
  .menu-toggle-label {
    display: none;
  }
  #path_fonts {
    display: block;
  }
  #sidebar {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-bottom: 0;
  }
  #contener {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: clamp(24px, 4vw, 48px) 0;
  }
  div.moduletable_menu {
    position: sticky;
    top: 24px;
  }
  .office-hours {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  #contener {
    gap: 40px;
  }
}