/* --- Font --- */
@font-face {
  font-family: 'Fluxisch Else';
  src: url('FluxischElse-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Fluxisch Else', sans-serif;
  font-weight: normal;
  line-height: 1.2;
  color: #1a1a1a;
  background: #fafafa;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: blue;
}

/* --- Page --- */
.page {
  min-height: 0vh;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

/* --- Grid: 4 columns × 3 rows on desktop, equal spacing --- */
.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(3rem, 6vw, 4.5rem);
  align-items: start;
}

.block {
  padding: 0;
}

.block h1,
.block p {
  margin: 0 0 0em;
  font-size: 1.2rem;
  font-weight: normal;
}

.block h1 {
  margin-bottom: 0;
}

.block p {
  margin: 0;
}

.block p:last-child {
  margin-bottom: 0;
}

.block .label {
  margin-top: 1em;
}

.block .label:first-child {
  margin-top: 0;
}

.block-info > p:nth-child(3) {
  margin-top: 0;
}

/* --- Rotation per text block --- */
.grid .block:nth-child(1) { transform: rotate(-1deg); }
.grid .block:nth-child(2) { transform: rotate(2deg); }
.grid .block:nth-child(3) { transform: rotate(0deg); }
.grid .block:nth-child(4) { transform: rotate(3deg); }
.grid .block:nth-child(5) { transform: rotate(3deg); }
.grid .block:nth-child(6) { transform: rotate(-5deg); }
.grid .block:nth-child(7) { transform: rotate(-2deg); }
.grid .block:nth-child(8) { transform: rotate(1deg); }
.grid .block:nth-child(9) { transform: rotate(0deg); }
.grid .block:nth-child(10) { transform: rotate(1deg); }
.grid .block:nth-child(11) { transform: rotate(-1deg); }
.grid .block:nth-child(12) { transform: rotate(4deg); }

/* --- Fixed footer elements --- */
.logo-fixed {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  height: auto;
  max-height: 3.3rem;
  width: auto;
}

.legal-fixed {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 1rem;
}

/* --- Cursor tooltip (main page: Steinstraße Siebzehn hover) --- */
.cursor-tooltip {
  position: fixed;
  left: -9999px;
  top: 0;
  pointer-events: none;
  font-size: 1.2rem;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.cursor-tooltip.is-visible {
  opacity: 1;
}

/* --- Mobile: single column, only first 4 blocks (no repeat) --- */
@media (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .block-repeat {
    display: none;
  }
}
