/* Import color definitions */
@import url('proposal.css');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Consent Modal */
.consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.consent-modal.hidden {
  display: none;
}

.consent-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.consent-content h2 {
  color: var(--black);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.consent-intro {
  color: var(--grey-dark);
  margin-bottom: 1.5rem;
}

.consent-section {
  margin-bottom: 1.5rem;
}

.consent-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.consent-buttons .btn {
  flex: 1;
}

.consent-scroll {
  background-color: var(--grey-light);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--grey-dark);
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.consent-scroll p {
  margin-bottom: 1rem;
}

.consent-scroll h3 {
  color: var(--black);
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.consent-scroll ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--grey-dark);
}

.consent-scroll li {
  margin-bottom: 0.25rem;
}

/* Header with Logo */
.app-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--orange-main);
  padding: 1.5rem 2rem;
}

.app-header-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.app-header-logo {
  max-height: 80px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.app-header-content {
  flex: 1;
}

.app-header-content h1 {
  font-size: 2rem;
  color: var(--black);
  margin: 0;
}

.app-header-content p {
  font-size: 1rem;
  color: var(--grey-dark);
  margin: 0.5rem 0 0 0;
}

/* Main Content Area */
.app-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Footer */
.app-footer {
  background-color: var(--grey-light);
  border-top: 1px solid var(--grey-medium);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--grey-dark);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 1.1rem;
  color: var(--grey-dark);
}

/* Form Container */
.form-container {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-subtle);
  box-shadow: 0 0 0 3px rgba(111, 163, 255, 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--grey-dark);
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--orange-main);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #e68820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 154, 46, 0.3);
}

.btn-secondary {
  background-color: var(--blue-subtle);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #5a8fe6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 163, 255, 0.3);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-group .btn {
  flex: 1;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 5px solid;
}

.alert-success {
  background-color: #f0f7f4;
  color: #1b5e20;
  border-left-color: #4CAF50;
}

.alert-error {
  background-color: #fef3f3;
  color: #c94a4a;
  border-left-color: var(--red-muted);
}

.alert-info {
  background-color: #f0f7ff;
  color: #003d82;
  border-left-color: var(--blue-subtle);
}

/* Landing Page */
.landing-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.landing-header {
  margin-bottom: 2rem;
}

.landing-header h2 {
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.landing-header p {
  font-size: 1.1rem;
  color: var(--grey-dark);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.option-card {
  background-color: var(--white);
  border: 2px solid var(--grey-light);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: var(--orange-main);
  box-shadow: 0 4px 16px rgba(255, 154, 46, 0.2);
  transform: translateY(-4px);
}

.option-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.option-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.option-card p {
  color: var(--grey-dark);
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background-color: var(--white);
  border: 2px solid var(--grey-light);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--black);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dashboard-card:hover {
  border-color: var(--blue-subtle);
  box-shadow: 0 4px 16px rgba(111, 163, 255, 0.2);
  transform: translateY(-4px);
}

.dashboard-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.dashboard-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.dashboard-card p {
  color: var(--grey-dark);
  font-size: 0.9rem;
  margin: 0;
}

.logout-card {
  background-color: #fef3f3;
  border-color: var(--red-muted);
}

.logout-card:hover {
  border-color: var(--red-muted);
  box-shadow: 0 4px 16px rgba(201, 74, 74, 0.2);
}

/* Program Page */
.program-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.program-content {
  width: 100%;
}

.program-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.program-body {
  padding: 2rem;
}

.program-body h2,
.program-body h3,
.program-body h4 {
  color: var(--black);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.program-body h2:first-child,
.program-body h3:first-child {
  margin-top: 0;
}

.program-body h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--orange-main);
  padding-bottom: 0.75rem;
}

.program-body p {
  color: var(--grey-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.program-body ul,
.program-body ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--grey-dark);
}

.program-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.program-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.program-body table th,
.program-body table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey-dark);
}

.program-body table th {
  background-color: var(--grey-light);
  font-weight: 600;
  color: var(--black);
}

.program-body strong {
  color: var(--black);
  font-weight: 600;
}

.program-footer {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.program-footer .btn {
  padding: 0.75rem 1.5rem;
}

/* Jahrgangfest Page */
.jahrgangfest-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.variants-section,
.cost-summary-section {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variant-card {
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--white);
}

.variant-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--orange-main);
}

.form-select {
  padding: 0.5rem;
  border: 2px solid var(--grey-light);
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: var(--white);
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--blue-subtle);
}

/* Payment Table */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.payment-table tr {
  border-bottom: 1px solid var(--grey-light);
}

.payment-table td {
  padding: 0.75rem;
  color: var(--black);
}

.payment-method-label {
  font-weight: 600;
  width: 30%;
  color: var(--black);
}

.payment-method-value {
  color: var(--grey-dark);
}

/* Divider Text */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--grey-light);
}

.divider-text span {
  flex: 0 0 auto;
  margin: 0 1rem;
  color: var(--grey-dark);
  font-weight: 600;
}

.divider {
  border: none;
  border-top: 2px solid var(--grey-light);
  margin: 1.5rem 0;
}

/* Utility Classes */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--grey-dark);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jahrgangfest-container {
    grid-template-columns: 1fr;
  }

  .app-header-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .app-header-content {
    width: 100%;
  }

  .app-header-logo {
    max-height: 60px;
  }

  .app-header-content h1 {
    font-size: 1.5rem;
  }

  .landing-header h2 {
    font-size: 1.8rem;
  }

  .app-content {
    padding: 1rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .options-grid,
  .dashboard-options {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .consent-content {
    max-width: 90%;
    max-height: 80vh;
    padding: 1.5rem;
  }

  .program-body {
    padding: 1.5rem;
  }

  .program-footer {
    flex-direction: column;
  }
}
