@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1f3a5f;  /* deep navy (primary) */
  --blue-dark:   #142845;  /* darker navy */
  --blue-light:  #ecdfc4;  /* warm cream tint */
  --text:        #1f1f1f;
  --muted:       #6a6258;  /* warm muted grey */
  --border:      #e0d8c8;  /* warm tan border */
  --bg:          #faf7f2;  /* warm off-white */
  --white:       #ffffff;
  --accent:      #b89568;  /* brass accent */
  --accent-dark: #9d7d54;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--blue); }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -.3px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

/* ── HERO (home) ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 2rem;
  opacity: .9;
}

.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* ── SUB HERO (subpages) ─────────────────────────────── */
.subhero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 3.5rem 2rem 3rem;
}

.subhero .container { max-width: 1100px; margin: 0 auto; }

.subhero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
  margin-bottom: .5rem;
}

.subhero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.subhero p.lede {
  font-size: 1rem;
  font-weight: 300;
  max-width: 720px;
  opacity: .92;
}

/* ── SHARED LAYOUT ───────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

section:nth-of-type(even) { background: var(--white); }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ── PROSE (article body) ────────────────────────────── */
.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--text);
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.2rem 0 1rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.6rem 0 .7rem;
}

.prose ul {
  margin: 0 0 1.3rem 1.25rem;
  color: var(--text);
}

.prose ul li { margin-bottom: .3rem; }

.prose strong { font-weight: 700; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .history-layout { grid-template-columns: 1fr; }
  .justitia-figure { max-width: 320px; margin: 0 auto; }
}

.justitia-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.justitia-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.justitia-figure figcaption {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  padding: .65rem .85rem;
  text-align: center;
  line-height: 1.4;
}

.quote-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  font-style: italic;
  color: var(--text);
}

/* ── VALUES STRIP ────────────────────────────────────── */
.values {
  background: linear-gradient(to bottom, var(--blue-light) 0%, var(--blue-light) 85%, var(--bg) 100%);
  padding: 4.5rem 0;
}

/* ── HOME SECTION COLOR TRANSITIONS ──────────────────── */
#rechtsgebiete {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 70%, var(--white) 100%);
}
#anwaelte {
  background: linear-gradient(to bottom, var(--white) 0%, var(--white) 70%, var(--bg) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.value-item .icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.value-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.value-item p {
  font-size: .85rem;
  color: var(--muted);
}

/* ── PRACTICE AREAS ──────────────────────────────────── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .practice-grid { grid-template-columns: 1fr; }
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.practice-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,115,223,.12);
  transform: translateY(-2px);
}

.practice-card .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .4rem;
}

.practice-card strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
}

.practice-card span {
  font-size: .8rem;
  color: var(--muted);
}

/* ── ATTORNEYS ───────────────────────────────────────── */
.attorneys-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  max-width: 880px;
  margin: 0 auto;
}

.attorneys-grid .attorney-card {
  flex: 1 1 240px;
  max-width: 280px;
}

.attorney-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .2s, transform .15s;
}

.attorney-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.attorney-avatar {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
  overflow: hidden;
}

.attorney-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Per-lawyer crop tuning so head positions align */
.attorney-card[href="florian-glasenapp.html"] .attorney-avatar img {
  object-position: center 20%;
}

.attorney-body { padding: 1.25rem; }

.attorney-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.attorney-role {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.attorney-spec {
  font-size: .85rem;
  color: var(--muted);
}

/* ── PROFILE PAGE ────────────────────────────────────── */
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; }
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 4rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Florian's framing override (same as on the team grid) */
body.lawyer-florian .profile-photo img {
  object-position: center 20%;
}

.profile-meta {
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.profile-meta li { padding: .25rem 0; }

/* ── HOME CONTACT SECTION (with Rietberg map bg) ────── */
#kontakt {
  background:
    linear-gradient(rgba(250, 247, 242, 0.88), rgba(250, 247, 242, 0.94)),
    url('rietberg-map.jpg') center / cover no-repeat;
  background-attachment: scroll;
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info dt {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-top: 1.25rem;
}

.contact-info dd {
  font-size: .95rem;
  color: var(--text);
}

.contact-info dd a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info dd a:hover { text-decoration: underline; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
  font-size: .9rem;
}

.hours-table td {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--muted);
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ── NOTICE BANNER ───────────────────────────────────── */
.notice {
  background: #fffbe6;
  border-left: 4px solid #f0b400;
  border-radius: 6px;
  padding: .9rem 1.25rem;
  font-size: .85rem;
  color: #5a4500;
  margin-bottom: 2.5rem;
  max-width: 760px;
}

/* ── CTA STRIP ───────────────────────────────────────── */
.cta-strip {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.cta-strip h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.cta-strip p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: .3px;
  transition: background .2s;
}

.btn:hover { background: var(--blue-dark); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #0f1c2e;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: .8rem;
}

footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}

footer a:hover { color: var(--white); }

/* ── MOBILE HAMBURGER ────────────────────────────────── */
.nav-toggle { display: none; }

.nav-hamburger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
}

.nav-hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }

.nav-toggle:checked ~ .nav-hamburger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── RESPONSIVE NAV ──────────────────────────────────── */
@media (max-width: 720px) {
  .attorney-avatar { height: 320px; }
  nav { padding: 0 1rem; }

  .nav-hamburger { display: block; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-toggle:checked ~ .nav-links { max-height: 320px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .9rem 1.5rem;
    border-top: 1px solid var(--border);
  }
}
