@font-face {
  font-family: "Lobster";
  src: url("fonts/Lobster-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-top: #f8ebe5;
  --bg-mid: #f1d9cf;
  --bg-bottom: #e8c7b9;
  --surface: rgba(255, 250, 247, 0.84);
  --surface-strong: rgba(255, 250, 247, 0.93);
  --text: #341b1b;
  --muted: #6b4343;
  --accent: #7b1e24;
  --accent-soft: #b86f47;
  --border: rgba(123, 30, 36, 0.25);
  --gold: #b58a3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(rgba(255, 245, 240, 0.5), rgba(86, 36, 35, 0.26)),
    radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.3) 0 17%, transparent 45%),
    url("images/ostsee.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 5rem 0 3.8rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.72), rgba(255, 250, 247, 0.36));
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

h1 {
  margin: 0.65rem 0 0.25rem;
  font-family: "Lobster", cursive;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 400;
  color: #260f10;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
}

.top-nav {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.top-nav a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 250, 247, 0.66);
  color: var(--accent);
  font-weight: 700;
}

.top-nav a:hover {
  background: rgba(255, 250, 247, 0.88);
}

main {
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.05rem;
  box-shadow: 0 12px 30px rgba(80, 35, 35, 0.08);
  backdrop-filter: blur(2px);
}

.album-block {
  margin-top: 1rem;
}

h3 {
  margin: 0.25rem 0 0.7rem;
  color: var(--accent);
}

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

.photo-tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.photo-tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  vertical-align: middle;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 8, 8, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 3.4rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  text-align: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  display: none;
}

.lightbox-counter {
  margin: 0.55rem auto 0;
  display: block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-size: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-nav::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  display: block;
}

.lightbox-prev::before {
  transform: rotate(-135deg);
  margin-left: 0.14rem;
}

.lightbox-next::before {
  transform: rotate(45deg);
  margin-right: 0.14rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.upload-form {
  display: grid;
  gap: 0.65rem;
}

.upload-form label {
  font-weight: 700;
}

.upload-form input,
.upload-form select,
.upload-form button {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.upload-form button {
  cursor: pointer;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.upload-form button:hover {
  background: #5f171b;
}

.flash-stack {
  margin: 0.8rem 0;
  display: grid;
  gap: 0.5rem;
}

.flash {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.flash.success {
  background: rgba(31, 135, 82, 0.12);
  border-color: rgba(31, 135, 82, 0.35);
}

.flash.error {
  background: rgba(171, 44, 44, 0.12);
  border-color: rgba(171, 44, 44, 0.3);
}

.card.alert {
  background: var(--surface-strong);
  border-color: rgba(123, 30, 36, 0.4);
}

.card.alert h2 {
  color: var(--accent);
}

h2 {
  margin: 0 0 0.35rem;
  font-family: "Lobster", cursive;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #421f20;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  text-decoration-style: dotted;
}

a:hover {
  color: var(--accent-soft);
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--gold);
  font-family: "Lobster", cursive;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

@media (max-width: 740px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 2.6rem;
  }

  .card {
    padding: 1rem 0.95rem 0.9rem;
  }

  .lightbox {
    padding: 1rem 0.6rem;
  }

  .lightbox-nav {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.5rem;
  }
}
