/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto; /* 10% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  color: #000;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Goodyear CI colors adjustments */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #002F6C; /* Geändert von #f5f5f5 zu Goodyear Yellow */
    margin: 0;
    padding: 20px;
    color: #002F6C;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FEDB00; /* Geändert von #ffffff zu Goodyear Yellow */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 47, 108, 0.1);
    padding: 20px;
}

header {
  background-color: #002F6C; /* Goodyear Blue */
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: normal;
}

.date-display {
  margin-top: 10px;
  font-size: 1.2em;
}

.date-navigation {
  margin-top: 10px;
}

.nav-btn {
  background-color: #FEDB00; /* Goodyear Yellow */
  border: none;
  color: #002F6C; /* Goodyear Blue */
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #e6c800;
}

.nav-btn:active {
  background-color: #c9b300;
}

.add-task-toggle {
    background-color: #002F6C;
    color: #FEDB00;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.add-task-toggle:hover {
    background-color: #003d8a;
}

.add-task-toggle::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.add-task-toggle.active::after {
    transform: rotate(45deg);
}

.add-task-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.add-task-content.expanded {
    max-height: 500px;
}

.add-task {
    background-color: #002F6C;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #FEDB00;
}

.add-task h2 {
    margin-top: 0;
    color: #FEDB00;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"], input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="text"]:focus, input[type="file"]:focus {
  border-color: #FEDB00; /* Goodyear Yellow */
  outline: none;
}

.add-btn {
  background-color: #002F6C; /* Goodyear Blue */
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.add-btn:hover {
  background-color: #001f44;
}

.add-btn:active {
  background-color: #001733;
}

.task-list {
  margin-top: 20px;
}

.task-section {
  margin-bottom: 30px;
}

.task-section h2 {
  border-bottom: 2px solid #002F6C;
  padding-bottom: 5px;
  margin-bottom: 10px;
  color: #002F6C;
}

.task-item {
    background-color: #002F6C;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FEDB00;
}

.task-item.completed {
  background-color: #e0e0e0;
  color: #666;
}
.task-item.completed .task-content span {
  text-decoration: line-through;
  color: gray;
}

.task-item.completed .delete-btn,
.task-item.completed .edit-btn {
  text-decoration: none;
  color: initial;
}

.task-content {
    flex: 1;
    color: #FEDB00;
}

.task-meta {
    font-size: 0.9em;
    color: #FEDB00;
    margin-top: 5px;
}

.task-meta span {
  margin-right: 10px;
}

.task-meta .location::before {
  content: "\1F4CD "; /* Pin emoji */
}

.task-meta .person::before {
  content: "\1F464 "; /* Bust in silhouette emoji */
}

.task-meta .photos-indicator {
  cursor: pointer;
  color: #002F6C;
  font-weight: bold;
  user-select: none;
}

.photos-preview {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.photos-preview img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.delete-btn, .edit-btn {
  background-color: transparent;
  border: none;
  color: #002F6C;
  cursor: pointer;
  font-size: 1.2em;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.delete-btn:hover, .edit-btn:hover {
  color: #FEDB00;
}

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

  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .delete-btn, .edit-btn {
    margin-left: 0;
    margin-top: 5px;
  }
}

/* Adjust no-tasks message style */
#no-tasks {
    text-align: center;
    color: #002F6C;
    font-style: italic;
    padding: 40px;
    background-color: rgba(0, 47, 108, 0.1);
    border-radius: 8px;
}

/* ... existing code ... */

/* Contact Section Styles */
.contact-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.contact-section h2 {
  color: #002F6C;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.contact-info p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-info a {
  color: #002F6C;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.disclaimer h3 {
  color: #856404;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.disclaimer p {
  color: #856404;
  margin-bottom: 8px;
}

.disclaimer em {
  font-style: italic;
  font-size: 0.9em;
}

/* Responsive adjustments for contact section */
@media (max-width: 480px) {
  .contact-section {
    margin-top: 20px;
    padding: 15px;
  }

  .contact-section h2 {
    font-size: 1.3em;
  }

  .disclaimer {
    padding: 10px;
  }
}