/* =========================
   Global & Reset
========================= */
html {
  background: #111827; /* verhindert Flash bei Body */
}

/* Language Button */
#langToggle {
  background: linear-gradient(135deg, #c77dff, #ec4899);
  color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #5e3a80 #0f0f0f;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #111827, #581c87, #111827);
  color: white;
  min-height: 100vh;
  padding: 20px;
}

body.loaded {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.loaded {
  opacity: 1;
}

h1, h2, h3 {
  color: #c77dff;
}

/* =========================
   Container
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #1A1A3A;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================
   Profile Section
========================= */
.profile-section {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2A2A4E, #1E1E3F);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.profile-image-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-right: 30px;
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #c77dff;
  box-shadow: 0 10px 30px rgba(199,125,255,0.3);
}

.profile-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #c77dff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.profile-details {
  flex-grow: 1;
  min-width: 250px;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: bold;
  color: #c77dff;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #c77dff, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-subtitle {
  font-size: 1.2rem;
  color: #A0A0C0;
  margin-bottom: 15px;
}

.profile-description {
  color: #B0B0D0;
  line-height: 1.6;
}
.Google-Docs {
  margin-top: 15px;
  color: #A0A0C0;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  background: #2A2A4E;
  border-radius: 10px;
  flex-grow: 1;
  min-width: 100px;
  color: white;
  text-align: center;
}

.profile-stat-icon {
  font-size: 24px;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: inherit;
}

.profile-stat-label {
  font-size: 0.9rem;
  color: #A0A0C0;
}

.profile-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.profile-tag {
  background: #2A2A4E;
  color: #c77dff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* =========================
   Search Bar
========================= */
.search-bar {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.search-bar input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  background: #2A2A4E;
  border: 1px solid #9000ff;
  border-radius: 30px;
  color: rgb(255, 255, 255);
  font-size: 1rem;
  outline-offset: 0px;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: #470e75;
}

#langToggle {
  padding: 10px 16px;
  background: linear-gradient(135deg, #c77dff, #ec4899);
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(199, 125, 255, 0.3);
}

#langToggle {
  opacity: 0; /* initial unsichtbar */
  transition: opacity 0.3s ease, transform 0.2s, box-shadow 0.3s;
}

body.loaded #langToggle {
  opacity: 1;
}


#langToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 125, 255, 0.5);
}

#langToggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(199, 125, 255, 0.3);
}

/* =========================
   Project Cards
========================= */
.project-category {
  margin-bottom: 40px;
}

.project-category h2 {
  color: #c77dff;
  border-bottom: 2px solid #c77dff;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.project-card {
  background: #2A2A4E;
  border-radius: 15px;
  padding: 20px;
  width: calc(33.333% - 20px);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
  color: white;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-10px);
  border-color: #c77dff;
  box-shadow: 0 10px 20px rgba(199,125,255,0.2);
  outline: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.project-card h3 {
  color: #c77dff;
  margin-bottom: 10px;
  font-weight: 600;
}

.project-card p {
  color: #A0A0C0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-card .date {
  color: #6A6A8E;
  font-size: 0.8rem;
}

/* =========================
   Chips
========================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2A2A4E;
  border: 1px solid #3a3a66;
  color: #e4d7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.chip .badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(199,125,255,0.18);
  border: 1px solid rgba(199,125,255,0.35);
  color: #c77dff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

/* =========================
   Modal
========================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #1f1f2f;
  padding: 20px;
  border-radius: 15px;
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  color: white;
  position: relative;
}

.modal-content h2 {
  color: #c77dff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal-content p {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.modal-content ul {
  margin: 10px 0 15px 0;
  padding-left: 20px;
  color: #a0a0c0;
  list-style-type: disc;
}

.modal-content .date {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-style: italic;
}

.project-image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  object-fit: contain;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.image-gallery img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s, border 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.image-gallery img.selected {
  border: 2px solid #c77dff;
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #fff;
}

/* =========================
   Scrollbar (Webkit)
========================= */
::-webkit-scrollbar {
  height: 8px;
  background-color: #0f0f0f;
  border-radius: 4px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #5e3a80;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #7d5fff;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .project-card { width: calc(50% - 20px); }
  .profile-section { flex-direction: column; align-items: center; text-align: center; }
  .profile-image-container { margin-right: 0; margin-bottom: 20px; }
  .profile-details { min-width: auto; }
}

@media (max-width: 600px) {
  .project-card { width: 100%; }
}

/* =========================
   Impressum & ToTop
========================= */
.imp-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.imp-content.open {
  max-height: 1000px; /* Sicherheitswert, wird vom JS überschrieben */
}


.imp-section.visible {
  opacity: 1;
  transform: translateY(0);
}

#toTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
}

.daten {
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.daten a {
  color: #7200cf;
  text-decoration: none;
}

.daten a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}
/* =========================
   Impressum – Clean & Modern
========================= */

.impressum-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1a1a3a, #2a2a4e);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: #e0e0ff;
}

/* Section Wrapper */
.imp-section {
  margin-bottom: 25px;
  background: linear-gradient(135deg, #2a2a4e, #1f1f3a);
  border-radius: 12px;
  padding: 0 20px;
  border: 1px solid #3a3a66;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.imp-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Title */
.imp-title {
  font-size: 1.2rem;
  padding: 18px 0;
  color: #c77dff;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.imp-title:hover {
  color: #e4d7ff;
}

/* Arrow */
.imp-title::after {
  content: "▼";
  font-size: 0.9rem;
  color: #c77dff;
  transition: transform 0.3s ease;
}

/* Arrow rotation when open */
.imp-section.open .imp-title::after {
  transform: rotate(-180deg);
}

/* Content */
.imp-content {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 0 10px 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    visibility 0.3s ease,
    padding 0.3s ease;
}

.imp-content.open {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  padding-top: 10px;
}

