/* ==========================================================================
   Notar Dr. Heiko Kloer – notar-kloer.de
   Statische Übergangsversion (Rebuild der Strato/cm4all-Seite)
   Keine externen Ressourcen: Schriften, Bilder und CSS liegen lokal.
   ========================================================================== */

/* ---- Schrift: Mulish (Nachfolger von "Muli", wie im Original), lokal ---- */
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mulish-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Muli";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mulish-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/mulish-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mulish-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mulish-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #133566;
  --text: #5f615e;      /* etwas dunkler als das Original-#8B8D8A, bessere Lesbarkeit */
  --text-light: #8B8D8A;
  --footer-bg: #4C4C4C;
  --footer-text: #F0F0EE;
  --line: #d9d9d6;
  --hover-gold: #89744D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

body {
  font-family: "Muli", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* --------------------------- Kopf / Keyvisual --------------------------- */

.hero {
  position: relative;
  height: 400px;
  background-image: url("../../bilder/notar_Titel.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-bar {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1050px;
  max-width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 20px;
  z-index: 50;
}

.logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: normal; }
.logo img { width: 52px; height: auto; }
.logo .logo-text {
  color: #4E4E4E;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------ Navigation ------------------------------ */

.nav-toggle-box { display: none; }
.nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
  padding: 8px 12px;
  user-select: none;
}

nav#cm_navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
nav#cm_navigation > ul > li {
  display: inline-block;
  position: relative;
  margin: 0 0 0 22px;
}
nav#cm_navigation > ul > li > a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 90px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: border-color .3s;
}
nav#cm_navigation > ul > li:hover > a,
nav#cm_navigation > ul > li.cm_current > a {
  border-bottom-color: var(--navy);
}

/* Pfeil bei Unterpunkten */
nav#cm_navigation li.hat-untermenue > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--navy);
}

/* Untermenüs */
nav#cm_navigation > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 60;
}
nav#cm_navigation > ul > li:last-child > ul,
nav#cm_navigation > ul > li:nth-child(n+5) > ul { left: auto; right: 0; }
nav#cm_navigation > ul > li:hover > ul { opacity: 1; visibility: visible; }
nav#cm_navigation > ul > li > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
}
nav#cm_navigation > ul > li > ul > li > a:hover { background: #E8E6E3; }

/* ------------------------------- Inhalt --------------------------------- */

.content_wrapper {
  background: #ffffff;
  padding: 50px 0;
}

.content_align {
  width: 1010px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

main.content_main {
  display: inline-block;
  vertical-align: top;
  width: 740px;
  max-width: 100%;
}

.sidebar_wrapper {
  display: inline-block;
  vertical-align: top;
  width: 200px;
  padding-left: 30px;
  margin-left: 35px;
  border-left: 1px solid var(--line);
  font-size: 13.5px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; margin: 0 0 .7em 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }

p, ul, ol { margin: 0 0 1em 0; }
main ul, main ol { padding-left: 1.3em; }

a { color: var(--text-light); }
a:hover { color: var(--hover-gold); }
main a, .sidebar_wrapper a { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.img-float-left {
  float: left;
  margin: 0 22px 12px 0;
}
.img-block-center {
  display: block;
  margin: 0 auto 1em auto;
}

hr, .trenner {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

/* Spaltenlayout aus dem Original (vereinfacht) */
.cm_column_wrapper { display: flex; flex-wrap: nowrap; gap: 22px; }
.cm_column { min-width: 0; flex-shrink: 1; }
.cm_column_gap { display: none; }

/* Tabellen (Kontaktdaten, Öffnungszeiten, Kostenbeispiele …) */
table.cm_table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}
table.cm_table td, table.cm_table th {
  padding: 4px 8px 4px 0;
  vertical-align: top;
}
.sidebar_wrapper table.cm_table td:first-child { white-space: nowrap; padding-right: 10px; }
#datenschutz { scroll-margin-top: 20px; }

/* ------------------------------- Sidebar -------------------------------- */

.sidebar_wrapper .seitenleiste-titel {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: .03em;
  margin: 1.8em 0 .6em 0;
}
.sidebar_wrapper .seitenleiste-titel:first-child { margin-top: 0; }

.btn {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  padding: 9px 10px;
  margin: 10px 0 14px 0;
  font-weight: 600;
}
.btn:hover { background: #1d4785; color: #ffffff; }

.sidebar_wrapper img.portrait {
  display: block;
  width: 100%;
  margin-top: 18px;
}

/* --------------------------- Formular-Downloads ------------------------- */

ul.pdf-liste { list-style: none; padding: 0; }
ul.pdf-liste li { margin: 0 0 6px 0; }
ul.pdf-liste a { font-weight: 600; }
ul.pdf-liste .groesse { color: var(--text-light); font-size: 13px; font-weight: 400; }

/* -------------------------------- Fußzeile ------------------------------ */

.footer_wrapper {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  font-size: 13.5px;
}
.footer_wrapper .inner { padding: 30px 20px; }
.footer_wrapper a { color: var(--footer-text); text-decoration: none; }
.footer_wrapper a:hover { text-decoration: underline; }

/* ------------------------------- Responsiv ------------------------------ */

@media (max-width: 1100px) {
  .header-bar { width: 96%; }
  .content_align { width: auto; }
  main.content_main { width: 100%; display: block; }
  .sidebar_wrapper {
    display: block;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 30px 0 0 0;
    margin: 40px 0 0 0;
  }
}

@media (max-width: 860px) {
  .hero { height: 240px; }
  .header-bar {
    top: 0;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 0 8px;
  }
  .logo img { width: 40px; }
  .logo .logo-text { font-size: 13px; }
  .nav-toggle { display: block; }
  nav#cm_navigation {
    display: none;
    width: 100%;
    background: #ffffff;
  }
  .nav-toggle-box:checked ~ nav#cm_navigation { display: block; }
  nav#cm_navigation > ul > li {
    display: block;
    margin: 0;
    border-top: 1px solid var(--line);
  }
  nav#cm_navigation > ul > li > a { line-height: 44px; padding: 0 10px; }
  nav#cm_navigation > ul > li > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f5f4f2;
  }
  .cm_column_wrapper { display: block; }
  .cm_column { width: auto !important; }
  .img-float-left { max-width: 45%; }
}
