/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #001f3f, #000000);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #4714d1;
  background-color: #111;
}

.image-container img {
  height: 60px;
  width: auto;
}

.head-text {
  font-size: 60px;
  color: red;
  margin-left: 20px;
}

.head-text a {
  color: red;
  text-decoration: none;
}

.kontakt-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem 1rem;
}

.box {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1.5rem;
  flex: none;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeSlideUp 1s ease both;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .kontakt-wrapper {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .box {
    width: 100%;
    max-width: 100%;
  }
}

.contact-form {
  width: 100%;
  max-width: 500px;
  padding: 25px;
  background-color: #222;
  border-radius: 10px;
  border: 1px solid #444;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h1 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
}

.contact-form p {
  font-size: 18px;
  text-align: center;
  color: #ccc;
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.input-wrapper i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #888;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border-radius: 5px;
  border: 1px solid #555;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  background-color: #fff;
  color: #000;
  border-color: #1E90FF;
  box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
  outline: none;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #1E90FF, #007BFF);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.contact-form button:hover {
  background: linear-gradient(to right, #1C86EE, #006AE6);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(30, 144, 255, 0.4);
}

.contact-info {
  font-size: 1rem;
  text-align: center;
}

.contact-info a {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
}

.contact-info a:hover {
  color: #FFA500;
}

.box.right {
  position: relative;
}

.box.right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
  transition: box-shadow 0.4s ease;
  animation: kenburns 20s ease-in-out infinite alternate;
}

.box.right video:hover {
  box-shadow: 0 0 30px rgba(30, 144, 255, 0.6);
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-5px, -5px);
  }
}

.video-overlay {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .video-overlay {
    font-size: 12px;
    padding: 6px 12px;
    bottom: 10px;
    right: 10px;
  }
}

.bowlingkugle {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.bowlingkugle img {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  object-fit: cover;
  animation: moveAndRotate 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}

.bowlingkugle img:hover {
  animation: moveAndRotate 5s linear infinite, bounce 0.4s ease;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

@keyframes moveAndRotate {
  0% {
    left: -50px;
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    left: calc(100% - 50px);
    transform: translateY(-50%) rotate(720deg);
  }
}

@keyframes bounce {
  0%   { transform: translateY(-50%) rotate(720deg) scale(1); }
  50%  { transform: translateY(-55%) rotate(730deg) scale(1.2); }
  100% { transform: translateY(-50%) rotate(720deg) scale(1); }
}

.map {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
  animation: fadeInMap 1.5s ease both;
}

@keyframes fadeInMap {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .kontakt-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .contact-form h1 {
    font-size: 24px;
  }

  .contact-form p,
  .contact-info {
    font-size: 16px;
  }

  .contact-form label {
    font-size: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 10px;
  }

  .box.right video {
    height: 200px;
  }

  .head-text {
    font-size: 32px;
  }
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1E90FF;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  font-weight: bold;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .box {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

.consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #ddd;
  margin: 10px 0 20px 0;
  line-height: 1.4;
}

.consent-wrapper input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #1d3eb6; /* samme blå som send-knap */
  transform: scale(1.2);
}

.consent-wrapper a {
  color: #4ea3ff;
  text-decoration: underline;
}

.consent-wrapper a:hover {
  color: #88c7ff;
}