/* ==========================================================================
   Büroservice Bostanli GmbH — Demo-Gestaltungsvorschlag
   Charakter: ruhig, präzise, vertrauenswürdig — wie ein perfekt geführtes
   Kontenblatt. Viel Weißraum, klare Raster, feine Ledger-Linien.
   Farbwelt: Off-White #F7F9FB · Marine #1C3A57 · Stahlblau #2E5F8A ·
             Blaugrau-Fläche #D9E2EA · Text #15212C · Messing #B8924A (sparsam)
   Schriften: Space Grotesk (Headlines/Zahlen) + Inter (Text), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --ground: #f7f9fb;       /* Off-White Grund */
  --white: #ffffff;
  --ink: #15212c;          /* Text fast-schwarz */
  --ink-soft: #44535f;     /* abgesetzter Fließtext */
  --navy: #1c3a57;         /* Primär: dunkles Stahlblau/Marine */
  --navy-deep: #142c43;    /* dunkle Sektionen, Hover */
  --steel: #2e5f8a;        /* Akzent Stahlblau */
  --mist: #d9e2ea;         /* helles Blaugrau für Flächen */
  --brass: #b8924a;        /* Messing — sparsamer Kontrapunkt */
  --line: #c8d4de;         /* Ledger-Linien hell */
  --line-soft: #dde6ed;
  --line-dark: rgba(247, 249, 251, 0.18);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Ledger-Linienraster (feine horizontale Kontenblatt-Linien) */
  --ledger: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    var(--line-soft) 35px,
    var(--line-soft) 36px
  );
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ground);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }

::selection { background: var(--navy); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: var(--ink-soft); }
p strong { color: var(--ink); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 38rem; }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--navy-deep);
  color: #c9d8e6;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.55rem var(--pad);
}
.demo-bar strong { color: var(--white); font-weight: 600; }

/* ---------- Header / Navigation ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
}

/* Wortmarke: Monogramm-Quadrat „B" + Bostanli */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  border-bottom: 3px solid var(--brass);
}
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand__name small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--steel); }
.nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--brass);
}
.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  font-family: var(--font-display);
  padding: 0.55rem 1.1rem !important;
  border-bottom: none !important;
  transition: background 0.2s var(--ease);
}
.nav__cta:hover { background: var(--steel); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background-image: var(--ledger);
  background-color: var(--ground);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 .mark { color: var(--steel); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.hero__hint {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Kontenblatt-Karte im Hero */
.ledger-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  box-shadow: 0 18px 40px rgba(28, 58, 87, 0.12);
  padding: 1.6rem 1.8rem 1.4rem;
}
.ledger-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.ledger-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem 0.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
  color: var(--ink);
}
.ledger-card__row .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brass);
  margin-right: 0.6rem;
}
.ledger-card__row .check {
  flex: 0 0 auto;
  color: var(--steel);
}
.ledger-card__sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  border-top: 3px double var(--brass);  /* der doppelte Summenstrich */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--mist); color: var(--navy); }
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section--tint { background: var(--mist); }
.section--dark {
  background: var(--navy);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    var(--line-dark) 35px,
    var(--line-dark) 36px
  );
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #c2d2e0; }
.section--dark .eyebrow { color: #9fc0db; }

.section__head { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head p { margin-top: 0.8rem; }

/* ---------- Leistungs-Teaser (Kontenzeilen-Karten) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.8rem 1.7rem 1.5rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(28, 58, 87, 0.1);
  color: var(--ink);
}
.post__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brass);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.post p { font-size: 0.96rem; }
.post__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--steel);
}

/* ---------- Abgrenzungsblock (Steuerberater) ---------- */
.notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  padding: 1.6rem 1.8rem;
  max-width: 52rem;
}
.notice h3 { margin-bottom: 0.5rem; }
.notice p { font-size: 0.98rem; }
.notice + .notice { margin-top: 1.4rem; }
.duo .contact-table { margin-top: 1.5rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.duo .lead { margin-top: 0.9rem; }

/* ---------- Ledger-Listen (Leistungsseiten) ---------- */
.ledger-list { list-style: none; }
.ledger-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ledger-list li::before {
  content: counter(list-item, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brass);
  flex: 0 0 1.6rem;
}
.ledger-list { counter-reset: list-item; }
.ledger-list li { counter-increment: list-item; }
.section--dark .ledger-list li { border-bottom-color: var(--line-dark); color: #e6eef5; }

/* Leistungs-Detailblöcke */
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  border-bottom: 3px double var(--line);
}
.service:last-of-type { border-bottom: none; }
.service__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--brass);
}
.service h2 { margin-top: 0.4rem; }
.service__intro { margin-top: 0.9rem; }

/* ---------- Vertrauens-/Standortband ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fact {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.1rem;
}
.fact h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.fact p { font-size: 0.95rem; }
.fact .big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.fact .big .star { color: var(--brass); }

/* ---------- Kontakt ---------- */
.contact-table { border-top: 1px solid var(--line); max-width: 46rem; }
.contact-table__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.contact-table__row dt {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 0.15rem;
}
.contact-table__row dd { color: var(--ink); }
.contact-table__row dd a { font-weight: 500; }
.contact-table__row dd .sub { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--navy);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    var(--line-dark) 35px,
    var(--line-dark) 36px
  );
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c2d2e0; max-width: 36rem; margin: 0.8rem auto 0; }
.cta-band .tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 1.4rem 0 1.2rem;
  border-bottom: 3px double var(--brass);
  padding-bottom: 0.2rem;
}
.cta-band .tel:hover { color: var(--mist); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 50rem; }
.legal h1 { margin-bottom: 1.6rem; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.legal p, .legal address, .legal li { color: var(--ink-soft); font-style: normal; }
.legal ul { padding-left: 1.3rem; margin: 0.5rem 0; }
.legal address { margin-bottom: 0.8rem; }

.demo-note {
  background: var(--mist);
  border-left: 4px solid var(--brass);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.placeholder {
  background: #f0e7d6;
  border: 1px dashed var(--brass);
  padding: 0.05rem 0.45rem;
  font-size: 0.9rem;
  color: #7a5f2c;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--navy-deep);
  color: #c2d2e0;
  padding-block: 2.8rem 1.6rem;
  font-size: 0.94rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-foot h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.site-foot ul { list-style: none; }
.site-foot li { padding: 0.22rem 0; }
.site-foot a { color: #c2d2e0; }
.site-foot a:hover { color: var(--white); }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.3rem;
  font-size: 0.85rem;
  color: #8fa6b8;
}
.foot-meta a { color: #c2d2e0; }

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1.6rem; }
  .duo { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(28, 58, 87, 0.12);
    display: none;
    padding: 0.4rem 0 0.8rem;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem var(--pad);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--steel); }
  .nav__cta { margin: 0.8rem var(--pad) 0; text-align: center; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .posts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-table__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .brand__name { font-size: 1.05rem; }
}
