.homeTitle{
  font-family: MagicOwl;

}

button{
  font-family: var(  --magic-font-body);
}

/* Map Riddle Styles */
.riddle-map-bg {
 
  background-color: rgba(0, 0, 0, 0.664);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  color: white;
  box-sizing: border-box;
  flex: 1 1 100%;
  overflow: visible;
  justify-content: flex-start;
  border-radius: 15px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  margin-bottom: 10px;
}
.riddle-map-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  top: 4px;
  position: relative;
  z-index: 1;
  padding: 50px;
}
.riddle-map-cell {
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.2);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 6px;
  font-family: var(--magic-font-body);
  font-weight: 600;
  transition: background 0.2s;
}
.riddle-map-cell.player {
  background: #8bc34a73;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 8px #8bc34a44;
}
.riddle-map-cell.goal {
  background: #33ff008c;
  color: #222;
  font-size: 1.4rem;
  box-shadow: 0 0 8px #ffd60044;
}
.riddle-map-cell.trap {
  background-image: url('trap.png');
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 8px #e5737344;
}
.riddle-map-text {
  width: 100%;
  
  font-size: 1.1rem;
  text-align: center;
  padding: 15px;
  color: #ffffff;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  font-family: var(--magic-font-body);
  margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.664);

}
.item-slot.used {
  border-style: solid;
  border-color: var(--error-color) !important;
}
.riddle-two-images {
  background-color: rgba(0, 0, 0, 0.664);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  color: white;
  box-sizing: border-box;
  flex: 1 1 100%;
  overflow: hidden;
  justify-content: flex-start;
  border-radius: 15px;
  margin-bottom: 10px;
}

.riddle-combination{
    background-color: rgba(0, 0, 0, 0.664);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  color: white;
  box-sizing: border-box;
  flex: 1 1 100%;
  overflow: hidden;
  justify-content: flex-start;
  border-radius: 15px;
  margin-bottom: 10px;
}

.riddle-img-main {
  width: 100%;
  max-width: 100%;
  max-height: 50%;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: none;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.riddle-combination-text{
    width: 100%;
  margin-top: 18px;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 15px;

}
.riddle-thumbnails {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  min-height: 40px;
  max-height: 15%;
  align-items: flex-end;
}
.riddle-img-thumb {
  width: 44px;
  height: 32px;
  max-width: 10vw;
  max-height: 7vh;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  opacity: 0.7;
  border: 2px solid transparent;
  transition: none;
  display: block;
  cursor: pointer;
  flex-shrink: 1;
}
.riddle-img-thumb.active {
  opacity: 1;
  border: 2px solid var(--primary-color);
}
.riddle-two-images-text {
  width: 100%;
  margin-top: 18px;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 15px;
}

/* Overlay für Rätselbild-Vollbild */
.riddle-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
/* --- RIDDLE TWO IMAGES FLEX LAYOUT --- */
.scene-body {
  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.riddle-two-images {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  height: 100%;
  max-height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.riddle-img-main {
  flex: 0 1 60%;
  max-height: 60%;
  min-height: 80px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.riddle-thumbnails {
  display: flex;
  flex: 0 1 12%;
  max-height: 12%;
  min-height: 32px;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 0;
  overflow: visible;
}

.riddle-img-thumb {
  width: 44px;
  height: 32px;
  max-width: 10vw;
  max-height: 7vh;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  opacity: 0.7;
  border: 2px solid transparent;
  transition: none;
  display: block;
  cursor: pointer;
  flex-shrink: 1;
}
.riddle-img-thumb.active {
  opacity: 1;
  border: 2px solid var(--primary-color);
}

.riddle-two-images-text {
  flex: 1 1 20%;
  max-height: 28%;
  min-height: 40px;
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
  text-align: center;
  overflow: auto;
}
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.riddle-image-overlay.active {
  opacity: 1;
}
  

.riddle-image-overlay img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  box-shadow: none;
  border-radius: 0;
  background: none;
  display: block;
}
/* Riddle: Zwei Bilder nebeneinander (mobil untereinander) */


.riddle-two-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}
.riddle-two-images .riddle-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 120px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  display: block;
}
.riddle-two-images-text {
  width: 100%;
  margin-top: 18px;
  font-size: 1.1rem;
  text-align: center;
}

@media (min-width: 900px) {
  /* Desktop: Bilder bleiben untereinander, kein Row-Flex mehr */
}
/* Tooltip für Inventar-Items */
.item-tooltip {
  display: block;
  position: relative;
  background: rgba(30,30,30,0.98);
  color: #fff;
  padding: 6px 16px 5px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 1.05rem;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-family: var(--magic-font-body);
  text-align: center;
  margin-bottom: 2px;
}

/* Großes Vorschaubild beim Hover */
.item-preview {
  display: none;
  position: absolute;
  top: 50%;
  left: 120%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 8px;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 90px;
  max-width: 140px;
  max-height: 140px;
}
.item-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
/* 🎭 Das Große Hochzeitsrätsel - Story Game CSS */

/* Google Fonts Import für magische Schriftarten */

/* MagicOwl Font einbinden */
@font-face {
  font-family: 'MagicOwl';
  src: url('MagicOwl.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'KGSimplytheBest';
  src: url('KGSimplytheBest.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Philosopher:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary-color: #6c5ce7;
  --secondary-color: #fd79a8;
  --success-color: #00b894;
  --error-color: #e84393;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --border-color: #75745e;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
  --magic-font-headings: 'MagicOwl', serif;
  --magic-font-body: 'KGSimplytheBest', 'KGSimplytheBest', serif;
  --magic-font-decorative: 'KGSimplytheBest', sans-serif;
}

/* Allgemeine magische Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--magic-font-headings);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Dekorative Elemente */
.dialog-header h3,
.journey-header h3,
.login-header h1,
.action-btn {
  font-family: var(--magic-font-decorative);
  font-weight: 700;
}

/* Fließtext und Dialoge */
.scene-content p,
.dialog-body p,
.notification {
  font-family: var(--magic-font-body);
  font-weight: 400;
  font-style: bold;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--magic-font-body);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url('lake.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Main Game Container - Scales with content and centers on large screens */
.game-container {
  display: flex;
  max-width: 1800px;
  width: 100%;
  min-height: calc(100vh);
  gap: 8px;
}

/* Flex-Aufteilung: journey-sidebar 2/6, story-container 3/6, item-bar 1/6 */
.journey-sidebar {
  flex: 2 1 0%;
  min-width: 0;
  max-width: 33%;
}
.story-container {
  flex: 3 1 0%;
  min-width: 0;
  max-width: 60%;
}
.item-bar {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 20%;
}


/* ========== LOGIN PAGE (für index.html) ========== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url('bg2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  max-width: 450px;
  width: 90%;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.login-form h2 {
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group input {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: #5a4fcf;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.hint {
  background: rgba(108, 92, 231, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* ========== JOURNEY SIDEBAR (Karte) ========== */
.journey-sidebar {
  width: 560px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 15px 12px;
  position: relative;
  height: calc(100vh - 10px);
  overflow-y: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background-image: url('bgMap.png');
  background-size: cover;
  background-position: center;
  
}

/* Map Close Button */
.map-close-btn {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  font-family: var(--magic-font-decorative);
  background: rgba(232, 67, 147, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(232, 67, 147, 0.3);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.map-close-btn:hover {
  background: #d63384;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(232, 67, 147, 0.4);
}

.map-close-btn:active {
  transform: scale(0.95);
}

.close-icon {
  pointer-events: none;
}

.journey-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 10px;
}

.journey-header h3 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.traveler-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}

.chunker-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.chunker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-path {
  position: relative;
  height: 100%;
  margin: 0;
 
  padding: 15px;
 
}

.path-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  z-index: 1;
}
.Inventar{
  background-image: url('inventar.png');
  width: 320px;
  height: 320px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
#progressLine {
  transition: stroke-dashoffset 1s ease-in-out;
}

.journey-stops {
  position: relative;
  height: 100%;
  z-index: 2;
}

.journey-stop {
  position: absolute;
  padding: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.journey-stop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.journey-stop.visited {
  opacity: 0.7;
}

.journey-stop.active {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.journey-stop.completed {
  opacity: 1;
}

.journey-stop.current {
  opacity: 1;
}

.stop-icon {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.95);
  border: 3px solid #2d3436;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
}

.character-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.journey-stop.completed .stop-icon {
  border-color: #00b894;
  background: #00b894;
  color: white;
  box-shadow: 0 2px 12px rgba(0,184,148,0.4);
}

.journey-stop.current .stop-icon {
  border-color: #e74c3c;
  background: #e74c3c;
  color: white;
  box-shadow: 0 2px 12px rgba(231,76,60,0.4);
}

.stop-label {
  background: rgba(255,255,255,0.95);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid #2d3436;
}

.chunker-traveler {
  position: absolute;
  left: 50%;
  top: 1%;
  transform: translate(-50%, -50%);
  z-index: 4;
  transition: all 1s ease-in-out;
}

.chunker-traveler .chunker-avatar {
  width: 80px;
  height: 80px;
  border: 4px solid #e74c3c;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(231,76,60,0.6);
  animation: travelerPulse 2s infinite;
}

.chunker-traveler .chunker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== MOBILE MAP SYSTEM ========== */
.map-toggle-btn {
  display: none;
  font-family: var(--magic-font-decorative);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.map-toggle-btn * {
  pointer-events: none;
}

.map-toggle-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.map-toggle-btn:active {
  transform: translateY(0);
}

.map-icon {
  font-size: 1.1rem;
  display: inline-block;
}

.map-text {
  display: none;
}

.map-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-overlay.active {
  opacity: 1;
}

/* ========== STORY CONTAINER ========== */
.story-container {
  max-width: 1400px;
  width: 100%;
  flex: 1;

  display: flex;
  flex-direction: column;
  height: fit-content;
  /* overflow: hidden entfernt, damit Tooltips/Previews nicht abgeschnitten werden */
}

/* Scene Header */
.scene-header {
  background-image: url('header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 250px;
  height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: center;
}



.scene-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.scene-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-info {
  flex: 0.5;
}

.scene-info h2 {
  margin: 0 0 5px 0;
  font-size: 2.0rem;
  font-family: var(--magic-font-headings);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.scene-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.2rem;
}

/* ========== DIALOG MODAL ========== */
.dialog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.dialog-modal.active {
  display: flex;
}

.dialog-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dialog-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.dialog-speaker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  flex-shrink: 0;
}

.dialog-speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
}

.dialog-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.dialog-body {
  padding: 20px;
  line-height: 1.6;
  color: var(--text-dark);
}

.dialog-body p {
  margin: 0;
  font-size: 1rem;
}

.dialog-actions {
  padding: 15px 20px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dialog-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: white;
  min-height: 40px;
}

.dialog-btn:hover {
  background: #5a4fcf;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.dialog-btn.secondary {
  background: var(--text-light);
  color: white;
}

.dialog-btn.secondary:hover {
  background: #5d6973;
}

/* Scene Body */
.scene-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 100%;
  height: max-content;


}

.scene-image {
  
  overflow: hidden;
  position: relative;

}

.scene-image #sceneText {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  color: #222;
  font-size: 1.25rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 18px 18px;
  z-index: 10;
  width: 550px;
  max-width: 100%;
  font-family: var(--magic-font-body);
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 700px) {
  .scene-image #sceneText {
    font-size: 1.05rem;
    padding: 10px 8px;
    max-width: 98%;
  }
}
.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}



.scene-content {
  flex: 1;

  overflow-y: auto;
  background: #f8f9fa;
  max-height: 20%;
}

.scene-content p {
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.scene-content p:last-child {
  margin-bottom: 0;
}

/* Action Bar */
.action-bar {

  padding: 15px 20px;
  border-radius: 0px 0px 12px 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.action-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 200;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
}

.action-btn.primary {
  background: var(--primary-color);
  color: white;
}

.action-btn.primary:hover {
  background: #5a4fcf;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.action-btn.secondary {
  background: var(--secondary-color);
  color: white;
}

.action-btn.secondary:hover {
  background: #e84393;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 121, 168, 0.3);
}

.action-btn.danger {
  background: var(--error-color);
  color: white;
}

.action-btn.danger:hover {
  background: #d63384;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 67, 147, 0.3);
}

/* Item Bar */
.item-bar {

  
  padding: 25px 20px;
}

.action-container {
background-image: url('action1.png');
min-height: max-content;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 55px;
  padding-top: 125px;
  border-radius: 12px;
  height: 550px;
}



.item-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.item-bar-header h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.item-count {
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.item-slots {
  margin-top: 160px;
  padding-left: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-slot {
  width: 50px;
  height: 50px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s ease;
  position: relative;
  /* overflow: hidden entfernt, damit Tooltips außerhalb sichtbar sind */
}

.item-slot:not(.empty) {
  border-style: solid;
  border-color: var(--success-color);

}

.item-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.item-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success-color);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-weight: 600;
  max-width: 300px;
}

/* Animations */
@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes travelerPulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(231,76,60,0.6);
  }
  50% { 
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(231,76,60,0.8);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(231,76,60,0.6);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  /* Show mobile map toggle button */
  .map-toggle-btn {
    display: flex !important;
  }
  
  /* Show mobile map close button */
  .map-close-btn {
    display: flex !important;
  }
  
  body {
    flex-direction: row;
    padding: 5px;
  }
  
  .journey-sidebar {
    position: fixed;
    top: 0;
    
    width: 100vw;
    max-width: 650px;
    height: 100vh;
    margin: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: none;
    border-radius: 0;
  }
  
  .journey-sidebar.mobile-open {
    left: 0;
  }
  
  .game-container {
    flex-direction: column;
    max-width: none;
    height: 100vh;
    gap: 0;
  }

  .story-container {
  width: 100vw;
  max-width: 1000px;
  border-radius: 12px 12px 0px 0px;
  }
  
  .scene-header {
    min-height: 160px;
    height: 22vh;
    padding: 25px 15px 25px 100px;
    flex-wrap: wrap;
  }
  
  .scene-avatar {
    width: 75px;
    height: 75px;
  }
  
  .scene-info h2 {
    font-size: 1.2rem;
  }
  
  .scene-info p {
    font-size: 0.85rem;
  }
  
  .scene-content {
    padding: 15px;
  }
  
  .action-bar {
    padding: 12px 15px;
  }
  
  .action-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
  }
  
  .item-bar {
    padding: 12px 15px;
    max-width: 150px;
  }
  
  .item-slots {
    gap: 6px;
  }
  
  .item-slot {
    width: 45px;
    height: 45px;
  }
  
  .item-slot img {
    width: 35px;
    height: 35px;
  }
  
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  /* Dialog responsive */
  .dialog-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .dialog-header {
    padding: 12px 15px;
  }
  
  .dialog-body {
    padding: 15px;
  }
  
  .dialog-actions {
    padding: 12px 15px 15px;
    flex-direction: column;
  }
  
  .dialog-btn {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .dialog-btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .map-toggle-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .map-text {
    display: inline; /* Show text on very small screens */
  }
  
  .scene-header {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    align-items: center;
    min-height: 120px;
    height: 18vh;
    padding: 18px 8px 10px 8px;
  }
  
  .map-toggle-btn {
    order: -1; /* Put button first on mobile */
    align-self: flex-end;
    margin-bottom: 5px;
  }
  
  .action-bar {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .item-slots {
    justify-content: center;
  }
  
  /* Login page responsive */
  .login-container {
    padding: 30px 20px;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
  }
}

/* ========== PLAYER STATUS SYSTEM ========== */
.player-status-section {
  margin-top: 15px;
  padding-top: 15px;
  padding-left: 15px;
  padding: 15px; 
  border-radius: 10px;
}

.status-header {
  margin-bottom: 8px;
}

.status-header h4 {
  font-family: var(--magic-font-headings);
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 600;
}

.player-status-display {
  
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.status-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.status-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  animation: statusPulse 2s ease-in-out infinite;
  cursor: help;
}

.status-empty {
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.status-icon.invisible {
  opacity: 0.7;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

.status-icon.blessed {
  color: #ffeaa7;
  animation: goldGlow 2s ease-in-out infinite;
}

.status-icon.cursed {
  color: #d63031;
  animation: redPulse 1s ease-in-out infinite;
}

.status-icon.has-key,
.status-icon.has-map {
  color: #6c5ce7;
}

/* Avatar effects based on status */
.scene-avatar.invisible-effect {
  opacity: 0.5;
  filter: blur(1px);
  animation: ghostEffect 2s ease-in-out infinite;
}

.scene-avatar.blessed-effect {
  filter: brightness(1.2) saturate(1.1);
  animation: blessedGlow 3s ease-in-out infinite;
}

.scene-avatar.cursed-effect {
  filter: brightness(0.8) saturate(0.8) hue-rotate(10deg);
  animation: cursedShake 0.5s ease-in-out infinite;
}

/* Status animations */
@keyframes statusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 5px #ffeaa7; }
  50% { text-shadow: 0 0 15px #fdcb6e, 0 0 25px #ffeaa7; }
}

@keyframes redPulse {
  0%, 100% { text-shadow: 0 0 3px #d63031; }
  50% { text-shadow: 0 0 10px #e84393, 0 0 20px #d63031; }
}

@keyframes ghostEffect {
  0%, 100% { opacity: 0.5; transform: translateY(0px); }
  50% { opacity: 0.7; transform: translateY(-2px); }
}

@keyframes blessedGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 234, 167, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 234, 167, 0.6); }
}

@keyframes cursedShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

/* Mobile responsive for status display */
@media (max-width: 768px) {
  .player-status-section {
    margin-top: 10px;
    padding-top: 10px;
  }
  
  .player-status-display {
    padding: 6px 8px;
    min-height: 35px;
  }
  
  .status-icon {
    font-size: 1.2rem;
  }
  
  .status-icons {
    gap: 8px;
  }
  
  .status-header h4 {
    font-size: 0.8rem;
  }

}

