/* IGM Unternehmensgruppe, Übergangsseite "Im Aufbau" (Stand 2026-11-02) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1a18;
  --ink-2: #252321;
  --paper: #f4f2ee;
  --paper-2: #e9e5de;
  --text-dark: #f4f2ee;
  --muted-dark: #a9a49c;
  --muted-light: #6b665f;
  --line-dark: rgba(244, 242, 238, 0.14);
  --line-light: rgba(27, 26, 24, 0.14);
  --sand: #c4a97a;
  --sand-dark: #8a6f45;
  --gutter: clamp(20px, 5vw, 72px);
}

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

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

body {
  margin: 0;
  font-family: "Archivo", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sand); }
a:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.wide {
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* Kopfzeile */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
}
.top .logo { width: clamp(190px, 22vw, 260px); color: var(--text-dark); }
.top .logo img, .top .logo svg { width: 100%; height: auto; }
.top .meta { font-size: 12px; color: var(--muted-dark); }

/* Startbereich */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px var(--gutter) 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 12px;
  color: var(--sand);
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--sand);
}
h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.lead {
  margin: 0 0 44px;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--muted-dark);
}
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  max-width: 34em;
}
.contact dt { font-size: 11px; color: var(--muted-dark); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 17px; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact a:hover { border-color: var(--sand); }

.hero-media { position: relative; overflow: hidden; background: var(--ink-2); }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.2) contrast(1.04) brightness(0.92);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 26, 24, 0.55) 0%, rgba(27, 26, 24, 0) 28%);
  pointer-events: none;
}
.hero-media figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  font-size: 11px;
  color: rgba(244, 242, 238, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Vollbild mit Bauschild */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.stage-bg, .stage-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-bg img { object-fit: cover; object-position: 50% 50%; filter: grayscale(0.15) contrast(1.03) brightness(0.82); }
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 26, 24, 0.85) 0%, rgba(27, 26, 24, 0.55) 40%, rgba(27, 26, 24, 0.1) 75%),
    linear-gradient(180deg, rgba(27, 26, 24, 0.65) 0%, rgba(27, 26, 24, 0) 28%, rgba(27, 26, 24, 0) 60%, rgba(27, 26, 24, 0.85) 100%);
}
.stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px 72px;
  align-items: end;
  padding: 160px var(--gutter) clamp(56px, 8vw, 104px);
}
.stage h1 { max-width: 11ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3); }
.stage .lead { margin: 0; color: rgba(244, 242, 238, 0.86); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.stage-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  z-index: 1;
  font-size: 11px;
  color: rgba(244, 242, 238, 0.6);
}

.bauschild {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border-top: 6px solid var(--sand);
}
.bauschild-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--text-dark);
  font-size: 13px;
}
.bauschild-head img { width: 44px; height: auto; filter: invert(1) brightness(1.9); }
.bauschild dl { margin: 0; padding: 6px 22px 12px; }
.bauschild dl > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.bauschild dl > div:last-child { border-bottom: 0; }
.bauschild dt { font-size: 10px; color: var(--muted-light); padding-top: 4px; }
.bauschild dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.bauschild a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.bauschild a:hover { color: var(--sand-dark); }

/* Gesellschaften */
.group {
  padding: 96px var(--gutter) 80px;
  background: var(--paper);
  color: var(--ink);
}
.group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.group-head .eyebrow { color: var(--sand-dark); margin-bottom: 18px; }
.group-head .eyebrow::before { background: var(--sand-dark); }
.group h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.group-head p { margin: 0; color: var(--muted-light); max-width: 38em; }
.companies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}
.companies li {
  padding: 22px 24px 26px 0;
  border-bottom: 1px solid var(--line-light);
}
.companies strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.companies span { font-size: 15px; color: var(--muted-light); }

/* Bildleiste */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: var(--paper);
}
.strip figure { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.03);
  transition: transform 0.8s ease;
}
.strip figure:hover img { transform: scale(1.03); }
.strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* Fußzeile */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--gutter);
  font-size: 14px;
  color: var(--muted-dark);
  background: var(--ink);
}
.foot nav { display: flex; gap: 28px; }
.foot a { text-decoration: none; }

/* Rechtstexte */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-page .top { position: static; background: var(--ink); }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
}
.legal h1 { font-size: clamp(34px, 4vw, 52px); max-width: none; margin-bottom: 40px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 44px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 26px 0 6px; }
.legal p, .legal li { color: #3a3733; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; }
.legal .back { display: inline-block; margin-bottom: 36px; font-size: 14px; color: var(--muted-light); text-decoration: none; }
.legal .back:hover { color: var(--sand-dark); }
.legal .small { font-size: 14px; color: var(--muted-light); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.legal th { font-weight: 600; }

/* Mobil */
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: 1fr; padding-top: 128px; }
  .stage-caption { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 52vh; min-height: 320px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(27, 26, 24, 0.55) 0%, rgba(27, 26, 24, 0) 30%, rgba(27, 26, 24, 0) 70%, rgba(27, 26, 24, 0.9) 100%); }
  .hero-text { padding: 40px var(--gutter) 64px; }
  .top { padding: 20px var(--gutter); }
  .top .meta { display: none; }
  .group-head { grid-template-columns: 1fr; gap: 16px; }
  .companies { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bauschild dl > div { grid-template-columns: 1fr; gap: 2px; }
  .bauschild dd { font-size: 15px; }
  .contact { grid-template-columns: 1fr; }
  .companies { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal th { padding-bottom: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .strip img { transition: none; }
}
