/* Monswyk AG – statische Webseite */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 200; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }

:root {
  --surface: #222222;
  --ink: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.45);
  --gutter: 64px;

  /* Hero-Animation (aus hero.html) */
  --duration: 26s;
  --zoom-from: 1;
  --zoom-to: 1.14;
  --pan-x: -2.5%;
  --pan-y: -1.5%;
  --cloud-duration: 46s;
  --cloud-drift: 2.2%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Sans", serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
}

body.theme-fixed {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.num { font-size: 14px; font-weight: 400; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero__zoom {
  position: absolute;
  inset: 0;
  transform: scale(var(--zoom-from));
  transform-origin: 52% 62%;
  animation: kenburns var(--duration) ease-in-out infinite alternate;
  will-change: transform;
}

.hero__img,
.hero__clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__clouds {
  animation: clouddrift var(--cloud-duration) ease-in-out infinite alternate;
  will-change: transform;
  -webkit-mask-image: url("assets/cloud-mask.png");
  mask-image: url("assets/cloud-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: luminance;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%);
  pointer-events: none;
}

@keyframes kenburns {
  from { transform: scale(var(--zoom-from)) translate(0, 0); }
  to   { transform: scale(var(--zoom-to)) translate(var(--pan-x), var(--pan-y)); }
}

@keyframes clouddrift {
  from { transform: scale(1.1) translateX(calc(-1 * var(--cloud-drift))); }
  to   { transform: scale(1.1) translateX(var(--cloud-drift)); }
}

/* ---------- Header ---------- */

.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px var(--gutter);
}

.header__logo img { display: block; width: 180px; height: auto; }

.nav { display: flex; gap: 40px; font-size: 14px; line-height: 1.5; font-weight: 400; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--ink); }

/* ---------- Hero-Inhalt ---------- */

.hero__content {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: calc(88px + 1cm);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: transparent;
  font-size: 13.33px;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  padding: 24px var(--gutter);
}

.legal a { font-weight: 400; color: inherit; }

/* Subpages: footer fixed to the bottom of the browser window */
body > .legal {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: rgba(34, 34, 34, 0.94);
  border-top: 1px solid var(--line);
}
body.theme-fixed:has(> .legal) { padding-bottom: 72px; }

.hero .legal {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  z-index: 2;
  padding: 0;
}

.claim {
  max-width: 14em;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.entry__label { display: flex; gap: 24px; align-items: baseline; }
.entry__name { font-size: 32px; }
.entry svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.25; }

/* ---------- Bereiche ---------- */

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.area {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 104px var(--gutter);
}
.area + .area { border-left: 1px solid var(--line); }

.area h2 { font-size: 64px; line-height: 1; font-weight: 200; letter-spacing: -0.015em; }

.area__lead { max-width: 30em; font-size: 18px; line-height: 28px; }

.area__list { list-style: none; font-size: 16px; line-height: 24px; }
.area__list strong { font-weight: 400; }
.area__list li { padding: 16px 0; border-top: 1px solid var(--line); }
.area__list li:last-child { border-bottom: 1px solid var(--line); }
.area__list--detailed li { padding: 24px 0; }
.area__item-text { margin-top: 8px; max-width: 40em; color: rgba(255, 255, 255, 0.75); }

.button {
  align-self: flex-start;
  padding: 8px 20px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 56px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13.33px;
  line-height: 1.3;
}

.footer__logo { display: block; width: 110px; height: auto; }
.footer__legal { display: flex; gap: 40px; align-items: center; }
.footer__legal a { font-weight: 400; }

.imprint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  line-height: 28px;
}

.imprint__ids {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-text { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 26px; }
.legal-text h2 { margin-top: 24px; font-size: 20px; line-height: 1.3; font-weight: 400; }
.legal-text a { text-decoration: underline; }
.legal-text code { font-family: inherit; font-weight: 400; }
.legal-text__date { margin-top: 24px; font-size: 13.33px; color: rgba(255, 255, 255, 0.6); }

.about__photo { display: block; width: 100%; height: auto; margin-top: 16px; }

/* ---------- Unterseiten ---------- */

.header--page {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.page {
  flex: 1 1 auto;
  padding: 104px var(--gutter) 48px;
}

.page__inner {
  max-width: 40em;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page h1 {
  font-size: 64px;
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.015em;
}

.dummy {
  color: rgba(255, 255, 255, 0.55);
}

.dummy-block {
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Mobil ---------- */

@media (max-width: 800px) {
  :root { --gutter: 16px; }

  .header { padding: 20px var(--gutter); }
  .header__logo img { width: 130px; }
  .nav { gap: 20px; }

  .hero__content { bottom: calc(72px + 1cm); gap: 40px; }
  .hero .legal { bottom: 16px; }
  .legal { gap: 12px; flex-wrap: wrap; }
  body > .legal { padding: 16px var(--gutter); }
  body.theme-fixed:has(> .legal) { padding-bottom: 96px; }
  .claim { letter-spacing: -0.015em; line-height: 1.05; }

  .entries { grid-template-columns: 1fr; gap: 0; }
  .entry { padding: 16px 0; }
  .entry__label { gap: 16px; }
  .entry__name { font-size: 24px; }
  .entry svg { width: 22px; height: 22px; }

  .areas { grid-template-columns: 1fr; }
  .area { padding: 64px var(--gutter); gap: 24px; }
  .area + .area { border-left: 0; border-top: 1px solid var(--line); }
  .area h2,
  .page h1 { font-size: 44px; }
  .page { padding: 64px var(--gutter) 32px; }
  .area__lead,
  .imprint { font-size: 16px; line-height: 24px; }
  .area__list li { padding: 14px 0; }
  .button { padding: 12px 20px; }

  .footer { flex-direction: column; align-items: flex-start; padding: 32px var(--gutter); }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__zoom   { animation: none; transform: scale(1.02); }
  .hero__clouds { animation: none; transform: scale(1.1); }
}

/* ---------- Cookie-Banner ---------- */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(34, 34, 34, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 25px;
  z-index: 1000;
  max-width: 90%;
  width: auto;
  text-align: center;
}

#cookie-banner p {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.5;
}

#cookie-banner button {
  background-color: #fff;
  color: #222;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s;
}

#cookie-banner button:hover {
  opacity: 0.8;
}
