@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Poppins:wght@300;400;600&display=swap');

:root {
  /* Modern, high-contrast color scheme */
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --secondary: #f97316;
  --secondary-light: #fdba74;
  --secondary-dark: #c2410c;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Reset with improved box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
  position: relative;
}

/* Parallax background effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/bild3.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.08;
  z-index: -1;
  transition: opacity 0.5s ease;
}

/* Full width layout */
main {
  width: 100%;
  margin: 0;
  background-color: transparent;
  overflow: hidden;
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modern header with gradient and animation */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4rem 5%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Header decorative elements */
header::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: pulse 15s infinite alternate;
}

header::after {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.2; }
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out, glow 2s ease-in-out infinite alternate;
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
  from { text-shadow: 0 0 5px rgba(255,255,255,0.5), 0 0 10px rgba(255,255,255,0.3); }
  to { text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 30px rgba(255,255,255,0.3); }
}

/* Modern sticky navigation */
nav {
  background-color: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: var(--shadow);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

nav a {
  display: block;
  padding: 1.25rem 2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

/* Animated hover effect */
nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover {
  color: var(--secondary-light);
}

nav li.active a {
  color: var(--secondary);
}

nav li.active a::before {
  transform: scaleX(1);
}

/* Content sections with modern styling */
section {
  padding: 5rem 10%;
  background-color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

section:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.95);
}

/* Section decorative elements */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2.5px;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin: 2.5rem 0 1.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark);
  max-width: 800px;
}

/* Image gallery with enhanced animations */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.img-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(50px);
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  height: 300px; /* Fixed height for consistency */
}

.img-card:nth-child(1) { animation-delay: 0.2s; }
.img-card:nth-child(2) { animation-delay: 0.4s; }
.img-card:nth-child(3) { animation-delay: 0.6s; }

.img-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-card:hover::before {
  opacity: 1;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.img-card:hover img {
  transform: scale(1.08);
}

/* Spot list with improved styling */
.spot-list {
  list-style: none;
  margin: 2.5rem 0;
}

.spot-item {
  background-color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--primary);
  transform: translateX(-30px);
  opacity: 0;
  animation: slideInLeft 0.6s forwards;
}

.spot-item:nth-child(1) { animation-delay: 0.1s; }
.spot-item:nth-child(2) { animation-delay: 0.25s; }
.spot-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.spot-item:hover {
  transform: translateX(5px) translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left: 8px solid var(--primary);
}

.spot-item a {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.spot-item a:hover {
  color: var(--secondary);
}

.grund {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-style: italic;
  color: var(--gray);
  border-left: 2px solid var(--secondary-light);
  margin-left: 0.5rem;
}

/* Enhanced table styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 1.25rem;
  text-align: left;
}

th {
  background-color: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

td {
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

tr {
  transition: var(--transition);
  animation: fadeIn 0.6s forwards;
  opacity: 0;
}

tr:nth-child(1) { animation-delay: 0.1s; }
tr:nth-child(2) { animation-delay: 0.25s; }
tr:nth-child(3) { animation-delay: 0.4s; }

tr:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.8);
}

tr:last-child td {
  border-bottom: none;
}

table img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease;
}

table img:hover {
  transform: scale(1.05);
}

/* Modern form styling */
form {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 2.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(100, 116, 139, 0.2);
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
}

.checkbox-group {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.4s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover::before {
  left: 100%;
}

/* Enhanced footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 3rem 5%;
  position: relative;
  overflow: hidden;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

footer::before {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -50px;
}

footer::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -100px;
}

footer p {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 1rem;
  max-width: none;
}

/* UI Controls with improved styling */
.theme-toggle,
.back-to-top {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
  bottom: 2.5rem;
  right: 2.5rem;
  background-color: var(--primary);
  color: var(--white);
}

.back-to-top {
  bottom: 2.5rem;
  left: 2.5rem;
  background-color: var(--secondary);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.theme-toggle:hover,
.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* Dark theme enhancements */
body.dark-theme {
  background-color: var(--dark);
  color: var(--light);
}

body.dark-theme::before {
  opacity: 0.05;
}

body.dark-theme section {
  background-color: rgba(15, 23, 42, 0.95);
}

body.dark-theme section:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.95);
}

body.dark-theme h2 {
  color: var(--primary-light);
}

body.dark-theme h3 {
  color: var(--primary-light);
}

body.dark-theme p,
body.dark-theme label {
  color: var(--light);
}

body.dark-theme .spot-item {
  background-color: rgba(30, 41, 59, 0.9);
  border-left-color: var(--primary-light);
}

body.dark-theme .grund {
  color: var(--light);
  border-left-color: var(--secondary-light);
}

body.dark-theme tr {
  background-color: rgba(30, 41, 59, 0.9);
}

body.dark-theme tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.9);
}

body.dark-theme tr:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

body.dark-theme td {
  border-bottom-color: rgba(100, 116, 139, 0.2);
}

body.dark-theme form {
  background-color: rgba(30, 41, 59, 0.9);
}

body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme textarea {
  background-color: rgba(15, 23, 42, 0.8);
  border-color: rgba(100, 116, 139, 0.3);
  color: var(--light);
}

/* Animation classes */
@keyframes fadeInStagger {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fadeInUp {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

/* Responsive design improvements */
@media (max-width: 1200px) {
  h1 {
    font-size: 4rem;
  }
  
  section {
    padding: 4rem 8%;
  }
  
  h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }
  
  section {
    padding: 3.5rem 6%;
  }
  
  nav a {
    padding: 1rem 1.5rem;
  }
  
  .img-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .img-card {
    height: 250px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  header {
    padding: 3rem 5%;
  }
  
  section {
    padding: 3rem 5%;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav li {
    width: 50%;
    text-align: center;
  }
  
  nav a {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .theme-toggle,
  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .checkbox-group {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  nav li {
    width: 100%;
  }
  
  .img-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  form {
    padding: 1.5rem;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .theme-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  table th, table td {
    padding: 0.75rem;
  }
}
