/* Grundlegende Stilregelungen */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* Container, der alles umschließt */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

.container {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* Logo oben */
.logo-container {
  margin-bottom: 20px;
}

.logo-image {
  max-width: 200px;
  width: 200px;
  height: auto;
}

/* Login-Formular Styling */
#login-prompt {
  margin-bottom: 20px;
  color: #555;
  font-size: 18px;
}

/* Hintergrundbild nur für Desktop-Geräte (breiter als 768px) */
@media (min-width: 768px) {
  body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8em;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 10px;
  width: 100%;
}

/* Unsplash Attribution verstecken auf mobilen Geräten */
.unsplash-attribution {
  margin-top: 5px;
  font-size: 0.8em;
}

@media (max-width: 767px) {
  .unsplash-attribution {
    display: none;
  }
  
  .footer {
    color: #777;
    text-shadow: none;
  }
}

/* SVG-Icon-Größen */
.svg-inline--fa {
  width: 24px;
  height: 24px;
}

.email-icon .svg-inline--fa {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.email-info .svg-inline--fa {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 5px;
}

.other-email-button .svg-inline--fa {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 5px;
}

.gastro-bold {
  font-family: 'Bambino-Bold ☞', sans-serif;
  font-weight: bold;
}

.blick-light {
  font-family: 'Bambino-Light ☞', sans-serif;
  font-weight: 300;
}

.unsplash-attribution a {
  color: #fff;
  text-decoration: underline;
}

#redirect-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* === FROM index.html <style> BLOCK START === */
h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #343a40;
}
.gastro-bold { font-weight: bold; color: #28a745; } /* Beispiel Grün */
.blick-light { font-weight: normal; color: #6c757d; } /* Beispiel Grau */

p {
  color: #6c757d;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
}

.error-message {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
  display: none; /* Standardmäßig ausblenden */
}

button {
  width: 100%;
  padding: 10px;
  background-color: #007bff; /* Standard-Blau */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  position: relative;
  transition: background-color 0.3s ease;
}
#login-button {
    background-color: #1b7e5a; /* Dunkles Grün für Login */
}
#login-button:hover {
    background-color: #135d43;
}

/* Styles für Code-Eingabe Buttons anpassen */
#code-submit-button {
    background-color: #1b7e5a; /* Gleiches Grün wie Login-Button */
    color: white;
}
#code-submit-button:hover {
    background-color: #135d43; /* Gleicher Hover wie Login-Button */
}

#resend-code-button { 
    background-color: transparent; /* Outline-Stil */
    border: 1px solid #1b7e5a; /* Grüne Umrandung */
    color: #1b7e5a; /* Grüner Text */
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

#resend-code-button:hover {
    background-color: rgba(27, 126, 90, 0.1); /* Leichter grüner Hintergrund bei Hover */
    color: #135d43; /* Dunkleres Grün bei Hover */
}

#resend-code-button svg {
    margin-right: 8px;
    width: 1em; /* Größe anpassen */
}

button .spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

button.loading span {
  opacity: 0;
}

button.loading .spinner {
  display: block;
}

.email-confirmation {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f5ec; /* Helles Grün */
    border: 1px solid #c8e6c9; /* Dunkleres Grün */
    border-radius: 4px;
    color: #388e3c; /* Dunkles Grün für Text */
}
.email-confirmation h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #1b5e20; /* Sehr dunkles Grün */
}
.email-confirmation p {
    color: #388e3c; /* Dunkles Grün für Text */
    margin-bottom: 10px;
    line-height: 1.5;
}
.email-info {
    font-size: 0.9em;
    margin-top: 15px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.email-info svg {
    width: 1em;
    height: 1em;
    margin-right: 5px;
    color: #007bff; /* Blau für Info-Icon */
}

/* Stile für einzelne Code-Eingabefelder */
.code-input-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Abstand zwischen den Boxen */
    margin: 20px 0;
}

.form-group .code-digit-input {
    width: 45px; /* Breite der Box */
    height: 55px; /* Höhe der Box */
    font-size: 20px; /* Kleinere Schrift für die Ziffer */
    font-family: inherit; /* Schriftart von Elternelement erben */
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0; /* Kein Innenabstand, da Text zentriert */
    /* Verhindert die Pfeile bei number-Inputs in manchen Browsern */
    -moz-appearance: textfield; /* Firefox */
    appearance: none; /* Standard */
}
.form-group .code-digit-input::-webkit-outer-spin-button,
.form-group .code-digit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-group .code-digit-input:focus {
     border-color: #1b7e5a; /* Hervorhebung bei Fokus */
     outline: none;
     box-shadow: 0 0 0 2px rgba(27, 126, 90, 0.25);
}

.code-entry-box {
    margin-top: 20px;
}

/* Anpassung für Footer, falls noch inline vorhanden */
.footer {
  margin-top: auto; /* Wird evtl. von existierenden Styles überschrieben */
  padding: 20px 0;
  font-size: 0.9em;
  /* color: #6c757d; */ /* Wird von existierenden Styles überschrieben */
  text-align: center;
  width: 100%;
}
/* === FROM index.html <style> BLOCK END === */

/* === ADD TO HOMESCREEN BUTTON STYLES START === */

/* Haupt-Installationsbutton (Mit erhöhter Spezifität) */
.adhs-container .adhs-modal .adhs-button.adhs-button-install {
    background-color: #1b7e5a; /* GASTROBLICK Grün */
    color: white;
    border: none; 
}

.adhs-container .adhs-modal .adhs-button.adhs-button-install:hover {
    background-color: #135d43; /* Dunkleres Grün bei Hover */
}

/* Abbrechen/Später-Button (Outline-Stil) (Mit erhöhter Spezifität) */
.adhs-container .adhs-modal .adhs-button.adhs-button-cancel {
    background-color: transparent;
    border: 1px solid #1b7e5a; 
    color: #1b7e5a; 
}

.adhs-container .adhs-modal .adhs-button.adhs-button-cancel:hover {
    background-color: rgba(27, 126, 90, 0.1); 
    color: #135d43; 
    border-color: #135d43; 
}

/* === ADD TO HOMESCREEN BUTTON STYLES END === */ 