/* AHI Beratungs GmbH — CI: HKS 62 N (Gruen), HKS 96 N (Grau), Rahmengrau aus dem Logo */
:root {
  --gruen: #696A19;
  --gruen-dunkel: #54550f;
  --grau: #838678;
  --grau-text: #6F7266; /* abgedunkeltes CI-Grau, erfuellt AA-Kontrast fuer Kleintext */
  --linie: #A7A5A6;
  --text: #3E3E3C;
  --grund: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: "Segoe UI", Frutiger, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }
a:focus-visible {
  outline: 2px solid var(--gruen);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gruen);
  color: #fff;
  padding: .5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 10; }

/* ---------- Startseite ---------- */

.karte {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  padding: clamp(2rem, 8vh, 5rem) 1.25rem;
  width: 100%;
}

.logo {
  width: clamp(250px, 55vw, 440px);
  display: block;
}

.claim {
  align-self: stretch;
  min-width: 0;
  background: var(--gruen);
  color: #fff;
  text-align: center;
  padding: .95rem 1rem;
  margin: 0;
  font-size: clamp(.78rem, 2.3vw, 1rem);
  font-weight: 600;
  letter-spacing: .28em;
}
.claim > span { margin-inline-end: -.28em; }

@media (max-width: 420px) {
  .claim { letter-spacing: .15em; }
  .claim > span { margin-inline-end: -.15em; }
}

.anschrift {
  font-style: normal;
  text-align: center;
  color: var(--gruen);
  line-height: 1.8;
}
.anschrift .firma { font-weight: 600; }

/* ---------- Rechtsseiten ---------- */

.topbar {
  border-bottom: 1px solid var(--linie);
}
.topbar-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .logo-klein {
  width: 150px;
  display: block;
}
.topbar a.zurueck {
  font-size: .9rem;
  color: var(--grau-text);
  text-decoration: none;
}
.topbar a.zurueck:hover { color: var(--gruen); }

.rechtsseite {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.rechtsseite h1 {
  color: var(--gruen);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 1rem 0 2rem;
}
.rechtsseite h2 {
  color: var(--gruen);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 2rem 0 .4rem;
}
.rechtsseite p { margin: 0 0 1rem; }

/* ---------- Fusszeile ---------- */

.footer {
  border-top: 1px solid var(--linie);
  padding: 1.1rem 1.25rem;
}
.footer-links {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.75rem;
  font-size: .85rem;
  color: var(--grau-text);
}
.footer-links a {
  color: var(--grau-text);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current] { color: var(--gruen); }

@media print {
  .footer, .topbar { border-color: #000; }
}
