/* Import elegant serif font */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 20px;
    background-color: #ffffff;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

/* Elegant h1 styling */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

h1 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 3.5rem;
    background: linear-gradient(90deg, #8B0000, #B22222);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    padding: 0.2em 0;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(139,0,0,0.4);
    user-select: none;
    /* Fjern transition for å unngå puls */
    /* transition: color 0.3s ease;  <-- fjernet */
}

/* Fjern hover-effekt helt */



h2 {
    color: #cc0000;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: red;
    font-weight: bold;
}

nav ul li a:hover {
    color: darkred;
}

.hero-slider {
    position: relative;
    max-width: 100%;
    height: 300px; /* Juster høyden etter behov */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px; /* Litt luft under? */
}

.slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bildet fyller container, beholder proposjoner */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slides img.active {
    opacity: 1;
    z-index: 1;
}

.hero {
    position: relative;
}

#kalender {
    margin-top: 50px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day, .empty {
    background: #eee;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

.day:hover {
    cursor: pointer;
    background-color: #ddd;
}

.today {
    background-color: #ffcccc;
    border: 2px solid red;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.calendar-header button {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 kolonner for dagene */
    gap: 5px;
    padding: 10px;
}

#calendar div {
    background-color: #eee;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    position: relative; /* nødvendig for absolutt posisjonering av weather-info */
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    padding-bottom: 5px;
}

#eventFormSection {
    margin-top: 30px;
    max-width: 400px;
}

#eventForm input,
#eventForm button {
    display: block;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 8px;
}

#calendar small {
    font-size: 0.7em;
    color: #555;
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.kort {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    
}

.kort:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.kort img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.kort h3 {
    color: #cc0000;
    margin-bottom: 10px;
}

.kort p {
    color: #333;
    margin-bottom: 15px;
}

.kort .knapp {
    text-decoration: none;
    background-color: #cc0000;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.kort .knapp:hover {
    background-color: #a30000;
}

/* Værikon og temperatur i kalenderen */
.weather-info {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.65em;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none; /* slik at den ikke blokkerer klikk på dag */
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

footer {
    background-color: #cc0000;
    color: #fff;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.footer-container > div {
    flex: 1 1 200px;
    margin: 10px;
    min-width: 180px;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffdddd;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.footer-social a:hover {
    filter: brightness(0.8);
}

.kontaktseksjon {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kontaktseksjon h2 {
  text-align: center;
  color: #cc0000;
  margin-bottom: 20px;
}

#kontaktSkjema label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

#kontaktSkjema input,
#kontaktSkjema textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

#kontaktSkjema button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #cc0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#kontaktSkjema button:hover {
  background-color: #a30000;
}

.tilbakemelding {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.kontaktseksjon {
  max-width: 700px;
  margin: 50px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.kontaktseksjon h2 {
  text-align: center;
  color: #cc0000;
  margin-bottom: 30px;
  font-size: 2em;
}

.skjema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.inputgruppe {
  position: relative;
}

.fullbredde {
  grid-column: 1 / -1;
}

.inputgruppe input,
.inputgruppe textarea {
  width: 100%;
  padding: 14px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: transparent;
  outline: none;
}

.inputgruppe label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 0 5px;
  font-size: 1rem;
  color: #666;
  transition: all 0.2s ease;
  pointer-events: none;
}

.inputgruppe input:focus + label,
.inputgruppe input:not(:placeholder-shown) + label,
.inputgruppe textarea:focus + label,
.inputgruppe textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 8px;
  font-size: 0.8rem;
  color: #cc0000;
}

.send-knapp {
  grid-column: 1 / -1;
  padding: 12px 20px;
  background-color: #cc0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-knapp:hover {
  background-color: #a30000;
}

.tilbakemelding {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  color: green;
}

.styret-liste {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.styret-liste h2 {
  text-align: center;
  color: #cc0000;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.gruppe {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.gruppe h3 {
  color: #a30000;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #cc0000;
  padding-bottom: 5px;
}

.gruppe ul {
  list-style: none;
  padding-left: 0;
}

.gruppe ul li {
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 1.1rem;
}

.gruppe ul li strong {
  color: #cc0000;
}

.nyheter {
  max-width: 1020px;
  width: 1200;
  margin: 50px auto;
  padding: 0 20px;
}

.nyheter h2 {
  color: #cc0000;
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.nyhetsliste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.nyhet {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.nyhet:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.nyhet h3 {
  margin-bottom: 10px;
  color: #a30000;
}

.nyhet time {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.nyhet p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.hero-slider {
  width: 100%;
  height: 60vh; /* Responsiv høyde */
  overflow: hidden;
  position: relative;
}

.hero-slider .slides {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slide 15s infinite;
}

.hero-slider .slides img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Dette beskjærer bildet hvis det ikke passer proporsjonene */
  flex-shrink: 0;
}

.fotball-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.fotball-seksjon {
  flex: 1 1 45%;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fotball-seksjon h2 {
  margin-top: 0;
}

.fotball-seksjon ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

/* ===== FOTBALL SIDE ===== */

.fotball-intro {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.fotball-lag {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.lag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ALLTID like mange per rad */
    gap: 1.5rem;
}

@media (max-width: 1000px) {
    .lag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .lag-grid {
        grid-template-columns: 1fr;
    }
}

.lag-kort {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    overflow: hidden;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lag-kort:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.lag-kort img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Bildet strekkes ALDRI feil */
    display: block;
}

.lag-kort h3 {
    padding: 1rem;
    margin: 0;
    color: #cc0000;
}

.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.content-section {
    padding: 4rem 1.5rem;
}

.two-column {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* ===== Klubbhuset – tekstseksjoner ===== */

.content-section {
    padding: 5rem 1.5rem;
    background-color: #f6f7f8;
}

.two-column {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.info-card {
    background: #ffffff;
    padding: 2.5rem 2.5rem 3rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 👈 VIKTIG */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #0f2a44; /* bruk klubbfarge om du vil */
}

.info-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* Mobil */
@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 2rem;
    }
}

/* ===== Arbeidsgruppe ===== */

.arbeidsgruppe {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.arbeidsgruppe h3 {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    color: #0f2a44;
}

.arbeidsgruppe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-card img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.person-card img:hover {
    transform: scale(1.05);
}

.person-card p {
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
}

/* Tablet */
@media (max-width: 900px) {
    .arbeidsgruppe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 500px) {
    .arbeidsgruppe-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Støtt oss ===== */

.stott-oss {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f2a44, #143a5c);
    color: #ffffff;
    border-radius: 18px;
    text-align: center;
}

.stott-oss h3 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

.stott-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

.stott-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stott-kort {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.stott-kort h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stott-kort p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    opacity: 0.95;
}

.stott-knapp {
    display: inline-block;
    padding: 12px 24px;
    background: #ffffff;
    color: #0f2a44;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stott-knapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Tablet */
@media (max-width: 900px) {
    .stott-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Felles hero for undersider ===== */

.page-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 380px;
    max-height: 520px;
    overflow: hidden;
    border-radius: 18px;
    margin: 2rem auto 3rem;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.6)
    );
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
    z-index: 2;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Mobil */
@media (max-width: 700px) {
    .page-hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.link-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.link-card:hover h3 {
    text-decoration: underline;
}

.card-cta {
    margin-top: auto;
    font-weight: 600;
    color: #0f2a44;
    padding-top: 1rem;
}

.link-card:hover .card-cta {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

.image-card {
    padding: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-card h3 {
    margin-top: 0;
}

/* Hover-effekt */
.image-card:hover .card-image img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

/* ===== Kort med bakgrunnsbilde ===== */

.bg-card {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 360px;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    border-radius: 16px;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.25)
    );
}

.bg-card .card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.bg-card h3 {
    margin-bottom: 0.6rem;
}

.bg-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.bg-card .card-cta {
    display: inline-block;
    margin-top: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Hover */
.bg-card:hover {
    transform: translateY(-4px);
}

.bg-card:hover .bg-overlay {
    background: rgba(0,0,0,0.55);
    transition: background 0.3s ease;
}

.barnefotball {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.lag-liste h3 {
  margin-bottom: 1.5rem;
  color: #cc0000;
}

.lag-rad {
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lag-rad h4 {
  margin-top: 0;
  color: #a30000;
}

.lag-rad p {
  margin: 0.3rem 0;
}

.page-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page-hero-content {
  position: absolute;
  z-index: 2;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  max-width: 900px;
}

.page-hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.page-hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Mobil */
@media (max-width: 768px) {
  .page-hero {
    height: 40vh;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }
}

.intro-highlight {
  max-width: 900px;
  margin: 3rem auto 2.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #fff, #fafafa);
  border-left: 6px solid #cc0000;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.intro-highlight h2 {
  margin-top: 0;
  color: #a30000;
  font-size: 2rem;
}

.intro-lead {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.intro-highlight p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 900px;
}

.info-grid div {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.info-grid strong {
  display: block;
  color: #a30000;
  margin-bottom: 0.3rem;
}

.cta-highlight {
  background: linear-gradient(135deg, #8b0000, #cc0000);
  color: white;
  padding: 4rem 2rem;
  border-radius: 18px;
  margin: 4rem auto;
  max-width: 1000px;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: white;
  color: #a30000;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.support-team {
  margin: 4rem auto;
  max-width: 1000px;
}

.support-team h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.support-card {
  background: white;
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.support-card .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #ddd;
}

.support-card h4 {
  color: #a30000;
  margin-bottom: 0.3rem;
}

.support-card .name {
  font-weight: bold;
}

.support-card .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;       /* viktig for å klippe bildet til sirkel */
}

.support-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* bildet fyller hele sirkelen */
}


/* ===== Kort – klubbfarger ===== */

/* Overskrift på kort (Barnefotball, Senior osv) */
.lag-kort h3,
.image-card h3,
.card-content h3 {
    color: #cc0000;
}

/* Brødtekst på kort */
.lag-kort p,
.image-card p,
.card-content p {
    color: #444;
}

/* CTA-tekst nederst på kort */
.card-cta {
    color: #a30000;
}

/* Hover – litt mørkere rødt */
.link-card:hover .card-cta {
    color: #8b0000;
}

/* ===== Kort – hvit tekst ===== */

/* All tekst inni klikkbare kort */
.lag-kort,
.image-card,
.link-card {
    color: #fff;
}

/* Overskrifter */
.lag-kort h3,
.image-card h3,
.card-content h3 {
    color: #fff;
}

/* Brødtekst */
.lag-kort p,
.image-card p,
.card-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA / lenketekst */
.card-cta {
    color: #fff;
    font-weight: 600;
}

/* Hover – litt mer kontrast */
.link-card:hover .card-cta {
    color: #ffe5e5;
}

/* ===== Om oss – intro ===== */
.info-wide {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.info-wide h2 {
  margin-top: 0;
}

/* ===== Styre ===== */
.styre-seksjon {
  margin-bottom: 60px;
}

.styre-kort {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  background: #f2f2f2;
  padding: 18px 25px;
  border-radius: 10px;
  margin-bottom: 15px;
}


.styre-rolle {
  font-weight: bold;
  color: #cc0000;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.styre-info span {
  display: block;
  font-size: 0.95rem;
  color: #444;
}

/* Mobil */
@media (max-width: 600px) {
  .styre-kort {
    grid-template-columns: 1fr;
  }
}

.styre-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.styre-info strong {
  font-size: 1rem;
}

.styre-info span {
  font-size: 0.95rem;
  color: #555;
}

.styre-rolle {
  white-space: nowrap;
}

.styre-info strong {
  font-size: 1.05rem;
}

.styre-info span {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-social img {
  width: 28px;        /* juster til 24–32px om ønskelig */
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 12px; /* litt luft mellom logo og tekst */
}

.header-container .logo {
  width: 60px; /* juster størrelse etter behov */
  height: auto; /* behold proporsjoner */
}

@media (max-width: 768px) {

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-container h4 {
    margin-bottom: 6px;
  }

  .footer-container p,
  .footer-container li {
    font-size: 0.9rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

}

@media (max-width: 768px) {

  .styre-kort {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 12px;
  }

  .styre-rolle {
    margin-bottom: 6px;
  }

}
.menu-toggle {
  display: none;
}
@media (max-width: 768px) {

  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  nav ul li {
    margin: 10px 0;
  }

}

/* HAMBURGER BASE */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white; /* endre om header er lys */
  transition: all 0.3s ease;
}

/* MOBIL */
@media (max-width: 768px) {

  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  nav ul li {
    margin: 12px 0;
  }

}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBIL NAV FIX ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #cc0000;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }

}

.admin-panel {
max-width: 900px;
margin: auto;
padding: 40px 20px;
}

.admin-panel form {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}

.admin-panel input,
.admin-panel textarea {
padding: 10px;
font-size: 1rem;
}

.admin-panel button {
width: fit-content;
}

.list-item {
padding: 10px;
border-bottom: 1px solid #ddd;
margin-bottom: 5px;
}