/* =========================================================
   MAZHIQI.DE — reduzierte Kontaktseite
   Hintergrundfoto austauschen: background.jpg ersetzen.
   Empfehlenswert: Querformat, mindestens 2400 px breit.
   ========================================================= */

:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.24);
  --overlay-a: rgba(0, 0, 0, 0.58);
  --overlay-b: rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #111;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    clamp(24px, 6vw, 96px)
    max(28px, env(safe-area-inset-bottom));
}

.hero__background,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__background {
  z-index: -3;
  background:
    #202020
    url("background.jpg") center center / cover no-repeat;
  transform: scale(1.01);
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, var(--overlay-a) 0%, rgba(0,0,0,.38) 38%, var(--overlay-b) 100%),
    linear-gradient(0deg, rgba(0,0,0,.28), transparent 44%);
}

.contact {
  width: min(760px, 100%);
  margin-top: -2vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0 0 clamp(42px, 7vh, 76px);
  font-size: clamp(3.4rem, 8.2vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.contact__links {
  width: min(620px, 100%);
  border-top: 1px solid var(--line);
}

.contact__link {
  display: grid;
  grid-template-columns: minmax(82px, 0.34fr) 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    padding-left 180ms ease,
    padding-right 180ms ease;
}

.contact__label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__value {
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .contact__link:hover,
  .contact__link:focus-visible {
    padding-left: 14px;
    padding-right: 14px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
  }
}

.footer {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  right: clamp(24px, 6vw, 96px);
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .hero {
    align-items: flex-end;
    padding-bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
  }

  .hero__background {
    background-image: url("background-mobile.jpg");
    background-position: center center;
    background-size: cover;
  }

  .hero__overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.46) 54%, rgba(0,0,0,.18) 100%);
  }

  .contact {
    margin: 0;
  }

  h1 {
    margin-bottom: 34px;
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .contact__link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .contact__value {
    font-size: clamp(1.06rem, 4.9vw, 1.28rem);
  }

  .footer {
    justify-content: flex-start;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero {
    align-items: center;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 10vh, 5rem);
  }

  .contact__link {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact__link {
    transition: none;
  }
}


/* Rechtliche Links auf der Startseite */
.footer {
  gap: 22px;
  align-items: center;
}

.footer__nav {
  display: flex;
  gap: 16px;
}

.footer__nav a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Impressum / Datenschutz */
.legal-page {
  min-height: 100vh;
  background: #111;
  color: #f5f5f5;
}

.legal-shell {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 72px;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #fff;
}

.legal-header {
  margin-bottom: 56px;
}

.legal-kicker {
  margin: 0 0 14px;
  color: rgba(255,255,255,.55);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-title {
  max-width: none;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  margin: 48px 0 14px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul {
  margin: 12px 0 20px;
  padding-left: 20px;
}

.legal-content a {
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-meta {
  padding-top: 38px;
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.48);
  font-size: .78rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .footer {
    right: 24px;
    flex-wrap: wrap;
    gap: 9px 16px;
  }

  .footer__nav {
    gap: 14px;
  }

  .legal-shell {
    width: min(100% - 40px, 860px);
    padding-top: 32px;
  }

  .legal-back {
    margin-bottom: 52px;
  }

  .legal-header {
    margin-bottom: 42px;
  }

  .legal-content h2 {
    margin-top: 40px;
  }
}
