/* ==========================================================================
   die kanzlei – meyer + fenollosa
   Custom Styles auf Basis von Bootstrap 5
   ========================================================================== */

:root {
  --primary-teal: #0F8786;
  --primary-teal-light: #1B9B98;
  --primary-teal-dark: #0B6564;
  --bg-light: #f8f7f5;
  --bg-panel: #f5f4f0;
  --text-dark: #2a2a28;
  --text-grey: #6b6a66;
  --border-grey: #e8e6e1;
  --white: #ffffff;

  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--primary-teal-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 56px; line-height: 1.1; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }

p { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-teal);
  font-weight: 600;
}

a { color: var(--primary-teal); text-decoration: none; }
a:hover { color: var(--primary-teal-light); }

.text-teal { color: var(--primary-teal) !important; }
.text-teal-light { color: var(--primary-teal-light) !important; }
a.text-teal:hover { color: var(--primary-teal-light); }

.rule {
  border: none;
  border-top: 1px solid var(--border-grey);
  margin: 0;
}

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-teal);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Navigation -------------------------------------------------------------- */
.site-header {
  background: rgba(248, 247, 245, 0.96);
  border-bottom: 1px solid var(--border-grey);
  transition: box-shadow 200ms ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(42, 42, 40, 0.08);
}
.navbar-brand {
  color: var(--primary-teal-dark);
  display: flex;
  align-items: center;
}
.navbar-brand .brand-logo {
  height: 92px;
  width: 92px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}
@media (min-width: 576px) {
  .navbar-brand .brand-logo {
    height: 130px;
    width: 130px;
  }
}

/* Navigation is always a hamburger menu, at every breakpoint -------------- */
.navbar > .container {
  position: relative;
}
.navbar-toggler {
  border: 1px solid var(--primary-teal);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 0;
}
.navbar-toggler:hover {
  background: rgba(15, 135, 134, 0.06);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(15, 135, 134, 0.25);
}
.navbar-toggler-icon {
  width: 1.9em;
  height: 1.9em;
}
.navbar-collapse {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(42, 42, 40, 0.16);
  padding: 10px 22px;
  z-index: 1035;
}
.navbar-nav {
  width: 100%;
}
.navbar-nav .nav-link {
  padding: 10px 4px !important;
  border-bottom: 1px solid var(--border-grey);
}
.navbar-nav .nav-item:last-child .nav-link {
  border-bottom: none;
}
.navbar-nav .nav-item.ms-lg-2 {
  margin-top: 12px;
  margin-bottom: 6px;
  margin-left: 0 !important;
}
.navbar-nav .nav-item.ms-lg-2 .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.nav-link.active::after {
  bottom: 0;
}
.nav-link {
  font-size: 15px;
  color: var(--text-dark) !important;
  position: relative;
  padding: 10px 14px !important;
  text-transform: lowercase;
}
.footer-pages a {
  text-transform: lowercase;
}
.rg-teaser-list span,
.rg-heading,
.accordion-button {
  text-transform: lowercase;
}
.nav-link.active,
.nav-link:hover {
  color: var(--primary-teal-dark) !important;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--primary-teal);
}

/* Buttons ------------------------------------------------------------- */
.btn-custom-teal {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.btn-custom-teal:hover,
.btn-custom-teal:focus {
  background-color: var(--primary-teal-light);
  border-color: var(--primary-teal-light);
  color: #fff;
}
.btn-outline-teal {
  border: 1px solid var(--primary-teal);
  color: var(--primary-teal);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 27px;
  border-radius: 2px;
  background: transparent;
  transition: all 200ms ease;
}
.btn-outline-teal:hover {
  background: var(--primary-teal);
  color: #fff;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary-teal-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--primary-teal);
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 72px 0;
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 56px;
  }
}
/* Page header for inner pages ------------------------------------------- */
.page-header {
  background: var(--primary-teal-dark);
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--primary-teal-light) 0 24px, transparent 24px 48px);
  opacity: 0.5;
}
.page-header h1 { color: #fff; font-size: 42px; }
.page-header p { color: rgba(255,255,255,0.85); }

/* Sections ---------------------------------------------------------------- */
.section {
  padding: 60px 0;
}
@media (max-width: 767.98px) {
  .section { padding: 40px 0; }
  h1 { font-size: 38px; }
  .hero { min-height: 62vh; }
  .page-header { padding: 48px 0 40px; }
}

.section-alt {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-grey);
  border-bottom: 1px solid var(--border-grey);
}

/* Kompetenz-Cards ---------------------------------------------------------- */
.kompetenz-card {
  padding: 32px 24px;
  border: 1px solid var(--border-grey);
  background: #fff;
  height: 100%;
}
.kompetenz-card .icon {
  width: 48px;
  height: 48px;
  color: var(--primary-teal);
  margin-bottom: 16px;
}

/* Motto-Spalten ---------------------------------------------------------- */
.motto-item {
  text-align: center;
  padding: 8px 16px;
}
.motto-item .num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--border-grey);
  display: block;
  margin-bottom: 8px;
}
.motto-item h3 { margin-bottom: 10px; }

/* Accordion (Rechtsgebiete) ------------------------------------------------ */
.accordion-item {
  border-bottom: 1px solid var(--border-grey) !important;
  scroll-margin-top: 120px;
}
.accordion-button {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary-teal-dark);
  background: transparent;
  padding: 26px 20px;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background-color: var(--bg-panel);
  color: var(--primary-teal);
}
.accordion-button::after {
  filter: none;
}
.accordion-button:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 0.2rem rgba(15, 135, 134, 0.2) !important;
}
.accordion-body {
  padding: 8px 20px 36px;
  background: var(--bg-panel);
}
.accordion-body ul { margin-bottom: 20px; }
.accordion-body ul.mb-0 { margin-bottom: 0; }
.rg-sublabel {
  font-weight: 700;
  color: var(--primary-teal-dark);
  margin-bottom: 8px;
}
.bnoto-quote {
  border-left: 3px solid var(--primary-teal);
  padding: 4px 0 4px 20px;
  margin: 20px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary-teal-dark);
  font-size: 18px;
  line-height: 1.6;
}

/* Team Cards --------------------------------------------------------------- */
.team-card {
  border: none;
  background: transparent;
}
.team-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border-grey);
}
.team-card .card-body { padding: 24px 0 0; }
.team-card .card-title {
  font-family: var(--font-serif);
  color: var(--primary-teal-dark);
  margin-bottom: 4px;
}
.team-card .spezialisierung {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-grey);
}
.cv-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.cv-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}
.cv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-teal);
}

/* Kontakt / Karte ------------------------------------------------------- */
#map {
  height: 400px;
  width: 100%;
  border: 1px solid var(--border-grey);
  background: var(--bg-panel);
}
.kontakt-item { margin-bottom: 24px; }
.kontakt-item strong {
  font-family: var(--font-serif);
  color: var(--primary-teal-dark);
  display: block;
  margin-bottom: 4px;
}

/* Downloads ------------------------------------------------------------- */
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li {
  border-bottom: 1px solid var(--border-grey);
}
.download-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  color: var(--text-dark);
}
.download-list a:hover { color: var(--primary-teal); }
.download-list svg { flex: none; color: var(--primary-teal); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--primary-teal);
  color: #fff;
  padding: 56px 0 24px;
  scroll-margin-top: 20px;
}
.site-footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgba(255,255,255,0.88);
}
.site-footer a:hover { color: #fff; }
.site-footer p {
  font-size: 15px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  margin-top: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.footer-social-link svg {
  width: 32px;
  height: 32px;
}
.footer-social-link:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-link.social-link {
  display: inline-flex;
  align-items: center;
  padding: 8px !important;
}
.nav-link.social-link svg {
  width: 30px;
  height: 30px;
}
.nav-link.social-link:hover { color: var(--primary-teal-dark) !important; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.footer-membership {
  margin-top: 40px;
}
.footer-membership-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 14px 26px;
}
.footer-membership-badge img {
  display: block;
  height: 56px;
  width: auto;
}
.footer-signature {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Impressum / Datenschutz text pages -------------------------------------- */
.legal-content h2 {
  font-size: 24px;
  margin-top: 52px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-grey);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-teal);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p, .legal-content li { color: var(--text-dark); }
.legal-content p + h2,
.legal-content li + h2,
.legal-content ul + h2 { margin-top: 52px; }
.legal-content .platzhalter {
  background: #fbf3e6;
  border: 1px dashed #d8b978;
  padding: 2px 6px;
  font-size: 14px;
}

/* Focus visibility --------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

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