/* MAS Technik, under-construction page.
   Dark theme only: the brand logo is light-on-slate, so the page uses the logo's own background. */

:root {
  --bg: #263032;            /* exact logo background */
  --line: rgba(230, 236, 238, 0.12);
  --text: #e8ecec;
  --muted: #a3adb0;         /* 5.9:1 on --bg */
  --accent: #c67743;        /* logo orange, used for fills */
  --accent-text: #e08c55;   /* lighter logo orange for small text, 5.2:1 on --bg */
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Avenir Next", Avenir, Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(230, 236, 238, 0.045), transparent 65%),
    var(--bg);
}

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

a { color: inherit; text-decoration-color: rgba(230, 236, 238, 0.35); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent-text); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }

/* ---------- page frame ---------- */

.page {
  min-height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(clamp(18px, 3vw, 36px), env(safe-area-inset-top))
    max(clamp(20px, 4vw, 56px), env(safe-area-inset-right))
    max(clamp(18px, 2.5vw, 28px), env(safe-area-inset-bottom))
    max(clamp(20px, 4vw, 56px), env(safe-area-inset-left));
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { width: clamp(180px, 28vw, 340px); }

.lang {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.no-js .lang { display: none; }

.lang button {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.1s;
}
.lang button:hover { color: var(--text); }
.lang button:active { transform: translateY(1px); }
.lang button[aria-pressed="true"] { background: rgba(230, 236, 238, 0.12); color: var(--text); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  grid-template-areas:
    "intro   visual"
    "contact contact";
  align-items: center;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: clamp(32px, 3.5vw, 48px);
  padding-block: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 36px);
}

.intro { grid-area: intro; }

.status {
  margin: 0;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0.55em 0 0;
  font-size: clamp(2rem, 1.3rem + 2.1vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  margin: 1.1em 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  text-wrap: pretty;
}

/* progress */

.progress { margin-top: clamp(28px, 4vw, 44px); max-width: 440px; }

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.progress-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(230, 236, 238, 0.1);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 90%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
}

/* photo */

.visual {
  grid-area: visual;
  margin: 0;
}
.visual img {
  width: 100%;
  aspect-ratio: 1200 / 946;
  object-fit: cover;
  border-radius: var(--radius);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  box-shadow: 0 40px 80px -40px rgba(12, 16, 17, 0.75);
}

/* contact */

.contact {
  grid-area: contact;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin: 0 0 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(24px, 4vw, 56px);
  margin: 0;
}

.contact dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.contact dd {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.contact a { display: inline-block; padding-block: 2px; }
.contact address { font-style: normal; line-height: 1.5; }
.contact .address { text-decoration: none; }
.contact .address:hover address { text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: 0.2em; }

/* footer */

.foot {
  color: var(--muted);
  font-size: 0.8125rem;
}
.foot p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "visual"
      "contact";
    align-items: start;
  }
  .progress { max-width: none; }
  .contact dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact dl > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 559px) {
  .top { gap: 12px; }
  .brand img { width: min(190px, 52vw); }
  .hero { padding-top: 28px; row-gap: 32px; }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (pointer: coarse) {
  .lang button { height: 40px; min-width: 44px; }
}

/* ---------- motion (entrance + progress fill), skipped for reduced motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }
  .js .progress-fill {
    animation: fill 1.6s var(--ease) 0.6s both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes fill {
  from { transform: scaleX(0); }
}
