/* Font Face */
@font-face {
  font-family: "EquitanSans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/EquitanSans-Regular.otf") format('opentype');
}

/* Reset & Base Styles */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'EquitanSans', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  margin: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border: none;
}

.logo img {
  height: 30px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: black;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  position: relative;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0;
  margin: 0;
}

nav a:hover {
  color: rgb(0, 0, 255);
}

/* Index */
.index {
  font-family: 'EquitanSans', sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  min-height: 60vh;
  margin-bottom: 8rem;
}

.index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index li {
  margin-bottom: 0rem;
}

.index a,
.index span.hover-trigger {
  text-decoration: none;
  color: black;
  font-size: clamp(2rem, 8vw, 5rem) !important;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 0;
  margin: 0;
  line-height: 1.1;
  display: inline-block;
}

.index a:hover,
.index span.hover-trigger:hover {
  color: rgb(0, 0, 255);
}

.index a .jahr,
.index span.hover-trigger .jahr {
  font-size: 0.5em;
  color: #000;
  margin-left: 0.5rem;
  vertical-align: baseline;
  transition: color 0.2s ease;
}

.index a:hover .jahr,
.index span.hover-trigger:hover .jahr {
  color: rgb(0, 0, 255);
}

/* Hover Image & Video */
.fullscreen-hover-image,
.fullscreen-hover-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: 800px;
  height: 60vh;
  min-width: 250px;      /* Mindestbreite */
  min-height: 200px;     /* Mindesthöhe */
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fullscreen-hover-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.fullscreen-hover-video {
  object-fit: contain;
}

/* Info Seite */
.info {
  font-family: 'EquitanSans', sans-serif;
  font-size: clamp(2.5rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  padding: 3rem 0;
  margin: 0;
  text-align: left;
}

.info section {
  margin-bottom: 4rem;
}

.info h2 {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: normal;
  margin-bottom: 1rem;
}

.info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info ul li {
  max-width: 1000px;
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.info p {
  max-width: 1000px;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.network ul li {
  font-size: clamp(1.5rem, 1.5vw, 1.1rem);
  color: #000000;
}

/* CV-Grid */
.cv-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-grid li {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 1rem;
  margin-bottom: 0.5rem;
}

.cv-grid .year,
.cv-grid .desc {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

/* Projekt Headerbild Slider */
.projekt-headerbild {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.projekt-headerbild .slides {
  position: relative;
}

.projekt-headerbild .slide {
  display: none;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

.projekt-headerbild .slide.active {
  display: block;
  position: relative;
}

/* Beschreibungstext auf Projektseite */
.projekt-beschreibung p {
  font-size: clamp(2rem, 2.5vw, 1.6rem);
  line-height: 1.3;
  margin-bottom: 2rem;
  max-width: 1000px;
}

/* Projektinfos grid */
.projekt-info-grid {
  font-size: clamp(0.8rem, 2vw, 1.4rem);
  line-height: 1.3;
  color: #000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Pfeile für Slider */
.projekt-headerbild .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  color: #000;
  z-index: 10;
  user-select: none;
  transition: background 0.3s ease;
}

.projekt-headerbild .slider-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.projekt-headerbild .slider-arrow.prev {
  left: 1rem;
}

.projekt-headerbild .slider-arrow.next {
  right: 1rem;
}

/* Footer */
.site-footer {
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-left: 0rem;
  padding-right: 2.5rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  color: #000;
}

.site-footer a {
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: blue;
}

.site-footer .copyright {
  pointer-events: none;
}

/* Responsive Anpassungen */
@media (max-width: 800px) {
  .projekt-headerbild .slides img {
    height: 30vh;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .index a,
  .index span.hover-trigger {
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    font-size: clamp(0.8rem, 7vw, 3rem);
  }

  .index a .jahr {
    font-size: 0.6em;
  }

  .info {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    padding: 2rem 0;
  }

  .info h2 {
    font-size: clamp(0.9rem, 1.2vw, 0.9rem);
  }

  .cv-grid li {
    grid-template-columns: 100px 1fr;
    column-gap: 0.5rem;
  }

  .cv-grid .year,
  .cv-grid .desc {
    font-size: clamp(1.2rem, 3vw, 1.3rem);
  }

  .fullscreen-hover-image,
  .fullscreen-hover-video {
    width: 90vw;
    height: auto;
    min-width: 300px;   /* Mindestbreite mobil */
    min-height: 230px;  /* Mindesthöhe mobil */
  }

  .logo img {
    height: 24px;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .projekt-beschreibung p {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }

  .projekt-info-grid {
    font-size: clamp(1rem, 2vw, 1.3rem);
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .site-footer {
    font-size: 0.75rem;
    line-height: 1.3;
    gap: 0.2rem;
  }
}

/* Hover auf Touch-Geräten */
@media (hover: none) and (pointer: coarse) {
  .index span.hover-trigger:hover,
  .index span.hover-trigger:hover .jahr {
    color: blue;
  }
}

/* Impressum Schrift anpassen */
.info[aria-label="Impressum"] {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400; /* normal */
  font-family: 'EquitanSans', sans-serif; /* einheitliche Schrift */
  line-height: 1.1;
  color: #000;
}

.info[aria-label="Impressum"] h1 {
  font-weight: 400; /* nicht fett */
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.info[aria-label="Impressum"] *,
.info[aria-label="Impressum"] {
  font-weight: 400 !important; /* Überschreibt alle fett gesetzten Styles */
  font-family: 'EquitanSans', sans-serif;
  color: #000;
  font-size: clamp(1.2rem, 1.5vw, 1.3rem);
  line-height: 1.3;
}

.info[aria-label="Impressum"] h1 {
  font-weight: 400 !important;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

/* Impressum – Desktop: kleiner und normalgewichtig */
@media (min-width: 801px) {
  .info[aria-label="Impressum"],
  .info[aria-label="Impressum"] * {
    font-family: 'EquitanSans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #000 !important;
  }

  .info[aria-label="Impressum"] h1 {
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    margin-bottom: 1rem !important;
  }
}

/* Datenschutz Schrift anpassen */
.info[aria-label="Datenschutz"] {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  font-family: 'EquitanSans', sans-serif;
  line-height: 1.1;
  color: #000;
}

.info[aria-label="Datenschutz"] h1 {
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.info[aria-label="Datenschutz"] *,
.info[aria-label="Datenschutz"] {
  font-weight: 400 !important;
  font-family: 'EquitanSans', sans-serif;
  color: #000;
  font-size: clamp(1.2rem, 1.5vw, 1.3rem);
  line-height: 1.3;
}

/* Datenschutz – Desktop: kleiner und normalgewichtig */
@media (min-width: 801px) {
  .info[aria-label="Datenschutz"],
  .info[aria-label="Datenschutz"] * {
    font-family: 'EquitanSans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #000 !important;
  }

  .info[aria-label="Datenschutz"] h1 {
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    margin-bottom: 1rem !important;
  }
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Toggle On */
.toggle-switch input:checked + .slider {
  background-color: blue;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Optional Dark Mode Anpassung für den Schalter */
:root.dark .toggle-switch .slider {
  background-color: #555;
}

:root.dark .toggle-switch input:checked + .slider {
  background-color: rgb(0, 0, 0);
}
  
.toggle-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.darkmode-toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'EquitanSans', sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 1.3rem;
  z-index: 1000;
}

.index a:hover,
.index span.hover-trigger:hover {
  cursor: default;
}

body {
  background-color: white;
  color: black;
  transition: background-color 0.3s, color 0.3s;
}

.dark body {
  background-color: #000;
  color: #fff;
}

.dark a {
  color: #66ccff; /* helle Linkfarbe */
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6,
.dark p, .dark li, .dark span {
  color: #fff;
}

.hover-trigger {
  cursor: default; /* oder pointer, wenn es klickbar sein soll */
}

/* sichtbar schalten, wenn JS die Klasse .visible dazuschaltet */
.fullscreen-hover-image.visible,
.fullscreen-hover-video.visible {
  opacity: 1;
  pointer-events: auto;
}