body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 30px;
}
h1 {
  color: #333;
}
#description {
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.mode-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}
.mode-button {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #f0f0f0;
}
.mode-button.selected {
  background-color: #4CAF50;
  color: white;
}
#photo-input {
  display: none;
}
#upload-btn {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}
#upload-btn:hover {
  background-color: #45a049;
}
#result {
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#loading {
  display: none;
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#loading-text {
  display: none;
  font-style: italic;
  color: #555;
  margin-top: 10px;
}
#language-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.lang-btn img {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.lang-btn img {
  width: 30px;
  height: auto;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.lang-btn.selected img {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin: 30px auto;
  text-align: center;
}

.subtext {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.google-login-btn {
  background-color: white;
  border: 1px solid #ccc;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.google-login-btn:hover {
  background-color: #f8f8f8;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.logout-btn {
  background-color: #eee;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #ddd;
}

.login-hint {
  margin-top: 15px;
  font-style: italic;
  color: #999;
  font-size: 14px;
}

footer a {
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}

footer a:hover {
  color: #000;
}
/* Header mit Avatar */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  background-color: #eee;
  width: 40px;
  height: 40px;
  text-align: center;
  font-weight: bold;
}

.user-profile span {
  display: inline-block;
  width: 100%;
  line-height: 40px;
}

.user-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 99;
}

.user-profile:hover .user-menu {
  display: block;
}

.google-signin-container {
  display: inline-block;
  margin-top: 10px;
}

/* Optional: Anpassung des Google-Buttons */
#google-signin-button > div {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
