/* components.css: Cards, Tabs, Status-Banner, Loader, News-Card, Modals */
.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
}
.tabs {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}
.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--main-blue);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}
.tab-btn.active {
  border-bottom: 3px solid var(--main-blue);
  color: #004d80;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
#statusBanner, .status-banner {
  background: linear-gradient(90deg, #e3eaf6 80%, #fafdff 100%);
  color: var(--main-blue);
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1rem 1.2rem;
  margin: 0 auto 24px auto;
  max-width: 600px;
  width: 100%;
  text-align: center;
  border: 1.5px solid #b3d8f7;
}
.loader {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #e0e6ed;
  border-top: 4px solid var(--main-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.news-item-static {
  border-left: 6px solid var(--main-blue);
  border-radius: 10px;
  box-shadow: 0 2px 8px #003c7e0a;
  background: #fafdff;
  margin-bottom: 1.2em;
  padding: 1.2em 1.5em;
}
.news-item-static-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1);
  will-change: max-height;
}
.news-item-static-content.expanded {
  max-height: 800px;
  transition: max-height 0.6s cubic-bezier(.4,0,.2,1);
}
.news-item {
  border-left: 6px solid var(--main-blue);
  border-radius: 10px;
  box-shadow: 0 2px 8px #003c7e0a;
  background: #fafdff;
  margin-bottom: 1.2em;
  padding: 1.2em 1.5em;
}
.news-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1);
  will-change: max-height;
}
.news-item-content.expanded {
  max-height: 800px;
  transition: max-height 0.6s cubic-bezier(.4,0,.2,1);
}
/* Modal immer ausblenden, wenn .modal-hidden gesetzt ist */
.modal-hidden {
  display: none !important;
}
/* Modal-Standardstil: zentriert und überlagert */
#deleteAccountModal.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  z-index: 2000;
}
#deleteAccountModal.modal:not(.modal-hidden) {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
/* Roter Button für Account löschen */
.btn-danger {
  background-color: #b30000;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-danger:hover,
.btn-danger:focus {
  background-color: #800000;
  color: #fff;
}

/* Kontakt-Formular Styles */
.contact-intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafd 0%, #e8f2ff 100%);
  border-radius: 12px;
  border: 1px solid #e0e6ed;
}

.contact-intro p {
  font-size: 1.1rem;
  color: #6a7685;
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,60,126,0.08);
  border: 1px solid #e8eef6;
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: 0 8px 32px rgba(0,122,204,0.12);
  transform: translateY(-2px);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-group:last-of-type {
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: #1a2330;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e8eef6;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
  background: rgba(255,255,255,0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.submit-btn {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13,71,161,0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-message {
  margin-top: 1.5rem;
  padding: 1.2rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.status-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: statusSlideIn 0.5s ease-out;
}

.status-message.show::before {
  left: 100%;
}

@keyframes statusSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Status-Types mit modernen Farben */
.status-message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left-color: #28a745;
  box-shadow: 0 6px 25px rgba(40, 167, 69, 0.2);
}

.status-message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left-color: #dc3545;
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.2);
}

.status-message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left-color: #17a2b8;
  box-shadow: 0 6px 25px rgba(23, 162, 184, 0.2);
}

/* Hover-Effekt für Interaktivität */
.status-message:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .contact-intro {
    margin: 0 1rem 2rem 1rem;
  }
  
  .submit-btn {
    width: 100%;
  }
}
