* ==========================================================================
   Rechtsanwälte im Reuterkiez — local stylesheet
   All fonts self-hosted (assets/fonts). No external requests.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
/* Inter — body / UI */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4 — display headings */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --ink:        #16302c;   /* near-black teal — text */
  --ink-soft:   #4a5f5b;   /* muted body text */
  --paper:      #ffffff;
  --mist:       #eef6f5;   /* section tint — faint teal */
  --line:       #dbe8e6;
  --brand:      #1f5650;   /* Markenfarbe: dunkles Petrol */
  --brand-dk:   #163e39;   /* dunklere Variante für Hover/Flächen */
  --accent:     #4cb5b1;   /* Markenfarbe: helles Türkis */
  --accent-dk:  #2f8c88;   /* dunklere Variante für Hover/Text auf Weiß */
  --ok:         #1f7a4d;
  --err:        #b3261e;
  --shadow:     0 1px 2px rgba(16,48,44,.06), 0 8px 24px rgba(16,48,44,.09);
  --radius:     10px;
  --wrap:       1120px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

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

/* ---- Skip link ------------------------------------------------------------ */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.70);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 0px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 22px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand .brand-logo { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .brand .brand-logo { height: 30px; } }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a.navlink {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 8px;
}
.nav a.navlink:hover { background: var(--mist); text-decoration: none; }
.nav a.cta {
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.nav a.cta:hover { background: var(--brand-dk); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

.topbar { background: var(--brand-dk); color: #dfe7f1; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar i.topbar-ico { color: #fff; margin-right: 3px; }

/* ---- Hero ----------------------------------------------------------------- */
/* Höhe der beiden oberen Leisten (Topbar + Header) – für die Vollbild-Hero. */
:root { --topbars: 110px; }
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: calc(100dvh - var(--topbars));
  background:
    linear-gradient(120deg, rgba(18,54,49,.92) 0%, rgba(22,62,57,.82) 45%, rgba(31,86,80,.55) 100%),
    url("../img/bg.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(76,181,177,.34), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; max-width: 860px; width: 100%; }
.hero .eyebrow {
  display: inline-block; font-family: "Inter", sans-serif; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .74rem;
  color: var(--accent); border: 1px solid rgba(76,181,177,.55);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.15rem); letter-spacing: -.01em; }
.hero p { color: #d3e8e6; font-size: 1.12rem; max-width: 640px; margin: 18px 0 0; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 600; padding: 13px 24px; border-radius: 9px;
  cursor: pointer; border: 1px solid transparent; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #06302c; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---- Sections ------------------------------------------------------------- */
section { padding: 72px 0; }
.section-tint { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker {
  font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .76rem; color: var(--accent-dk);
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-top: 8px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; }

/* ---- Practice cards ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.card h3 .n {
  font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 700; color: var(--accent-dk);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; flex: 0 0 auto;
}
.card p { color: var(--ink-soft); margin: 0 0 16px; font-size: .98rem; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: .96rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px;
  background: var(--brand); border-radius: 2px; transform: rotate(45deg);
}

/* ---- Detail two-column ---------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.detail h3 { font-size: 1.22rem; display: flex; align-items: baseline; gap: 10px; }
.detail h3 .n {
  font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 700; color: var(--accent-dk);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.detail p { color: var(--ink-soft); margin: 0; font-size: .99rem; }

/* ---- Contact + form ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.35rem; }
.contact-info .info-list { list-style: none; margin: 22px 0 0; padding: 0; }
.contact-info .info-list li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-info .info-list li:last-child { border-bottom: 0; }
.contact-info .ico {
  flex: 0 0 38px; height: 38px; border-radius: 9px; background: var(--mist);
  display: grid; place-items: center; color: var(--brand); font-size: 1rem;
}
.contact-info .ico i { color: #1f5650; }
.contact-info .info-list b { display: block; font-family: "Inter"; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.contact-info .info-list a, .contact-info .info-list span { color: var(--ink); font-size: 1.02rem; }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card .form-sub { color: var(--ink-soft); font-size: .95rem; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--err); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,86,80,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.captcha-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.captcha-q {
  font-weight: 700; background: var(--mist); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 16px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin: 4px 0 20px; }
.consent input { margin-top: 4px; flex: 0 0 auto; accent-color: var(--brand); }
.form-card .btn-primary { width: 100%; }

.note { padding: 14px 16px; border-radius: 8px; font-size: .95rem; margin-bottom: 20px; }
.note-ok  { background: #e8f5ee; border: 1px solid #b9e0c8; color: var(--ok); }
.note-err { background: #fdeceb; border: 1px solid #f3c4c1; color: var(--err); }
.note ul { margin: 8px 0 0; padding-left: 18px; }

/* --- Platzhalter im Kartenbereich (wenn Karte noch nicht geladen) --- */
.map-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 24px; text-align: center;
  background: var(--mist);
}
.map-placeholder[hidden] { display: none; }
.map-placeholder-inner { max-width: 380px; }
.map-placeholder-inner > i { font-size: 1.6rem; color: var(--brand); margin-bottom: 10px; }
.map-placeholder-inner p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
 
/* Kartencontainer */
.map-wrap {
  position: relative;                 /* nötig, damit der Platzhalter passt */
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap #map { display: block; width: 100%; height: 340px; }
/* Popup an Markenfarbe angleichen */
.maplibregl-popup-content { font-family: "Inter", sans-serif; font-size: .9rem; padding: 12px 14px; border-radius: 8px; }
.maplibregl-popup-content strong { color: var(--brand); }

/* ---- Content page (Impressum) --------------------------------------------- */
.page-hero { background: var(--paper); color: var(--ink); padding: 48px 0 8px; }
.page-hero h1 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--ink-soft); margin: 6px 0 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; color: var(--brand); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.card-block {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; margin: 0 0 8px;
}
.card-block .firm { font-family: "Source Serif 4", serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.card-block .sub { font-weight: 600; color: var(--brand); margin: 2px 0 14px; }
.card-block .person { margin: 0; color: var(--ink); }
.card-block address { font-style: normal; margin-top: 14px; color: var(--ink-soft); line-height: 1.9; }

/* ---- Back-to-top ---------------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 60;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand-dk); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 1rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--brand-dk); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.to-top i { color: #fff; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media (max-width: 560px) { .to-top { right: 14px; bottom: 16px; width: 40px; height: 40px; } }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--brand-dk); color: #c2d8d5; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.site-footer .footer-logo {
  height: 96px; width: 96px; object-fit: contain; background: #fff;
  border-radius: 12px; padding: 7px; margin-bottom: 16px; box-sizing: border-box;
}
.site-footer h4 { color: #fff; font-family: "Inter"; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d3e8e6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; color: #93b3af; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
/* Cookie-Einstellungen-Link: gleiche Optik wie die Copyright-Zeile */
.footer-bottom .js-consent-settings {
  font-size: .85rem;
  color: #93b3af;
  text-decoration: none;
}
.footer-bottom .js-consent-settings:hover {
  color: #d3e8e6;
  text-decoration: underline;
}

/* ===== Consent-Banner + Karten-Platzhalter ===================================== */
 
/* --- Banner unten fixiert --- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 -6px 24px rgba(16, 48, 44, .14);
}
.consent-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
}
.consent-text { flex: 1 1 420px; min-width: 260px; }
.consent-title {
  font-family: "Source Serif 4", serif; font-weight: 700;
  font-size: 1.05rem; color: var(--ink); margin: 0 0 4px;
}
.consent-desc { font-size: .88rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.consent-desc a { color: var(--brand); }
 
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; margin-left: auto; }
/* Ablehnen und Akzeptieren gleichwertig darstellen (keine Dark Patterns) */
.consent-btn-reject {
  background: #fff; color: var(--brand); border: 1px solid var(--brand);
}
.consent-btn-reject:hover { background: var(--mist); }
.consent-btn-accept {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
}
.consent-btn-accept:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.consent-banner .btn { padding: 10px 20px; border-radius: 8px; font-size: .95rem; cursor: pointer; }
/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .detail-grid, .contact-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .nav .navlink, .nav .cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px; }
  .nav.open .navlink, .nav.open .cta { display: block; text-align: left; }
  .nav.open .cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .brand .brand-txt { font-size: .95rem; }
  .topbar .wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }
  .topbar .wrap > span:nth-child(2) {   /* phone */
    margin-left: 12px;
  }
  /* Adresse (1) + Telefon (2) auf Zeile 1 */
  /* E-Mail (3) auf Zeile 2, zentriert */
  .topbar .wrap > span:nth-child(3) {
    flex: 0 0 100%;
    justify-content: center;
  }
  .consent-inner { padding: 14px 16px; gap: 12px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 0; }   /* beide Buttons gleich breit */
}