@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/Inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/Inter-700.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/SourceSerif4-600.woff2) format('woff2'); }

:root {
  --bg: #fbfbfa;
  --panel: #fff;
  --text: #1e2b33;
  --muted: #56636c;
  --accent: #E4B56E;
  --accent-hover: #d9a45a;
  --accent-ink: #7d4f0b;
  --line: #d9dde0;
  --radius: 6px;
  --max: 1040px;
  --measure: 40rem;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
/* one centred reading column; only the case page (two columns) uses the full width */
main { flex: 1; padding: 2rem 1rem 4rem; width: 100%; max-width: calc(var(--measure) + 2rem); margin: 0 auto; }
main:has(.case-grid) { max-width: var(--max); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1rem; }
p, li { max-width: var(--measure); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
main > .container { padding: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); z-index: 10; }
.skip-link:focus { top: .5rem; }

/* header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.logo img { display: block; height: 40px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.nav li { max-width: none; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--accent); }

/* footer */
.site-footer { background: var(--text); color: #d5dbdf; padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 2rem; }
.logo-inverted img { height: 30px; filter: brightness(0) invert(1); opacity: .9; }
.footer-address { font-style: normal; margin-top: 1rem; line-height: 1.6; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* Sections sit on the page and are separated by a rule; only forms and the case "document" get a box. */
.panel { padding: 2rem 0; border-top: 1px solid var(--line); }
.panel:first-child { border-top: 0; padding-top: 0; }
.lookup-page form, .kontakt-form, #kostenrechner, .case-grid .panel, .lookup-message {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.kontakt-form, #kostenrechner { margin-top: 1rem; }
.btn { display: inline-block; background: var(--accent); color: var(--text); border: 1px solid var(--accent); border-radius: var(--radius); padding: .7rem 1.3rem; font: 600 1rem/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text); }
.btn-small { padding: .45rem .9rem; font-size: .95rem; }
.btn-secondary { background: transparent; border-color: var(--text); }
.btn-secondary:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn-large { padding: .9rem 1.5rem; font-size: 1.05rem; }

/* Landing page */
.hero { padding: 1.5rem 0 2.5rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.1; max-width: 16ch; margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; color: var(--muted); }
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.cta-row .btn { text-align: center; }
.hero-phone { color: var(--muted); margin: 0; }
.hero-phone a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-phone a:hover { text-decoration: underline; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; display: grid; gap: 1.5rem 2.5rem; counter-reset: none; }
.step { max-width: none; }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }
.step-no { display: block; font: 600 2.25rem/1 var(--serif); color: var(--accent-ink); margin-bottom: .6rem; }
.checks { margin: 0; color: var(--muted); }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } .hero h1 { font-size: 2rem; } }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } .hero { padding: 3rem 0 3.5rem; } .hero h1 { font-size: 3.25rem; } }
.lookup-page form { max-width: 28rem; margin-bottom: 1rem; }

/* forms */
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #8b919a; border-radius: var(--radius); padding: .65rem .8rem; }
textarea { min-height: 8rem; resize: vertical; }
.field { margin-bottom: 1rem; }
.hint { color: var(--muted); font-size: .9rem; }
.error { color: #a4161a; font-weight: 600; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

/* utilities */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  .lookup-page form, .kontakt-form, #kostenrechner, .case-grid .panel, .lookup-message { padding: 2rem; }
  .logo img { height: 48px; }
}

/* lookup / case page */
.case-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.case-grid .panel { margin-bottom: 0; border-top: 1px solid var(--line); }
.case-list, .pay-details { margin: 0; }
.case-row, .pay-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.case-row dt, .pay-row dt { color: var(--muted); }
.case-row dd, .pay-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.case-total { font-size: 1.15rem; }
.status-badge { display: inline-block; background: #fdf2dc; border: 1px solid var(--accent); border-radius: var(--radius); padding: .1rem .75rem; font-weight: 600; font-size: .9rem; }
.giro-code { max-width: 240px; margin: 0 auto .5rem; }
.giro-code svg { width: 100%; height: auto; display: block; }
.pay-value { font-variant-numeric: tabular-nums; }
.pay-row .btn { margin-left: .5rem; }
.installment { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.installment p { margin: 0; }
.lookup-message { max-width: 640px; margin: 1rem auto; }
@media (min-width: 720px) {
  .case-grid { grid-template-columns: 3fr 2fr; }
}

/* Kostenrechner */
#kostenrechner { max-width: 640px; }
#kostenrechner input[type="number"] { max-width: 16rem; }
.kr-table { margin-bottom: 1rem; }
.kr-table caption { text-align: left; font-weight: 700; padding: .5rem 0; }
.kr-table th { font-weight: 400; }
.kr-amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-sum th, .kr-sum td { font-weight: 700; }
.kr-total { font-size: 1.15rem; }
.kr-source { font-size: .9rem; }
