/* MGM Montage und Ausbau – Web-Visitenkarte */
:root {
  --gold: #b18d41;        /* Logo-Gold, für Flächen & große Schrift */
  --gold-dark: #7d6127;   /* Gold für kleine Schrift (Kontrast AA auf Weiß/Creme) */
  --ink: #231f20;
  --ink-soft: #4f4c4d;
  --cream: #eee4ce;
  --paper: #f7f4ee;
  --white: #fff;
  --radius: 14px;
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Karte ---------- */
.wrap {
  width: min(100% - 2rem, 34rem);
  margin: 1.5rem auto 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 30px rgba(35, 31, 32, .08);
}

/* Vorderseite */
.front { padding: 2.75rem 0 2rem; text-align: center; }

.logo { width: min(72%, 300px); margin: 0 auto; }

.namebar {
  margin: 2rem 0 0;
  padding: .7rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

.tagline {
  margin: 1.1rem 1.5rem 0;
  font-size: 1.125rem;
  color: var(--ink);
}

/* Aktionen */
.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  padding: 0 1.5rem 2rem;
  margin: 0;
  list-style: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Leistungen */
.services-head {
  margin: 0;
  padding: 1.15rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding-left: calc(1.5rem + .32em); /* optischer Ausgleich Laufweite */
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.75rem;
  margin: 0;
  padding: 1.75rem 1.5rem 2rem;
  list-style: none;
}

.services h3 {
  display: inline-block;
  margin: 0 0 .35rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.services p { margin: 0; color: var(--ink-soft); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
}

.contact address { font-style: normal; }

.contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  margin: 0;
  align-items: baseline;
}
.contact dt {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact dd { margin: 0; }
.contact dd a { color: var(--ink); text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.contact .tel { font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; }

.mark { width: 7.5rem; justify-self: end; grid-row: span 2; }

/* Footer */
.site-footer {
  padding: 1.5rem 1rem 0;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
}
.site-footer nav ul {
  display: flex; justify-content: center; gap: 1.5rem;
  margin: 0 0 .5rem; padding: 0; list-style: none;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-footer p { margin: 0; }

/* ---------- Rechtstexte ---------- */
.legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 3px solid var(--gold);
}
.legal-top .logo { width: 9rem; margin: 0; }
.legal-top .back { font-weight: 600; white-space: nowrap; }

.legal {
  padding: 1.5rem 1.5rem 2.25rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal h1 { margin: .25rem 0 1rem; font-size: 1.85rem; line-height: 1.2; }
.legal h2 { margin: 1.75rem 0 .4rem; font-size: 1.2rem; line-height: 1.3; }
.legal h3 { margin: 1.5rem 0 .35rem; font-size: 1.1rem; line-height: 1.35; }
.legal h4 { margin: 1.1rem 0 .3rem; font-size: 1rem; line-height: 1.4; color: var(--ink-soft); }
.legal p, .legal ul, .legal ol { margin: 0 0 .9rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }

.placeholder {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .actions { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .mark { justify-self: start; grid-row: auto; width: 6rem; }
  .services-head { letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  body { background: var(--white); }
  .card { box-shadow: none; }
  .actions, .skip-link { display: none; }
}
