@font-face {
  font-family: 'NeueEinstellung';
  src: url('fonts/aneueeinstellung-regular.eot');
            /* für IE9 */
  src: url('fonts/neueeinstellung-regular.eot?#iefix') 
            format('embedded-opentype'),
            /* für IE6-IE8 */
       url('fonts/neueeinstellung-regular.woff') 
            format('woff'), 
           /* für moderne Browser */
       url('fonts/neueeinstellung-regular.ttf') 
            format('truetype');
          /* für Safari, Android, iOS */
 }

 @font-face {
  font-family: 'NeueEinstellung-Bold';
  src: url('fonts/neueeinstellung-bold.eot');
            /* für IE9 */
  src: url('fonts/neueeinstellung-bold.eot?#iefix') 
            format('embedded-opentype'),
            /* für IE6-IE8 */
       url('fonts/neueeinstellung-bold.woff') 
            format('woff'), 
           /* für moderne Browser */
       url('fonts/neueeinstellung-bold.ttf') 
            format('truetype');
          /* für Safari, Android, iOS */
 }

body {
  height: 100vh;
  background: rgb(74,123,127);
  background: -moz-radial-gradient(circle, rgba(74,123,127,1) 0%, rgba(26,60,61,1) 100%);
  background: -webkit-radial-gradient(circle, rgba(74,123,127,1) 0%, rgba(26,60,61,1) 100%);
  background: radial-gradient(circle, rgba(74,123,127,1) 0%, rgba(26,60,61,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#4a7b7f",endColorstr="#215256",GradientType=1);
  margin: 0;
  overflow: hidden;
  font-family: 'NeueEinstellung', Arial, Helvetica, sans-serif;
  hyphens: auto;
  /* Verhindert, dass iOS Safari kleine Texte in schmalen Boxen automatisch
     vergrößert (u.a. Ursache für den überdimensionierten #shot-indicator). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.bold, strong, b {
  font-family: 'NeueEinstellung-Bold';
}

a {
  color: #f0dbc0;
  text-decoration: none; /* Entfernt die Standardunterstreichung für Links */
}

a:hover {
  color: #fff3e7;
; /* Farbe für Hover-Zustand */
}

a:active {
  color: #fff3e7; /* Farbe für aktiven (gedrückten) Zustand */
}

a:visited {
  color: #f0dbc0; /* Farbe für besuchte Links */
}

img {
  user-select: none;
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari and Chrome */
  -ms-user-select: none; /* IE 10+ */
}

#photobooth {
  transition: transform 1.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.zoomed {
  transform: scale(1.4);
}

.booking-button {
  display: inline-block;
  pointer-events: none; /* Deaktiviert Klicks auf den Button, wenn er unsichtbar ist */
  opacity: 0;
  font-size: 18px;
  color: #fefefe;
  padding: 8px 27px;
  background-color: #cd582a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  transition: all 0.3s ease 0s, opacity 1.5s ease 0s;
}

.booking-button:hover {
color: #efefef;
background-color: #af4823;
}

.booking-button:active {
  transform: translate(-0.15rem, 0.15rem) scale(0.95);
}

.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.button-container {
  position: fixed;
  top: 11px;
  right: 10px;
  z-index: 9999; /* Stelle sicher, dass der Button über anderen Inhalten liegt */
}

/* Media Query für Mobilgeräte */
@media screen and (max-width: 767px) {
  .booking-button {
      font-size: 16px; /* Ändere die Schriftgröße auf 16px für Mobilgeräte */
  }
}

.bigemoji {
  font-size: 32px;
  width: 100%;
  display: inline-block;
  top: -8px;
  position: relative;
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #215256;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.5s ease-out;
}

#loader {
  border: 16px solid #fff3e7;
  border-top: 16px solid #e38745;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#virtual-screen {
  position: relative;
  width: 25.5vw;
  overflow: hidden;
  border: 3px solid #050505;
  background-color: #050505;
  aspect-ratio: 3 / 2;
  max-width: 200px;
  min-width: 130px;
}

#webcam-feed {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
}

#timer-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: #fff3e7;
  display: none;
  z-index: 2;
}

#flash-overlay {
 position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 70;
  background: rgb(255,255,255);
  background: -moz-radial-gradient(top, circle, rgba(255,255,255,1) 25%, rgba(255,255,255,0) 100%);
  background: -webkit-radial-gradient(top, circle, rgba(255,255,255,1) 25%, rgba(255,255,255,0) 100%);
  background: radial-gradient(top, circle, rgba(255,255,255,1) 25%, rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
  display: none;
  opacity: 0;
  animation: flashAnimation 0.8s ease-out forwards;
}



#captured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#overlay {
  position: absolute;
  z-index: 60;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  max-width: 800px;
  min-width: 500px;
  user-select: none;
}

#notification-container {
  position: fixed;
  bottom: 15%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  max-height: 200px; /* Maximal drei Benachrichtigungen */
  overflow: visible;
  z-index: 70;
}

.notification {
  color: #fff3e7;
  background-color: #215255;
  padding: 15px 30px 15px 30px;
  margin-bottom: 10px;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: 70;
  border-radius: 15px;
  user-select: none;
  text-align: left;
  bottom: -10px;
  position: relative;
  box-shadow: #10292b94 0px 5px 5px, #00000096 0px 0px 2px;
  max-width: 80%;
}

/*.notification::before {
  content: "ℹ️";
  position: absolute;
  top: 15px;
  left: 20px;
}*/

.notification a {
  font-family: 'NeueEinstellung-Bold';
  }

.notification a::before {
content: "🔗 ";
}

#overlay img {
  width: 100%;
  height: 100%;
}

@keyframes flashAnimation {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

#start-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  z-index: 50;
}

#start-screen img {
  max-width: 100%;
  max-height: 100%;
}

#start-button {
  margin-top: 20px;
  padding: 10px;
  font-size: 1em;
}

/* Allgemeine Formatierung für den Footer */
footer {
  font-size: 10px;
  color: #6d9396 !important;
}

/* Stil für die Footer-Navigation */
footer nav {
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 70;
}

footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer nav ul li {
  display: inline-block;
  margin-left: 8px;
}

footer nav a {
  text-decoration: none;
  color: #6d9396 !important;
}

/* ---------- Neue Screens: Modus-Auswahl / Print-Simulation / Ergebnis ---------- */

.hidden {
  display: none !important;
}

.overlay-screen {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 65;
  background: rgb(74,123,127);
  background: radial-gradient(circle, rgba(74,123,127,.98) 0%, rgba(26,60,61,.99) 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  color: #fff3e7;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.22,.61,.36,1);
}

.overlay-screen.active {
  display: flex;
}

.overlay-screen.active.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 420px;
  width: 100%;
}

/* Modus-Umschalter (unten links, immer sichtbar statt eines eigenen Screens) */

.mode-toggle-container {
  position: fixed;
  bottom: 11px;
  left: 10px;
  z-index: 9999;
}

.mode-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(5,5,5,.55);
  border: 1.5px solid rgba(255,243,231,.25);
  border-radius: 999px;
  padding: 3px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease 0s, opacity 1s ease 0s;
}

.mode-toggle-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: #cd582a;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1);
  z-index: 0;
}

.mode-toggle[data-mode="collage"] .mode-toggle-thumb {
  transform: translateX(100%);
}

.mode-toggle-option {
  position: relative;
  z-index: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: #f0dbc0;
  font-family: 'NeueEinstellung-Bold';
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.mode-toggle[data-mode="single"] .mode-toggle-option[data-mode="single"],
.mode-toggle[data-mode="collage"] .mode-toggle-option[data-mode="collage"] {
  color: #fff3e7;
}

@media screen and (max-width: 767px) {
  .mode-toggle-option {
    font-size: 11px;
    padding: 6px 11px;
  }
}

/* Aufnahme-Fortschritt bei der Collage (im kleinen Live-Screen) */

#shot-indicator {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  color: #fff3e7;
  background: rgba(0,0,0,.45);
  padding: 3px 7px;
  border-radius: 999px;
  display: none;
  z-index: 3;
  font-family: 'NeueEinstellung-Bold';
  letter-spacing: 0.02em;
}

/* Ergebnis-Screen: das Foto faellt von oben rein, als waere es gerade gedruckt worden */

.print-frame {
  width: 100%;
  max-width: 340px;
  transform: translateY(-160%) rotate(-7deg);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.34,1.35,.4,1), opacity 0.25s ease;
}

.print-frame.dropped {
  transform: translateY(0) rotate(-2deg);
  opacity: 1;
}

.print-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'NeueEinstellung-Bold';
  font-size: 0.92em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pill--primary {
  background: #cd582a;
  color: #fff3e7;
}

.btn-pill--primary:hover {
  background: #af4823;
}

.btn-pill--outline {
  background: transparent;
  color: #fff3e7;
  border: 1.5px solid rgba(255,243,231,.5);
}

.btn-pill--outline:hover {
  border-color: #fff3e7;
  background: rgba(255,243,231,.1);
}

.btn-pill--ghost {
  background: transparent;
  color: #f0dbc0;
  padding: 10px 14px;
}

.btn-pill--ghost:hover {
  color: #fff3e7;
}

.btn-pill:active {
  transform: translate(-0.1rem, 0.1rem) scale(0.96);
}

/* E-Mail-Formular */

.email-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 18px;
  box-sizing: border-box;
  text-align: left;
}

.email-form-label {
  font-size: 0.85em;
  color: #f0dbc0;
}

.email-form input[type="email"] {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,243,231,.3);
  background: #fff3e7;
  color: #1a3c3d;
  font-size: 1em;
  font-family: 'NeueEinstellung', Arial, Helvetica, sans-serif;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: #cd582a;
  box-shadow: 0 0 0 3px rgba(205,88,42,.25);
}

.email-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78em;
  line-height: 1.4;
  color: #f0dbc0;
  cursor: pointer;
}

.email-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.email-form-actions {
  display: flex;
  gap: 10px;
}

.email-status {
  margin: 0;
  font-size: 0.82em;
  min-height: 1.2em;
}

.email-status.error {
  color: #ffb199;
}

.email-status.success {
  color: #b6e3b0;
}

@media screen and (max-width: 767px) {
  .overlay-inner {
    max-width: 92vw;
  }
}