/* ==========================================================================
   Notarin Christine Albert – notarinalbert.de
   Statische Übergangsversion (Rebuild der Strato/cm4all-Seite, Design cm_dux_093)
   Keine externen Ressourcen: Schriften, Bilder und CSS liegen lokal.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-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: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-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 {
  --petrol: #045575;
  --petrol-hell: #06719c;
  --grau: #727074;
  --text: #3c3c3c;
  --seite-bg: #f0f0f0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--seite-bg);
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.10);
}

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

header.kopf {
  background: #ffffff;
  text-align: center;
  padding: 26px 20px 0 20px;
}
.site-logo {
  max-width: 600px;
  width: 90%;
  height: auto;
}

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

nav.hauptnav { margin-top: 18px; }
nav.hauptnav ul { margin: 0; padding: 0; list-style: none; }
nav.hauptnav > ul > li {
  display: inline-block;
  position: relative;
}
nav.hauptnav > ul > li > a {
  display: block;
  padding: 12px 20px;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-size: 15.5px;
}
nav.hauptnav > ul > li.cm_current > a,
nav.hauptnav > ul > li > a:hover {
  background: var(--petrol);
  color: #ffffff;
}
nav.hauptnav li.hat-untermenue > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
nav.hauptnav > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  text-align: left;
  z-index: 90;
}
nav.hauptnav > ul > li:hover > ul { opacity: 1; visibility: visible; }
nav.hauptnav > ul > li > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-size: 15px;
}
nav.hauptnav > ul > li > ul > li > a:hover { background: var(--petrol); color: #fff; }

/* ------------------------------ Titelbild ------------------------------- */

.hero img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* ----------------------------- Farbband --------------------------------- */

.band {
  background: var(--petrol);
  color: #ffffff;
  padding: 55px 60px;
}
.band h1, .band h2, .band h3 { color: #ffffff; }
.band a { color: #ffffff; }
.band img { display: block; width: 100%; height: auto; }

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

main.inhalt {
  padding: 55px 60px;
  background: #ffffff;
}

h1, h2, h3, h4 {
  font-weight: 400;
  color: var(--grau);
  line-height: 1.25;
  margin: 0 0 .6em 0;
}
h1 { font-size: 38px; }
h2 { font-size: 27px; }
h3 { font-size: 21px; }
h4 { font-size: 17px; font-weight: 500; }

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

a { color: var(--petrol); }
a:hover { color: var(--petrol-hell); }

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

.wappen-icon {
  float: left;
  width: 64px;
  margin: 0 22px 10px 0;
}

.btn {
  display: block;
  background: var(--petrol);
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  padding: 13px 30px;
  margin: 0 0 16px 0;
  max-width: 320px;
  font-size: 16px;
}
.btn:hover { background: var(--petrol-hell); }

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

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 10px 4px 0; vertical-align: top; }

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

footer.fuss {
  text-align: center;
  color: var(--grau);
  font-size: 14.5px;
  padding: 35px 20px;
  background: #ffffff;
  border-top: 1px solid #e4e4e4;
}
footer.fuss a { color: var(--grau); text-decoration: none; }
footer.fuss a:hover { text-decoration: underline; }

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

@media (max-width: 860px) {
  .hero img { height: 240px; }
  .band { padding: 35px 24px; }
  main.inhalt { padding: 35px 24px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  header.kopf { padding-top: 16px; }
  .nav-toggle { display: inline-block; }
  nav.hauptnav { display: none; text-align: left; margin-top: 8px; }
  .nav-toggle-box:checked ~ nav.hauptnav { display: block; }
  nav.hauptnav > ul > li { display: block; border-top: 1px solid #e4e4e4; }
  nav.hauptnav > ul > li > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f6f6f6;
  }

  .cm_column_wrapper { display: block; }
  .cm_column { width: auto !important; }
  .band .cm_column_wrapper { display: block; }
}

/* --------------------------- Kontakt-Popup ------------------------------ */

.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
}
.popup-overlay:target { display: flex; }
.popup-hintergrund {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 240, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  cursor: default;
}
.popup-karte {
  position: relative;
  background: #ffffff;
  border-top: 4px solid var(--petrol);
  max-width: 460px;
  width: 100%;
  padding: 42px 46px 34px 46px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: popup-auf .25s ease-out;
}
@keyframes popup-auf {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup-karte h2 { color: var(--petrol); font-size: 26px; margin-bottom: .8em; }
.popup-schliessen {
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 30px;
  line-height: 1;
  color: var(--grau);
  text-decoration: none;
}
.popup-schliessen:hover { color: var(--petrol); }
.maps-btn { margin: 20px auto 0 auto; max-width: 280px; }
.maps-hinweis {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--grau);
  margin: 14px 0 0 0;
}

/* Kontaktseite (/kontakt/) – zentrierte Karte, v. a. für Suchmaschinen */
.kontakt-karte-seite {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 30px 0;
}
.kontakt-karte-seite h1 { color: var(--petrol); font-size: 32px; }
.kontakt-karte-seite .maps-btn { max-width: 280px; }

@media (max-width: 560px) {
  .popup-karte { padding: 36px 24px 28px 24px; }
}
