:root {
  --color-bg: #2c2620;
  --color-bg-darker: #211c17;
  --color-bg-panel: #38302a;
  --color-text: #f6f1e9;
  --color-text-muted: #cdc4b9;
  --color-accent: #f6f1e9;
  --color-border: rgba(255, 248, 240, 0.14);
  --font-display: "Libre Caslon Display", "Georgia", serif;
  --topbar-h: 92px;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
  --sidebar-width: 22vw;
  --sidebar-min-width: 280px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

body > main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  margin-top: 0;
}

p {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.back-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.back-link:hover { color: var(--color-text); }

/* Top bar — komplett transparent, legt sich über Hero-Bild bzw. Seitenkopf */
.top-bar {
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.top-bar.scrolled {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.lang-switch a {
  color: var(--color-text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.lang-switch a[aria-current="true"] {
  font-weight: 700;
}
.lang-switch a:hover { text-decoration: none; }
.lang-switch .divider { color: var(--color-text); opacity: 0.5; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 12px;
  margin: -15px -12px;
}
.menu-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Sidebar nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 12, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 150;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--sidebar-width);
  min-width: var(--sidebar-min-width);
  background: var(--color-bg-darker);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 28px 40px;
}
.sidebar-nav.open {
  transform: translateX(0);
}

.sidebar-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1;
  padding: 12px;
  margin: -12px -12px 28px;
}
.sidebar-close svg { display: block; width: 20px; height: 20px; }

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-nav > ul > li { border-bottom: 1px solid var(--color-border); }
.sidebar-nav a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
}
.sidebar-nav a:hover { color: var(--color-accent); text-decoration: none; }

.sidebar-nav a.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  color: var(--color-accent);
}

.nav-sub-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  text-align: left;
}
.nav-sub-toggle:hover { color: var(--color-accent); }
.nav-sub-toggle .arrow {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.nav-sub-toggle[aria-expanded="true"] .arrow { transform: rotate(90deg); }

.nav-sub {
  list-style: none;
  margin: 0;
  padding-left: 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-sub.open { max-height: 200px; }
.nav-sub a {
  padding: 10px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}
.nav-sub a:hover { color: var(--color-text); text-decoration: none; }

.sidebar-nav .sidebar-secondary {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-nav .sidebar-secondary a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 4px;
}
.sidebar-secondary .lang-switch {
  margin-top: 8px;
}
.sidebar-secondary .lang-switch a {
  color: var(--color-text);
  font-size: 0.8rem;
}

.hero {
  position: relative;
  min-height: 58vh;
  max-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image: url("../images/notar-prechtl-7-crop.png");
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 11, 10, 0.55) 0%, rgba(12, 11, 10, 0) 40%);
}
.hero-scroll {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.hero-scroll:hover {
  transform: translateY(4px);
  text-decoration: none;
}

.full-bleed {
  min-height: 40vh;
  max-height: 480px;
  background-image: url("../images/notar-prechtl-9.png");
  background-size: cover;
  background-position: center 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 24px;
}

/* Buttons — dezente Pfeil-Links statt gerahmter Boxen */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}
.btn::after {
  content: "→";
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn:hover::after { transform: translateX(4px); }

/* Sections */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--color-border);
}
.section-alt { background: var(--color-bg); }
.section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.contact-cta { text-align: left; }

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--color-text-muted); }
.footer-lang-switch { display: none; }

/* Page header (inner pages) */
.page-header {
  padding: calc(var(--topbar-h) + 88px) 0 88px;
  background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-8.png");
  background-size: cover;
  background-position: center 45%;
}
.page-header--team { background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-9.png"); background-position: center 60%; }
.page-header--leistungen-privat { background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-4.png"); background-position: center 82%; }
.page-header--leistungen-unternehmen { background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-6.png"); background-position: center 50%; }
.page-header--kontakt { background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-5.png"); background-position: center 40%; }
.page-header--impressum { background-image: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)), url("../images/notar-prechtl-10.png"); background-position: center 30%; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.page-header .back-link { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

.page-content { padding: 72px 0; }
.page-content h2 {
  font-size: 1.7rem;
  margin-top: 44px;
}
.page-content .note {
  font-size: 0.85rem;
  font-style: italic;
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
  margin: 24px 0;
}

/* Notar / Vita page */
.notar-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 480px;
}
.notar-intro-text {
  padding: calc(var(--topbar-h) + 56px) 56px 72px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.notar-intro-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
.notar-photo {
  background-image: url("../images/notar-prechtl-14.png");
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
.notar-facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notar-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.notar-facts li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 2px;
  background: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}
.social-links a:hover {
  border-color: var(--color-text);
  text-decoration: none;
}
.social-links svg { width: 16px; height: 16px; }

/* Team page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 40px;
  margin-top: 48px;
}
.team-photo-frame {
  position: relative;
  max-width: 220px;
  margin-bottom: 18px;
}
.team-photo-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100%;
  height: 100%;
  background: #bda787;
  z-index: 0;
}
.team-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
}
.team-member h2 { font-size: 1.5rem; margin-bottom: 4px; }
.team-role {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}
.team-member .team-contact {
  font-size: 0.86rem;
  margin: 0 0 4px;
}

.vita {
  padding: 0 0 88px;
}
.vita h2 { margin-bottom: 32px; }
.vita-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}
.vita-item:last-child { border-bottom: 1px solid var(--color-border); }
.vita-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
}
.vita-desc { color: var(--color-text-muted); font-size: 0.86rem; }
.publication-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}
.publication-list li { margin-bottom: 10px; }
.publication-list li:last-child { margin-bottom: 0; }

/* Leistungen: Übersicht-Cards (Privat / Geschäftlich) */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 64px;
}
.category-card {
  padding: 0;
}
.category-card h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.category-card p {
  margin: 0 0 24px;
}
.category-card-link {
  display: block;
  text-decoration: none;
}
.category-card-link:hover { text-decoration: none; }
.category-card-link:hover h2 { color: var(--color-text-muted); }

/* Homepage: kurzer Abholer zum Notariat */
.intro-text {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}
.intro-text h2, .contact-cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}
.intro-text p { margin: 0 auto 28px; }

/* Homepage: Leistungen als schräg geteilter Bereich */
.leistungen-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-bottom: 1px solid var(--color-border);
}
.leistungen-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 56px clamp(24px, 6vw, 80px);
}
.leistungen-split-text a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-text);
  padding: 14px 0;
}
.leistungen-split-text a:hover { color: var(--color-text-muted); text-decoration: none; }
.leistungen-split-text .sub {
  display: block;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.leistungen-split-text .btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  margin-top: 14px;
}
.leistungen-split-image {
  background-image: url("../images/notar-prechtl-14.png");
  background-size: cover;
  background-position: center 22%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Leistungen: aufklappende Service-Liste (Akkordeon) */
.service-list { margin-top: 16px; }
.faq-note { margin-top: 4px; }
.service-item {
  margin-bottom: 8px;
  padding: 0 16px;
  border-left: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.service-item.open {
  border-left-color: var(--color-text-muted);
  background: rgba(214, 178, 120, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.faq-list .service-item.open {
  background: none;
  box-shadow: none;
}
.service-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  padding: 26px 4px;
  cursor: pointer;
  text-align: left;
}
.service-trigger:hover { color: var(--color-text-muted); }
.service-trigger-label {
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.service-trigger .arrow {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 24px;
}
.service-trigger[aria-expanded="true"] .arrow { transform: rotate(90deg); }

.service-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.service-panel.open { max-height: 900px; }
.service-panel-inner {
  padding: 28px 28px 32px;
  margin: 0 0 8px;
}
.service-panel-inner p { margin-top: 0; color: var(--color-text); }

/* FAQ bleibt im klassischen Stil: nur Text, keine Box, nur die linke Linie */
.faq-list .service-panel-inner {
  background: none;
  padding: 0 4px 32px;
  margin: 0;
}
.faq-list .service-panel-inner p { color: var(--color-text-muted); }
.service-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.term-list {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-border);
}
.term-list .term-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 12px;
}
.term-list dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-top: 14px;
}
.term-list dt:first-of-type { margin-top: 0; }
.term-list dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--color-text);
}

/* Kontakt page */
.contact-intro {
  max-width: 66%;
  padding-top: 56px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  padding: 72px 0;
}
.contact-details dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-top: 28px;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}
.map-embed {
  position: relative;
  background: var(--color-bg-panel) url("../images/kontakt-karte-grafik.svg") center/cover;
  min-height: 380px;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 40px 64px;
}
.map-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 14, 10, 0.35), rgba(18, 14, 10, 0.35));
}
.map-embed > * {
  position: relative;
  z-index: 1;
}
.map-pin {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}
.map-address {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0;
}
.contact-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 48px;
  padding: 0 0 72px;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}
.contact-access-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.contact-access-item p { margin: 0; }

/* Mobile */
@media (max-width: 780px) {
  :root { --sidebar-width: 82vw; }
  .top-bar-inner { padding: 16px 20px; }
  .top-bar-right > .lang-switch { display: none; }
  .notar-intro { grid-template-columns: 1fr; padding: 0; min-height: 0; }
  .notar-photo { min-height: 280px; clip-path: none; background-size: 106%; }
  .contact-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .vita-item { grid-template-columns: 1fr; gap: 6px; }
  .hero { min-height: 46vh; background-size: 106%; }
  .hero-scroll { display: none; }
  .full-bleed { min-height: 30vh; background-size: 106%; }
  .section { padding: 56px 0; }
  .leistungen-split { grid-template-columns: 1fr; min-height: 0; }
  .leistungen-split-image { clip-path: none; min-height: 220px; order: -1; background-size: 106%; }
  .map-embed { clip-path: none; min-height: 260px; margin-left: -32px; margin-right: -32px; width: auto; }
  .map-embed::before { background: linear-gradient(rgba(18, 14, 10, 0.2), rgba(18, 14, 10, 0.2)); }
  .page-header { background-size: 106%; }
  .service-item { padding: 0 32px; border-left: none; margin-left: -32px; margin-right: -32px; }
  .service-trigger { font-size: 1.1rem; }
  .service-panel-inner { padding: 24px 20px 40px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p {
    order: 3;
    font-size: 0.7rem;
    width: 100%;
  }
  .footer-links { order: 2; }
  .footer-lang-switch {
    display: flex;
    justify-content: flex-start;
    order: 1;
    margin-bottom: 12px;
    width: 100%;
  }
}
