/* Gemeinsame Styles für StayAble Website */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');

/* Basis-Styling */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  margin: 0;
}

/* Header */
header {
  margin-bottom: 40px;
}

.logo {
  max-width: 200px;
  height: auto;
}

h1 {
  font-family: 'Merriweather', serif;
  color: rgb(221, 91, 29);
  font-size: 4em;
  margin-top: 20px;
}

h2 {
  font-size: 2em;
  margin-top: 20px;
  color: #333;
}

h3 {
  font-size: 1.5em;
  margin-top: 15px;
  color: #444;
}

/* Store Logos */
.store-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.store-logo {
  height: 50px;
  display: inline-block;
  overflow: hidden;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}

.store-logo:hover img {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  background-color: rgb(221, 91, 29);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  margin: 10px;
  font-family: Arial, sans-serif;
}

.btn:hover {
  background-color: rgb(200, 80, 25);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: #666;
}

.btn-secondary:hover {
  background-color: #555;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 1em;
  color: #666;
}

footer a {
  color: rgb(221, 91, 29);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* FAQ Sektion */
.faq {
  margin-top: 60px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 30px;
}

.faq-item h3 {
  color: rgb(221, 91, 29);
}

.faq-item p {
  line-height: 1.6;
  color: #444;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* QR-Code Vorschau */
.qr-preview {
  margin-top: 40px;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.qr-preview.hidden {
  display: none;
}

#qr-code {
  margin: 20px auto;
  display: inline-block;
}

.url-display {
  font-size: 1.2em;
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
  word-break: break-all;
  font-family: monospace;
  color: #333;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgb(221, 91, 29);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

.loading-text {
  margin-top: 20px;
  font-size: 1.1em;
  color: #666;
}

/* Error/Success Messages */
.message {
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 8px;
  font-size: 1em;
}

.message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 1.5em;
  }

  .btn {
    padding: 12px 24px;
    font-size: 1em;
  }

  .store-logos {
    gap: 20px;
  }

  .qr-preview {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.2em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: white;
  }

  header, footer, .btn {
    display: none;
  }

  .qr-preview {
    box-shadow: none;
    border: 2px solid #000;
  }

  .url-display {
    background-color: white;
    border: 1px solid #000;
  }
}
