/* ============================================================
   svenplays.live — style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --base:       #0f1923;
  --section-bg: #1a2535;
  --accent:     #c8a96e;
  --accent-h:   #dfc089;
  --accent-dim: rgba(200, 169, 110, 0.25);
  --text:       #f5f0e8;
  --secondary:  #d4c5a9;
  --muted:      rgba(245, 240, 232, 0.55);
  --nav-h:      72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--base);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--accent-h); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

p {
  color: var(--secondary);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 60ch;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Separator ──────────────────────────────────────────────── */
.section-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--accent-dim) 30%,
    var(--accent-dim) 70%,
    transparent
  );
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--base);
}
.btn-primary:hover {
  background: var(--accent-h);
  color: var(--base);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.3);
}

.btn-full { width: 100%; text-align: center; }

/* ── Section Label ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ── Section Header (centered) ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  max-width: 55ch;
  margin: 0 auto;
}

/* ── Tags ───────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.tag {
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  font-weight: 400;
  transition: all 0.25s ease;
}
.tag:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(15, 25, 35, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--accent-dim);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background-image: url('hero.webp');
  background-size: cover;
  background-position: center;
  background-color: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 25, 35, 0.82) 0%,
    rgba(15, 25, 35, 0.65) 50%,
    rgba(20, 30, 42, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: heroFadeIn 1.2s ease both;
}

.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  max-width: none;
  margin-bottom: 2.5rem;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
  opacity: 0.7;
}

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

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-base { background: var(--base); }
.section-alt  { background: var(--section-bg); }

/* Two-column content grid */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

.section-text { display: flex; flex-direction: column; }

/* ── Image wrapper ──────────────────────────────────────────── */
.image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.image-wrapper img {
  transition: transform 0.6s ease;
}
.image-wrapper:hover img { transform: scale(1.03); }

/* Gold corner accent on image */
.image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}
.image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 60px;
  height: 60px;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* Placeholder state when image fails to load */
.img-placeholder {
  background: linear-gradient(135deg, #1a2535 0%, #0f1923 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder img { display: none; }
.img-placeholder::before,
.img-placeholder::after { display: none; }
.image-wrapper.img-placeholder::before { display: none; }
.image-wrapper.img-placeholder::after { display: none; }

/* Inline pseudo ::before/after approach doesn't work cleanly with img-placeholder—
   we use a data-label approach in JS if image fails */
.img-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  opacity: 0.5;
}
.img-placeholder-inner svg { width: 40px; height: 40px; }
.img-placeholder-inner span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   REFERENCES — cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--base);
  border: 1px solid var(--accent-dim);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  border-color: rgba(200, 169, 110, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  max-width: none;
  color: var(--muted);
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background: var(--base);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Gallery placeholder */
.gallery-item.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item.img-placeholder img { display: none; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--section-bg);
  border: 1px solid rgba(200, 169, 110, 0.2);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 240, 232, 0.3); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option {
  background: var(--section-bg);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group input[type="date"] {
  color-scheme: dark;
}

/* Checkbox */
.checkbox-group { margin-top: 0.5rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(200, 169, 110, 0.35);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #0d1520;
  border-top: none;
  border-left: none;
  transform: rotate(43deg);
}

.checkbox-label span a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
}
.form-success h3 { color: var(--accent); margin-bottom: 0.75rem; }
.form-success p  { max-width: none; color: var(--secondary); }

/* Form error */
.form-error {
  color: #e07070;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(224, 112, 112, 0.3);
  border-radius: 2px;
  background: rgba(224, 112, 112, 0.06);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #080e14;
  padding: 2.5rem 0;
  border-top: 1px solid var(--accent-dim);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: none;
}
.footer-content p a { color: var(--secondary); }
.footer-content p a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--accent); }

.footer-email {
  font-size: 0.85rem;
  color: var(--secondary);
  letter-spacing: 0.04em;
}
.footer-email:hover { color: var(--accent); }

/* ============================================================
   SUB-PAGES (Impressum / Datenschutz)
   ============================================================ */
.subpage-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  border-bottom: 1px solid var(--accent-dim);
}
.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.subpage-hero p {
  font-size: 0.9rem;
  color: var(--muted);
}

.subpage-content {
  padding: 4rem 0 6rem;
}
.subpage-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content p  { margin-bottom: 1rem; }
.subpage-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.subpage-content li { color: var(--secondary); font-size: 1rem; margin-bottom: 0.35rem; }

.placeholder-field {
  display: inline-block;
  background: rgba(200, 169, 110, 0.1);
  border: 1px dashed rgba(200, 169, 110, 0.4);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.85em;
  font-family: monospace;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 3rem;
  }
  .section-grid .section-image { order: -1; }
  .section-grid.reverse .section-image { order: -1; }

  .cards-grid { grid-template-columns: 1fr; }
  .gallery    { grid-template-columns: repeat(2, 1fr); }

  .image-wrapper { aspect-ratio: 16 / 9; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100svh;
    background: rgba(10, 17, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
    border-left: 1px solid var(--accent-dim);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links li { border-bottom: 1px solid rgba(200,169,110,0.1); }
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
  .nav-link::after { display: none; }

  .section { padding: 5rem 0; }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-subtitle { letter-spacing: 0.1em; }
  .container { padding: 0 1.25rem; }
}
