/* =============================================================
   Franz-Josef Luchner – luchner.co.at
   Design & Entwicklung: Raphael Gwiggner, MSc · raurus.eu
   ============================================================= */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #1a0e0e;
  color: #f0ece2;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Hero wrapper ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 6vw 56px;
  overflow: hidden;
}

/* ── Background photo mosaic ── */
.bg-photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
}

.bg-photos .bg-tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.75) brightness(0.78);
  transition: filter 0.7s ease;
  will-change: filter;
  transform: translateZ(0);
  isolation: isolate;
}

.bg-photos .bg-tile--light {
  background-color: #ebe9e4;
  background-image: none !important;
  filter: none;
  position: relative;
  z-index: 1;
}

.bg-photos .bg-tile--light:hover {
  filter: none;
}

/* Verdeckt nur die Trennlinie zwischen Tile 1 und 4 */
.bg-photos .bg-tile--light:nth-child(4)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 3px;
  background-color: #ebe9e4;
}

.bg-photos .bg-tile:hover {
  filter: saturate(1) brightness(1);
}

/* Fotoflächen (ohne linke helle Paneele) — hellerer Grund */
.bg-photos .bg-tile:nth-child(2),
.bg-photos .bg-tile:nth-child(3),
.bg-photos .bg-tile:nth-child(5),
.bg-photos .bg-tile:nth-child(6) {
  filter: saturate(0.85) brightness(0.92);
}

.bg-photos .bg-tile:nth-child(2):hover,
.bg-photos .bg-tile:nth-child(3):hover,
.bg-photos .bg-tile:nth-child(5):hover,
.bg-photos .bg-tile:nth-child(6):hover {
  filter: saturate(1) brightness(1.05);
}

/* ── Gradient overlay (links über hellem Panel nur leicht abdunkeln) ── */
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    rgba(235, 233, 228, 0.12)  0%,
    rgba(235, 233, 228, 0.08) 28%,
    rgba(26, 14, 14, 0.42) 48%,
    rgba(26, 14, 14, 0.18) 76%,
    rgba(26, 14, 14, 0.06) 100%
  );
}

/* ── Content block ── */
.content {
  position: relative;
  z-index: 10;
  max-width: 540px;
  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}

/* ── Logo ── */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.8vh, 34px);
}

.logo-block img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.logo-text {
  line-height: 1.25;
}

.logo-text .lname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 4.4vw, 48px);
  letter-spacing: 0.06em;
  color: #1f1a1a;
  line-height: 0.95;
}

.logo-text .ltag {
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cc1a1a;
}

/* ── Services tagline ── */
.services {
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a2222;
  margin-bottom: clamp(20px, 3.5vh, 44px);
  line-height: 1.9;
  border-left: 2px solid #cc1a1a;
  padding-left: 14px;
}

/* Nur für Screenreader / SEO (kein sichtbarer H1 mehr) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Divider ── */
.divider {
  width: 52px;
  height: 2px;
  background-color: #cc1a1a;
  margin: clamp(16px, 2.5vh, 28px) 0;
}

/* ── Contact list ── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-label {
  font-family: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cc1a1a;
  min-width: 72px;
  padding-top: 2px;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}

.contact-value {
  font-size: 15px;
  color: #2a2222;
  line-height: 1.55;
  padding-top: 1px;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 34, 34, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-value a:hover {
  color: #cc1a1a;
  border-color: #cc1a1a;
}

/* ── Site footer (Startseite: fixiert) ── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0));
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.45);
  background: linear-gradient(to top, rgba(26, 14, 14, 0.85), rgba(26, 14, 14, 0));
  pointer-events: none;
}

.site-footer a {
  pointer-events: auto;
  color: rgba(240, 236, 226, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 236, 226, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
  color: #f0ece2;
  border-color: rgba(240, 236, 226, 0.45);
}

.site-footer__sep {
  opacity: 0.5;
}

/* Impressum-Seite: Footer im Dokumentfluss */
.site-footer--static {
  position: static;
  pointer-events: auto;
  background: #1a0e0e;
  color: rgba(240, 236, 226, 0.55);
  justify-content: center;
  margin-top: auto;
}

.site-footer--static a {
  color: rgba(240, 236, 226, 0.75);
}

/* ── Impressum / Rechtstext ── */
.page-legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ebe9e4;
  color: #2a2222;
}

.legal-header {
  padding: 20px 6vw 0;
}

.legal-back {
  font-size: 13px;
  color: #cc1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 26, 26, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-back:hover {
  color: #a31414;
  border-color: #a31414;
}

.legal-main {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 6vw 48px;
}

.legal-main h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 48px);
  letter-spacing: 0.04em;
  color: #1f1a1a;
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cc1a1a;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section a {
  color: #cc1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 26, 26, 0.35);
}

.legal-section a:hover {
  color: #a31414;
  border-color: #a31414;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    padding: 0 0 calc(52px + env(safe-area-inset-bottom, 0));
  }

  .bg-photos .bg-tile {
    filter: saturate(0.82) brightness(0.85);
  }

  .bg-photos {
    position: absolute;
    grid-template-rows: 42% 58%;
  }

  /* Mobile: obere Reihe komplett mit Bildern */
  .bg-photos .bg-tile:nth-child(1) {
    background-image: url('../images/photo_01.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.85) brightness(0.92);
  }

  /* Mobile: untere Reihe ohne Bilder, heller Hintergrund */
  .bg-photos .bg-tile:nth-child(4),
  .bg-photos .bg-tile:nth-child(5),
  .bg-photos .bg-tile:nth-child(6) {
    background-image: none !important;
    background-color: #ebe9e4;
    filter: none;
  }

  /* Mobile: untere Hälfte als ein durchgehendes Panel (ohne Trennlinien) */
  .bg-photos::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(42% - 3px);
    bottom: 0;
    background-color: #ebe9e4;
    z-index: 3;
    pointer-events: none;
  }

  .bg-photos .bg-tile:nth-child(4)::before {
    display: none;
  }

  .bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(26, 14, 14, 0.26) 0%,
      rgba(26, 14, 14, 0.12) 42%,
      rgba(235, 233, 228, 0.06) 50%,
      rgba(235, 233, 228, 0.16) 100%
    );
  }

  .content {
    max-width: 100%;
    width: 100%;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-value {
    font-size: 14px;
    color: #2a2222;
    text-shadow: none;
  }

  .logo-text .lname {
    color: #1f1a1a;
    font-size: clamp(28px, 8vw, 36px);
    text-align: center;
  }

  .services {
    color: #2a2222;
    border-left: none;
    padding-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(11px, 3.5vw, 13px);
    letter-spacing: 0.08em;
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: 22px;
  }

  .logo-block img {
    width: 72px;
    height: 72px;
  }

  .logo-text .ltag {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .contact-value a {
    border-bottom-color: rgba(42, 34, 34, 0.25);
  }

  .contact-block {
    width: 100%;
    max-width: 420px;
  }

  .site-footer {
    font-size: 9px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
