:root {
  --primary: #4f46e5;
  --button-hover: #4338ca;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #f8f4ed, #e5e7f9);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
}

.container {
  background: #ffffff;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 72vw; /* vorher: 90vw → jetzt 20% schmaler */
  max-width: 1000px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.profile-pic {
  width: 60vw;
  max-width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5rem 0 2rem;
}

.section-card {
  background: #fdfdfd;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.section-card:hover {
  transform: scale(1.01);
}

.icon-title {
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.icon-links a {
  background: #f3f3f3;
  padding: 16px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 84px;
  height: 84px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.icon-links a:hover {
  transform: scale(1.1);
}

.icon-links a img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.icon-divider {
  text-align: center;
  font-size: 1.2rem;
  color: #d97706;
  margin: 2rem 0 1.2rem;
  font-weight: 600;
}

.gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.footer {
  margin-top: auto;
  padding: 1.5rem 1rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  background: #ffffff20;
  border-top: 1px solid #d1d5db;
  border-radius: 0 0 16px 16px;
  width: 100%;
}

.footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer a:hover {
  color: #4f46e5;
}

.footer-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.4rem;
}

.footer-social-icons-inline {
  display: flex;
  gap: 10px;
}

.footer-social-icons-inline a {
  font-size: 18px;
  color: #6b7280;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social-icons-inline a:hover {
  color: var(--primary);
}

body.dark-mode {
  background: linear-gradient(to bottom right, #1e1e1e, #2a2a2a);
}

body.dark-mode .container {
  background: #2d2d2d;
  color: #f3f3f3;
}

body.dark-mode .description {
  color: #bcbcbc;
}

body.dark-mode .footer {
  background: #1a1a1a;
  border-color: #333;
  color: #aaa;
}

body.dark-mode .footer a {
  color: #aaa;
}

body.dark-mode .footer a:hover {
  color: #fff;
}

body.dark-mode .icon-group {
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .icon-title {
  color: #e5e7eb;
}

body.dark-mode .footer-social-icons-inline a {
  color: #aaa;
}

body.dark-mode .footer-social-icons-inline a:hover {
  color: #fff;
}

.back-home {
  margin-top: 2.5rem;
  text-align: center;
}

.back-button {
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

@media (max-width: 400px) {
  .profile-pic { width: 70vw; }
  .icon-links a { width: 56px; height: 56px; }
  .icon-links a img { max-width: 40px; max-height: 40px; }
  .gallery img { width: 100px; height: 100px; }
}

@media (min-width: 600px) {
  .icon-section {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}


.section-separator {
  height: 2px;
  background: #e5e7eb;
  margin: 3rem auto;
  width: 80%;
  border-radius: 1px;
}

.gallery-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #dc2626;
}


.gallery-card {
  background: #f9fafb;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}


.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.icon-group,
.gallery-card {
  background: #f9fafb;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin: 0 auto; /* zentriert */
  transition: transform 0.3s ease;
}
.icon-group:hover {
  transform: translateY(-4px);
}


#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: var(--button-hover);
}

body.dark-mode #scrollTopBtn {
  background-color: #333;
  color: #fff;
}

body.dark-mode #scrollTopBtn:hover {
  background-color: #555;
}
