@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #080b10;
  --bg-elevated: #121820;
  --bg-card: #161d28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #c9a227;
  --accent-hover: #e0b83d;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(201, 162, 39, 0.05), transparent),
    var(--bg);
}

/* —— Home —— */

.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem 4rem;
}

.site-header {
  text-align: center;
  padding: 4.5rem 0 3rem;
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 999px;
}

.site-header h1,
#überschrift {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.album-list {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  gap: 1rem;
}

.album-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  animation: fadeUp 0.5s ease backwards;
}

.album-card:nth-child(1) { animation-delay: 0.05s; }
.album-card:nth-child(2) { animation-delay: 0.1s; }
.album-card:nth-child(3) { animation-delay: 0.15s; }
.album-card:nth-child(4) { animation-delay: 0.2s; }
.album-card:nth-child(5) { animation-delay: 0.25s; }

.album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.35);
  background: #1a222e;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.album-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.album-card__meta {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.album-card::after {
  content: "→";
  flex-shrink: 0;
  margin-left: 0.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

.album-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.site-footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legacy class support */
.links {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition);
}

.links a:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.35);
  background: #1a222e;
}

/* —— Album pages —— */

.album-page {
  padding-bottom: 4rem;
}

.album-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.album-header h1 {
  margin: 0;
  max-width: 52rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button:hover {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--accent-hover);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.gallery img:hover {
  transform: scale(1.03);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* —— Lightbox —— */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(8px);
  animation: lightboxIn 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(95vw, 1100px);
  max-height: 90vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  aspect-ratio: unset;
  margin: 0;
  cursor: default;
}

.lightbox__img:hover {
  transform: none;
}

.lightbox__caption {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 40rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--accent-hover);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0 0.1rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }

  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .album-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .album-card::after {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
