@media (prefers-color-scheme: dark) {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  * {
    background-color: inherit !important;
    color: inherit !important;
    filter: none !important;
    forced-color-adjust: none !important;
  }

  img,
  video {
    filter: none !important;
  }
}

/* Spezifisch für Mobile unter 600px */
:root {
  --header-height: 140px; /* ggf. anpassen */
}
html, body {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important; /* Safari/Android */
  width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  -webkit-text-size-adjust: 100%;
}

header {
  position: fixed;   /* statt sticky */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-left: 10px;
  padding-right: 10px;
}

.nav-links{
line-height: 0.8rem;}

.nav-links a {
  font-size: 12px;
}
  .nav-links1,
  .nav-links2,
  .nav-links3,
  .nav-links4 {
    letter-spacing: 0.8em;
  }
  .nav-links3 {
    letter-spacing: 0.83em; /* minimaler optischer Ausgleich */
  }
  .nav-links4 {
    letter-spacing: 0.97em; /* minimaler optischer Ausgleich */
  }
  .tile {
    font-size: clamp(0.5rem, 50vw, 0.9rem);
      aspect-ratio: 1 / 1;
  }
.logo {
  font-size: 110px;
  margin-top: 10px;
}

.grid {
  width: 100%;
  gap: 1%;
}

.tile {
  font-size: clamp(0.6rem, 4vw, 0.9rem);
  padding: 0.4rem;
}

.contact-icons {
  display: flex;
  gap: 20px;
}

body,
a,
button,
.tile {
  cursor: auto !important;
  background-color: #ffffff !important;
}

.custom-cursor {
  display: none;
}

/* ALLE Schriften schwarz */
*,
*::before,
*::after {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}


/* Mobile Scroll Layout */
.grid-wrapper { display: none; }

.scroll-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
    padding-left: 10px;
  padding-right: 10px;
  margin-top: var(--header-height);
  height: calc(100svh - var(--header-height));
}

.scroll-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  background: transparent;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}



.scroll-column .tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10; /* Stellt sicher, dass die Kachel über dem Spalten-Hintergrund liegt */
}

.scroll-column .tile[data-image]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-image);
  background-size: cover;
  background-position: center;
  z-index: 2;
  pointer-events: none;

}

.scroll-column::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
/* === SAMSUNG DARK MODE HART FIX === */
html,
body,
.tile,
.scroll-column,
.scroll-column .tile[data-image]::after {
  -webkit-filter: none !important;
  filter: none !important;
  forced-color-adjust: none !important;
}
