:root {
  --ink: #141415;
  --ink-2: #1c1c1e;
  --paper: #f3efe8;
  --muted: #a39d94;
  --line: rgba(243, 239, 232, 0.12);
  --red: #a50c24;
  --red-light: #d23a4f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Feines Planraster im Hintergrund, wie Millimeterpapier am Reißbrett */
body::before {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

a { color: var(--paper); text-decoration-color: var(--red-light); text-underline-offset: 4px; }
a:hover { color: var(--red-light); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Kopfzeile */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.top img { display: block; width: 168px; height: auto; }
.top nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-left: 28px;
}
.top nav a:hover { color: var(--paper); }

/* Startbereich */
.hero {
  position: relative;
  padding-top: clamp(64px, 14vh, 160px);
  padding-bottom: clamp(72px, 14vh, 150px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.kicker::before { content: ""; width: 44px; height: 2px; background: var(--red); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 11ch;
}
h1 em { font-style: italic; color: var(--red-light); }

.hero .lead {
  max-width: 34rem;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.badge {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(72px, 14vh, 150px);
  text-align: right;
  font-family: var(--serif);
  line-height: 1;
}
.badge b { display: block; font-weight: 400; font-size: clamp(4rem, 10vw, 7.5rem); color: var(--red); }
.badge span { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Leistungen */
section { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 72px; }
.label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 40px;
}
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.services li {
  padding: 28px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.services li:nth-child(-n+3) { border-top: 1px solid var(--line); }
.services li:hover { background: var(--ink-2); }
.services .no { font-family: var(--serif); color: var(--red-light); font-size: 0.95rem; }
.services h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 14px 0 6px; }
.services p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Zitat */
.quote { display: grid; grid-template-columns: 2px 1fr; gap: 32px; max-width: 52rem; }
.quote::before { content: ""; background: var(--red); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; margin: 0 0 14px; }
.quote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; }
.contact dt { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact dd { margin: 0; font-size: 1.1rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--red); }

/* Rechtstexte */
.legal { padding-top: 56px; padding-bottom: 88px; max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 4rem); max-width: none; margin-bottom: 40px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 40px 0 10px; color: var(--paper); }
.legal p { color: #d6d1c8; margin: 0 0 14px; }
.legal .stand { color: var(--muted); margin-top: 40px; font-size: 0.9rem; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 36px; font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; margin-left: 24px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--paper); }

/* Einstieg: ruhiges, gestaffeltes Einblenden */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.25s; } .d3 { animation-delay: 0.4s; } .d4 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services li:nth-child(3) { border-top: 0; }
  .contact { grid-template-columns: 1fr; }
  .badge { position: static; text-align: left; margin-top: 48px; }
}

@media (max-width: 560px) {
  .top img { width: 132px; }
  .top nav a { margin-left: 16px; letter-spacing: 0.1em; }
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(2) { border-top: 0; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 14px; }
}

/* Kontaktdaten als Bild (Schutz vor Adress-Sammlern) */
.contact-img img { display: block; width: 280px; max-width: 100%; height: auto; }
.contact-img p { margin: 18px 0 0; font-size: 0.85rem; }
.contact-img p a { color: var(--muted); }

/* Leistungsbeschreibungen */
.services .tag { color: var(--red-light); font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 12px; }
.services p { line-height: 1.6; }
h2.label { font-family: var(--sans); font-weight: 400; }

/* Über uns */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.about-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0 0 20px; }
.about-text p { color: #d6d1c8; margin: 0 0 16px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }


/* ---------- Kleine Bildschirme und ältere Geräte ---------- */
/* Ältere Safari-Versionen kennen "gap" bei Flexbox nicht: Abstände per Margin. */
.kicker::before { margin-right: 14px; }
.kicker { gap: 0; }

@media (max-width: 600px) {
  body { font-size: 18px; line-height: 1.6; }
  :root { --muted: #c2bcb2; }

  .top { flex-direction: column; align-items: flex-start; padding-top: 20px; padding-bottom: 8px; }
  .top img { width: 150px; }
  .top nav { display: flex; width: 100%; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .top nav a {
    flex: 1 1 auto;
    margin: 0;
    padding: 14px 4px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--paper);
  }
  .top nav a + a { border-left: 1px solid var(--line); }

  .hero { padding-top: 40px; padding-bottom: 56px; }
  .kicker { font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 20px; }
  .kicker::before { width: 28px; }
  h1 { font-size: 2.6rem; }
  .hero .lead { font-size: 1.1rem; margin-top: 24px; }
  .badge { margin-top: 36px; }
  .badge b { font-size: 3.6rem; }
  .badge span { font-size: 0.85rem; }

  section { padding-top: 48px; padding-bottom: 48px; }
  .label { font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 24px; }
  .services li { padding: 22px 18px 26px; }
  .services h3 { font-size: 1.35rem; }
  .services .tag { font-size: 0.95rem; }
  .services p { font-size: 1rem; }

  .about { gap: 32px; }
  .quote { gap: 18px; }
  .about-text p { font-size: 1rem; }

  .contact { gap: 24px; }
  .contact-img img { width: 100%; max-width: 360px; }
  .contact-img p { font-size: 1rem; }
  .contact-img p a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--red-light); padding: 8px 0; display: inline-block; }

  .legal { padding-top: 28px; }
  .legal p { font-size: 1.05rem; }
  .legal a { word-break: break-word; }

  footer .wrap { flex-direction: column; font-size: 1rem; }
  footer .wrap > span + span { margin-top: 10px; }
  footer a { display: inline-block; padding: 8px 0; margin-left: 0; margin-right: 24px; color: var(--paper); }
}

@media (max-width: 360px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 2.25rem; }
  .top nav a { font-size: 15px; padding: 14px 2px; }
}
