/* Robert Messing – Steuerberater
   Eigenständiges Stylesheet, keine externen Abhängigkeiten (keine CDNs, keine Webfonts).
   Farbschema der bisherigen Seite: Blau mit weißer Schrift, Hellgrün als Hover-Farbe. */

:root {
  --blue: #0a58ca;
  --blue-dark: #0b3a82;
  --green: #90ee90;
  --text: #1f2937;
  --text-muted: #6b7280;
  --line: #dde5f0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

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

h1, h2 { font-weight: 700; line-height: 1.2; color: var(--blue-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 8px 14px; border-radius: 6px;
  background: var(--blue); color: #fff;
}
.skip-link:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header :focus-visible { outline-color: var(--green); }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { height: 44px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.12rem; font-weight: 700; }
.brand-sub { font-size: .8rem; color: rgba(255, 255, 255, .8); letter-spacing: .03em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; font-size: .98rem; font-weight: 500; color: #fff; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blue); border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- Startseite ---------- */

.home { display: flex; align-items: center; background: var(--blue); }

.hero { flex: 1; padding: 56px 0 72px; color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero :focus-visible { outline-color: var(--green); }
.hero-title { margin: 0 0 24px; }
.hero-logo { width: 220px; }
.title-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin-bottom: 1.6em; }
.lead { font-size: 1.1rem; max-width: 36em; margin: 0; }

.card {
  padding: 28px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10, 40, 90, .06), 0 8px 24px rgba(10, 40, 90, .08);
}
.card :focus-visible { outline-color: var(--blue); }

.contact-card h2 { font-size: 1.25rem; margin-bottom: 1em; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.contact-list .label { display: block; font-size: .78rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .phone { font-size: 1.25rem; font-weight: 600; }

/* ---------- Rechtstexte ---------- */

.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal ul { padding-left: 1.2em; }
.legal .stand { margin-top: 2em; font-size: .9rem; color: var(--text-muted); }
.email-img { display: inline-block; vertical-align: middle; }

/* ---------- Fußzeile ---------- */

.site-footer { padding: 40px 0; font-size: .92rem; background: var(--blue); color: rgba(255, 255, 255, .85); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-note { margin: 0; }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0; }
  .card { padding: 22px; }
}

@media print {
  .site-header, .site-footer ul { display: none; }
}
