:root {
  --transition-speed: 0.3s;
}

body {
  background-color: #121212;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  /* Dunkles Blau-Grau */
  color: #ecf0f1;
}


.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-color);
  font-weight: 700;
}

.card {
  transition: 0.3s ease all;
  animation: fadeIn 0.8s ease;
}

.container {
  animation: fadeIn 0.8s ease;
}

.card-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  margin-bottom: 1.5rem;
  height: 250px;
}

.card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-speed), transform var(--transition-speed);
}

.card-container:hover .card-image {
  filter: brightness(0.7);
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.card-container:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.card-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.project-mini-card:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  transition: 0.3s ease all;
  cursor: pointer;
}

.projectPic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mini-card-imagediv {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.mini-card-imagediv img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.btn-carousel-modal {
  border-radius: 50%;
  background-color: rgb(0, 191, 255);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  transition: all var(--transition-speed);
}

.btn-carousel-modal:hover {
  background-color: rgb(120, 221, 255);
  transform: translateY(-3px);
}


.btn-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  transition: all var(--transition-speed);
}

.btn-action:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-action i {
  pointer-events: none;
}

.btn-delete:hover {
  background-color: var(--accent-color);
}

/* Container für die gesamte Galerie */
.bilder-galerie-special {
  max-width: 1024px;
  max-height: 400px;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 400;
  /* 1024:400 Verhältnis beibehalten */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 4px;
  padding: 8px;
}

/* Container für die drei Bilder */
.bg-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
  gap: 10px;
}

/* Weitere CSS-Regeln bleiben unverändert */
.bg-item {
  flex: 1;
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid #ecf0f175;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  display: block;
}

.bg-item:hover {
  flex: 3;
  z-index: 2;
  border-color: #3498db48;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bg-container:hover .bg-item:not(:hover) {
  flex: 0.8;
  opacity: 0.9;
}

.bg-item {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-item:hover~.bg-item {
  margin-left: -5px;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  transition: transform 0.3s ease;
}

.carousel-inner {
  height: 300px;
}

.carousel-item img {
  height: 300px;
  object-fit: cover;
}

@media (max-width: 1200px) {

  .carousel-inner,
  .carousel-item img {
    height: 250px;
  }
}

@media (max-width: 992px) {
  .project-card {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }
}

.btn-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#errorMessage {
  border-radius: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 1030;
  /* Höher als navbar (1030) */
}

.navbar {
  background: #ffffff;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
  /* Noch dunkleres Blau-Grau */
  color: #E0E0E0;

}

.form-control-lg,
.form-control {
  background-color: #444444;
  /* Sehr dunkles Grau */
  color: #E0E0E0;
  border: 1px solid #333;
}

.form-control-lg::placeholder,
.form-control::placeholder {
  color: #bbb;
  /* Helleres Grau für Platzhaltertext */
}

.footer {
  background: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  /* Statt margin-top: auto */
  bottom: 0;
  /* Am unteren Rand anheften */
  left: 0;
  right: 0;
  z-index: 1000;
  /* Sicherstellen, dass er über anderen Inhalten liegt */
}

.social-icons {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 20px;
}

.fullscreenImageBtn {
  font-size: 2.1rem !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.fullscreenImageBtn:hover {
  transform: scale(1.1);
  color: rgb(0, 255, 242) !important;
  transition: all 0.3s ease;
}

.fullscreenImageBtn i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.social-icons a {
  color: #ecf0f1;
  font-size: 2.1rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #3498db;
  transform: translateY(-3px);
}

.custom-confirm-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  z-index: 1050;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 350px;
  max-width: 90%;
  color: #e1e1e1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-confirm-modal h3 {
  margin: 0 0 1rem 0;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.custom-confirm-modal p {
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  color: #cccccc;
}

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 3px solid #FFF;
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

.badge-html      { background: #e44d26; color: #fff; }
.badge-bootstrap { background: #7952b3; color: #fff; }
.badge-js        { background: #f7df1e; color: #222; }
.badge-node      { background: #3c873a; color: #fff; }
.badge-express   { background: #535353; color: #fff; }
.badge-python    { background: #3776ab; color: #fff; }
.badge-mysql     { background: #00758f; color: #fff; }
.badge-sqlite    { background: #003b57; color: #fff; }
.badge-docker    { background: #2496ed; color: #fff; }
.badge-git       { background: #f34f29; color: #fff; }
.badge-rest      { background: #6db33f; color: #fff; }
.badge-notion    { background: #fff; color: #222; border: 1px solid #222; }
.badge-scrum     { background: #20c997; color: #fff; }
.badge-electron  { background: #0080a7; color: #fff; }

/* Animation für das Erscheinen */
.custom-confirm-modal.show {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1080px) {
  .bilder-galerie-special {
    width: 95%;
    margin: 20px auto;
  }
}

/* Responsive Design */
@media (max-width: 576px) {
  .custom-confirm-modal {
    min-width: unset;
    width: 85%;
    padding: 1.5rem;
    margin: 1rem;
  }

  .custom-confirm-modal h3 {
    font-size: 1.2rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .social-icons {
    gap: 15px;
  }

  .social-icons a {
    font-size: 1.3rem;
  }
}

.readme-modal {
  max-height: 75vh !important;
  display: flex !important;
  flex-direction: column;
}

.readme-content {
  overflow-y: auto;
  padding-right: 10px;
  margin: 15px -10px 0 0;
  flex: 1;
}

.readme-content::-webkit-scrollbar {
  width: 8px;
}

.readme-content::-webkit-scrollbar-track {
  background: #2e2e2e;
  border-radius: 4px;
}

.readme-content::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.readme-content::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.modal-close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.maximizeProject-carousel-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  position: relative;
}

.maximizeProject-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.maximizeProject-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}