html {
  color-scheme: light;
}
:root {
  --grid-size: 1.5%;
  --max-grid-size: 60vmin;
  --field-font: 'Arial', sans-serif;
  --field-font-size: clamp(1rem, 12.5vw, 20rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: rgb(0, 0, 0);
  color: white;
  font-family: var(--field-font);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== Header CSS ===== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-direction: column;
}

.nav-links1 { letter-spacing: 1.31em; }
.nav-links2 { letter-spacing: 1.31em; }
.nav-links3 { letter-spacing: 1.35em; }
.nav-links4 { letter-spacing: 1.59em; }


.nav-links a {
  color: rgb(121, 176, 210);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 20px;
}

.nav-links a:hover {
  color: rgb(164, 134, 99);
}

.logo {
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-family: 'arial', sans-serif;
  font-size: 160px;
  color: rgb(123, 178, 211);
  text-decoration: none;
  letter-spacing: -0.10em;
}

.logo:hover {
  color: rgb(164, 134, 99);
}

.logo-container {
  margin-top: -30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Standard-Cursor ausblenden */
body, a, button, .tile {
  cursor: none !important;
}

/* eigenes Cursor-Element */
.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: rgba(126, 180, 209, 0.902);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: background 0.2s, transform 0.2s ease;
}

.custom-cursor.active {
  background: rgba(180, 114, 76, 0.876);
  transform: translate(-50%, -50%) scale(1.4);
}

/* ===== Inhalt ===== */
.container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.grid-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.grid-wrapper .tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 100%;
  box-sizing: border-box;
}

.grid {
  width: clamp(600px, 90vmin, calc(100vh - var(--header-height) - 2rem));
  max-width: 750px;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: var(--gap-size);
}

.page-width {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.bold { font-weight: bold; }
.boldbig { font-weight: bold; font-size: 20px; }

.tile {
  width: 100%;
  height: 100%;
  color: rgb(0, 0, 0);
  font-size: 0.9rem;
  text-align: left;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: lighter;
  text-decoration: none;
  transition: none;
}

.tile:hover,
.hover-overlay-mobile {
  opacity: 0.8;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-container {
  position: relative;
  width: 100%;
}

.square16:hover .overlay-image {
  opacity: 1;
}

.plan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;
  opacity: 1;
  pointer-events: none;
}

.plan-overlay.img-overlay {
  object-fit: contain;
  object-position: center;
}

.plan-overlay-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.squareInstagram {
  justify-content: center;
  align-items: center;
}

/* Farben der Kacheln */
.tile.square1  { background-color: rgb(126,167,191) !important; }
.tile.square2  { background-color: rgb(138,159,255) !important; }
.tile.square3  { background-color: rgb(115,125,157) !important; }
.tile.square4  { background-color: rgb(114,111,128) !important; }
.tile.square5  { background-color: rgb(139,166,151) !important; }
.tile.square6  { background-color: rgb(153,153,103) !important; }
.tile.square7  { background-color: rgb(145,143,32) !important; }
.tile.square8  { background-color: rgb(145,176,2) !important; }
.tile.square9  { background-color: rgb(171,164,102) !important; }
.tile.square10 { background-color: rgb(232,169,5) !important; }
.tile.square11 { background-color: rgb(218,137,1) !important; }
.tile.square12 { background-color: rgb(212,107,1) !important; }
.tile.square13 { background-color: rgb(219,81,28) !important; }
.tile.square14 { background-color: rgb(254,58,2) !important; }
.tile.square15 { background-color: rgb(187,32,18) !important; }
.tile.square16 { background-color: rgb(127,5,5) !important; }


/* Kontakt Icons */
.contact-icons {
  display: none;
  gap: 30px;
  margin-top: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-icons a {
  color: rgb(123, 178, 211);
  font-size: 1.4rem;
  text-decoration: none;
}
