/**
 * Notar Tino Welsch, Beelitz: Gestaltung (liegt über main.css und theme.css).
 *
 * Idee: Amtliche Ruhe statt Agentur-Optik. Serife für Überschriften (Fraunces), DM Sans für Text,
 * Adlerrot aus dem Brandenburger Wappen als einzige Farbe, Haarlinien statt Schatten und Kacheln.
 * Das Amtsschild im Kopfbereich ist das eine auffällige Element, alles andere bleibt still.
 */

:root {
  --nwb-ink: #1b2127;
  --nwb-ink-soft: #2a323a;
  --nwb-red: #a51f1d;
  --nwb-red-dark: #7f1715;
  --nwb-stone: #f3f2ee;
  --nwb-line: #d9d6ce;
  --nwb-muted: #56606a;
  --nwb-radius: 2px;

  --default-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Fraunces", Georgia, "Times New Roman", serif;
  --nav-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --accent-color: var(--nwb-red);
  --heading-color: var(--nwb-ink);
  --default-color: #38424b;
  --nav-color: var(--nwb-ink);
  --nav-hover-color: var(--nwb-red);
  --nwb-slate: var(--nwb-ink);
  --nwb-sand: var(--nwb-stone);
}

.light-background { --background-color: var(--nwb-stone); --surface-color: #fff; }
.dark-background { --background-color: var(--nwb-ink); --surface-color: var(--nwb-ink-soft); --accent-color: #ee8884; }

body {
  font-family: var(--default-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--default-color);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--nwb-ink);
}

a { color: var(--nwb-red); }
a:hover { color: var(--nwb-red-dark); }

/*--------------------------------------------------------------
# Kopf und Navigation
--------------------------------------------------------------*/
.header { box-shadow: none; border-bottom: 1px solid var(--nwb-line); background: #fff; }
.header .topbar { background: var(--nwb-ink); font-size: 0.875rem; height: auto; padding: 8px 0; }
.header .topbar,
.header .topbar a { color: #e8e6e1; }
.header .topbar a:hover { color: #fff; text-decoration: underline; }
.header .topbar i { color: #ee8884; }
.header .branding { background: #fff; padding: 10px 0; min-height: 0; }
.header .logo img { max-height: 64px; width: auto; }

@media (min-width: 1200px) {
  .navmenu > ul > li > a,
  .navmenu a {
    font-family: var(--nav-font);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--nwb-ink);
    padding: 18px 14px;
  }
  .navmenu > ul > li > a:hover,
  .navmenu > ul > li > a.active,
  .navmenu > ul > li:hover > a,
  .navmenu .current-menu-item > a,
  .navmenu .current-menu-ancestor > a,
  .navmenu .current_page_item > a {
    color: var(--nwb-red);
    box-shadow: inset 0 -3px 0 var(--nwb-red);
  }
  .navmenu .dropdown ul {
    border: 1px solid var(--nwb-line);
    border-top: 3px solid var(--nwb-red);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(27, 33, 39, 0.12);
  }
  .navmenu .dropdown ul a { box-shadow: none !important; font-size: 0.95rem; }
}

/* Hervorgehobener Menuepunkt: im Menue-Eintrag die CSS-Klasse "nwb-nav-highlight" setzen
   (Design → Menüs → Ansicht anpassen → CSS-Klassen). */
.navmenu .nwb-nav-highlight > a { color: var(--nwb-red); font-weight: 700; }
@media (min-width: 1200px) {
  .navmenu > ul > li.nwb-nav-highlight > a {
    margin: 10px 0 10px 8px;
    padding: 8px 14px;
    border: 2px solid var(--nwb-red);
    border-radius: var(--nwb-radius);
    color: var(--nwb-red);
    box-shadow: none;
  }
  .navmenu > ul > li.nwb-nav-highlight > a:hover,
  .navmenu > ul > li.nwb-nav-highlight:hover > a,
  .navmenu > ul > li.nwb-nav-highlight.current-menu-item > a {
    background: var(--nwb-red);
    color: #fff;
    box-shadow: none;
  }
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: var(--nwb-red);
  color: #fff;
  border-radius: var(--nwb-radius);
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.header .btn-getstarted:hover { background: var(--nwb-red-dark); color: #fff; }

/*--------------------------------------------------------------
# Knöpfe (Startseite und Seiten)
--------------------------------------------------------------*/
.nwh-btn,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--nwb-radius);
  font-family: var(--default-font);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nwh-btn-solid,
.btn-primary {
  background: var(--nwb-red);
  border: 2px solid var(--nwb-red);
  color: #fff;
}
.nwh-btn-solid:hover,
.btn-primary:hover,
.btn-primary:focus {
  background: var(--nwb-red-dark);
  border-color: var(--nwb-red-dark);
  color: #fff;
}
.nwh-btn-line,
.btn-outline {
  background: transparent;
  border: 2px solid var(--nwb-ink);
  color: var(--nwb-ink);
}
.nwh-btn-line:hover,
.btn-outline:hover,
.btn-outline:focus {
  background: var(--nwb-ink);
  color: #fff;
}
.nwh-btn-onDark.nwh-btn-solid { background: #fff; border-color: #fff; color: var(--nwb-ink); }
.nwh-btn-onDark.nwh-btn-solid:hover { background: var(--nwb-stone); border-color: var(--nwb-stone); color: var(--nwb-ink); }
.nwh-btn-onDark.nwh-btn-line { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.nwh-btn-onDark.nwh-btn-line:hover { background: #fff; border-color: #fff; color: var(--nwb-ink); }

.nwh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.nwh-textlink {
  display: inline-block;
  font-weight: 600;
  color: var(--nwb-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nwh-textlink:hover { color: var(--nwb-red-dark); }

/*--------------------------------------------------------------
# Kopfbereich mit Amtsschild
--------------------------------------------------------------*/
.nwh-hero { background: #fff; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }

.nwh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.nwh-hero-text h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 0;
  max-width: 14em;
  text-wrap: balance;
}

.nwh-lead {
  margin: 1.5rem 0 0;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--nwb-muted);
  max-width: 34em;
}

.nwh-hero-visual { position: relative; padding-bottom: 3.5rem; }
.nwh-hero-visual > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--nwb-radius);
}

.nwh-plate {
  position: absolute;
  left: -2.5rem;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.1rem;
  align-items: center;
  max-width: 24rem;
  padding: 1.25rem 1.5rem 1.35rem;
  background: var(--nwb-ink);
  color: #fff;
  border-top: 4px solid var(--nwb-red);
  border-radius: var(--nwb-radius);
  box-shadow: 0 24px 50px rgba(27, 33, 39, 0.28);
}
.nwh-plate-crest { height: 48px; width: auto; }
.nwh-plate p { margin: 0; }
.nwh-plate-title { font-size: 0.9rem; color: #c9c6bf; line-height: 1.2; }
.nwh-plate-name { font-family: var(--heading-font); font-size: 1.35rem; line-height: 1.15; color: #fff; }
.nwh-plate-hours {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.93rem;
}
.nwh-plate-hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: 2px 0; }
.nwh-plate-hours dt { font-weight: 400; color: #c9c6bf; }
.nwh-plate-hours dd { margin: 0; font-weight: 600; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

/*--------------------------------------------------------------
# Vier Wege
--------------------------------------------------------------*/
.nwh-ways { background: var(--nwb-stone); border-top: 1px solid var(--nwb-line); border-bottom: 1px solid var(--nwb-line); }
.nwh-ways ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.nwh-ways li { position: relative; padding: 1.75rem 1.75rem 1.9rem; border-left: 1px solid var(--nwb-line); transition: background-color 0.2s; }
.nwh-ways li:first-child { border-left: 0; padding-left: 0; }
.nwh-ways li:hover { background: #fff; }
.nwh-ways li:first-child:hover { background: transparent; }
.nwh-ways h2 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.nwh-ways h2 a { color: var(--nwb-ink); text-decoration: none; }
.nwh-ways li:hover h2 a { color: var(--nwb-red); }
.nwh-ways p { margin: 0; font-size: 0.97rem; color: var(--nwb-muted); line-height: 1.55; }

/*--------------------------------------------------------------
# Leistungsverzeichnis
--------------------------------------------------------------*/
.nwh-services { padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: #fff; }
.nwh-services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.nwh-services-head { position: sticky; top: 7.5rem; }
.nwh-services-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 1rem; text-wrap: balance; }
.nwh-services-head p { color: var(--nwb-muted); margin: 0 0 1.5rem; }

.nwh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nwb-ink); }
.nwh-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--nwb-line);
  transition: background-color 0.2s, padding 0.2s;
}
.nwh-row:hover { background: var(--nwb-stone); padding-left: 1rem; padding-right: 1rem; }
.nwh-row-title { grid-column: 1; margin: 0; font-size: 1.4rem; }
.nwh-row-title a { color: var(--nwb-ink); text-decoration: none; }
.nwh-row:hover .nwh-row-title a { color: var(--nwb-red); }
.nwh-row-text { grid-column: 1; margin: 0; font-size: 0.98rem; color: var(--nwb-muted); line-height: 1.55; max-width: 44em; }
.nwh-row-mark { grid-column: 2; grid-row: 1 / span 2; color: var(--nwb-red); font-size: 1.1rem; }

/*--------------------------------------------------------------
# Willkommen
--------------------------------------------------------------*/
.nwh-about { background: var(--nwb-stone); padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.nwh-about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.nwh-portrait { margin: 0; position: relative; }
.nwh-portrait::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--nwb-red);
  border-radius: var(--nwb-radius);
}
.nwh-portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--nwb-radius); }
.nwh-about-text h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 1.25rem; }
.nwh-about-text .entry-content { max-width: 38em; margin-bottom: 2rem; }
.nwh-about-text .entry-content p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Sprechtag
--------------------------------------------------------------*/
.nwh-news { background: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.nwh-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding: 0 0 0 clamp(1.25rem, 3vw, 2.5rem);
  border-left: 4px solid var(--nwb-red);
}
.nwh-news-grid h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0; text-wrap: balance; }
.nwh-news-text p { margin: 0 0 0.9rem; max-width: 40em; }
.nwh-news-text p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Kontakt
--------------------------------------------------------------*/
.nwh-contact { background: var(--nwb-ink); color: #d8d6d0; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.nwh-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 5rem); }
.nwh-contact h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 1rem; }
.nwh-contact h3 { color: #fff; font-size: 1.2rem; margin: 0 0 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.nwh-contact p { margin: 0 0 0.9rem; }
.nwh-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nwh-contact a:hover { color: #f2c3c1; }
.nwh-contact a.nwh-btn { text-decoration: none; }
.nwh-contact .nwb-hours { margin: 0; }
.nwh-contact .nwb-hours dt { color: #b9b6af; font-weight: 400; }
.nwh-contact .nwb-hours dd { color: #fff; }
.nwh-contact .nwb-hours-note { color: #b9b6af; }

/*--------------------------------------------------------------
# Unterseiten
--------------------------------------------------------------*/
.page-title { background: var(--nwb-stone); border-bottom: 1px solid var(--nwb-line); padding: 2.75rem 0; }
.page-title h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; }
.page-title .nwb-page-lead { color: var(--nwb-muted); max-width: 44em; }
.page-title .breadcrumbs a { color: var(--nwb-muted); }

.service-details .entry-content h2,
.service-details .entry-content h3 { font-family: var(--heading-font); font-weight: 500; }
.nwb-sidebar .service-box,
.nwb-card { border-radius: var(--nwb-radius); box-shadow: none; border: 1px solid var(--nwb-line); }
.nwb-sidebar .nwb-widget-accent { background: var(--nwb-ink); border-color: var(--nwb-ink); }

/*--------------------------------------------------------------
# Fuß
--------------------------------------------------------------*/
.footer.light-background { background: var(--nwb-ink); color: #cfcdc7; border-top: 4px solid var(--nwb-red); }
.footer .sitename,
.footer .nwb-footer-heading { font-family: var(--heading-font); color: #fff; }
.footer a,
.footer .footer-links ul a { color: #fff; }
.footer a:hover,
.footer .footer-links ul a:hover { color: #f2c3c1; }
.footer .footer-links ul i { color: #ee8884; }
.footer .nwb-hours dt { color: #b9b6af; }
.footer .nwb-hours dd,
.footer strong { color: #fff; }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, 0.18); color: #b9b6af; }
.footer .copyright p { color: #b9b6af; }

/*--------------------------------------------------------------
# Schmale Bildschirme
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .nwh-hero-grid,
  .nwh-services-grid,
  .nwh-about-grid,
  .nwh-news-grid { grid-template-columns: 1fr; }
  .nwh-contact-grid { grid-template-columns: 1fr 1fr; }
  .nwh-contact-intro { grid-column: 1 / -1; }
  .nwh-hero-visual { padding-bottom: 0; }
  .nwh-plate { position: relative; left: auto; margin: -2.5rem 1rem 0; max-width: none; }
  .nwh-ways ul { grid-template-columns: 1fr 1fr; }
  .nwh-ways li:nth-child(3) { border-left: 0; padding-left: 0; }
  .nwh-ways li:nth-child(n+3) { border-top: 1px solid var(--nwb-line); }
  .nwh-services-head { position: static; }
  .nwh-portrait { max-width: 22rem; margin-right: 1.25rem; }
}

@media (max-width: 575.98px) {
  .nwh-ways ul { grid-template-columns: 1fr; }
  .nwh-ways li { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--nwb-line); }
  .nwh-ways li:first-child { border-top: 0; }
  .nwh-contact-grid { grid-template-columns: 1fr; }
  .nwh-actions .nwh-btn { width: 100%; justify-content: center; }
}

/*--------------------------------------------------------------
# Beelitz-Bildband auf Unterseiten
--------------------------------------------------------------*/
.nwh-banner { margin: 0; height: clamp(140px, 18vw, 240px); overflow: hidden; }
.nwh-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nwh-sidephoto { margin: 0 0 1.5rem; }
.nwh-sidephoto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.nwb-credits { flex-basis: 100%; margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.nwb-credits a { color: inherit; text-decoration: underline; }
