/* Generelle basisindstillinger */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
  }
  
  /* Hero-sektionen */
  header.hero {
    position: relative;
    background: url('../assets/graphics/hero-image.webp') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
  }
  
  header.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
  }
  
  .hero h1 {
    font-size: 3rem;
    color: #fff;
    animation: slideIn 1.5s ease-out;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #ddd;
    animation: slideIn 1.5s ease-out 0.3s;
  }
  
  .hero .btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    animation: bounce 1.2s ease infinite;
  }
  
  .hero .btn:hover {
    background-color: #357ABD;
  }
  
  nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  nav ul li {
    display: inline;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav ul li a:hover {
    color: #4a90e2;
  }
  
  /* Om Mig-sektion */
  .about-section {
    background-color: #f0f2f5;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .about-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background-image: url('../assets/graphics/profile_image.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
  }
  
  .about-text {
    max-width: 600px;
  }
  
  /* Projekter-sektion */
  .projects-section {
    background-color: #e9f3ff;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }

  .projects-section h2 {
    margin-bottom: 2rem;
  }
  
  .project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 1s ease-out;
  }
  
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
  
  .project-image {
    width: 100%;
    height: 150px; /* Sørger for at billedets højde er fast */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px 8px 0 0; /* Runde hjørner kun øverst */
    margin-bottom: 1rem;
  }
  
  .project-status, .access-status, .created-date {
    font-size: 0.9rem;
    color: #666;
  }
  
  .app-link {
    display: inline-block;
    margin-top: 1rem;
    color: #4a90e2;
    text-decoration: underline;
  }
  
  .project-card h3 {
    font-size: 1.5rem;
    padding: 1rem;
  }
  
  .project-card p {
    padding: 0 1rem 1rem;
    color: #555;
  }
  
  /* "Læs Mere"-knap */
  .project-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #4a90e2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    animation: bounce 1.5s ease infinite;
    align-self: center;
  }
  
  .project-btn:hover {
    background-color: #357ABD;
  }

  /* Modal-baggrund */
.modal {
    display: none; /* Skjult som standard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparant sort baggrund */
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  /* Modal-indhold */
  .modal-content {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
  }
  
  /* Luk-knap */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
  }
  
  /* Billede i modal */
  #modal-image {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  /* Kontakt-sektion */
  #contact {
    background-color: #0f0f3d;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  #contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  form {
    max-width: 500px;
    margin: auto;
    text-align: left;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .checkbox-group {
    display: flex;
    align-items: baseline;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: none;
    background-color: #fff;
    color: #333;
  }
  
  textarea {
    resize: vertical;
    height: 100px;
  }
  
  input[type="checkbox"] {
    margin-right: 0.5rem;
  }
  
  button[type="submit"], #backButton {
    display: inline-block;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    animation: bounce 1.5s ease infinite;
  }
  
  button[type="submit"]:hover, #backButton:hover {
    background-color: #357ABD;
  }
  
  #contact a {
    color: #4a90e2;
    text-decoration: underline;
    transition: color 0.3s;
  }
  
  #contact a:hover {
    color: #82c4f5;
  }

  .honeypot {
    display: none;
  }

    #contactFormContainer, #confirmationMessage {
        max-width: 500px;
        margin: auto;
        text-align: center;
    }
    #confirmationMessage p {
        margin-bottom: 2em;
    }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #111;
    color: #fff;
  }
  
  /* Animationer */
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  @keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  /* Responsiv styling */
  @media (min-width: 768px) {
    .about-content {
      flex-direction: row;
      align-items: flex-start;
    }
  
    .about-image {
      margin-right: 2rem;
    }
  
    .about-text {
      text-align: left;
    }
  }

  .cookie-consent {
    position: fixed;
    top: -200%;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 16px;
    text-align: center;
    font-family: Arial, sans-serif;
    transition: top 1s ease-in-out;
    z-index: 1000;
}
.cookie-consent.show {
    top: 0;
}
.cookie-consent .content {
    max-width: 800px;
    margin: 0 auto;
}
.cookie-consent .text {
    text-align: left;
}
.cookie-consent .text a {
    color: #fff;
}
.toggles {
    margin-top: 16px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.toggle {
    display: flex;
    align-items: center;
    margin: 8px 0;
}
    .toggle input {
        width: 40px;
        height: 20px;
        -webkit-appearance: none;
        appearance: none;
        background-color: #c6c6c6;
        outline: none;
        border-radius: 20px;
        position: relative;
        transition: background-color 0.3s;
        cursor: pointer;
    }
    .toggle input:checked {
        background-color: #007bff;
    }
    .toggle input:checked::before {
        transform: translateX(20px);
    }
    .toggle input::before {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: white;
        transition: transform 0.3s;
        transform: translateX(2px);
    }
    .toggle label {
        margin-left: 12px;
        color: white;
        cursor: pointer;
    }
    .toggle input[disabled] {
        cursor: not-allowed;
        background-color: #888;
    }
    .toggle input[disabled]::before {
        background-color: #ccc;
    }
.cookie-consent .buttons {
    margin-top: 16px;
    text-align: right;
}
.cookie-consent .button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}
.cookie-consent .button:hover {
    background: #0056b3;
}
@media (max-width: 600px) {
    .cookie-consent .toggles {
        justify-content: space-evenly;
    }
    .cookie-consent .toggle {
        flex-direction: column-reverse;
    }
}