/* === ROOT VARIABLER === */
:root {
    --green: #2b8a59;
    --green-light: #c8f2d4;
    --green-dark: #184d33;
    --gold: #c8a95d;
    --white: #ffffff;
    --text-dark: #0f1411;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --glow: 0 0 15px rgba(43, 138, 89, 0.5);
    font-family: "Inter", system-ui, sans-serif;
  }
  
  /* === GLOBAL BASE === */
  body {
    margin: 0;
    background: radial-gradient(circle at top left, #f5fff9, #e6f4ee, #d4ede0);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  section {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* === HEADER === */
  header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.6rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    height: 70px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  @keyframes softGlow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(43,138,89,0.4)); }
    50% { filter: drop-shadow(0 0 22px rgba(43,138,89,0.9)); }
  }
  header img {
    height: 75px;
    animation: softGlow 4s ease-in-out infinite;
    transition: transform 0.4s ease;
  }
  header img:hover { transform: scale(1.12); }
  
  /* === ANNOUNCEMENT BAR === */
  .announcement {
    width: 100%;
    overflow: hidden;
    background: rgba(43,138,89,0.1);
    border-top: 1px solid rgba(43,138,89,0.15);
    border-bottom: 1px solid rgba(43,138,89,0.15);
    backdrop-filter: blur(6px);
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 999;
    margin: 0;
    padding: 0;
  }
  .scroll-text {
    display: flex;
    width: max-content;
    animation: scrollLoop 15s linear infinite;
  }
  .scroll-text p {
    white-space: nowrap;
    margin: 0;
    padding-right: 4rem;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-shadow: 0 0 6px rgba(43,138,89,0.3);
    letter-spacing: 1px;
  }
  @keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  /* === HERO === */
  .hero {
    text-align: center;
    padding: 2rem 2rem 6rem;
    background: linear-gradient(180deg, #e8fff2 0%, #f9fff9 100%);
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(43,138,89,0.2), transparent 60%);
    z-index: 0;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
  }
  .main-title {
    font-size: 3.4rem;
    color: var(--green-dark);
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(43,138,89,0.25);
  }
  .subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 0.6rem;
    font-weight: 500;
  }
  .hero-description {
    max-width: 600px;
    margin: 1.8rem auto 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  /* === ABOUT === */
  .about {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f5fff9 0%, #e9f8ee 50%, #d8f3e1 100%);
    position: relative;
    overflow: hidden;
  }
  .about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(43,138,89,0.15), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(200,169,93,0.15), transparent 70%);
    opacity: 0.7;
    z-index: 0;
  }
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .card {
    background: white;
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 1 1 320px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(43,138,89,0.15);
    position: relative;
  }
  .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(43,138,89,0.08), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .card:hover::before { opacity: 1; }
  .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(43,138,89,0.2);
  }
  .card h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 1rem; }
  .card p { color: #444; line-height: 1.7; }
  
  /* === CONTACT – nyt design === */
  .contact {
    position: relative;
    padding: 8rem 2rem;
    background: radial-gradient(circle at 30% 20%, #e8fff0, #d8f6e4, #bceccd);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      url("assets/formlogo.png") center/40% no-repeat,
      radial-gradient(circle at 20% 30%, rgba(43,138,89,0.2), transparent 70%),
      radial-gradient(circle at 80% 60%, rgba(200,169,93,0.15), transparent 80%);
    opacity: 0.65;
    filter: brightness(1.2) contrast(1.25);
    z-index: 1,7;
  }
  
  .contact-container {
    position: relative;
    max-width: 760px;
    width: 90%;
    padding: 3.5rem 3rem 0.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(43,138,89,0.4);
    box-shadow: 0 0 40px rgba(43,138,89,0.25), inset 0 0 10px rgba(255,255,255,0.1);
    overflow: hidden;
    z-index: 1;
  }
  
  .contact h2 {
    font-size: 2.6rem;
    text-align: center;
    color: var(--green-dark);
    margin-bottom: 0.6rem;
    text-shadow: 0 0 12px rgba(43,138,89,0.4);
  }
  
  .contact-intro {
    text-align: center;
    color: #1f3c29;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  #contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 0;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(43,138,89,0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    font-size: 1rem;
    box-shadow: inset 0 0 8px rgba(43,138,89,0.08);
    transition: all 0.4s ease;
  }
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
    border-color: var(--green);
    box-shadow: 0 0 18px rgba(43,138,89,0.35);
  }
  ::placeholder { color: rgba(43,138,89,0.7); }
  .form-group label {
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.4rem;
    display: block;
    text-shadow: 0 0 6px rgba(43,138,89,0.3);
  }
  
  /* Knappen */
  .btn-submit {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    align-self: center;
    box-shadow: 0 0 20px rgba(43,138,89,0.5);
    margin-bottom: 0.1rem;
    position: relative;
    overflow: hidden;
  }
  .btn-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
  }
  .btn-submit:hover::before { transform: translateX(100%); }
  .btn-submit:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 30px rgba(43,138,89,0.7);
    background: linear-gradient(135deg, var(--gold), var(--green));
  }
  
  /* Feedback beskeder */
  .success-message, .error-message {
    text-align: center;
    font-size: 1.05rem;
    margin-top: 1.2rem;
    transition: opacity 0.5s ease;
    opacity: 0;
  }
  .success-message.show { color: var(--green); opacity: 1; }
  .error-message.show { color: #d9534f; opacity: 1; }
  
  /* Responsiv */
  @media (max-width: 700px) {
    .contact-container { padding: 2.6rem 1.6rem 0.4rem; }
    .contact h2 { font-size: 2rem; }
  }
  /* ====== FOOTER ====== */
.footer {
    position: relative;
    background: linear-gradient(180deg, #e5f8e9 0%, #d7f3dc 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 1rem 2rem;
    text-align: center;
    font-family: "Inter", sans-serif;
    color: #1b3b26;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  
  .footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/formlogo.png") center/20% no-repeat;
    opacity: 0.15;
    filter: brightness(1.1) contrast(1.2);
    z-index: 0;
  }
  
  .footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  
  .footer-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #255c3a;
  }
  
  .footer a {
    color: #255c3a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
  }
  
  .footer a:hover {
    color: #2b8a59;
    text-shadow: 0 0 6px rgba(43, 138, 89, 0.4);
  }
  
  .footer-copy {
    font-size: 0.85rem;
    color: rgba(27, 59, 38, 0.7);
    margin-top: 0.6rem;
  }
  