/**
 * Notar Tino Welsch, Beelitz: Gestaltung auf Basis CoreBiz (main.css).
 *
 * Farben: Adlerrot #b3211e aus dem Brandenburger Wappen als Akzent (Kontrast auf Weiß 6,9 : 1),
 * Schiefer #27323a für dunkle Flächen, warmes Hellgrau #f6f3ee für helle Flächen.
 * Alle Schriften und Symbole liegen lokal im Theme (fonts-local.css, vendor/).
 */

:root {
  --accent-color: #b3211e;
  --heading-color: #27323a;
  --default-color: #3b4650;
  --nav-color: #27323a;
  --nav-hover-color: #b3211e;
  --nav-dropdown-hover-color: #b3211e;
  --nwb-slate: #27323a;
  --nwb-slate-soft: #34424c;
  --nwb-sand: #f6f3ee;
  --nwb-line: #e3ddd2;
  --nwb-red-dark: #8f1a18;
  --nwb-radius: 6px;
}

.light-background {
  --background-color: #f6f3ee;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #27323a;
  --surface-color: #34424c;
  --accent-color: #e86b67;
}

/*--------------------------------------------------------------
# Grundlagen
--------------------------------------------------------------*/
body {
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  line-height: 1.25;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--nwb-slate);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.dark-background :focus-visible {
  outline-color: #fff;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inner-page .entry-content a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 11px 26px;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--nwb-red-dark);
  border-color: var(--nwb-red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--accent-color);
  color: #fff;
}

.nwb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/*--------------------------------------------------------------
# Kopfzeile und Navigation
--------------------------------------------------------------*/
.admin-bar .header.sticky-top {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header.sticky-top {
    top: 46px;
  }
}

.header .topbar {
  --default-color: #fff;
}

.header .topbar a {
  color: #fff;
}

.nwb-topbar-hours {
  color: rgba(255, 255, 255, 0.85);
  gap: 6px;
}

.header .logo img {
  max-height: 64px;
  width: auto;
  margin-right: 0;
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: var(--accent-color);
  color: #fff;
  font-size: 14px;
  padding: 9px 24px;
  margin-left: 30px;
  border-radius: 50px;
  align-items: center;
}

.header .btn-getstarted:hover {
  background: var(--nwb-red-dark);
  color: #fff;
}

/*--------------------------------------------------------------
# Seitentitel
--------------------------------------------------------------*/
.page-title {
  --background-color: var(--nwb-sand);
  border-bottom: 1px solid var(--nwb-line);
  padding: 34px 0;
}

.page-title h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700;
}

.page-title .nwb-page-lead {
  margin-top: 8px;
  max-width: 640px;
  font-size: 1.05rem;
}

.page-title .breadcrumbs a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*--------------------------------------------------------------
# Startseite
--------------------------------------------------------------*/
.hero .hero-content .hero-image img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--nwb-radius);
}

.hero .hero-content .content h1 {
  color: var(--heading-color);
}

.hero .hero-features .feature-item a {
  color: inherit;
}

.hero .hero-features .feature-item:focus-within {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.nwb-hours-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.nwb-news-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-left: 4px solid var(--accent-color);
  padding: 26px 30px;
  box-shadow: 0 6px 24px rgba(39, 50, 58, 0.08);
  border-radius: var(--nwb-radius);
}

.nwb-news-card h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.nwb-news-card p:last-child {
  margin-bottom: 0;
}

.nwb-portrait {
  border-radius: var(--nwb-radius);
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(39, 50, 58, 0.15);
}

.nwb-contact-band {
  position: relative;
  padding: 80px 0;
}

.nwb-contact-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}

.nwb-contact-band .hero-btns,
.nwb-contact-band .nwb-actions {
  margin-top: 24px;
  justify-content: center;
}

.dark-background .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--nwb-slate);
}

.dark-background .btn-primary:hover {
  background: var(--nwb-sand);
  border-color: var(--nwb-sand);
  color: var(--nwb-slate);
}

.dark-background .btn-outline {
  border-color: #fff;
  color: #fff;
}

.dark-background .btn-outline:hover {
  background: #fff;
  color: var(--nwb-slate);
}

/*--------------------------------------------------------------
# Inhaltsseiten
--------------------------------------------------------------*/
.service-details {
  padding: 60px 0;
}

.service-details .entry-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 34px 0 14px;
}

.service-details .entry-content h2:first-child {
  margin-top: 0;
}

.service-details .entry-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 26px 0 10px;
}

.service-details .entry-content p,
.service-details .entry-content li {
  font-size: 1.05rem;
}

.service-details .entry-content ul,
.service-details .entry-content ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}

.service-details .entry-content ul > li::marker {
  color: var(--accent-color);
}

.service-details .entry-content li {
  padding: 2px 0;
}

.service-details .entry-content table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
}

.service-details .entry-content th,
.service-details .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--nwb-line);
  text-align: left;
  vertical-align: top;
}

.service-details .entry-content th {
  background: var(--nwb-sand);
}

.service-details .entry-content figure {
  margin: 0 0 24px;
}

.service-details .entry-content img {
  max-width: 100%;
  height: auto;
}

.service-details .entry-content figcaption {
  font-size: 15px;
  text-align: center;
}

.service-details .entry-content blockquote,
.service-details .entry-content .nwb-highlight {
  background: var(--nwb-sand);
  border-left: 4px solid var(--accent-color);
  padding: 20px 26px;
  margin: 26px 0;
  border-radius: 0 var(--nwb-radius) var(--nwb-radius) 0;
}

.service-details .entry-content blockquote p:last-child,
.service-details .entry-content .nwb-highlight p:last-child {
  margin-bottom: 0;
}

.nwb-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--nwb-radius);
}

.nwb-cta-inline {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--nwb-line);
}

.nwb-subpages {
  margin-top: 30px;
}

.nwb-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Team */
.nwb-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.nwb-team-member {
  background: var(--nwb-sand);
  border-top: 3px solid var(--accent-color);
  padding: 20px 22px;
  border-radius: var(--nwb-radius);
}

.nwb-team-member h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.nwb-team-member p {
  margin: 0 0 4px;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Seitenleiste
--------------------------------------------------------------*/
.nwb-sidebar {
  position: sticky;
  top: 140px;
}

.nwb-sidebar .service-box {
  background: var(--nwb-sand);
  padding: 26px 28px;
  margin-bottom: 22px;
  border-radius: var(--nwb-radius);
}

.nwb-widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.nwb-widget-title a {
  color: var(--heading-color);
}

.nwb-subnav .services-list {
  display: flex;
  flex-direction: column;
}

.nwb-subnav .services-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 10px 0 10px 14px;
  line-height: 1.3;
  color: var(--default-color);
  border-left: 3px solid var(--nwb-line);
}

.nwb-subnav .services-list a i {
  color: var(--accent-color);
}

.nwb-subnav .services-list a:hover,
.nwb-subnav .services-list a.active {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.nwb-sidebar .nwb-widget-accent {
  background: var(--nwb-slate);
  color: #fff;
  border-bottom: 3px solid var(--accent-color);
}

.nwb-sidebar .nwb-widget-accent .nwb-widget-title {
  color: #fff;
}

.nwb-sidebar .nwb-widget-accent .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--nwb-slate);
}

.nwb-sidebar .nwb-widget-accent .btn-primary:hover {
  background: var(--nwb-sand);
  border-color: var(--nwb-sand);
}

/*--------------------------------------------------------------
# Kontaktblock und Öffnungszeiten
--------------------------------------------------------------*/
.nwb-contact {
  font-style: normal;
  margin: 0;
}

.nwb-contact-name {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.nwb-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.nwb-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.nwb-contact-list i {
  color: var(--accent-color);
  margin-top: 4px;
}

.nwb-hours-title {
  font-weight: 700;
  margin: 12px 0 6px;
}

.nwb-hours {
  margin: 0;
}

.nwb-hours dt {
  font-weight: 700;
}

.nwb-hours dd {
  margin: 0 0 8px;
}

.nwb-hours-note {
  font-size: 15px;
  margin: 6px 0 0;
}

/*--------------------------------------------------------------
# Karten (Kontaktseite)
--------------------------------------------------------------*/
.nwb-card {
  background: var(--nwb-sand);
  padding: 26px 28px;
  border-radius: var(--nwb-radius);
  border-top: 3px solid var(--accent-color);
}

.nwb-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nwb-card-title i {
  color: var(--accent-color);
}

.nwb-card p:last-child {
  margin-bottom: 0;
}

.nwb-card-note {
  border-top-color: var(--nwb-slate);
}

.contact .contact-card {
  background: var(--nwb-slate);
  color: #fff;
  padding: 30px;
  border-radius: var(--nwb-radius);
}

.contact .contact-card h2,
.contact .contact-card h3 {
  color: #fff;
}

.contact .contact-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact .contact-card .contact-item {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.contact .contact-card .contact-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
}

.contact .contact-card .contact-item h3 {
  font-family: var(--default-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2px 0 4px;
}

.contact .contact-card .contact-item p {
  margin: 0;
  font-size: 16px;
}

.nwb-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  background: var(--nwb-sand);
  border: 1px dashed var(--nwb-line);
  border-radius: var(--nwb-radius);
  color: var(--default-color);
}

.nwb-photo-placeholder i {
  font-size: 2rem;
  color: var(--accent-color);
}

.nwb-404-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 3.4rem;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Mandantenportal
--------------------------------------------------------------*/
.nwb-portal {
  margin-top: 36px;
  padding: 30px;
  background: var(--nwb-sand);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--nwb-radius);
}

.nwb-portal-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.nwb-portal-frame {
  min-height: 420px;
  margin-top: 18px;
}

.nwb-portal-frame iframe {
  width: 100%;
  border: 0;
}

.nwb-portal-note {
  margin: 14px 0 0;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Fußzeile
--------------------------------------------------------------*/
.footer h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.footer .nwb-footer-hours {
  margin: 0;
}

.footer .nwb-footer-hours dt {
  font-weight: 700;
}

.footer .nwb-footer-hours dd {
  margin: 0 0 8px;
}

.footer .nwb-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/*--------------------------------------------------------------
# Überschriften-Ebenen: Seiten nutzen h2 (Gliederung), Optik wie CoreBiz-h4
--------------------------------------------------------------*/
.nwb-feature-title,
.nwb-footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero .hero-features .feature-item .nwb-feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero .hero-features .feature-item .nwb-feature-title a {
  color: var(--heading-color);
}

.footer .nwb-footer-heading {
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-contact span,
.footer .footer-contact a {
  font-family: var(--default-font);
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.footer .footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero .hero-content .hero-image .floating-card .metric .number {
  font-size: 1.35rem;
  line-height: 1.25;
}

.nwb-news-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-size: 1.5rem;
}

.nwb-eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.nwb-label {
  display: inline-block;
  min-width: 70px;
  font-weight: 700;
}

.nwb-contact-band .nwb-card {
  background: var(--nwb-slate-soft);
  border-top-color: var(--accent-color);
  color: #fff;
}

.nwb-contact-band .nwb-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nwb-contact-band .nwb-card-title,
.nwb-contact-band .nwb-card-title i {
  color: #fff;
}

.nwb-contact-band .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.nwb-contact-band .cta-group .btn-primary,
.nwb-contact-band .cta-group .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 500;
  border: 2px solid #fff;
}

.nwb-contact-band .cta-group .btn-primary {
  background: #fff;
  color: var(--nwb-slate);
}

.nwb-contact-band .cta-group .btn-secondary {
  background: transparent;
  color: #fff;
}

.nwb-contact-band .cta-group .btn-secondary:hover {
  background: #fff;
  color: var(--nwb-slate);
}

.footer .nwb-legal,
.footer .nwb-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .copyright ul {
  list-style: none;
  padding: 0;
}
