/* Anselstetter Steuerberatung, geteiltes Stylesheet für alle Unterseiten.
   Designtokens identisch zur Startseite (index.html). Kein Build-Step. */

:root {
  --navy:        #163E69;
  --navy-soft:   #2D5FA8;
  --navy-deep:   #0E1A28;
  --navy-mist:   #A9BCD4;
  --navy-pale:   #E2EAF3;
  --bg:          #F5F5F2;
  --bg-tint:     #EFF3F8;
  --surface:     #FFFFFF;
  --ink:         #0E1A28;
  --ink-soft:    #2C3A52;
  --muted:       #5C6675;
  --line:        rgba(14, 26, 40, 0.10);
  --rule:        rgba(14, 26, 40, 0.10);
  --rule-strong: rgba(14, 26, 40, 0.22);
  --container:   1280px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
a { color: var(--navy); }

.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.9rem;
}

/* ── Masthead ───────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 242, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 2rem; padding-block: 0.85rem;
}
.brand img { height: 38px; width: auto; }
.nav { display: flex; justify-content: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
  text-decoration: none; position: relative; padding-block: 0.4rem;
  letter-spacing: -0.005em; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.mast-cta { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: inherit; font-weight: 600; font-size: 0.94rem;
  letter-spacing: -0.005em; text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.mast-cta .btn { padding: 0.7rem 1.1rem; font-size: 0.86rem; }
.btn .arrow { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 32px -16px rgba(14, 26, 40, 0.5);
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: #fff; color: var(--navy); }
@media (max-width: 880px) {
  .nav { display: none; }
  .masthead__inner { grid-template-columns: 1fr auto; }
}

.back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

/* ── Seitenkopf ─────────────────────────── */
.page-head { padding: 4.2rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.page-head .crumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem;
}
.page-head .crumb a { color: var(--muted); text-decoration: none; }
.page-head .crumb a:hover { color: var(--navy); }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--navy-deep); max-width: 20ch;
}
.page-head .lead {
  margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch;
}

/* ── Hero mit Foto ──────────────────────── */
.page-hero { padding: 3.4rem 0 0; border-bottom: 1px solid var(--line); }
.hero-split {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 3rem; align-items: center; padding-bottom: 3.4rem;
}
.hero-copy .crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.hero-copy .crumb a { color: var(--muted); text-decoration: none; }
.hero-copy .crumb a:hover { color: var(--navy); }
.hero-copy .eyebrow { margin-bottom: 0.6rem; }
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--navy-deep); line-height: 1.1;
}
.hero-copy .lead { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.hero-media { margin: 0; align-self: stretch; }
.hero-media img {
  width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover;
  border-radius: 18px; display: block;
  box-shadow: 0 24px 50px -28px rgba(14, 26, 40, 0.45);
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 2.6rem; }
  .hero-media img { height: clamp(220px, 56vw, 320px); }
}

/* ── Bild + Text nebeneinander ──────────── */
.media-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.media-split.media-split--rev .media-split__img { order: 2; }
.media-split__img { margin: 0; }
.media-split__img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: 0 18px 44px -26px rgba(14, 26, 40, 0.4);
}
@media (max-width: 860px) {
  .media-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .media-split.media-split--rev .media-split__img { order: 0; }
}

/* ── Inhalt / Prosa ─────────────────────── */
.section { padding: 3.4rem 0; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-deep); color: var(--navy-mist); }
.prose { max-width: 64ch; }
.prose h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy-deep);
  letter-spacing: -0.01em; margin: 2.4rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.12rem; font-weight: 700; color: var(--navy-deep); margin: 1.8rem 0 0.5rem;
}
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }
.prose ul li { margin-bottom: 0.4rem; }

.section-head { margin-bottom: 2rem; }
.section-head .eyebrow { margin-bottom: 0.6rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800;
  color: var(--navy-deep); letter-spacing: -0.02em; max-width: 24ch;
}

/* ── Kompetenz-Chips ────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.92rem; font-weight: 600; color: var(--navy);
}

/* ── Kontakt-Karte ──────────────────────── */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem; display: grid; gap: 1.4rem;
}
.contact-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy-deep); }
.contact-card p { color: var(--ink-soft); }
.contact-rows { display: grid; gap: 0.8rem; }
.contact-rows a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; }
.contact-rows span { color: var(--ink-soft); }

/* ── Kontaktseite: Info + Formular ──────── */
.contact-split { display: grid; gap: 2.4rem; grid-template-columns: 1fr 1.3fr; align-items: start; }
.contact-info h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy-deep); margin: 0.4rem 0 1.2rem; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }

/* Standalone Mehr-Link (außerhalb von Karten) */
a.more { display: inline-block; margin-top: 0.4rem; font-size: 0.9rem; font-weight: 700; color: var(--navy); text-decoration: none; }
a.more:hover { text-decoration: underline; }

/* ── Leistungs-/Querverweis-Karten ──────── */
.card-grid {
  display: grid; gap: 1rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.x-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem; transition: border-color 0.18s ease, transform 0.18s ease;
}
.x-card:hover { border-color: var(--navy-soft); transform: translateY(-2px); }
.x-card .num { font-size: 0.8rem; font-weight: 700; color: var(--navy-soft); letter-spacing: 0.1em; }
.x-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); margin: 0.5rem 0 0.5rem; overflow-wrap: break-word; hyphens: auto; }
.x-card p { font-size: 0.95rem; color: var(--ink-soft); }
.x-card .more { display: inline-block; margin-top: 0.8rem; font-size: 0.88rem; font-weight: 700; color: var(--navy); }

/* ── Team ───────────────────────────────── */
.team-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1.6rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; }
.team-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy-deep); }
.team-card .role { font-size: 0.92rem; font-weight: 600; color: var(--navy-soft); margin: 0.2rem 0 1rem; }
.team-card a { display: block; font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; margin-bottom: 0.3rem; }
.team-card a:hover { color: var(--navy); }

/* ── Timeline (Historie) ────────────────── */
.timeline { list-style: none; margin-top: 1.6rem; border-left: 2px solid var(--line); padding-left: 1.6rem; }
.timeline li { position: relative; padding-bottom: 1.8rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.93rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid var(--bg);
}
.timeline h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }
.timeline p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ── Downloads ──────────────────────────── */
.dl-group { margin-top: 2.2rem; }
.dl-group h2 { font-size: 1.3rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 1rem; }
.dl-list { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dl-item {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1.1rem; color: var(--ink); transition: border-color 0.18s ease;
}
.dl-item:hover { border-color: var(--navy-soft); }
.dl-item .ext {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--navy); border-radius: 5px; padding: 0.3rem 0.45rem; flex-shrink: 0;
}
.dl-item .label { font-size: 0.95rem; font-weight: 600; }

/* ── Job-Karten / Stellen ───────────────── */
.job-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem;
  text-decoration: none; color: inherit; transition: border-color 0.18s ease;
}
.job-card:hover { border-color: var(--navy-soft); }
.job-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-deep); }
.job-card .more { font-size: 0.88rem; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ── Formulare ──────────────────────────── */
.form { max-width: 620px; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.8rem 0.9rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy-soft); border-color: var(--navy-soft); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field--check input { width: 18px; height: 18px; margin-top: 0.2rem; }
.field--check label { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-ok {
  display: none; background: var(--navy-pale); border: 1px solid var(--navy-mist);
  border-radius: 10px; padding: 1rem 1.2rem; color: var(--navy-deep); font-weight: 600;
}

/* ── Referenz-Zitat ─────────────────────── */
.quote { border-left: 3px solid var(--navy-soft); padding: 0.4rem 0 0.4rem 1.4rem; margin: 1.4rem 0; }
.quote p { font-size: 1.1rem; font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-weight: 700; color: var(--navy-deep); }

/* ── Footer (wie Startseite) ────────────── */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem 4rem; }
.footer__brand img { height: 42px; margin-bottom: 1rem; }
.footer__brand p { margin: 1rem 0 0; max-width: 36ch; font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); line-height: 1.55; }
.footer__col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-mist); margin: 0 0 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; }
.colophon {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
