/* =========================================================
   Ackermann-IT · gemeinsames Stylesheet
   Verwendet von index.html und impressum.html
   ========================================================= */

:root {
  --bg: #fafaf8;
  --ink: #16202a;
  --muted: #5c6670;
  --blue: #24455e;
  --blue-ink: #16324a;
  --green: #4f8f75;
  --green-soft: #eaf3ee;
  --line: #e4e2dc;
  --line-strong: #d3d0c8;
  --paper: #ffffff;
  --max: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--blue-ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p { margin: 0; color: var(--muted); }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 0.9rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.header-nav a:hover { color: var(--blue-ink); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.header-phone:hover { background: var(--blue-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-ink); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--blue-ink);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--blue); }

/* ---------- Hero ---------- */

.hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  max-width: 18ch;
}

.hero-copy {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.02rem;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-hint {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-hint strong { color: var(--blue-ink); }

/* Fakten rechts im Hero */

.hero-facts {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: grid;
  gap: 20px;
  align-self: center;
}

.hero-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.hero-fact dd {
  margin: 0;
  font-weight: 650;
  color: var(--blue-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-fact dd span {
  display: block;
  font-weight: 450;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Abschnitte ---------- */

.section { padding: 44px 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 { font-size: 1.35rem; }

.section-head p { font-size: 0.9rem; max-width: 46ch; text-align: right; }

/* ---------- Leistungen ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  row-gap: 1px;
  column-gap: 1px;
}

.service {
  background: var(--paper);
  padding: 22px 24px;
}

.service h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex: 0 0 7px;
}

.service p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 650;
  border: 1px dashed var(--green);
  padding: 12px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-grid h2 { font-size: 1.35rem; }

.about-text {
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 60ch;
}

.about-text + .about-text { margin-top: 10px; }

.placeholder-hint {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #38664f;
  font-weight: 600;
  max-width: 60ch;
}

.area-line {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.area-line strong { color: var(--blue-ink); font-weight: 650; }

/* ---------- Kontakt ---------- */

.contact { padding: 44px 0 56px; }

.contact-box {
  background: var(--blue);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.contact-box h2 {
  color: #fff;
  font-size: 1.3rem;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  font-size: 0.92rem;
  max-width: 48ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-ink);
  font-weight: 750;
  font-size: 1.02rem;
  white-space: nowrap;
}

.contact-phone:hover { background: var(--green-soft); }

.contact-mail {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-mail a { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact-mail a:hover { border-bottom-color: #fff; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { font-weight: 600; color: var(--blue-ink); }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Impressum / Rechtsseiten ---------- */

.legal-main { padding: 44px 0 56px; }

.legal-main h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.legal-intro {
  margin-top: 10px;
  max-width: 60ch;
  font-size: 0.95rem;
}

.legal-sections {
  margin-top: 32px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.legal-section h2 {
  font-size: 0.95rem;
  color: var(--blue-ink);
}

.legal-section p,
.legal-section address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.legal-section a {
  color: var(--blue-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

.legal-section a:hover { border-bottom-color: var(--blue); }

.legal-back { margin-top: 28px; }

/* ---------- Fokus ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-facts {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 22px;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head p { text-align: left; }
  .services { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 140px 1fr; gap: 22px; }
  .legal-section { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .header-nav .nav-link { display: none; }
  .header-phone span.label { display: none; }
  .hero { padding: 36px 0 30px; }
  .hero-facts { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 180px; }
  .contact-box { padding: 26px 22px; }
  .contact-actions { width: 100%; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
