/* ===================================================================
   ZAPFGOLD – Stylesheet
   Farben: Schwarz, Weiss, Gold | Stil: minimalistisch, hochwertig
   =================================================================== */

/* ----- Custom Properties ----- */
:root {
  --black: #111;
  --black-soft: #1a1a1a;
  --grey-dark: #2a2a2a;
  --grey: #888;
  --grey-light: #ccc;
  --white: #fafafa;
  --white-pure: #fff;
  --gold: #c8a95e;
  --gold-light: #e8d5a3;
  --gold-dark: #a68a3e;
  --danger: #c0392b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --transition: .25s ease;
  --max-width: 1140px;
  --nav-height: 64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ----- Utility ----- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn--primary {
  background: var(--gold);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn--outline {
  color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
}
.btn--small {
  padding: 6px 16px;
  font-size: .8rem;
}
.btn--danger {
  border-color: var(--danger);
  color: var(--danger);
}
.btn--danger:hover {
  background: var(--danger);
  color: var(--white);
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled, .nav--solid {
  background: rgba(17,17,17,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  color: var(--grey-light);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(17,17,17,.97);
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 18s ease-in-out infinite;
}
.hero__bg--1 { background-image: url('/images/hero-bg.png'); }
.hero__bg--2 { background-image: url('/images/hero-bg-2.png'); animation-delay: 6s; }
.hero__bg--3 { background-image: url('/images/hero-bg-3.png'); animation-delay: 12s; }

@keyframes heroFade {
  0%      { opacity: 0; }
  5.5%    { opacity: .3; }
  28%     { opacity: .3; }
  33.3%   { opacity: 0; }
  100%    { opacity: 0; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(17,17,17,.4) 0%, rgba(17,17,17,.7) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(200,169,94,.12) 0%, transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: .05em;
  line-height: 1.1;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero__text {
  max-width: 560px;
  margin: 24px auto 40px;
  color: var(--grey-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.section {
  padding: 100px 0;
}
.section--dark {
  background: var(--black-soft);
  color: var(--white);
}
.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.section--dark .section__title { color: var(--white); }
.section__subtitle {
  text-align: center;
  color: var(--grey);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section--dark .section__subtitle { color: var(--grey-light); }

/* ===================================================================
   PRODUKTE – Grid + Karten
   =================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white-pure);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--grey-light);
}
.product-card__body {
  padding: 20px;
}
.product-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-card__desc {
  color: var(--grey);
  font-size: .9rem;
  line-height: 1.5;
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--grey);
}
.section--dark .empty-state { color: var(--grey-light); }

/* ===================================================================
   MODAL – Produkt-Detail
   =================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.modal__content {
  position: relative;
  z-index: 1;
  background: var(--white-pure);
  border-radius: var(--radius);
  max-width: 900px;
  width: calc(100% - 48px);
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--grey);
  line-height: 1;
  z-index: 1;
}
.modal__close:hover { color: var(--black); }
.modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 640px) {
  .modal__body { grid-template-columns: 1fr; }
}
.modal__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--grey-light);
}
.modal__info {
  padding: 32px;
}
.modal__info h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.modal__info p {
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}
.modal__properties {
  margin-bottom: 24px;
}
.modal__properties li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
  color: var(--grey-dark);
}
.modal__properties li strong {
  color: var(--black);
}

/* ===================================================================
   GALERIE
   =================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  transition: color var(--transition);
  padding: 8px;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--gold); }
.lightbox__close { top: 20px; right: 24px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ===================================================================
   GAESTEBUCH
   =================================================================== */
.guestbook-form {
  max-width: 600px;
  margin: 0 auto 48px;
}
.guestbook-entries {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guestbook-entry {
  background: var(--white-pure);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.guestbook-entry__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.guestbook-entry__name {
  font-weight: 700;
  font-size: .95rem;
}
.guestbook-entry__date {
  color: var(--grey);
  font-size: .8rem;
}
.guestbook-entry__message {
  color: var(--grey-dark);
  line-height: 1.6;
  font-size: .95rem;
}

/* ===================================================================
   FORMULARE
   =================================================================== */
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--grey-dark);
}
.section--dark .form-row label { color: var(--grey-light); }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white-pure);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.contact-form,
.guestbook-form {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.form-success {
  max-width: 700px;
  margin: 24px auto 0;
  padding: 20px;
  background: rgba(200,169,94,.12);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  color: var(--gold-dark);
}
.section--dark .form-success { color: var(--gold-light); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: var(--black);
  color: var(--grey);
  padding: 40px 0;
}
.footer__inner {
  text-align: center;
}
.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__links {
  margin-bottom: 12px;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.footer__links a {
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  font-size: .8rem;
}

/* ===================================================================
   LEGAL (Impressum)
   =================================================================== */
.legal {
  padding: calc(var(--nav-height) + 48px) 0 80px;
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  margin-top: 48px;
}
.legal h1:first-child { margin-top: 0; }
.legal h2 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}
.legal h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
}
.legal p {
  color: var(--grey-dark);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 48px 0;
}

/* ===================================================================
   ADMIN
   =================================================================== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}
.admin-login[hidden] {
  display: none;
}
.admin-login__box {
  max-width: 400px;
  width: 100%;
  padding: 48px 32px;
  background: var(--white-pure);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  text-align: center;
}
.admin-login__box h1 {
  margin-bottom: 24px;
}
.admin-login__error {
  margin-top: 12px;
  color: var(--danger);
  font-size: .9rem;
}

.admin-dashboard {
  padding: calc(var(--nav-height) + 32px) 0 80px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.admin-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.admin-tab:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-panel {
  margin-bottom: 40px;
}
.admin-panel h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.admin-form {
  background: var(--white-pure);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  margin-bottom: 32px;
}
.admin-form__actions {
  display: flex;
  gap: 12px;
}

.admin-form__hint {
  font-size: .85rem;
  color: var(--grey);
  margin: -8px 0 16px;
  font-style: italic;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white-pure);
  border: 1px solid #eee;
  border-radius: var(--radius);
}
.admin-list-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey-light);
  flex-shrink: 0;
}
.admin-list-item__info {
  flex: 1;
  min-width: 0;
}
.admin-list-item__title {
  font-weight: 700;
  font-size: .95rem;
}
.admin-list-item__sub {
  font-size: .85rem;
  color: var(--grey);
  margin-top: 2px;
}
.admin-list-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.admin-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-gallery-item__delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.6);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.admin-gallery-item:hover .admin-gallery-item__delete { opacity: 1; }

/* inquiry card */
.inquiry-card {
  padding: 20px;
  background: var(--white-pure);
  border: 1px solid #eee;
  border-radius: var(--radius);
}
.inquiry-card__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.inquiry-card__name { font-weight: 700; }
.inquiry-card__date { font-size: .8rem; color: var(--grey); }
.inquiry-card__meta {
  font-size: .85rem;
  color: var(--grey);
  margin-bottom: 8px;
}
.inquiry-card__message {
  color: var(--grey-dark);
  line-height: 1.6;
}

/* ===================================================================
   LOCATIONS
   =================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.location-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.location-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.location-card__body {
  padding: 24px;
}
.location-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.location-card__desc {
  color: var(--grey-light);
  font-size: .9rem;
  line-height: 1.5;
}

/* ----- Location modal ----- */
.loc-modal {
  max-width: 900px;
}
.loc-top {
  display: flex;
}
.loc-top > .loc-hero {
  flex: 0 0 50%;
  max-width: 50%;
}
.loc-top > .modal__info {
  flex: 1 1 50%;
}
@media (max-width: 480px) {
  .loc-top { flex-direction: column; }
  .loc-top > .loc-hero { flex: none; max-width: 100%; }
}

/* Hero-Bild (linke Haelfte) */
.loc-hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.loc-hero__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.loc-hero__prev,
.loc-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
}
.loc-hero__prev:hover,
.loc-hero__next:hover {
  background: rgba(200,169,94,.7);
}
.loc-hero__prev { left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.loc-hero__next { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.loc-hero__counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .04em;
}

/* Galerie-Bereich unter dem Hauptinhalt */
.loc-gallery {
  border-top: 1px solid #eee;
  padding: 16px 24px 20px;
}
.loc-gallery__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey);
  margin-bottom: 10px;
}
.loc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) transparent;
}
.loc-gallery__item {
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--transition), opacity var(--transition);
}
.loc-gallery__item:hover {
  opacity: .8;
}
.loc-gallery__item.active {
  outline-color: var(--gold);
}
.loc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================================
   SCROLL ANIMATIONS
   =================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
