/* AMIRI Rechtsanwalt – Kanzlei-Seiten (Startseite, Rechtsgebiete, Online-Beauftragung)
   Baut auf site.css auf (Schriften, Grundregeln). Farbwelt: Nachtblau + klares Blau,
   Orange nur für Verkehrsrecht (Markenlinie im Logo). */

.b {
  --navy-950: #071528;
  --navy-900: #0A1B33;
  --navy-800: #0F2747;
  --navy-700: #183A66;
  --blue: #2563EB;
  --blue-600: #1D4ED8;
  --blue-300: #93B4F5;
  --blue-50: #EEF3FD;
  --ink: #0B1626;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --orange: #C2410C;
  --wa: #128C4A;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
.b a { color: inherit; }
.b a:hover { color: var(--blue); }
.b :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.b h1, .b h2, .b h3 { font-family: Jost, Poppins, sans-serif; font-weight: 500; margin: 0; letter-spacing: -0.015em; }
.b p { margin: 0; }
.b .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.b .eyebrow { font-family: 'Josefin Sans', Poppins, sans-serif; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.b .lead { font-size: 18.5px; color: var(--text); max-width: 680px; }
.b section { padding: 104px 0; }
.b .h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; margin-bottom: 18px; }

/* Buttons */
.b .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; font-family: inherit; }
.b .btn:hover { transform: translateY(-1px); }
.b .btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(37,99,235,.7); }
.b .btn-blue:hover { background: var(--blue-600); color: #fff; }
.b .btn-orange { background: var(--orange); color: #fff; }
.b .btn-orange:hover { background: #A8380A; color: #fff; }
.b .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.b .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.b .btn-line { border-color: var(--ink); color: var(--ink); }
.b .btn-line:hover { background: var(--ink); color: #fff; }
.b .btn-wa { background: var(--wa); color: #fff; }
.b .btn-wa:hover { background: #0E7A40; color: #fff; }
.b .btn svg { flex: none; }
.b .link-arrow { font-weight: 600; text-decoration: none; color: var(--blue); }
.b .link-arrow:hover { color: var(--blue-600); }

/* Kopfzeile */
.b .top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.b .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.b .logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy-900); line-height: 1; }
.b .logo .l1 { font-family: 'Josefin Sans', Poppins, sans-serif; font-weight: 300; font-size: clamp(30px, 9vw, 36px); letter-spacing: .14em; padding-left: .14em; }
.b .logo .l2 { display: block; width: 100%; height: 1.5px; background: var(--orange); margin: 7px 0 6px; }
.b .logo .l3 { font-family: 'Josefin Sans', Poppins, sans-serif; font-size: clamp(10px, 3vw, 11.5px); letter-spacing: .32em; padding-left: .32em; }
.b .nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.b .nav a { text-decoration: none; color: var(--ink); }
.b .nav a:hover, .b .nav a[aria-current] { color: var(--blue); }
.b .top-cta { display: flex; align-items: center; gap: 14px; }
.b .top-cta .tel { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.b .top-cta .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.b .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--wa); text-decoration: none; }
.b .icon-btn:hover { border-color: var(--wa); color: var(--wa); }

/* Hero */
.b .hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 520px at 85% 10%, rgba(37,99,235,.38), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(37,99,235,.18), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); padding: 88px 0 96px; }
.b .hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.b .hero .eyebrow { color: var(--blue-300); }
.b .hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 24px; }
.b .hero h1 em { font-style: normal; background: linear-gradient(90deg, #8FB4FF, #DCE8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b .hero .lead { color: #C9D6EA; margin-bottom: 34px; }
.b .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.b .hero .fine { font-size: 14.5px; color: #9FB1CC; margin-bottom: 34px; }
.b .trust { display: flex; flex-wrap: wrap; gap: 10px; }
.b .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #E5ECF7; }
.b .chip .stars { color: #FBBF24; letter-spacing: 1px; }
.b .portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.b .portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.b .portrait::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid rgba(147,180,245,.35); border-radius: 32px; z-index: -0; pointer-events: none; }
.b .portrait .badge { position: absolute; left: -28px; bottom: 28px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 40px -18px rgba(7,21,40,.5); max-width: 260px; }
.b .portrait .badge strong { display: block; font-family: Jost, Poppins, sans-serif; font-weight: 500; font-size: 17px; }
.b .portrait .badge span { font-size: 13.5px; color: var(--muted); }

/* Zwei Eingänge */
.b .doors { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 44px; }
.b .door { position: relative; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.b .door-vr { background: var(--navy-900); color: #fff; border: 0; }
.b .door-vr .img { height: 230px; background: center / cover no-repeat; position: relative; }
.b .door-vr .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,27,51,0) 30%, var(--navy-900)); }
.b .door .body { padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.b .tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.b .tag-orange { background: rgba(194,65,12,.15); color: #FDBA8C; }
.b .tag-blue { background: var(--blue-50); color: var(--blue-600); }
.b .door h3 { font-size: 30px; line-height: 1.15; }
.b .door-vr p { color: #C9D6EA; }
.b .door .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 10px; }
.b .door-vr .link-arrow { color: #FDBA8C; }
.b .areas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.b .areas li a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.b .areas li:last-child a { border-bottom: 1px solid var(--line); }
.b .areas .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.b .areas strong { display: block; font-weight: 600; }
.b .areas small { display: block; color: var(--muted); font-size: 14px; }
.b .areas .go { margin-left: auto; color: var(--muted); }

/* Schritte */
.b .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 36px; counter-reset: s; }
.b .step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.b .step .n { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-family: Jost, Poppins, sans-serif; font-size: 19px; margin-bottom: 18px; }
.b .step h3 { font-size: 21px; margin-bottom: 8px; }
.b .step p { color: var(--text); font-size: 15.5px; }

/* Kosten */
.b .costs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 40px; }
.b .cost { background: #fff; padding: 30px; }
.b .cost .k { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.b .cost h3 { font-size: 21px; margin-bottom: 8px; }
.b .cost p { color: var(--text); font-size: 15.5px; }

/* Über mich */
.b .about { background: #fff; }
.b .about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.b .about img { width: 100%; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.b .about .lead { margin-bottom: 16px; }
.b .vals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 28px 0 32px; }
.b .vals strong { display: block; font-weight: 600; }
.b .vals span { font-size: 15px; color: var(--muted); }

/* Bewertungen */
.b .reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.b .score { font-size: 17px; color: var(--text); }
.b .score strong { color: var(--ink); font-size: 22px; }
.b .stars { color: #F59E0B; letter-spacing: 2px; }
.b .reviews { display: flex; flex-wrap: wrap; gap: 20px; }
.b .reviews figure { flex: 1 1 250px; margin: 0; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.b .reviews blockquote { margin: 0; font-size: 15.5px; color: var(--text); flex: 1; }
.b .reviews figcaption { font-weight: 600; font-size: 15px; }
.b .reviews figcaption span { color: var(--muted); font-weight: 400; }
.b .note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* CTA-Band */
.b .band { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.b .band h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.b .band p { color: #C9D6EA; margin-top: 8px; }
.b .band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kontakt + Formulare */
.b .contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.b .ways { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.b .way { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.b .way .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.b .way.wa .ic { background: #E8F7EE; color: var(--wa); }
.b .way strong { display: block; font-weight: 600; }
.b .way small { color: var(--muted); font-size: 14px; }
.b .card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px -40px rgba(10,27,51,.35); }
.b form { display: flex; flex-direction: column; gap: 18px; }
.b .row { display: flex; flex-wrap: wrap; gap: 16px; }
.b .row > .f { flex: 1 1 220px; }
.b .f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b .f label, .b .f .lbl { font-size: 14px; font-weight: 600; }
.b .f label span, .b .f .lbl span { font-weight: 400; color: var(--muted); }
.b .f input[type=text], .b .f input[type=email], .b .f input[type=tel], .b .f select, .b .f textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 10px; background: var(--bg); font: inherit; color: inherit; }
.b .f textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.b .f input:focus, .b .f select:focus, .b .f textarea:focus { border-color: var(--blue) !important; background: #fff !important; outline: 3px solid rgba(37,99,235,.15); }
.b .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); cursor: pointer; }
.b .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.b .opt { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.b .opt:has(input:checked) { border: 1.5px solid var(--blue); background: var(--blue-50); }
.b .opt input { accent-color: var(--blue); }
.b .small { font-size: 13.5px; color: var(--muted); }

/* Unterseiten-Kopf */
.b .subhero { color: #fff; background: radial-gradient(900px 420px at 90% 0%, rgba(37,99,235,.35), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); padding: 72px 0 80px; }
.b .subhero .eyebrow { color: var(--blue-300); }
.b .subhero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; margin-bottom: 18px; }
.b .subhero .lead { color: #C9D6EA; }

/* Rechtsgebiete */
.b .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b .area { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.b .area .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.b .area h2 { font-size: 24px; line-height: 1.2; }
.b .area p { color: var(--text); font-size: 15.5px; }
.b .area ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.b .area .link-arrow { margin-top: auto; padding-top: 8px; }
.b .area-vr { background: var(--navy-900); color: #fff; border: 0; }
.b .area-vr p, .b .area-vr ul { color: #C9D6EA; }
.b .area-vr .ic { background: rgba(194,65,12,.18); color: #FDBA8C; }
.b .area-vr .link-arrow { color: #FDBA8C; }
.b .area-open { background: var(--blue-50); border-color: #D6E2FB; }

/* Online-Beauftragung */
.b .progress { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.b .progress span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #E5ECF7; }
.b .progress b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12.5px; }
.b .mandate { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.b fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.b legend { font-family: Jost, Poppins, sans-serif; font-size: 22px; font-weight: 500; margin-bottom: 4px; padding: 0; display: flex; align-items: center; gap: 12px; }
.b legend b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--navy-900); color: #fff; font-size: 15px; font-family: Inter, sans-serif; }
.b .sep { height: 1px; background: var(--line); margin: 10px 0; }
.b details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--bg); font-size: 14.5px; color: var(--text); }
.b details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.b details[open] summary { margin-bottom: 8px; }
.b .sig-wrap { border: 1.5px dashed #94A3B8; border-radius: 14px; background: #fff; position: relative; }
.b .sig-wrap canvas { display: block; width: 100%; height: 190px; touch-action: none; border-radius: 14px; }
.b .sig-wrap .hint { position: absolute; left: 16px; bottom: 12px; font-size: 13px; color: #94A3B8; pointer-events: none; }
.b .sig-line { position: absolute; left: 16px; right: 16px; bottom: 40px; border-top: 1px solid #CBD5E1; pointer-events: none; }
.b .linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; text-decoration: underline; }
.b .summary { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.b .summary .card { padding: 26px; }
.b .summary h3 { font-size: 19px; margin-bottom: 4px; }
.b .summary dl { margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.b .summary dt { font-weight: 600; }
.b .summary dd { margin: 0; color: var(--text); }
.b .error { display: none; color: #B91C1C; font-size: 14px; font-weight: 500; }
.b .error.show { display: block; }

/* Fußzeile */
.b .foot { background: var(--navy-950); color: #A9B6CA; font-size: 14.5px; padding: 56px 0 40px; }
.b .foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.b .foot .logo { color: #F7F6F3; }
.b .foot .logo .l1 { font-size: 28px; }
.b .foot .logo .l3 { font-size: 9.5px; }
.b .foot a { color: #E5ECF7; text-decoration: none; }
.b .foot a:hover { color: #fff; text-decoration: underline; }
.b .foot .col { display: flex; flex-direction: column; gap: 6px; }
.b .foot .legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.b .foot .legal a { text-decoration: underline; }

/* Handy-Leiste */
.b .mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy-950); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.b .mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff; }
.b .mbar .m-call { border: 1.5px solid rgba(255,255,255,.7); }
.b .mbar .m-wa { background: var(--wa); }
.b .mbar .m-main { background: var(--blue); }

/* Responsiv */
@media (max-width: 1020px) {
  .b .nav { display: none; }
}
@media (max-width: 900px) {
  .b section { padding: 72px 0; }
  .b .hero { padding: 56px 0 72px; }
  .b .hero .wrap, .b .about .wrap, .b .contact .wrap, .b .mandate { grid-template-columns: 1fr; gap: 40px; }
  .b .portrait { justify-self: center; max-width: 360px; }
  .b .portrait .badge { left: -8px; }
  .b .doors, .b .steps, .b .costs, .b .grid3 { grid-template-columns: 1fr; }
  .b .summary { position: static; }
  .b .band { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .b .top .tel, .b .top .icon-btn { display: none; }
  .b .top-cta .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .b .mbar { display: flex; }
  body:has(.b .mbar) { padding-bottom: 76px; }
  .b .door .body, .b .card { padding: 24px; }
  .b .vals { grid-template-columns: 1fr; }
  .b .reviews { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: none; }
  .b .reviews::-webkit-scrollbar { display: none; }
  .b .reviews figure { flex: 0 0 86%; scroll-snap-align: center; }
  .b .hero .ctas .btn { flex: 1 1 100%; }
}

/* Zielseiten */
.b .subhero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.b .subhero .fine { color: #9FB3D1; font-size: 14px; margin-top: 16px; }
.b .faq { display: grid; gap: 12px; max-width: 860px; margin-top: 32px; }
.b .faq details { background: #fff; font-size: 16px; padding: 18px 22px; }
.b .faq details p { margin: 0; }
.b .area .link-arrow + .link-arrow { margin-left: 14px; }
@media (max-width: 640px) { .b .subhero .ctas .btn { flex: 1 1 100%; } }
