/* Notar Dr. Baetzgen – statische Version
   Farben, Schriften und Abstände 1:1 aus dem bisherigen Contao-Theme übernommen. */

@font-face { font-family: Lora; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lora-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Lora; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lora-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Lora; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/lora-latin-400-italic.woff2) format("woff2"); }

:root {
  --braun: #4C433F;        /* Teaser-Bereich */
  --braun-dunkel: #5F4B3F; /* Navigation */
  --braun-text: #604c3f;
  --blaugrau: #8498a5;     /* Footer, Überschriften */
  --hellblau: #aab9c3;     /* H1 im Teaser */
  --navi-hg: rgba(210, 218, 223, .95);
  --text: #292625;
}

html { font: 12px Lora, Georgia, serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 13px Lora, Georgia, serif; color: var(--text); }
img { border: 0; max-width: 100%; height: auto; }
figure { margin: 0; }
.invisible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 10px; top: 10px; }

/* ------------------------------------------------------------ Kopfbereich */
#header { position: relative; width: 100%; background-color: rgba(206, 220, 225, .65); }

#topbar { position: fixed; top: 0; left: 0; right: 0; height: 100px; background-color: var(--navi-hg); z-index: 50; }

#logo { position: absolute; top: 0; left: 75px; margin: 10px 0; display: block; line-height: 0; }

.mod_navigation { position: absolute; top: 28px; right: 0; }
.mod_navigation ul { list-style: none; margin: 0; padding: 0; }
.mod_navigation .level_1 { display: flex; padding-right: 65px; margin-top: 14px; text-transform: uppercase; font: 400 14px Lora, serif; letter-spacing: 1px; }
.mod_navigation .level_1 > li { position: relative; }
.mod_navigation .level_1 > li > a,
.mod_navigation .level_1 > li > span {
  display: block; padding: 8px 15px 33px 20px; text-decoration: none; color: var(--braun-dunkel);
  background: url(../files/baetzken/arrow_main_nav.png) no-repeat left top;
  transition: background .3s ease-out, color .3s ease-out;
}
.mod_navigation .level_1 > li > span { color: #627c8c; background-image: url(../files/baetzken/arrow_main_nav_b.png); }
.mod_navigation .level_1 > li:hover > a,
.mod_navigation .level_1 > li:focus-within > a { color: #506979; background-image: url(../files/baetzken/arrow_main_nav_b.png); }

.mod_navigation .level_2 { visibility: hidden; position: absolute; left: 0; top: 100%; min-width: 100%; z-index: 55; }
.mod_navigation li:hover > .level_2,
.mod_navigation li:focus-within > .level_2 { visibility: visible; }
.mod_navigation .level_2 li { border-bottom: 1px dotted #504B4B; background-color: #fff; white-space: nowrap; }
.mod_navigation .level_2 a,
.mod_navigation .level_2 span { display: block; padding: 8px 25px; font-size: 12px; text-decoration: none; color: #554338; transition: background .3s ease-out; }
.mod_navigation .level_2 a:hover,
.mod_navigation .level_2 a:focus { color: #fff; background-color: var(--braun-dunkel); }
.mod_navigation .level_2 span { color: #fff; background-color: var(--braun-dunkel); }

#menu-toggle { display: none; position: absolute; top: 20px; right: 25px; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }

/* Mobile Navigation (ersetzt mmenu) */
#offcanvas { position: fixed; inset: 100px 0 0 0; z-index: 60; overflow-y: auto; background-color: #46392f; font-size: 18pt; padding: 10px 0 40px; }
#offcanvas[hidden] { display: none; }
#offcanvas ul { list-style: none; margin: 0; padding: 0; }
#offcanvas a, #offcanvas span, #offcanvas summary { display: block; padding: 12px 25px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; }
#offcanvas summary { list-style: none; position: relative; }
#offcanvas summary::-webkit-details-marker { display: none; }
#offcanvas summary::after { content: "›"; position: absolute; right: 25px; transition: transform .2s; }
#offcanvas details[open] > summary::after { transform: rotate(90deg); }
#offcanvas .level_2 a, #offcanvas .level_2 span { padding-left: 45px; font-size: 15pt; }
#offcanvas .active > span, #offcanvas .level_2 .active > span { color: var(--hellblau); }
body.menu-open { overflow: hidden; }

/* Slider */
.slider { position: relative; width: 100%; max-height: 550px; aspect-ratio: 1400 / 583; overflow: hidden; background: #ddd; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s cubic-bezier(.445, .05, .55, .95); }
.slider img.active { opacity: 1; }

/* ------------------------------------------------------------ Inhalt */
#container { flex: 1 0 auto; }

#main { background-color: var(--braun); padding: 40px 0; }
#main .inside, #left .inside { max-width: 1000px; margin: 0 auto; }
#left { background-color: #fff; padding: 20px 0; }

#main h1 { margin: 5px 0; padding: 0 0 5px; border-bottom: 1px dotted #fff; font: 400 26px Lora, serif; color: var(--hellblau); text-transform: uppercase; letter-spacing: 1px; }
#main h2 { color: #fff; font: 400 20px/130% Lora, serif; letter-spacing: 1px; }
#main p  { color: #fff; font: 400 15px/130% Lora, serif; letter-spacing: 1px; }
#main li, #main div { color: #fff; }
#main strong, #main b { font-weight: 700; }
#main a { color: #fff; font-weight: bold; text-decoration: none; }
#main a:hover, #main a:focus { text-decoration: underline; }

#left h1 { margin: 0 0 2px; padding: 0 0 1px 35px; font: 400 20px Lora, serif; letter-spacing: 1px; color: var(--blaugrau); text-transform: uppercase;
  background: url(../files/baetzken/icon_pfeil.png) no-repeat left top; min-height: 25px; }
#left h3 { font: italic 11px/120% Lora, serif; color: var(--braun-text); }
#left p { font: 13px/140% Lora, serif; }
#left a { font-weight: bold; color: var(--blaugrau); text-decoration: none; }
#left a:hover, #left a:focus { color: var(--braun-text); }
#left ul, #main ul { padding-left: 20px; }
#left li { line-height: 140%; }

.block { overflow: hidden; }
.float_left  { float: left;  margin: 0 20px 10px 0; }
.float_right { float: right; margin: 0 0 10px 20px; }
.float_above { margin-bottom: 10px; }

/* Spalten (rs_columns) */
.rs-columns { display: grid; column-gap: 7.69231%; row-gap: 20px; width: 100%; }
.rs-columns.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rs-columns.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Galerie */
.ce_gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ce_gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Suche */
.mod_search form { display: flex; align-items: center; gap: 6px; }
.mod_search .text { width: 157px; padding: 3px 6px; border: 1px solid #ccc; border-radius: 3px; font: 11px Lora, serif; box-sizing: border-box; }
#left .mod_search .text { max-width: 250px; border-color: #57453a; }
.search-hit { margin: 0 0 18px; }
.search-hit h3 { font: 700 14px Lora, serif; font-style: normal; margin: 0 0 3px; }
.search-hit p { margin: 0; }
.search-hit mark { background: #e5ebef; color: inherit; }

/* Lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.8); }
dialog.lightbox img { display: block; max-width: 95vw; max-height: 90vh; }

/* ------------------------------------------------------------ Footer */
#footer { background-color: var(--blaugrau); color: #fff; font: 11px Lora, serif; text-transform: uppercase; min-height: 110px; }
#footer .inside { max-width: 1000px; margin: 0 auto; padding: 5px 0 5px 30px; }
#footer p { font-family: Lora, serif; color: #fff; }
#footer a { color: #fff; text-decoration: none; }
#footer a:hover, #footer a:focus { text-decoration: underline; }
#footer img { vertical-align: middle; margin-right: 4px; }
#footer .mod_search h1 { width: 55%; margin: 8px 0 10px; padding-bottom: 3px; border-bottom: 1px dotted #fff; font: 400 12px Lora, serif; color: #fff; }
#footer .rs-columns { row-gap: 0; }

/* ------------------------------------------------------------ Responsive (Breakpoints wie bisher) */
@media screen and (max-width: 70em) {
  #logo { margin-top: 15px; left: 25px; }
  .mod_navigation .level_1 { padding-right: 60px; }
}
@media screen and (max-width: 66em) {
  .mod_navigation { display: none; }
  #menu-toggle { display: block; }
}
@media screen and (max-width: 65em) {
  #main .inside { padding: 0 30px; }
  #left .inside { padding: 0 30px; }
  #footer .inside { padding-left: 20px; padding-right: 20px; }
}
@media screen and (max-width: 55em) {
  #main h1 { font-size: 24px; }
  #left h1 { padding: 1px 0 3px 30px; font-size: 22px; letter-spacing: 0; }
}
@media screen and (max-width: 599px) {
  .rs-columns.cols-2, .rs-columns.cols-3 { grid-template-columns: 1fr; }
  .ce_gallery ul { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 35em) {
  #topbar { background-color: rgb(210, 218, 223); }
  #logo { left: 20px; width: calc(100% - 100px); max-width: 319px; }
  #menu-toggle { top: 10px; right: 5px; padding: 10px; }
  .slider { margin-top: 100px; }
  #main .inside, #left .inside { padding: 0 20px; }
  #main h1 { font-size: 22px; }
  #left h1 { font-size: 19px; }
  #footer .inside { padding: 10px 15px; }
  .float_left, .float_right { float: none; margin: 0 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .slider img { transition: none; }
}

@media print {
  #topbar, #offcanvas, .slider, #footer .mod_search { display: none; }
  #main { background: #fff; padding: 0; }
  #main h1, #main h2, #main p, #main a, #main li, #main div { color: #000; }
}

/* Suchseite */
#left .mod_search input[type="image"] { filter: brightness(.45); }
#left .search-hit h3 { font: 700 14px Lora, serif; margin: 0 0 3px; color: var(--text); }
