/*body*/
/*-------------------------------------*/

.body {
  background-color: #f2f1f1;;
  font-family: 'Robot Mono', monospace;
  font-weight: 400;
}

/*background-color: #fbecec;*/

/*header*/
/*-------------------------------------*/

/* Style the header with a grey background and some padding */
.header {
  overflow: hidden;
  background-color: #f2f1f1;;
  padding: 20px 50px;
}


/* Header Layout für mobile */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3rem;
}

/* Logo links */
.header .logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
}

/* Hamburger rechts */
.hamburger {
  margin-left: auto;
}

/* Header-Links ausblenden auf kleinen Screens */
@media (max-width: 700px) {
  .header_right {
    display: none;
  }
  .logo {
    font-size: 1.2rem;
  }
}

/* Style the header links */
.header a {
  float: left;
  color: black;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  font-size: 20px;
  line-height: 25px;
  border-radius: 4px;
}

/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
  font-size: 20px;
  font-weight: 500;
  padding: 12.45px;
}

/* Change the background color on mouse-over */
.header a:hover {
  color: rgb(124, 123, 123);
}

/* Style the active/current link
.header a.active {
  background-color: rgb(255, 255, 255);
  color: white;
}*/

/* Float the link section to the right */
.header_right {
  float: inline-end;
  font-size: 20px;
  font-weight: 500;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding-top: 6px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #000000;
  margin-bottom: 4px;
  border-radius: 5px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px; /* unter dem Header */
  right: 20px;
  background: #f2f1f1;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 999;
  min-width: 180px;
  padding: 1rem 0.5rem;
}

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

.mobile-menu li {
  margin-bottom: 1.2rem;
}

.mobile-menu a {
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding-left: 1rem;
}

.mobile-menu a:hover {
  color: #555;
  text-decoration: underline;
}


/*Grid Code HOME PAGE*/
/*--------------------------------------------*/

/* Tile container (grid) styling */
.tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  /*grid-template-columns: repeat(3, 1fr);*/
  justify-items: center;
  align-items: center;
  gap: 50px;
  padding: 5% 20% 10% 20%;
  width: 100%;
}

/* Each tile styling */
.tile {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tile hover effect */
.tile:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Tile content inside the anchor tag */
.tile a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image styling */
.tile img {
  width: 100%;
  height: auto;
  display: vlock;
}

/* Tile description text */
.tile-info {
  padding: 10px;
  background-color: #f9f9f9;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}

.project-list {
  list-style: none;
  padding-top: 10rem;
  padding-left: 0rem; /* mehr Abstand zum linken Rand */
  margin: 0;}

.project-list li {
  margin-bottom: 1.8rem;
}

.project-list a {
  color: #000;
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: 700;
  transition: color 0.2s;
}

.project-list a:hover {
  color: #555;
  text-decoration: underline;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80.25%; /* 16:9 Verhältnis */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  border: none;
  display: block; aspect-ratio: 16 / 9;
 } /* sorgt für gleiches Seitenverhältnis *
}
}

/* Flexbox-Layout für Portfolio-Bereich */
.portfolio-flex {
  display: flex;
  align-items: flex-start; /* Beide Bereiche oben ausrichten */
  gap: rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Linke Spalte: Projektliste */
.project-list-wrapper {
  flex: 1 1 250px; /* Flexibel, aber mindestens 250px */
  min-width: 500px;
  width: 100%;
}

/* Rechte Spalte: Video */
.video-section {
  flex: 2 1 0;
  min-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 900px) {
  .portfolio-flex {
    flex-direction: column;
    gap: 2rem;
    padding: 0 0rem;
  }
  .project-list-wrapper,
  .video-section {
    width: 100%;
    min-width: 0;
    padding-left: 0rem;
    padding-right: 1rem;
  }

  .video-section {
    padding-left: 0.5rem;
  }
}



/* Optional: Change hover color of text */
.tile-info:hover {
  background-color: #e0e0e0;
}

#videoDisplay {
  margin-top: 4rem; /* Video weiter unter der Überschrift */
}






/*Desktop Code*/
/*--------------------------------------------*/

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 700px) {
  .header a.logo {
    float: none;
    display: inline;
    text-align: left;
  }
  .header_right {
    float: none;
    display: none;
  }
  .hamburger {
    display: flex;
    float: right;
    align-content: center;
  }
  .fa fa-instagram{
    display: none;
  }
  .topnav.active {
    display:flex;
  }
  nav.col-md-3 {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding-left: 0.2rem; /* Optional: etwas Abstand zum Rand */
  }
  .project-list {
    padding-left: 3rem; /* Weniger Abstand auf kleinen Bildschirmen */
    padding-top: 3rem;  /* Optional: weniger Abstand nach oben */
  }
  
/*
  #videoDisplay {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 2rem;
}

  #videoDisplay iframe {
  width: 100%;
  height: 400px;
  max-width: 100%;
  border: none;
  display: block;
  aspect-ratio: 16 / 9; /* sorgt für gleiches Seitenverhältnis */
}
  .mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #f2f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 999;
    min-width: 180px;
    padding: 1rem 0.5rem;
  }
  .mobile-menu.active {
    display: block;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-menu li {
    margin-bottom: 1.2rem;
    width: 100%;
  }
  .mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
  }
  .mobile-menu a:hover {
    color: #555;
    text-decoration: underline;
  }


/*Main Pages*/
/*----------------------------------------------*/

/*Contact*/

.main_contact{
  display: block;
  float: flex;
  text-align: center;
  padding-top: 10%;
  font-size: 18px;
}

.main_contact h4{
  font-size: 22px;
}

.main_contact a{
  text-decoration: none;
  color: rgb(199, 132, 93);
}

/*Bio*/

.main_bio {
  display: block;
  float: flex;
  padding: 4% 20% 10% 20%;
}

.main_bio h4{
  text-align: center;
  
}

.bio_pic {
  width: 100vw; 
  overflow: hidden; /* Prevents overflow issues */
}

.bio_pic img {
  width: 100%;  
  height: auto;  
  display: block;
  padding-top: 3%;
}

.main_bio a{
  text-decoration: none;
  text-align: center;
  color: rgb(199, 132, 93);
  
}

.main_bio h6{
  text-align: center;
}

.main_bio ul{
  list-style-type: none;
  padding: 0% 10% 10% 10%;
}

.bio-download {
  margin: 40px auto 24px auto;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bio-projects {
  margin: 32px auto 32px auto;
  text-align: center;
  width: 100%;
}

.bio-projects ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-projects li {
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px; /* jetzt deutlich breiter */
  width: 100%;
}

@media (max-width: 700px) {
  .main_bio .mb-3 {
    margin-bottom: 1rem !important;
  }
}


/*Video*/

/* Grid Layout */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns: Video | Description */
  gap: 50px; /* Increased spacing between video rows */
  max-width: 1200px;
  margin: 0 auto;
  align-items: center; /* Align video and text in the center */
  padding-top: 5%;
  padding-bottom: 10%;
}

/* Video Wrapper (Aspect Ratio Hack) */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Description Column */
.video-description {
  padding: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1.1rem;
}

.video-description h2 {
  margin: 0 0 15px;
  font-size: 1.7rem;
}

.video-description p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-grid {
      grid-template-columns: 1fr; /* Stack video and text */
      gap: 60px; /* Increased spacing on mobile */
  }
}

/*Photography*/
/*---------------------------------------------------------------*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-flow: dense; /* Helps to fill gaps intelligently */
    gap: 1.5fr;
    max-width: 500px;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 5% 5% 5% 10%;
}

/* The Images */
.gallery-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.25s ease-in-out;
}

.gallery-img:hover {
  opacity: .7;
}

.thumbnail {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
}
.thumbnail:hover {
  transform: scale(1.05);
  opacity: .7;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid white;
  border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .gallery-grid {
      grid-template-columns: 1fr 1fr; /* Two columns on small screens */
  }
  
  .wide, .large {
      grid-column: span 1;
      grid-row: span 1;
  }
}

/*Writing*/
/*-----------------------------------------------------/*

/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 10%;
}

/* Typography */
.content-grid h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.content-grid p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
}

/* Poetry Styling */
.poetry {
  font-style: italic;
  color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-grid {
      grid-template-columns: 1fr; /* Stacks into one column */
      gap: 30px;
  }
}

/*Sales*/
/*------------------------------------------------------------*/

/*Impressum*/

.main_impressum{
  display: block;
  padding: 5% 20% 20% 20%;
}

/*Footer*/
/*----------------------------------------------*/
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background-color: #f2f1f1;;
  color: rgb(0, 0, 0);
  text-align: center;
  font-size: larger;
  z-index: 1000;
}

.footer a{
  font-size: 14px;
  text-decoration: none;
  color: black;
}

.footer a:hover{
  color: rgb(124, 123, 123);
}

.main {
  padding-bottom: 60px; /* Platz für den Footer, ggf. anpassen */
}

main.container {
  margin-top: 48px; /* oder z.B. 56px, je nach gewünschtem Abstand */
}
