/* ══════════════════════════════════════════════
   Thaipark Berlin – Shared Styles
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f0ea;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Page Box ── */
.page-box {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #e8e4df;
  border-right: 1px solid #e8e4df;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1168px) {
  .page-box { border-left: none; border-right: none; }
}

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(232,228,223,0.6);
}
.header-inner { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-socials { display: flex; gap: 4px; }
.header-socials a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #7a8a9a; transition: color 0.2s; }
.header-socials a:hover { color: #5db85c; }
.header-socials svg { width: 16px; height: 16px; fill: currentColor; }
.header-divider { width: 1px; height: 20px; background: #e0dcd7; }

/* ── Language Selector ── */
.language-selector { position: relative; }
.current-flag { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; display: flex; align-items: center; }
.flag-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: #fff; border: 1px solid #e8e4df; z-index: 300; min-width: 160px; margin-top: 8px;
}
.language-selector.active .flag-dropdown { display: block; }
.flag-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px;
  background: none; border: none; cursor: pointer; font-family: 'Poppins', sans-serif;
  font-size: 14px; color: #3a4a5c; transition: background 0.15s; text-align: left;
}
.flag-option:hover { background: #f5f0ea; }
.flag-option.selected { background: #e4f5e4; }
.flag-option span { font-size: 20px; line-height: 1; }
.flag-option small { font-size: 13px; font-weight: 400; }
#google_translate_element { display: none; }
.goog-te-banner-frame { display: none !important; }

/* ── Hamburger ── */
.hamburger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: #3a4a5c; position: relative; transition: background 0.2s; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; width: 20px; height: 2px; background: #3a4a5c; left: 0; transition: all 0.3s; }
.hamburger span::before { top: -8px; }
.hamburger span::after { top: 8px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after { top: 0; transform: rotate(-45deg); }

/* ── Mobile Nav ── */
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff; z-index: 300; padding: 80px 32px 32px; transition: right 0.35s ease; overflow-y: auto; border-left: 1px solid #e8e4df; }
.mobile-nav.open { right: 0; }
.mobile-nav .close-btn { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: none; border: none; font-size: 24px; color: #3a4a5c; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-nav .nav-link { display: block; font-size: 18px; font-weight: 500; color: #3a4a5c; text-decoration: none; padding: 16px 0; transition: color 0.2s; }
.mobile-nav .nav-link:hover { color: #5db85c; }
.mobile-nav-socials { display: flex; gap: 12px; margin-top: 32px; padding-top: 16px; }
.mobile-nav-socials a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #7a8a9a; transition: color 0.2s; }
.mobile-nav-socials a:hover { color: #5db85c; }
.mobile-nav-socials svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 0;
}
.mobile-nav-meta a {
  font-size: 11px;
  font-weight: 400;
  color: #b0bcc8;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-meta a:hover { color: #5db85c; }
.mobile-nav-meta span { color: #ddd; font-size: 11px; }

/* ── Kategorie Tags ── */
.speise-tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; margin-bottom: 8px;
}
.tag-fleisch { background: #fce4e4; color: #c0392b; }
.tag-vegan { background: #e4f5e4; color: #27ae60; }
.tag-suppe { background: #fef3e0; color: #e67e22; }
.tag-dessert { background: #f0e6f6; color: #8e44ad; }
.tag-snack { background: #e8f0fe; color: #2c6fbb; }
.tag-salat { background: #e0f5f0; color: #1a9a7a; }

/* ── Social Card Links ── */
.card-links { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.card-links a, .card-links span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; transition: opacity 0.2s; }
.card-links a:hover { opacity: 0.7; }
.card-links svg { width: 15px; height: 15px; }
.card-links .link-web { color: #5db85c; }
.card-links .link-web svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-links .link-fb { color: #1877f2; }
.card-links .link-fb svg { fill: currentColor; }
.card-links .link-ig { color: #e1306c; }
.card-links .link-ig svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Buttons ── */
.btn-eintragen {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 24px; background: #5db85c; color: #fff; border: none;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-eintragen:hover { background: #4da64c; }
.btn-eintragen svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Alerts ── */
.alert { padding: 14px 18px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.alert-error { background: #fce4e4; border: 1px solid #f5c6c6; color: #c0392b; }
.alert-success { background: #e4f5e4; border: 1px solid #c6e8c6; color: #1a7a3a; }
.msg { background: #e4f5e4; border: 1px solid #c6e8c6; color: #1a7a3a; font-size: 13px; padding: 10px 16px; margin-bottom: 16px; }
.err { background: #fce4e4; border: 1px solid #f5c6c6; color: #c0392b; font-size: 13px; padding: 10px 16px; margin-bottom: 16px; }

/* ── Likes ── */
.like-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.like-btn {
  background: none; border: none; cursor: pointer; color: #bbb; padding: 0;
  transition: color 0.2s, transform 0.2s; display: flex; align-items: center;
}
.like-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.like-btn:hover { color: #5db85c; transform: scale(1.15); }
.like-btn.liked { color: #5db85c; }
.like-btn.liked svg { fill: #5db85c; }
.like-count { font-size: 12px; color: #999; font-weight: 500; min-width: 12px; }

/* ── Mascot ── */
.mascot-row { display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: center; margin-bottom: 12px; }
.mascot-row img { height: 64px; width: auto; }
.mascot-row h1, .mascot-row h2 { margin: 0; text-align: center; }
.mascot-inline { height: 48px; width: auto; vertical-align: middle; margin-right: 8px; }
.mascot-float { float: left; height: 180px; width: auto; margin: 0 20px 10px 0; }
@media (max-width: 768px) {
  .mascot-row img, .mascot-inline, .mascot-float { display: none; }
  .mascot-row h1, .mascot-row h2 { text-align: center; }
}

/* ── Werbebanner (shared) ── */
.inline-banner { display: flex; border: 1px solid #e8e4df; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); max-height: 200px; }
.inline-banner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.inline-banner-img { width: 260px; flex-shrink: 0; overflow: hidden; background: #f0ede8; }
.inline-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-banner-body { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.inline-banner-text { font-size: 14px; color: #7a8a9a; line-height: 1.6; margin-bottom: 12px; }
.inline-banner-link { font-size: 14px; font-weight: 600; color: #5db85c; text-decoration: none; align-self: flex-end; transition: color 0.2s; }
.inline-banner-link:hover { color: #4da64c; }
.inline-banner-label { font-size: 10px; color: #ccc; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
@media (max-width: 768px) {
  .inline-banner { flex-direction: column; max-height: none; }
  .inline-banner-img { width: 100%; height: 180px; }
  .inline-banner-body { padding: 16px 20px; }
}

/* ── Footer ── */
.site-footer { background: #3a4a5c; color: #b0bec5; text-align: center; padding: 32px 24px; font-size: 13px; font-weight: 400; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #b0bec5; transition: color 0.2s; }
.footer-socials a:hover { color: #fff; }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-links { display: flex; align-items: center; gap: 12px; }
.footer-links a { color: #b0bec5; text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-sep { color: #6b7a8a; font-size: 12px; }
.footer-copy { font-size: 12px; color: #8a9aaa; }

/* ── Slideshow ── */
.slideshow { position: relative; width: 100%; overflow: hidden; background: #f5f0ea; padding: 8px 0; }
.slideshow-track { display: flex; transition: transform 0.5s ease; }
.slideshow-slide { flex: 0 0 50%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0 4px; box-sizing: border-box; position: relative; }
.slideshow-slide:first-child { padding-left: 0; }
.slideshow-slide:last-child { padding-right: 0; }
.slideshow-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.slideshow-slide a { display: block; width: 100%; height: 100%; }
.slideshow-slide .slide-label {
  position: absolute; bottom: 0; left: 4px; right: 4px; padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff;
  font-size: 13px; font-weight: 500; border-radius: 0 0 6px 6px;
  pointer-events: none;
}
.slideshow-slide:first-child .slide-label { left: 0; }
.slideshow-slide:last-child .slide-label { right: 0; }
.slideshow-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; background: #c4956a; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s;
}
.slideshow-btn:hover { background: #b07d52; }
.slideshow-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slideshow-btn.prev { left: 12px; }
.slideshow-btn.next { right: 12px; }
.slideshow-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slideshow-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.2s; }
.slideshow-dot.active { background: #fff; }

@media (max-width: 900px) {
  .slideshow-slide { flex: 0 0 100%; aspect-ratio: 16 / 9; padding: 0; }
  .slideshow-slide img { border-radius: 0; }
  .slideshow-slide .slide-label { left: 0; right: 0; border-radius: 0; }
  .slideshow-btn { width: 40px; height: 40px; }
  .slideshow-btn svg { width: 16px; height: 16px; }
}

/* ── Shared Form Styles ── */
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: 'Poppins', sans-serif; font-size: 15px; padding: 12px 14px;
  border: 1px solid #e0dcd7; outline: none; background: #fff; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #5db85c; }
.form-textarea { resize: vertical; min-height: 80px; }

.hint { font-size: 12px; color: #999; margin-top: 4px; }
.required { color: #e63946; }
.char-count { font-size: 11px; color: #bbb; text-align: right; margin-top: 2px; }

/* ── Auth Pages (Login, Passwort) ── */
.wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.box { background: #fff; border: 1px solid #e8e4df; padding: 36px 32px; width: 100%; max-width: 420px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.links { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.links a { color: #5db85c; text-decoration: none; font-weight: 500; }
.success { background: #e4f5e4; border: 1px solid #c6e8c6; color: #1a7a3a; font-size: 13px; padding: 16px; text-align: center; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .logo img { height: 46px; }
  .header-socials { display: none; }
  .header-divider { display: none; }
}

@media (max-width: 480px) {
}
