/* =====================================================================
   FEUERHAKE Rechtsanwälte — Design System "Einsatzbereit"
   A "Feuerhaken" was the fire brigade's tool to stop a blaze spreading —
   insolvency law done early does the same. Swiss Modern with a Bold
   Studio Solid hero (fire red field), DIN-style signage typography,
   a "Brandschutzordnung"-style crisis checklist, sign tiles.
   Palette: white + light grey + ink, ONE accent: fire red.
   Type: Barlow Condensed (signage display) + Barlow (text), self-hosted.
   Icons: Phosphor (fill), inlined. Images: Higgsfield (Soul 2.0 + cutout).
   ===================================================================== */

:root {
  --red:      #c0261c;   /* fire red — the only accent */
  --red-deep: #9f1d15;
  --ink:      #161616;
  --text:     #34373b;
  --muted:    #5f6368;
  --paper:    #ffffff;
  --grey:     #f1f1f0;
  --line:     #d9d9d6;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.08rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

.label { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0; }
.h2 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.005em; margin: .8rem 0 1.4rem; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.55; margin: 0; max-width: 52ch; }

/* =========================== HEADER =========================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--red); color: #fff; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header[data-scrolled="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 78px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.logo .sign { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; color: var(--red); font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; transition: background-color .3s, color .3s; }
.site-header[data-scrolled="true"] .logo .sign, .logo.on-light .sign { background: var(--red); color: #fff; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .n { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: .005em; }
.logo .s { font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .2rem; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; text-decoration: none; color: inherit; padding: .3rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { border-bottom-color: currentColor; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; place-items: center; border-radius: 0; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- buttons: sign plates ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; height: 54px; padding: 0 1.5rem; border: 2px solid transparent; border-radius: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn .ico { font-size: 1.2em; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--ghost-white { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--red); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--red); }
.nav-links .btn { height: 44px; font-size: 1rem; padding: 0 1.1rem; }
.site-header:not([data-scrolled="true"]) .nav-links .btn { background: #fff; color: var(--red); }

/* ---- server sign plaque ---- */
.plaque { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; width: 9.6rem; padding: 1rem .8rem .9rem; border: 3px solid currentColor; outline: 1px solid currentColor; outline-offset: 4px; text-align: center; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; font-size: 1.02rem; }
.plaque .ico { font-size: 2.6rem; }
.plaque small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .16em; opacity: .85; margin-top: .15rem; }

/* =========================== HERO (solid red field) =========================== */
.hero { position: relative; background: var(--red); color: #fff; overflow-x: clip; overflow-y: visible; }
.hero .wrap { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: min(88vh, 860px); padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-content: center; }
.hero-copy { grid-column: 1 / 8; position: relative; z-index: 2; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(3.6rem, 9.4vw, 9rem); line-height: .9; letter-spacing: -.01em; margin: 1.2rem 0 0; }
.hero .label { color: #fff; opacity: .85; }
.hero-lead { margin-top: 1.8rem; color: rgba(255, 255, 255, .92); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-plaque { position: absolute; z-index: 3; top: clamp(2.5rem, 6vw, 4.5rem); right: var(--gutter); color: #fff; }
.hero-figure { position: absolute; z-index: 1; right: calc((100% - 100vw) / 2); bottom: -3rem; height: min(78vh, 760px); margin: 0; pointer-events: none; }
.hero-figure img { height: 100%; width: auto; max-width: none; filter: drop-shadow(-12px 0 30px rgba(0, 0, 0, .18)); }

/* =========================== SECTIONS =========================== */
.section { padding-block: clamp(5rem, 9vw, 8rem); }
.section--grey { background: var(--grey); }
.section--first { padding-top: clamp(6.5rem, 11vw, 10rem); }

/* ---- Verhalten in der Krise (Brandschutzordnung style) ---- */
.crisis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.crisis-intro { grid-column: 1 / 5; position: sticky; top: 110px; }
.crisis-intro p { margin: 0 0 1.6rem; }
.notice { grid-column: 6 / 13; border: 3px solid var(--red); background: #fff; }
.notice-head { background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; padding: 1.1rem 1.4rem 1rem; }
.notice ol { list-style: none; margin: 0; padding: 0; }
.notice li { display: grid; grid-template-columns: 4.8rem 3rem minmax(0, 1fr); align-items: stretch; border-top: 1.5px solid var(--ink); }
.notice li:first-child { border-top: 0; }
.notice .pic { background: var(--red); color: #fff; display: grid; place-items: center; border-right: 1.5px solid var(--ink); }
.notice .pic .ico { font-size: 2.4rem; }
.notice .no { font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--ink); display: grid; place-items: center; line-height: 1; }
.notice .txt { padding: 1rem 1.3rem 1.05rem .3rem; }
.notice .txt strong { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.05; }
.notice .txt span { display: block; margin-top: .4rem; font-size: .98rem; color: var(--muted); line-height: 1.5; }
.notice-foot { padding: .8rem 1.4rem; font-size: .8rem; color: var(--muted); border-top: 1.5px solid var(--ink); }

/* ---- Leistungen: sign tiles ---- */
.tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); margin-top: clamp(2rem, 4vw, 3rem); }
.tile { background: #fff; border: 2px solid var(--ink); padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; min-height: 15rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red); }
.tile .pic { width: 3.1rem; height: 3.1rem; background: var(--red); color: #fff; display: grid; place-items: center; }
.tile .pic .ico { font-size: 1.8rem; }
.tile h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1; margin: auto 0 0; padding-top: 2.4rem; }
.tile h3::after { content: ""; display: block; width: 2.4rem; height: 3px; background: currentColor; margin: .9rem 0 .8rem; }
.tile p { margin: 0; font-size: .98rem; color: var(--muted); }
.tile--red { background: var(--red); border-color: var(--red); color: #fff; }
.tile--red:hover { box-shadow: 6px 6px 0 var(--ink); }
.tile--red .pic { background: #fff; color: var(--red); }
.tile--red h3, .tile--red p { color: #fff; }
.tile--red h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); }

/* ---- Daten in Deutschland ---- */
.trust { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.trust .plaque { color: var(--red); width: 12rem; font-size: 1.3rem; }
.trust .plaque .ico { font-size: 3.4rem; }
.trust-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem var(--gap); margin-top: 1.6rem; }
.trust-items div { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .9rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.trust-items .ico { font-size: 1.8rem; color: var(--red); }
.trust-items strong { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--ink); line-height: 1.05; }
.trust-items span { display: block; margin-top: .3rem; font-size: .95rem; color: var(--muted); }

/* ---- Team: strict grid 4 + 3 + sign card ---- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem var(--gap); margin-top: clamp(2rem, 4vw, 3rem); }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; background: #e8e6e2; }
.member figcaption { border-top: 3px solid var(--red); margin-top: .9rem; padding-top: .6rem; }
.member .m-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.member .m-role { font-family: var(--display); font-weight: 500; font-size: .95rem; letter-spacing: .05em; color: var(--muted); margin-top: .15rem; }
.call-card { background: var(--red); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem 1.5rem; text-decoration: none; aspect-ratio: 3 / 4; transition: background-color .2s; }
.call-card:hover { background: var(--red-deep); }
.call-card .ico { font-size: 3rem; }
.call-card strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: .95; }
.call-card span { display: block; margin-top: .7rem; font-size: .95rem; opacity: .9; }

/* ---- Kontakt: red band ---- */
.contact { background: var(--red); color: #fff; padding-block: clamp(4.5rem, 8vw, 7rem); }
.contact .label { color: #fff; opacity: .85; }
.contact-phone { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 10vw, 9rem); line-height: .9; letter-spacing: -.005em; color: #fff; text-decoration: none; margin: 1.4rem 0 0; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.contact-data { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; }
.contact-data div { border-top: 2px solid #fff; padding-top: .9rem; }
.contact-data dt { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; opacity: .85; margin-bottom: .45rem; }
.contact-data dd { margin: 0; font-weight: 500; line-height: 1.45; }
.contact-data a { text-decoration: none; }
.contact-side { grid-column: 10 / 13; display: flex; flex-direction: column; align-items: flex-end; gap: 1.6rem; }
.contact-side .plaque { color: #fff; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-block: 1.6rem; }
.site-footer nav { display: flex; gap: 1.8rem; }
.site-footer a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.site-footer a:hover { color: #ffb3ad; }
.site-footer a.logo { text-transform: none; letter-spacing: normal; font-family: inherit; font-weight: inherit; font-size: inherit; }
.site-footer .meta { font-size: .85rem; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: .5rem; }
.site-footer .meta .ico { font-size: 1.1rem; }

/* =========================== LEGAL PAGES =========================== */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal .inner { max-width: 780px; }
.legal .back { display: inline-flex; margin-bottom: 2.2rem; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 8vw, 5.4rem); line-height: .92; color: var(--ink); margin: 0 0 2.4rem; }
.legal h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.55rem; color: var(--ink); margin: 2.8rem 0 .7rem; padding-top: .8rem; border-top: 3px solid var(--red); }
.legal h3 { font-weight: 600; font-size: 1.06rem; color: var(--ink); margin: 1.7rem 0 .5rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.1rem; }
.legal a { color: var(--red); }
.legal a.btn { color: #fff; }
.legal .stand { margin-top: 3rem; }

/* unfinished client data — remove class once filled */
.ph { background: #fff3a8; color: var(--ink); outline: 1px dashed var(--ink); outline-offset: 1px; padding: 0 .15em; }

/* =========================== MOTION =========================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-in="true"] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.notice li { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.notice[data-in="true"] li { opacity: 1; transform: none; }
.notice[data-in="true"] li:nth-child(2) { transition-delay: .1s; } .notice[data-in="true"] li:nth-child(3) { transition-delay: .2s; }
.notice[data-in="true"] li:nth-child(4) { transition-delay: .3s; } .notice[data-in="true"] li:nth-child(5) { transition-delay: .4s; }
.intro { opacity: 0; transform: translateY(18px); animation: intro .9s var(--ease) forwards; }
.intro.d1 { animation-delay: .12s; } .intro.d2 { animation-delay: .24s; } .intro.d3 { animation-delay: .36s; }
.hero-figure.intro { transform: translateX(30px); animation: introX 1.1s var(--ease) .2s forwards; }
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes introX { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .intro, .notice li { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .tile, .btn { transition: none !important; }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / 10; }
  .hero-figure { height: min(62vh, 600px); opacity: .95; }
  .crisis-intro { grid-column: 1 / 13; position: static; margin-bottom: 2.4rem; }
  .notice { grid-column: 1 / 13; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--red { grid-column: 1 / -1; min-height: 12rem; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-data { grid-column: 1 / 13; }
  .contact-side { grid-column: 1 / 13; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 2.4rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--ink);
    border-bottom: 3px solid var(--red); padding: .5rem var(--gutter) 1.4rem; clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; transition: clip-path .35s var(--ease), opacity .25s var(--ease); }
  .nav[data-open="true"] .nav-links { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-links a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 0; }
  .nav-links .btn, .site-header:not([data-scrolled="true"]) .nav-links .btn { width: 100%; background: var(--red); color: #fff; }
  .hero .wrap { min-height: auto; padding-bottom: 0; }
  .hero-copy { grid-column: 1 / 13; }
  .hero-plaque { position: static; grid-column: 1 / 13; justify-self: start; margin-top: 2.4rem; order: 3; }
  .hero-figure { position: relative; grid-column: 1 / 13; justify-self: end; height: 380px; bottom: auto; right: calc(var(--gutter) * -1); margin-top: 1.5rem; }
  .section--first { padding-top: clamp(4rem, 9vw, 6rem); }
  .notice li { grid-template-columns: 3.4rem 2.2rem minmax(0, 1fr); }
  .notice .pic .ico { font-size: 1.8rem; }
  .notice .no { font-size: 1.9rem; }
  .trust { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-data { grid-template-columns: 1fr; row-gap: 1.4rem; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile h3 { padding-top: 1.6rem; }
  .hero-actions .btn { width: 100%; }
  .contact-side { flex-direction: column; align-items: flex-start; }
}
