/* === Reset & Bas === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #000;
  /* fallback om bilden inte laddas */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  z-index: 0;
}

/* === Bakgrundsbild-overlay === */
.background-overlay {
  background: url('images/orangefyrkant_background.jpg') center center / cover no-repeat fixed;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  /* Justera transparens här */
  z-index: -1;
  pointer-events: none;
}

/* === Header === */
header {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
  overflow-x: hidden;
}

header::after {
  display: none;
}

header img,
.logo-large {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 1rem auto;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 3;
}

/* === Main === */
main {
  flex-grow: 1;
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6);
}

/* === Sektioner === */
.intro-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  background: rgba(18, 18, 18, 0.8);
}

.column {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 400px;
  background-color: rgba(31, 31, 31, 0.9);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.column::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  right: -20px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
}

.column>* {
  position: relative;
  z-index: 1;
}

.column h2 {
  color: #ff7a1a;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.3rem;
}

.column p {
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* === Footer === */
footer {
  background-color: rgba(31, 31, 31, 0.9);
  color: #e9ca6b;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.footer-contact,
.footer-links,
.footer-copy {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  padding: 10px 0;
}

.footer-links a {
  color: #e9ca6b;
  margin: 0 6px;
  text-decoration: none;
  display: inline-block;
}

footer a {
  color: #e9ca6b !important;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff !important;
}

.footer-links span {
  color: #666;
}

/* === Statiska knappar === */
.remote-support-btn {
  font-size: 1.2rem;
  padding: 10px 16px;
  border-radius: 999px;
  background-color: #ff6600;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  bottom: 2rem;
  z-index: 9999;
}

.fjarrsupport-btn {
  right: 2rem;
}

.contact-btn {
  right: 14rem;
}

.remote-support-btn:hover {
  background-color: #cc5200;
}

.support-text {
  font-weight: bold;
}

.form-button {
  font-size: 1rem;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-button.cancel {
  background-color: #444;
  color: white;
}

.form-button.cancel:hover {
  background-color: #666;
}

.form-button.submit {
  background-color: #ff6600;
  color: white;
}

.form-button.submit:hover {
  background-color: #cc5200;
}

.logo-box {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  text-align: center;
}

.logo-box img {
  max-width: 140px;
  height: auto;
}

/* === Mobilanpassning === */
@media (max-width: 768px) {

  html,
  body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: block !important;
  }

  main {
    flex: unset;
  }

  footer {
    display: block;
    width: 100%;
    margin-top: auto;
  }

  .intro-section {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
  }

  .column {
    max-width: 100%;
    margin: 0 auto;
    overflow: visible !important;
  }

  .logo-large {
    display: block;
    position: relative;
    z-index: 5;
    margin: 1rem auto 0.5rem auto;
    max-width: 220px;
    height: auto;
  }

  header {
    padding-top: 30px;
    overflow: visible;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  .footer-links span {
    display: none;
  }

  .footer-contact {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }

  .fjarrsupport-btn {
    right: 2rem;
    bottom: 6.5rem;
  }

  .contact-btn {
    right: 2rem;
    bottom: 2rem;
  }

  .logo-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  .logo-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}