/* T.A.G. Bau GmbH – Baustellenseite
   Farbtokens direkt aus dem Logo (TAG-BAU_Logo_cmyk.png) gesampelt. */

:root {
  --ink:          #140B09;
  --ink-soft:     #17120F;
  --brick:        #89150D;
  --brick-deep:   #60100C;
  --orange:       #CD622A;
  --orange-lit:   #E07B3E;
  --sand:         #E8A57E;
  --cream:        #FBF9F7;
  --cream-dim:    rgba(251, 249, 247, 0.78);
  --line:         rgba(243, 229, 220, 0.22);
  --sans:         'Helvetica Neue', Helvetica, Arial, 'Segoe UI', system-ui, sans-serif;
  --mono:         ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cream); transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out; }
a:hover { color: var(--orange-lit); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--orange-lit); outline-offset: 3px; }

img { max-width: 100%; }
address { font-style: normal; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--brick);
  padding: 10px 16px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ── Startseite ─────────────────────────────────────────── */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.stage__bg { position: absolute; inset: 0; }
.stage__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stage__veil,
.stage__glow { position: absolute; inset: 0; pointer-events: none; }

.stage__veil {
  background: linear-gradient(140deg,
    rgba(96, 16, 12, 0.88) 0%,
    rgba(52, 14, 10, 0.84) 48%,
    rgba(20, 11, 9, 0.82) 74%,
    rgba(137, 21, 13, 0.72) 100%);
}
.stage__glow {
  background: radial-gradient(1200px 600px at 18% 30%, rgba(205, 98, 42, 0.16), transparent 65%);
}

.top {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 28px clamp(20px, 5vw, 48px);
}

.logo-plate {
  background: var(--cream);
  padding: 14px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.logo-plate img { display: block; width: clamp(150px, 20vw, 190px); height: auto; }

.top__tel {
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid rgba(243, 229, 220, 0.35);
  padding: 12px 22px; text-decoration: none; white-space: nowrap;
}
.top__tel:hover { border-color: var(--orange-lit); }

.hero {
  position: relative; flex: 1;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  padding: 32px clamp(20px, 5vw, 48px) 48px;
}

.hero__text {
  flex: 1 1 520px; max-width: 720px;
  display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px);
  animation: fadeUp .9s ease-out both;
}

.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--orange-lit); flex: none; }
.eyebrow span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sand);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 82px);
  line-height: 1.02; font-weight: 700; letter-spacing: -.025em;
  color: var(--cream); text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--orange-lit); }

.hero__lead {
  margin: 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.6;
  color: var(--cream-dim); max-width: 52ch; text-wrap: pretty;
}

.facts {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  max-width: 700px;
}
.facts > * {
  flex: 1 1 210px;
  background: rgba(20, 11, 9, 0.55);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none;
}
a.fact:hover { background: rgba(137, 21, 13, 0.55); color: var(--cream); }
.fact__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sand);
}
.fact__value { font-size: clamp(15px, 1.3vw, 16.5px); font-weight: 700; color: var(--cream); line-height: 1.4; }

/* Mosaik – 5 × 7 Fliesen, versetzt "verlegt" */
.mosaic {
  flex: 0 1 360px; height: 440px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 7px;
  animation: fadeUp .9s ease-out .15s both;
}
.mosaic i { display: block; animation: tileLay 10s infinite both; }

.foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 28px; flex-wrap: wrap;
  padding: 20px clamp(20px, 5vw, 48px) 26px;
  border-top: 1px solid rgba(243, 229, 220, 0.18);
}
.foot__copy { font-size: 13px; color: rgba(251, 249, 247, 0.55); }
.foot__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot__nav a { font-size: 13px; font-weight: 500; color: rgba(251, 249, 247, 0.75); text-decoration: none; }
.foot__nav a:hover { color: var(--orange-lit); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tileLay {
  0%   { opacity: 0; transform: translateY(12px); }
  5%   { opacity: 1; transform: none; }
  86%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* ── Rechtsseiten ───────────────────────────────────────── */

body.legal { background: var(--cream); color: #4A423D; font-size: 15px; line-height: 1.72; }
.topbar { height: 5px; background: var(--brick); }
.wrap { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vh, 60px) clamp(20px, 5vw, 40px) clamp(56px, 8vh, 96px); }

.legal a { color: var(--brick); }
.legal a:hover { color: var(--orange); }

.back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #7E7266; text-decoration: none; margin-bottom: clamp(24px, 4vh, 38px);
}
.back::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.back:hover { color: var(--orange); }

.legal .brand { display: block; width: 260px; height: auto; margin-bottom: 26px; }

.legal h1 {
  font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em; color: var(--brick); margin: 0 0 6px;
}
.legal .sub {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 clamp(26px, 4vh, 38px);
}
.legal h2 {
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; font-weight: 700;
  letter-spacing: -.01em; color: var(--brick); margin: clamp(32px, 5vh, 46px) 0 12px;
}
.legal h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin: 26px 0 8px;
}
.legal h4 { font-size: 15px; font-weight: 700; color: #3A322D; margin: 20px 0 6px; }
.legal p, .legal ul { margin: 0 0 14px; text-wrap: pretty; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 700; color: #3A322D; }
.legal address { font-style: normal; line-height: 1.72; }

.rule { height: 1px; background: rgba(137, 21, 13, .22); border: 0; margin: clamp(28px, 4vh, 44px) 0; }

.card {
  background: #fff;
  border: 1px solid rgba(137, 21, 13, .18);
  border-left: 3px solid var(--orange);
  padding: clamp(18px, 3vw, 26px);
  margin: 0 0 18px;
}
.card p:last-child, .card address:last-child { margin-bottom: 0; }

.todo {
  background: #FBE7D6; border-bottom: 1px dashed #B8632C;
  color: #7A3A18; font-weight: 700; padding: 1px 6px;
}

.shout { text-transform: uppercase; }

.legal footer {
  margin-top: clamp(40px, 6vh, 64px); padding-top: 22px;
  border-top: 1px solid rgba(137, 21, 13, .22);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.legal footer a {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #7E7266; text-decoration: none;
}
.legal footer a:hover { color: var(--orange); }
.legal footer span { color: rgba(137, 21, 13, .45); font-size: 11px; }

/* ── Fussleisten-Link "Cookie-Einstellungen" (oeffnet Usercentrics) ── */

.cc-reopen {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: inherit; text-decoration: none;
}
.foot__nav .cc-reopen { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(251, 249, 247, 0.75); }
.foot__nav .cc-reopen:hover { color: var(--orange-lit); }
.legal footer .cc-reopen { color: #7E7266; }
.legal footer .cc-reopen:hover { color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .mosaic { display: none; }
  .hero { padding-bottom: 36px; }
}

@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 16px; padding-top: 22px; }
  .top__tel { font-size: 15px; padding: 11px 18px; }
  .facts > * { flex: 1 1 100%; }
  .foot { justify-content: flex-start; }
  .foot__nav { gap: 8px 20px; }
  .foot__nav { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .mosaic i { opacity: 1 !important; }
}
