/* Basis und gemeinsame Elemente */
html { scroll-padding-top: 6rem; }
body { margin: 0; background: #f7f8fa; color: #233348; font: 1rem/1.55 Arial, sans-serif; }
*, ::before, ::after { box-sizing: border-box; }
a { color: #054682; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #b76614; outline-offset: 5px; }
h1, h2, h3, dt { color: #102e50; }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 1rem; }
h2 { margin: 0 0 1.2rem; max-width: 780px; font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; }
h3 { margin: 1rem 0 .65rem; font-size: 1.15rem; line-height: 1.35; }
dt, .text-link { font-weight: 700; }
dd, .service-card p, .project-card p { margin: 0; color: #526277; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 5; background: #f7f8fa; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: .9rem; border-bottom: 1px solid #d9e0e8; }
.brand { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.brand span { display: block; font-size: .78rem; font-weight: 400; color: #526277; }
nav, .hero-actions, .focus-list, .site-footer { display: flex; flex-wrap: wrap; }
nav { gap: 1.3rem; }
nav a { color: #233348; font-size: .9rem; text-decoration: none; padding-block: .4rem; }
.site-header nav a { text-decoration: underline; }
nav a[aria-current],
body:has(#leistungen:target) .site-header nav a[href="#leistungen"],
body:has(#fachgebiete:target) .site-header nav a[href="#fachgebiete"],
body:has(#kontakt:target) .site-header nav a[href="#kontakt"] { color: #054682; font-weight: 700; text-decoration: none; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .75rem 1rem; background: white; z-index: 10; }
.skip-link:focus { top: 1rem; }
.eyebrow { color: #054682; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .65rem; }
.hero { padding: 1.5rem 0 1.75rem; }
.intro { max-width: 720px; font-size: 1.05rem; color: #526277; }
.hero-actions { align-items: center; gap: 1.25rem; margin-block: 1.25rem; }
.button { display: inline-flex; align-items: center; gap: 1.2rem; padding: .65rem 1.1rem; border-radius: 6px; background: #054682; color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #09365e; }
.arrow { width: .85em; height: .85em; flex: none; vertical-align: -.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.focus-list { gap: .6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.focus-list li { margin: 0; background: #e8eef5; border-radius: 4px; padding: .35rem .8rem; font-size: .85rem; }
.content-section, .legal-section, .site-footer { border-top: 1px solid #d9e0e8; }
.content-section { padding-block: 1.75rem; }
.service-grid, .project-grid, .legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card, .legal-card { background: white; border: 1px solid #d9e0e8; border-radius: 8px; padding: 1.7rem; }
.service-card { padding: 1.1rem; }
.expertise-list { margin: 0; }
.expertise-list div { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding-block: .8rem; border-bottom: 1px solid #d9e0e8; }
.project-grid { gap: 1.5rem; }
.project-card { border-left: 3px solid #054682; padding-left: 1.5rem; }
.project-card h3, .service-card h3 { margin-top: 0; }
.legal-card h2 { margin: 0 0 .65rem; font-size: 1.15rem; line-height: 1.35; letter-spacing: normal; }
.project-card a { display: inline-block; margin-top: 1rem; font-weight: 700; }
.contact-section { background: #102e50; color: white; border-radius: 10px; padding: 1.25rem 1.5rem; margin-block: .5rem 1.5rem; }
.contact-section .eyebrow { color: #b7d7f6; }
.contact-section h2 { color: white; margin-bottom: .5rem; font-size: 1.3rem; }
.contact-section p { max-width: 650px; margin: 0 0 .75rem; }
.contact-email { color: white; font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 700; overflow-wrap: anywhere; }
.site-footer { justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-size: .85rem; }
.site-footer p { margin: .4rem 0; }
/* Beim Sprung zu #kontakt Platz schaffen, damit die Box oben unter dem Header landet */
body:has(#kontakt:target) .site-footer { min-height: calc(100vh - 16rem); align-content: flex-start; }

/* Impressum */
.legal-hero { padding-block: 4rem 3rem; }
.legal-grid, .legal-copy { margin-bottom: 3.5rem; }
.legal-card, .legal-section { overflow-wrap: anywhere; }
.legal-card p { margin-bottom: 0; }
address { font-style: normal; }
.legal-copy { max-width: 800px; }
.legal-section { padding-block: 2.5rem .5rem; }
.legal-section h2 { margin-bottom: 1.4rem; }
.legal-section h3 { margin-top: 1.8rem; }

@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Handyansicht */
@media (max-width: 720px) {
  .site-header, main, .site-footer { width: calc(100% - 2rem); }
  html { scroll-padding-top: 8rem; }
  .site-header { align-items: flex-start; flex-direction: column; gap: .3rem; padding-block: .65rem; }
  nav { gap: .4rem 1.1rem; }
  .hero { padding-block: 1.25rem 1.5rem; }
  .service-grid, .project-grid, .legal-grid { grid-template-columns: 1fr; }
  .expertise-list div { grid-template-columns: 1fr; gap: .4rem; }
  .content-section { padding-block: 1.5rem; }
  .contact-section { padding: 1rem 1.25rem; }
  .legal-hero { padding-block: 3rem 2rem; }
  .legal-grid { margin-bottom: 2.5rem; }
  .legal-card { padding: 1.5rem; }
}

@media (max-width: 22.25em) {
  html { scroll-padding-top: 11rem; }
}
