* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  background-color: #F5F5F5;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #D50000;
  position: fixed;
  width: 100%;
  margin-bottom: 40px;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar > figure.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 55px;
  width: auto;
  object-fit: contain;
}

section.glass-background {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 15px 30px;
  display: flex;
}

section.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links  a {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: white;
  padding: 10px 20px;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
}

.nav-links a:hover {
  background-color: white;
  color: #D50000;
}

.nav-links a.active {
  background-color: white;
  color: #D50000;
}

.nav-links .divider {
  height: 24px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 15px;
}

.navbar.scrolled {
  background: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-right: 10px;
  position: relative;
  width: 35px;
  height: 35px;
  padding: 5px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
}

.hamburger.open {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 2px solid white;
}

.hamburger > span {
  width: 25px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger span:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger span:nth-child(2) {
  transform: translateY(0px);
}

.hamburger span:nth-child(3) {
  transform: translateY(8px);
}

/* X state */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  width: 20px;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  width: 20px;
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(213, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 999;
  transition: left 0.3s ease;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu > ul > li {
  margin: 15px 0;
}

.mobile-menu > ul > li > a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  text-align: center;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu ul li a:hover {
  background-color: white;
  color: #D50000;
}

.mobile-menu ul li a.active {
  background-color: white;
  color: #D50000;
}

@media (max-width: 768px) {
  .nav-center {
    display: none;
  }

  .navbar {
    padding: 10px 15px;
  }

  .logo-image {
    height: 45px;
  }

  .glass-background {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .nav-center {
    display: flex;
  }
}

/* NoScript Styles */
noscript div {
  background: #ffebee;
  color: #c62828;
  padding: 10px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* NoScript Navigation Adjustments */
noscript ~ body .hamburger,
noscript ~ body .mobile-menu {
  display: none !important;
}

noscript ~ body .nav-center {
  display: flex !important;
}

noscript ~ body .navbar {
  background: #000000 !important;
}

main {
  margin-top: 100px;
  padding: 20px;
}

@media (max-width: 768px) {

  .oppetider-sektion {
    margin: 20px 10px;
    padding: 15px;
  }

  .oppetider-titel {
    font-size: 1.5rem;
  }

  .oppetider-tabell th,
  .oppetider-tabell td {
    padding: 8px;
    font-size: 0.9rem;
  }

  .kontakt-sektion {
    gap: 20px;
    padding: 0 10px;
  }

  .kontakt-kort {
    width: 100%;
    max-width: 300px;
    padding: 20px;
  }

  .profil-bild {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-width: 3px;
  }

  .namn {
    font-size: 1.3rem;
  }

  .position {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .kontakt-detaljer {
    font-size: 1rem;
  }

  .agare-titel {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

.oppetider-sektion {
  padding: 20px;
  background-color: #F5F5F5;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.oppetider-titel {
  font-size: 2rem;
  font-weight: 700;
  color: #D50000;
  text-align: center;
  margin-bottom: 20px;
}

.oppetider-tabell {
  width: 100%;
  border-collapse: collapse;
}

.oppetider-tabell th,
.oppetider-tabell td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.oppetider-tabell th {
  background-color: #D50000;
  color: white;
}

.oppetider-tabell tr:hover {
  background-color: #f1f1f1;
}

.oppetider-tabell td {
  color: #333;
}

@media (max-width: 375px) {
  .oppetider-tabell th,
  .oppetider-tabell td {
    padding: 6px;
    font-size: 0.8rem;
  }
}

.kontakt-sektion {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.kontakt-kort {
  background-color: #F5F5F5;
  border-radius: 10px;
  padding: 30px;
  width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.profil-bild {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #D50000;
}

.profil-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kontakt-info {
  color: #333;
}

.namn {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #D50000;
}

.position {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 20px;
}

.kontakt-detaljer {
  text-align: left;
  margin-top: 20px;
  font-size: 1.1rem;
}

.kontakt-detaljer p {
  margin: 12px 0;
}

.etikett {
  font-weight: 600;
  color: #D50000;
}

.agare-titel {
  font-size: 2.5rem;
  font-weight: 700;
  color: #D50000;
  text-align: center;
  margin-bottom: 40px;
  width: 100%; 
}

.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer .innehall {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer .länkar h3, .footer .kontakt h3 {
  color: #D50000;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer .länkar, .footer .kontakt {
  flex: 1;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #D50000;
}

.footer address {
  font-style: normal;
  line-height: 1.6;
}

.footer .copyright {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer .innehall {
    flex-direction: column;
    gap: 30px;
  }

  .footer .länkar, .footer .kontakt {
    text-align: center;
  }
}
