/* ===========================
   FONTS
=========================== */
@font-face {
  font-family: 'Pavor';
  src: url('fonts/PavorSerifV1-Regular.woff') format('woff'),
       url('fonts/PavorSerifV1-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Matter';
  src: url('fonts/MatterTRIAL-Regular.woff') format('woff'),
       url('fonts/MatterTRIAL-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'MatterLight';
  src: url('fonts/MatterTRIAL-Light.woff') format('woff'),
       url('fonts/MatterTRIAL-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'MatterItalic';
  src: url('fonts/MatterTRIAL-RegularItalic.woff') format('woff'),
       url('fonts/MatterTRIAL-RegularItalic.woff2') format('woff2');
}

/* ===========================
   GLOBAL / BODY
=========================== */
body {
  margin: 0;
  background-color: rgb(240, 240, 240);
  cursor: crosshair;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::-webkit-scrollbar {
  display: none;
}

img, picture, svg {
  max-width: 100%;
  display: block;
}

/* ===========================
   FLEX LAYOUT
=========================== */
.flexmama {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  gap: 0;
}

.flexone,
.flextwo {
  flex-grow: 1;
  font-family: 'Matter';
  overflow-y: scroll;
}

.flexone {
  background-color: rgb(240, 240, 240);
}

.flextwo {
  background: radial-gradient(circle at center, rgba(23, 23, 23, 1) 0%, rgba(240, 240, 240, 1) 100%);

  cursor: crosshair;
}

.flextwo img {
  width: 100vw;
  height: auto;
  cursor: pointer;
}

/* ===========================
   SPALTE LINKS / KONTAKT
=========================== */
.sprache {
  top: 0;
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  width: 50%;
  font-family: 'Matter';
  font-size: 1rem;
  color: rgb(37, 1, 46);
  margin-left: 0.8rem;
  position: relative;
}

.name {
  position: absolute; /* bleibt absolut positioniert */
  top: 0.8rem;      
  display: inline-block;
  font-family: 'Matter';
  font-size: 1.1rem;

}

.name:hover{
  display: block;
filter: blur(2px);
color: rgb(66, 66, 66);
transition: 0.5s ease-in;
transition: 0.5s ease-out;
}

.about {
  position: absolute; /* bleibt absolut positioniert */
  top: 3rem;          /* Abstand von oben */      /* Abstand von links */
  font-family: 'Matter';
  font-size: 1.1rem;
  margin-right: 0.8rem;
}

.about_de{
  position: absolute; /* bleibt absolut positioniert */
  bottom: 3rem;          /* Abstand von oben */      /* Abstand von links */
  font-family: 'Matter';
  font-size: 1.1rem;
  color: grey;
  margin-right: 0.8rem;
}


.hover-link {
  color: rgb(57, 190, 104);
  transition: 0.5s ease-in;
  transition: 0.5s ease-out;

}
.hover-link:hover {
  color: rgb(64, 64, 64);
  transform: rotate(20deg);
}

.emoji {
  display: none;
  font-size: 5.6rem;

}
.sm {
  position: absolute;
  bottom: 0;
  color: black;
  margin-bottom: 12vh;
}


.sm2 {
  position: absolute;
  bottom: 0;
  margin-bottom: 1.5vh;
  color: black;
}
/* ===========================
   HEADLINE / TEXT
=========================== */

/* ===========================
   TOP LINKS (Projects / Typefaces / About)
=========================== */
.top-links {
  display: flex;
  flex-direction: column; /* vertikal untereinander */
  align-items: flex-start; /* linksbündig */
  margin-top: 18rem;
  margin-left: 0rem; /* optional Abstand vom linken Rand */
  gap: 1rem; /* Abstand zwischen Links */
  line-height: 70%;
  font-size: 2rem;
}

.top-links a {
  font-family: 'Matter';
  color: rgb(37, 1, 46);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-links a:hover {
  background-color: rgb(218, 218, 218); /* z. B. ein helles Gelb als Highlight */
  color: black; /* Farbe beibehalten oder kontrastieren */
  margin-left: 1rem;
}


.Text {
  max-width: 70rem;
  text-align: justify;
  font-family: 'Matter';
  margin-left: 1.9rem;
  position: relative;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  margin-top: 1rem;
  line-height: 10%;
  top: 1rem;
}

.Text:hover {
  color: rgb(55, 144, 98);
}
.info-text {
  display: none;       /* versteckt initial */
  max-width: 35rem;
  font-family: 'Matter';
  font-size: 1.2rem;
  line-height: 1.4rem; /* etwas mehr Zeilenhöhe für Lesbarkeit */
  margin-left: 2rem;
  margin-bottom: 1rem;
  text-align: left;
  overflow: visible;   /* kein Abschneiden */
  white-space: normal; /* Zeilenumbruch erlaubt */
  word-break: break-word; /* lange Wörter umbrechen */
  margin-top: 2rem;
}
/* ===========================
   LINKS
=========================== */

.sm a:hover, .sm2 a:hover {
  text-decoration: none;
  color: black;
  cursor: crosshair;
}

.sm a:hover, .sm2 a:hover {
  color: rgb(101, 66, 176);
  text-decoration: underline;
}

.filled {
  display: none;
}

.empty {
  display: inline;
}

/* ===========================
   SPECIFIC LINKS
=========================== */
#projects-link, #typefaces-link, #about-link {
  color: rgb(37, 1, 46);
  cursor: crosshair;
  display: flex;
  font-family: 'Matter';
}


/* ===========================
   SLIDESHOW
=========================== */
.slideshow {
  display: none;
}

.slideshow img:last-child {
  border-bottom: solid 6px rgb(37, 1, 46);
}

/* ===========================
   RESIZABLE HANDLE
=========================== */
.resizable-handle {
  cursor: col-resize;
  /* Set cursor to ew-resize */
  width: 0.4rem;
  /* Set the width of the draggable handle */
  background-color: rgb(37, 1, 46);
  /* Background color of the handle */
  padding: 0;
  z-index: 1;
  resize: horizontal;
  transition: 0.3s;
}

.resizable-handle:hover {
  width: 0.8rem;
}





@media (max-width: 768px){
  .flextwo {  
    display: none;
  }
  .resizable-handle {
    display: none;
  }
  .sprache, .name, .about, .about_de {
    width: 100%;
    margin-right: 0.8rem;
    font-size: 0.93rem;
  }
.emoji {
  display: block;
  margin-top: 100%;
  font-size: 5.4rem;
}

}
