/* ==========================================================================
   GS Steuerberatung GmbH – steuerbuero-passau.de
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #1b1915;
  --ink-2: #4a463e;
  --muted: #7a746a;
  --paper: #f7f3eb;
  --paper-2: #efe8db;
  --card: #fffdf8;
  --line: #d9d0bf;
  --gold: #c99a32;
  --gold-text: #8c6a1c;
  --dark: #17150f;
  --dark-line: rgba(247, 243, 235, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 8.5rem);
  --nav-h: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "opsz" 144, "SOFT" 30; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }

.label {
  display: flex; align-items: center; gap: .9rem;
  font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1.75rem;
}
.label .no { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.label::after { content: ""; flex: 1; max-width: 80px; height: 1px; background: currentColor; opacity: .5; }

.h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.h2 em, h1 em { color: var(--gold-text); font-variation-settings: "opsz" 144, "SOFT" 100; }
.intro { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 52ch; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 52px; padding: .9rem 1.6rem;
  font: 500 .9375rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn:hover::after { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--paper); border-color: var(--paper); }

/* Topbar + Navigation --------------------------------------------------- */
.topbar { background: var(--dark); color: rgba(247, 243, 235, .75); font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.topbar a { text-decoration: none; color: var(--paper); }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: .35; margin-inline: .6rem; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

.nav-bar { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav-bar.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgba(27, 25, 21, .5); }
.nav-bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .9375rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.nav .btn { min-height: 44px; padding: .7rem 1.2rem; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  :root { --nav-h: 84px; }
  .brand img { height: 54px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .5rem 0; cursor: pointer; font: 500 .875rem var(--sans); color: var(--ink); letter-spacing: .08em; text-transform: uppercase; }
  .menu-toggle span, .menu-toggle span::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .menu-toggle span::before { content: ""; position: absolute; top: 6px; }
  .menu-toggle span { margin-top: -6px; }
  .menu-open .menu-toggle span { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle span::before { transform: translateY(-6px) rotate(-90deg); }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; font-weight: 400; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 2rem; justify-content: center; min-height: 52px; }
}

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: end; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.25rem); font-weight: 350; letter-spacing: -.035em; line-height: 1; }
.hero .intro { margin-top: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero-card { position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.hero-card::before {
  /* Rahmen-Motiv aus dem Logo */
  content: ""; position: absolute; inset: -14px auto auto -14px; width: 55%; height: 70%;
  border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); pointer-events: none;
}
.hero-card .year { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 7rem); line-height: .85; letter-spacing: -.04em; color: var(--gold); font-weight: 300; }
.hero-card .year small { font-size: .35em; color: var(--ink); letter-spacing: -.01em; margin-left: .2em; font-style: italic; }
.hero-card p { color: var(--ink-2); margin: 1rem 0 1.75rem; }
.hero-card dl { margin: 0; border-top: 1px solid var(--line); }
.hero-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.hero-card dt { color: var(--muted); }
.hero-card dd { margin: 0; text-align: right; font-weight: 500; }
.hero-card dd a { text-decoration: none; }
.hero-card dd a:hover { color: var(--gold-text); }
.open-state { display: inline-flex; align-items: center; gap: .5rem; }
.open-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b1a998; }
.open-state.is-open { color: #2e6b34; }
.open-state.is-open::before { background: #3f9a47; box-shadow: 0 0 0 3px rgba(63, 154, 71, .18); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-card { margin-left: 14px; } }

/* Laufband -------------------------------------------------------------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; background: var(--paper); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.75rem); white-space: nowrap; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3rem; }
.ticker span::after { content: "✦"; font-style: normal; font-size: .7em; color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sektionen ------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2.5rem, 7vw, 6rem); }
.split .sticky { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.split .intro { margin-top: 1.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }

/* Leistungen als Liste -------------------------------------------------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.service {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--line); counter-increment: s; position: relative;
}
.service::before {
  content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.2; color: var(--gold);
  transition: transform .4s var(--ease);
}
.service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ink); transition: width .6s var(--ease); }
.service:hover::after { width: 100%; }
.service:hover::before { transform: translateX(6px); }
.service h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-bottom: .5rem; }
.service p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.service .tags { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.service .tags li { font-size: .8125rem; padding: .3rem .75rem; border: 1px solid var(--line); background: var(--card); }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; } .service::before { margin-bottom: .5rem; } }

/* Claim ----------------------------------------------------------------- */
.claim { background: var(--dark); color: var(--paper); padding-block: clamp(6rem, 13vw, 10rem); position: relative; overflow: hidden; }
.claim::before {
  content: ""; position: absolute; right: -6vw; top: 50%; width: min(46vw, 560px); aspect-ratio: 1; transform: translateY(-50%);
  border-top: 2px solid var(--dark-line); border-left: 2px solid var(--dark-line);
}
.claim blockquote { margin: 0; position: relative; }
.claim blockquote p { font-family: var(--serif); font-size: clamp(2.75rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -.035em; font-weight: 300; margin: 0; }
.claim blockquote p em { color: var(--gold); font-variation-settings: "opsz" 144, "SOFT" 100; }
.claim .sub { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--dark-line); padding-top: 2rem; }
.claim .sub p { margin: 0; color: rgba(247, 243, 235, .7); max-width: 44ch; }

/* Über uns -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.about-grid .lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 350; margin: 0 0 1.5rem; }
.about-grid .lead em { color: var(--gold-text); }
.about-grid p { color: var(--ink-2); }
.people { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.person { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.person h3 { font-size: 1.5rem; }
.person span { color: var(--muted); font-size: .9375rem; text-align: right; }

.history { position: relative; padding: clamp(2rem, 4vw, 3rem); background: var(--card); border: 1px solid var(--line); }
.history h3 { font-size: 1.25rem; font-style: italic; color: var(--muted); margin-bottom: 1.5rem; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.history li:last-child { padding-bottom: 0; }
.history .when { font: 500 .75rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); padding-top: .4rem; }
.history strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.history p { margin: .35rem 0 0; font-size: .9375rem; }
.history .logo { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.history .logo img { width: 220px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .history li { grid-template-columns: 1fr; gap: .25rem; } }

/* Kontakt --------------------------------------------------------------- */
.contact { background: var(--dark); color: var(--paper); }
.contact .label { color: var(--gold); }
.contact .label .no { color: var(--paper); }
.contact .h2 em { color: var(--gold); }
.contact .intro { color: rgba(247, 243, 235, .7); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--dark-line); }
.contact-col { padding: 2rem 2rem 0 0; }
.contact-col + .contact-col { padding-left: 2rem; border-left: 1px solid var(--dark-line); }
.contact-col h3 { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 243, 235, .55); margin-bottom: 1.25rem; }
.contact-col .big { display: block; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; text-decoration: none; letter-spacing: -.02em; }
.contact-col a.big:hover { color: var(--gold); }
.contact-col .mail { font-family: var(--sans); font-size: 1.0625rem; margin-top: .75rem; display: inline-block; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.contact-col address { font-style: normal; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.3; }
.contact-col .route { display: inline-block; margin-top: 1.25rem; text-decoration: none; color: var(--gold); font-weight: 500; }
.contact-col .route:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: .6rem 1rem .6rem 0; vertical-align: top; white-space: nowrap; }
.hours td { padding: .6rem 0; color: rgba(247, 243, 235, .75); }
.hours tr + tr > * { border-top: 1px solid var(--dark-line); }
.contact .open-state { margin-top: 1rem; font-size: .9375rem; color: rgba(247, 243, 235, .6); }
.contact .open-state.is-open { color: #8fd497; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-col, .contact-col + .contact-col { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--dark-line); }
}

/* Footer ---------------------------------------------------------------- */
.footer { background: var(--dark); color: rgba(247, 243, 235, .55); font-size: .875rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2rem 2.5rem; border-top: 1px solid var(--dark-line); }
.footer img { height: 40px; width: auto; }
.footer nav { display: flex; gap: 1.75rem; }
.footer a { text-decoration: none; color: rgba(247, 243, 235, .8); }
.footer a:hover { color: var(--gold); }

/* Rechtstexte ----------------------------------------------------------- */
.legal { padding: clamp(3rem, 8vw, 5.5rem) 0 var(--section); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); font-weight: 350; letter-spacing: -.03em; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--ink); }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 3rem 0 1rem; }
.legal p, .legal ul { color: var(--ink-2); margin: 0 0 1em; }
.legal a { color: var(--gold-text); }

/* Scroll-Animationen ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
