/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 60px; /* Platz für den fixierten Footer */
}

/* Header Styling */
header {
  position: relative;
  background: #673AB7;
  padding: 10px 20px;
  text-align: center;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 0;
}

header h1 {
  color: #fff;
}

header a {
  text-decoration: none !important;
}

/* Footer Styling */
footer {
  background: #673AB7;
  color: #fff;
  padding: 10px 20px;
  text-align: right;
  border-top: 1px solid #e0e0e0;
  bottom: 0;
}

footer nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.9em;
}

/* Suchergebnis-Container */
.result {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #673AB7;
  border-radius: 3px;
  margin: 15px 0;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Container für Titel und Datum */
.title-date-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 5px 0;
}

/* Titel-Container & Titel */
.title {
  margin: 0;
  font-size: 18px;
}

.title a {
  text-decoration: none;
  color: #1a0dab;
}

/* Datum-Container & Datum */
.date {
  font-size: 12px;
  color: #8e8e8e;
  white-space: nowrap;
  margin: 0;
}

/* URL */
.url {
  margin: 0 0 10px 0;
}

.url a {
  text-decoration: none;
  color: #006621;
  font-size: 14px;
}

/* Meta-Beschreibung */
.meta {
  margin-top: 5px;
  font-size: 16px;
  color: #545454;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  background-color: #673AB7;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.pagination button:hover {
  background-color: #5e33a1;
}

.pagination button:disabled {
  background-color: #aaa;
  cursor: default;
}

.donation {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 50px 0 0 0;
  height: 100px;
}

.donate-btn {
  width: 150px;
  margin: 10px 0 0 0;
  cursor: pointer;
}
.donate-btn:hover {
  width: 160px;
  margin: 10px 0 -10px 0;
}

/* Ladeanzeige */
#loading {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  display: none;
}

/* Wechselkurs-Container */
#exchangeRateContainer {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin: 0 0 10px 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#piFixed {
  font-weight: bold;
  margin-right: 20px;
  font-size: 20px;
  white-space: nowrap;
  color: #673AB7;
}

/* Container für den Ticker */
#marqueeContainer {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Ticker-Text */
#exchangeRates {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 60s linear infinite;
  font-size: 16px;
  color: #555;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Google Translate */
#google_translate_element {
  text-align: center;
}

/* Modal Window Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  height: 80%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close {
  color: #f00b0b;
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
}

.modal-content iframe {
  width: 100%;
  height: calc(100% - 50px);
  border: none;
}

/* Fallback-Bereich */
.fallback {
  text-align: center;
  padding: 10px;
  background: #f1f1f1;
  border-top: 1px solid #ddd;
}

.fallback a {
  color: #007BFF;
  text-decoration: none;
  font-size: 14px;
}

/* Responsive Styles für Tablets und Smartphones */
@media screen and (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header {
    font-size: 1.3em;
    padding: 8px 15px;
  }
  
  footer {
    font-size: 0.85em;
    padding: 8px 15px;
  }
  
  .title {
    font-size: 16px;
  }
  
  .date {
    font-size: 10px;
  }
  
  .url a {
    font-size: 12px;
  }
  
  .meta {
    font-size: 14px;
  }
  
  .pagination button {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .modal-content {
    width: 90%;
    height: 90%;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  header {
    font-size: 1.2em;
    padding: 6px 10px;
  }
  
  footer {
    font-size: 0.8em;
    padding: 6px 10px;
  }
  
  .title {
    font-size: 14px;
  }
  
  .date {
    font-size: 9px;
  }
  
  .url a {
    font-size: 11px;
  }
  
  .meta {
    font-size: 12px;
  }
  
  .pagination button {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  /* Auf kleinen Displays: Container als Blockelemente */
  .header-info {
    display: block;
  }
  /* Datum erscheint unter dem Titel */
  .date-container {
    margin-top: 5px;
    text-align: right;
    vertical-align: top;
  }
  
  #google_translate_element {
       
  }
}

/* Zusätzliche Styles für das Donation Modal */
.donation-modal-content {
  width: 300px;
  margin: 10% auto;
  padding: 20px;
  text-align: center;
  border: 1px solid #888;
  background-color: #fff;
  border-radius: 3px;
  position: relative;
}

.donation-modal-content h2 {
  margin-top: 0;
}

.donation-modal-content img {
  margin: 10px 0;
  max-width: 100%;
  height: auto;
}

.donation-modal-content button {
  padding: 8px 12px;
  border: none;
  background-color: #673AB7;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.donation-modal-content button:hover {
  background-color: #5e33a1;
}


/* Improved Login Modal */
.login-modal-content {
  text-align: center;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  min-height: 200px;
  border-radius: 8px;
  top: 25%;
  position: relative;
}

.login-modal-content h2 {
  margin-top: 0;
  color: #673AB7;
}

.login-modal-content p {
  margin-bottom: 20px;
}

.login-modal-content .small-text {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.login-modal-content button {
  padding: 10px 20px;
  border: none;
  background-color: #673AB7;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.login-modal-content button:hover {
  background-color: #5e33a1;
}

.login-modal-content button:disabled {
  background-color: #9e9e9e;
  cursor: not-allowed;
}

#loginError {
  color: #f44336;
  font-size: 14px;
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(244, 67, 54, 0.1);
  border-radius: 4px;
}

#loginStatus {
  margin-top: 15px;
  min-height: 20px;
}