/* ==========================================================================
   Strandbistro Bruno — Digitales Archiv
   Strandgold Design System
   ========================================================================== */

:root {
  /* Strandgold Palette */
  --color-cream: #f8f1e6;
  --color-cream-dark: #f0e5d4;
  --color-sand: #FADFB4;
  --color-gold-light: #d4b896;
  --color-gold: #c4956a;
  --color-gold-dark: #8a6e4e;
  --color-espresso: #3d2b1f;
  --color-espresso-light: #5a4433;
  --color-text: #4a3828;
  --color-text-light: #6b5a48;
  --color-accent: #DE8218;
  --color-white: #fefcf7;

  /* Typography */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Verdana', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 900px;
  --max-width-wide: 1100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
}

::selection {
  background: var(--color-gold-light);
  color: var(--color-espresso);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.album-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.album-nav--visible {
  transform: translateY(0);
  opacity: 1;
}

.album-nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-nav__logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.album-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.album-nav__links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-gold-dark);
  transition: color 0.3s;
  position: relative;
}

.album-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.album-nav__links a:hover::after,
.album-nav__links a.active::after {
  transform: scaleX(1);
}

.album-nav__links a:hover {
  color: var(--color-espresso);
}

/* Mobile nav */
.album-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-gold-dark);
}

.album-nav__toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 599px) {
  .album-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248, 241, 230, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  }

  .album-nav__links--open {
    display: flex;
  }

  .album-nav__toggle {
    display: block;
  }
}

/* ==========================================================================
   Sections — Shared
   ========================================================================== */

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  font-weight: normal;
  color: var(--color-espresso);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.section__intro {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.section__divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold-light),
    transparent
  );
  margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.section--hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--color-espresso);
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 43, 31, 0.15) 0%,
    rgba(61, 43, 31, 0.1) 40%,
    rgba(61, 43, 31, 0.65) 80%,
    rgba(61, 43, 31, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem 12vh;
  color: var(--color-cream);
}

.hero__logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-md);
  opacity: 0.9;
  filter: brightness(1.3) contrast(0.9);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, var(--text-4xl));
  font-weight: normal;
  letter-spacing: 0.06em;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.hero__scroll {
  display: inline-block;
  text-decoration: none;
  color: var(--color-cream);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: hero-bounce 2.5s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ==========================================================================
   Story (Die Geschichte)
   ========================================================================== */

.section--story {
  background: var(--color-cream);
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 700px) {
  .story__layout {
    grid-template-columns: 2fr 3fr;
  }
}

.story__portrait {
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.15);
}

.story__text {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.story__text p {
  margin-bottom: 1em;
}

.story__greeting {
  font-size: var(--text-xl);
  color: var(--color-espresso);
  margin-bottom: var(--space-sm);
}

.story__tagline {
  font-style: italic;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

.story__signature {
  margin-top: var(--space-lg);
}

.story__signature img {
  height: 44px;
  width: auto;
  display: inline-block;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.section--gallery {
  background: var(--color-cream-dark);
}

.gallery__grid {
  column-count: 1;
  column-gap: 12px;
}

@media (min-width: 500px) {
  .gallery__grid { column-count: 2; }
}

@media (min-width: 900px) {
  .gallery__grid { column-count: 3; }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(61, 43, 31, 0.7), transparent);
  color: var(--color-cream);
  font-size: var(--text-sm);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
}

/* ==========================================================================
   Team Timeline
   ========================================================================== */

.section--team {
  background: var(--color-cream);
  overflow: hidden;
}

.team__scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) 0 var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-light) transparent;
}

.team__scroll::-webkit-scrollbar {
  height: 6px;
}

.team__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.team__scroll::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 3px;
}

.team__card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.15);
}

@media (min-width: 600px) {
  .team__card { flex: 0 0 380px; }
}

.team__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.team__card-body {
  padding: var(--space-sm) var(--space-md);
}

.team__year {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: bold;
}

.team__card-title {
  font-size: var(--text-lg);
  color: var(--color-espresso);
  margin-top: 0.25em;
}

.team__card-text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: 0.5em;
}

/* ==========================================================================
   Speisekarten (Menu Archive)
   ========================================================================== */

.section--menus {
  background: var(--color-cream-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.12);
}

.menu-card__visual {
  width: 80px;
  height: 100px;
  background: var(--color-cream);
  border: 1px solid var(--color-gold-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: var(--space-sm);
}

.menu-card__visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(
    225deg,
    var(--color-cream-dark) 50%,
    var(--color-gold-light) 50%
  );
  border-radius: 0 4px 0 0;
}

.menu-card__icon {
  font-size: 1.5rem;
  color: var(--color-gold);
}

.menu-card__year {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-espresso);
  font-weight: normal;
}

.menu-card__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-gold-dark);
  letter-spacing: 0.1em;
  margin-top: 0.25em;
}

.menu-card__size {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-gold-light);
  margin-top: 0.5em;
}

/* ==========================================================================
   Chronik (Timeline)
   ========================================================================== */

.section--chronik {
  background: var(--color-cream);
}

.chronik {
  position: relative;
  max-width: 650px;
}

.chronik__line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gold-light);
}

.chronik__entry {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: var(--space-xl);
}

.chronik__entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 2px solid var(--color-gold);
  z-index: 1;
}

.chronik__date {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: bold;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.35em;
}

.chronik__title {
  font-size: var(--text-xl);
  color: var(--color-espresso);
  font-weight: normal;
  margin-bottom: 0.5em;
}

.chronik__text {
  color: var(--color-text-light);
  line-height: 1.7;
}

.chronik__image {
  margin-top: var(--space-sm);
  border-radius: 4px;
  max-width: 500px;
}

/* ==========================================================================
   Footer (Abschied)
   ========================================================================== */

.section--footer {
  background: var(--color-espresso);
  color: var(--color-cream);
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem);
}

.footer__quote {
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, var(--text-2xl));
  color: var(--color-gold-light);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer__text {
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  color: rgba(248, 241, 230, 0.8);
  line-height: 1.8;
}

.footer__text p {
  margin-bottom: 1em;
}

.footer__signature {
  margin: var(--space-lg) auto;
}

.footer__signature img {
  height: 44px;
  width: auto;
  margin: 0 auto;
  filter: brightness(1.5);
}

.footer__legal {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(212, 184, 150, 0.2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(248, 241, 230, 0.4);
  letter-spacing: 0.1em;
}

.footer__legal a {
  color: rgba(248, 241, 230, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__legal a:hover {
  color: var(--color-gold-light);
}

.footer__divider {
  margin: 0 0.75em;
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(248, 241, 230, 0.3);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 18, 12, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__figure {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out);
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  text-align: center;
  color: rgba(248, 241, 230, 0.7);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

.lightbox__btn {
  position: absolute;
  background: none;
  border: none;
  color: rgba(248, 241, 230, 0.7);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
  z-index: 201;
}

.lightbox__btn:hover {
  color: var(--color-cream);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll-arrow {
    animation: none;
  }
}

/* ==========================================================================
   Skip to Content
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-espresso);
  color: var(--color-cream);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-decoration: none;
  z-index: 300;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================================== */

.legal-page {
  min-height: 100vh;
  background: var(--color-cream);
  padding: var(--space-xl) clamp(1rem, 4vw, 2rem);
}

.legal-page__inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-page__back {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-gold-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-xl);
  transition: color 0.3s;
}

.legal-page__back:hover {
  color: var(--color-espresso);
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: normal;
  color: var(--color-espresso);
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-size: var(--text-lg);
  color: var(--color-espresso);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p {
  margin-bottom: 1em;
  color: var(--color-text-light);
}

.legal-page ul {
  color: var(--color-text-light);
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.legal-page a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
