/* ============================================================
   Bergsdorf Rechtsanwälte – Website (rekonstruiert & modernisiert)
   ============================================================ */
:root {
  --navy:        #12324f;
  --navy-dark:   #0d2740;
  --blue:        #2a6ca8;
  --blue-dark:   #1c4e7a;
  --blue-light:  #eaf1f7;
  --accent:      #8b1e2d;
  --text:        #333c44;
  --muted:       #6b7783;
  --line:        #e2e8ee;
  --bg:          #f5f7f9;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(16,40,64,0.08);
  --radius:      10px;
  --wrap:        1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd8e3;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 24px;
  flex-wrap: wrap;
}
.topbar a { color: #cdd8e3; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; fill: var(--blue); flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(16,40,64,0.05);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo img { height: 58px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: .25s;
}

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); background: var(--blue-light); text-decoration: none; }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .8em; }
.sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  list-style: none;
  display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub li { width: 100%; }
.sub a {
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
  padding: 9px 20px;
}

/* ---------- Page hero (banner) ---------- */
.hero {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.hero.home { height: 460px; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,50,.15), rgba(10,30,50,.45));
}

.pagetitle {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.pagetitle .wrap { padding: 26px 24px; }
.pagetitle h1 { font-size: 2rem; font-weight: 700; letter-spacing: .5px; }
.pagetitle p { color: #d6e5f2; margin-top: 2px; }

.breadcrumb {
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb .wrap { padding: 10px 24px; }
.breadcrumb a { color: var(--muted); }

/* Hero home overlay text */
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 48px;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-caption h2 {
  font-size: 2.6rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1.2;
}
.hero-caption p {
  font-size: 1.2rem;
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-caption .btn { margin-top: 22px; }

/* ---------- Content ---------- */
main { padding: 54px 0 70px; }
.section { margin-bottom: 46px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
h2.h { color: var(--navy); font-size: 1.7rem; margin-bottom: 6px; }
.lead-line { width: 64px; height: 4px; background: var(--blue); border-radius: 3px; margin: 10px 0 24px; }
h3.h { color: var(--blue-dark); font-size: 1.2rem; margin: 26px 0 8px; }
p { margin-bottom: 14px; }
.intro-lead { font-size: 1.15rem; color: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .4px;
  border: 0; cursor: pointer;
  transition: background .18s;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); }

ul.checks { list-style: none; margin: 6px 0 18px; }
ul.checks li { padding: 5px 0 5px 30px; position: relative; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  color: var(--blue); font-weight: 700;
}

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-card img { width: 100%; height: 320px; object-fit: cover; object-position: top center; }
.team-card .body { padding: 22px 24px 26px; }
.team-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.team-card ul { list-style: none; font-size: .92rem; color: var(--muted); }
.team-card ul li { padding: 3px 0 3px 16px; position: relative; }
.team-card ul li::before { content: "–"; position: absolute; left: 0; color: var(--blue); }

/* ---------- Accordion (Rechtsgebiete) ---------- */
.accordion { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--white);
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  transition: background .15s;
}
.acc-head:hover { background: var(--blue-light); }
.acc-head img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.acc-head .plus { margin-left: auto; font-size: 1.5rem; color: var(--blue); transition: transform .25s; line-height: 1; }
.acc-item.open .acc-head { background: var(--blue-light); }
.acc-item.open .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body .inner { padding: 4px 28px 26px 84px; color: var(--text); }

/* ---------- Contact ---------- */
.contact-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; }
.info-line { margin-bottom: 20px; }
.info-line .label {
  display: block; text-transform: uppercase; font-size: .8rem;
  letter-spacing: .6px; color: var(--blue); font-weight: 700; margin-bottom: 2px;
}
.info-line .val { font-size: 1.05rem; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--navy); font-weight: 600; }
.notice {
  background: #fbeaea; border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 6px; color: #6d2029; font-size: .92rem; margin-top: 22px;
}

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 6px; }
.form-row label .req { color: var(--accent); }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,108,168,.15);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; flex: none; width: 17px; height: 17px; accent-color: var(--blue); }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d4; margin-top: 40px; }
.site-footer .wrap { padding: 46px 24px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 14px; text-transform: uppercase; }
.site-footer a { color: #b9c6d4; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 4px 0; }
.foot-logo { background:#fff; padding:12px 16px; border-radius:8px; display:inline-block; margin-bottom:16px; }
.foot-logo img { height: 46px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px; padding-top: 18px;
  font-size: .82rem; color: #8ea0b2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot-bottom a { color: #8ea0b2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .contact-box, .foot-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav a { border-radius: 0; padding: 13px 24px; }
  .sub { position: static; display: block; box-shadow: none; border: 0; border-top: 0; padding: 0; }
  .sub a { padding-left: 44px; background: #f7fafc; }
  .has-sub > a::after { content: ""; }
  .hero-caption h2 { font-size: 1.8rem; }
  .pagetitle h1 { font-size: 1.5rem; }
  .card { padding: 28px 22px; }
  .acc-body .inner { padding-left: 28px; }
}
