/* ============================================
   IT-Lehnstedt — it-lehnstedt.de
   Norddeutsch-editorial: Papier, Petrol, Leuchtturm-Orange
   Keine externen Ressourcen (DSGVO-sicher, keine Cookies)
   ============================================ */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe9dc;
  --ink: #12313b;
  --ink-soft: #3d5560;
  --accent: #e4572e;
  --accent-deep: #c74522;
  --sea: #20635a;
  --line: #d9d0bf;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Segoe UI", "Avenir Next", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Feine Papierstruktur im Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(18, 49, 59, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

main, header.site-header, footer.site-footer { position: relative; z-index: 1; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo .dot {
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-0.05em);
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { color: var(--accent-deep); }

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

/* ---------- Held-Bereich (Startseite) ---------- */

.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero .moin {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4.5rem, 13vw, 9rem);
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 38rem;
  margin-top: 1.2rem;
}

.hero .sub {
  margin-top: 1.2rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--line);
}

.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

/* ---------- Wellen-Trenner ---------- */

.wave {
  display: block;
  width: 100%;
  height: 2.2rem;
  color: var(--ink);
}

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

.section { padding: 4rem 0; }

.section-deep {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.8rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  margin-right: 0.7rem;
  vertical-align: middle;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.section p + p { margin-top: 1rem; }

.prose { max-width: 44rem; }

.prose ul { margin: 1rem 0 1rem 1.3rem; }
.prose li + li { margin-top: 0.4rem; }

/* ---------- Leistungs-Karten ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(18, 49, 59, 0.16);
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(228, 87, 46, 0.35);
}

.card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.card svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  color: var(--sea);
}

.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card .card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.95rem;
}

.card .card-link:hover { text-decoration: underline; }

/* ---------- Region-Band ---------- */

.region-band {
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
}

.region-band .places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  list-style: none;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.region-band .places li::before {
  content: "⚓";
  font-style: normal;
  margin-right: 0.45rem;
  color: var(--accent);
  font-size: 0.85em;
}

/* ---------- Zweispalter ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Zitat / Referenzkasten ---------- */

.ref-box {
  border-left: 6px solid var(--accent);
  background: var(--paper-deep);
  padding: 1.6rem 1.8rem;
  margin-top: 1.6rem;
  max-width: 44rem;
}

.ref-box .ref-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.ref-box p { color: var(--ink-soft); }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.contact-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 rgba(18, 49, 59, 0.14);
}

.contact-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover { color: var(--accent-deep); }

.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(rgba(246, 242, 234, 0.6), rgba(246, 242, 234, 0.6)),
    repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(32, 99, 90, 0.06) 14px, rgba(32, 99, 90, 0.06) 16px);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-head .sub {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.1rem;
}

/* ---------- Leistungs-Detailblöcke ---------- */

.service-block {
  padding: 3rem 0;
  border-bottom: 2px dashed var(--line);
}

.service-block:last-of-type { border-bottom: none; }

.service-block .num-big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
}

.service-block h2 { margin-top: 0.5rem; }

/* ---------- CTA-Band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0;
}

.cta-band h2 { color: #fff; }

.cta-band p { color: rgba(246, 242, 234, 0.75); max-width: 36rem; }

.cta-band .btn-primary { border-color: var(--accent-deep); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45); }

.cta-band .hero-actions { margin-top: 1.8rem; }

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

.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 234, 0.82);
  border-top: 6px solid var(--accent);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
}

.site-footer .logo { color: #fff; font-size: 1.2rem; }

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.55);
  margin-bottom: 0.7rem;
}

.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }

.site-footer a { color: rgba(246, 242, 234, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .fine {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(246, 242, 234, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(246, 242, 234, 0.55);
}

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

.legal h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.4rem; }
.legal address { font-style: normal; }

/* ---------- Einblend-Animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s ease forwards;
  }
  .rise:nth-child(2) { animation-delay: 0.08s; }
  .rise:nth-child(3) { animation-delay: 0.16s; }
  .rise:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Mobil ---------- */

@media (max-width: 46rem) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    display: none;
    padding: 1rem 1.25rem 1.4rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero { padding: 3.2rem 0 2.8rem; }
  .section { padding: 2.8rem 0; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
}
