

header {
    background-image: url(../img/header.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    color: white;
}

header > nav a, header > nav a:visited {
    color: white;
}

header > nav a:hover {
    color: var(--accent);
}

header > nav a:active {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}
/* Timeline */

.timeline-container {
  position: relative;
  padding: 1rem 0;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  margin-top: 5rem;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left {
  text-align: end;
}

.timeline-item.left::before {
  right: -15px;
  right: auto;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--accent) transparent transparent;
}


.timeline-title {
  font-size: 1.75rem;
  margin-top: 0;
  color: var(--accent);
}

.timeline-date {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(50%);
  background-color: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem;
  border-radius: 0 5px 5px 0;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.timeline-item.right .timeline-date {
  transform: translateX(-150%);
  border-radius: 5px 0 0 5px;
}

.timeline-item.right .timeline-date::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 3px);
  margin-top: -20px;
  border-width: 20px 0 20px 20px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent);
}

.timeline-item.left .timeline-date::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 3px);
  margin-top: -20px;
  border-width: 20px 20px 20px 20px;
  border-style: solid;
  border-color: transparent var(--accent) transparent transparent;
}

@media (max-width: 768px) {
  .timeline-container::after {
    left: 0;
    margin-left: 0;
  }

  .timeline-item {
    width: 100%;
    text-align: left;
    margin-left: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    display: none;
  }

  .timeline-date {
    position: static;
    margin-bottom: 1rem;
    width: auto;
  }

  .timeline-item.right .timeline-date,
  .timeline-item.left .timeline-date {
    transform: translateX(-15%);
    border-radius: 5px;
  }

  .timeline-item.right .timeline-date::after,
  .timeline-item.left .timeline-date::after {
    display: none;
  }
}

/* Grundlegende Stile für das Portfolio-Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg);
}

/* Stile für die Portfolio-Items */
.portfolio-item {
    background: var(--accent-bg);
    border-radius: var(--standard-border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.portfolio-item:hover  {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover p {
    transform: scale(1.05); 
}

.portfolio-item:hover h3 {
    transform: scale(1.05); 
}

.portfolio-item:hover .url {
    transform: scale(1.05); 
}

.portfolio-item:hover .tags {
    transform: scale(1.05); 
}


/* Stile für die klickbare Fläche */
.portfolio-item  a.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

/* Stile für die Bilder */
.portfolio-item img {
    width: 100%;
    height: 200px; /* Einheitliche Höhe für alle Bilder */
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* Stile für die Titel */
.portfolio-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text);
    z-index: 0;
     transition: transform 0.3s ease;
}

/* Stile für die Beschreibung */
.portfolio-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0 1rem;
    margin-bottom: 1rem;
    z-index: 0;
     transition: transform 0.3s ease;
}

/* Stile für die URL */
.portfolio-item .url {
    margin-top: auto;
    margin-bottom: 1rem;
    z-index: 2;
         transition: transform 0.3s ease;

}

.portfolio-item .url a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.portfolio-item .url a:hover {
    color: var(--accent-hover);
}

/* Stile für die Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1rem 1rem;
    z-index: 2;
         transition: transform 0.3s ease;

}

.tags span {
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.tags span:hover {
    background: var(--accent-hover);
}

/* Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Grundlegende Stile für das Galerie-Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 2rem;
}

.gallery-grid a {
    text-decoration: none;
    background-color: var(--accent-bg);
    color: inherit;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover {
    transform: scale(1.05); /* Zoom-in-Effekt */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.1); /* Vergrößerung des Bildes */
}

.gallery-grid figure {
 overflow: hidden;
}

/* Basic styling for the button */
#scrollToTop {
    position: fixed;
    bottom: 20px;  /* Adjust as needed */
    right: 20px;  /* Adjust as needed */
    display: none;  /* Hidden by default */
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;  /* Ensure it's on top of other elements */
}

/* Show the button when the page is scrolled */
body.scrolled #scrollToTop {
    display: block;
}