/* CRC – Controlling Rechnungswesen Consulting
   Keine externen Schriften/Dienste: alles lokal (DSGVO + strenge CSP). */
:root {
  --navy: #1f3f61;
  --blue: #2a6db0;
  --blue-soft: #e8f0f8;
  --ink: #1d2430;
  --muted: #5b6575;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Topbar + Header */
.topbar { background: var(--navy); color: #d7e2ee; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { width: 210px; }

.nav-toggle {
  display: none; font: inherit; font-weight: 600; background: var(--navy); color: #fff;
  border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: block; padding: 10px 11px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500;
}
.nav a:hover { background: var(--blue-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .logo img { width: 170px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(31,63,97,.15); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; } }

.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 44px; padding-bottom: 36px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* Sections */
section.block { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 46em; margin-bottom: 32px; }
.section-intro p { color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.card .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(31,63,97,.08); }

.service { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 16px; } }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.formula { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 0 8px 8px 0; font-weight: 600; color: var(--navy); }
.note { font-size: .9rem; color: var(--muted); }

aside.side { position: sticky; top: 100px; align-self: start; }
.side .box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.side h3 { font-size: 1.05rem; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li a { display: block; padding: 6px 0; text-decoration: none; }
.side li a[aria-current="page"] { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) { aside.side { position: static; } }

/* FAQ / details */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 20px 14px; color: var(--muted); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

.person { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.person img { border-radius: var(--radius); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-grid .card a { font-weight: 600; }
table.hours { border-collapse: collapse; }
table.hours th, table.hours td { text-align: left; padding: 3px 18px 3px 0; vertical-align: top; font-weight: normal; }
table.hours th { color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e4; margin-top: 0; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--sans); }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 2px 0; }
.site-footer address { font-style: normal; }
.site-footer table.hours th { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); }
.copyright .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; grid-template-columns: none; font-size: .88rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; } }

@media print {
  .topbar, .site-header, .site-footer, .btns { display: none; }
}
.rounded-img { border-radius: var(--radius); margin-top: 24px; }
.note.spaced { margin-top: 12px; }
@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; gap: 2px 16px; font-size: .82rem; }
}
@media (min-width: 1181px) {
  .nav ul { flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .logo img { width: 190px; }
}

/* Fristenblatt (Startseite) */
.blatt {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(31,63,97,.12); padding: 22px 24px; border-top: 4px solid var(--navy);
}
.blatt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.blatt h2 { font-size: 1.3rem; margin: 0; }
.blatt h2 .klein { display: block; font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 4px; }
.blaettern { display: flex; gap: 6px; }
.blaettern[hidden] { display: none; }
.blaettern button {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.blaettern button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); }
.blaettern button:disabled { opacity: .35; cursor: default; }
.fristen, .pflichten { list-style: none; margin: 0; padding: 0; }
.frist { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.frist:first-child { border-top: 0; }
.frist.vorbei { opacity: .5; }
.frist .tag {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.05;
  text-align: center; background: var(--blue-soft); border-radius: 8px; padding: 8px 4px; align-self: start;
}
.frist .tag small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.frist .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; margin-bottom: 4px; }
.frist .bis { font-weight: 700; color: var(--blue); }
.frist .verschoben { color: var(--muted); }
.pflichten li { font-size: .93rem; padding: 3px 0; line-height: 1.45; }
.ber {
  display: inline-block; font-size: .72rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--blue-soft); color: var(--navy); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px;
}
.ber:hover { background: var(--navy); color: #fff; }
.blatt-fuss { font-size: .78rem; color: var(--muted); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* Aktuelles */
.block.news { border-top: 1px solid var(--line); }
a.more { font-weight: 600; text-decoration: none; }
a.more::after { content: " →"; }
.alle { margin-top: 22px; }
.hinweis { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 28px 0; }
.hinweis .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.prose .hinweis h2 { margin: 0 0 8px; font-size: 1.25rem; }
.hinweis p { margin: 0 0 10px; }
.vergleich { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.vergleich th, .vergleich td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vergleich thead th { background: var(--bg-alt); color: var(--navy); font-size: .85rem; }
.vergleich td { white-space: nowrap; }
.vergleich td:last-child { font-weight: 600; color: var(--navy); }
@media (max-width: 520px) { .vergleich th, .vergleich td { padding: 8px 6px; } .vergleich td { white-space: normal; } }
