/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap");

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: linear-gradient(135deg, #0f1c2e 0%, #1a2b3f 100%);
  color: #f5f7fa;
  min-height: 100vh;
  overflow: hidden;
}

/* Container and layout */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(245, 247, 250, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(245, 247, 250, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
}

/* Logo/SVG styling */
.logo {
  margin-bottom: 4rem;
  opacity: 0.9;
  animation: drawIn 2s ease-out 0.5s both;
}

.logo svg {
  max-width: 280px;
  height: auto;
  max-height: 150px;
}

/* Typography */
.main-heading {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #f5f7fa;
  text-shadow: 0 2px 10px rgba(15, 28, 46, 0.3);
  animation: fadeInUp 1s ease-out 0.8s both;
}

.golden-word {
  font-family: "Caveat", Georgia, serif;
  color: #cfae60;
  font-weight: 600;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 5rem;
  color: rgba(245, 247, 250, 0.8);
  animation: fadeInUp 1s ease-out 1.1s both;
}

.company-name {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #f5f7fa;
  position: relative;
  animation: fadeInUp 1s ease-out 1.4s both;
}

.company-name::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5f7fa, transparent);
  opacity: 0.6;
}

/* Button styling */
.button-container {
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 1.7s both;
}

.rm-open-popup {
  background: transparent;
  border: 2px solid #cfae60;
  color: #cfae60;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rm-open-popup:hover {
  background: rgba(207, 174, 96, 0.1);
  color: #cfae60;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 174, 96, 0.2);
}

.rm-open-popup:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.rm-open-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(207, 174, 96, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: -1;
}

.rm-open-popup:hover::before {
  width: 300px;
  height: 300px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .logo {
    margin-bottom: 2rem;
  }

  .logo svg {
    max-width: 220px;
    max-height: 120px;
  }

  .main-heading {
    margin-bottom: 1.5rem;
  }

  .subtitle {
    margin-bottom: 6rem;
  }
}

@media (max-width: 480px) {
  .logo svg {
    max-width: 180px;
    max-height: 100px;
  }

  .container {
    padding: 0.5rem;
  }
}

/* Footer link styling */
.footer-link {
  position: absolute;
  top: 2rem;
  animation: fadeInUp 1s ease-out 1.7s both;
}

.footer-link a {
  color: rgba(245, 247, 250, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.footer-link a:hover {
  color: #cfae60;
  transform: translateY(-2px);
}

.footer-link a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #cfae60;
  transition: width 0.3s ease;
}

.footer-link a:hover::after {
  width: 100%;
}

/* Impressum page specific styling */
.impressum-content {
  max-width: 600px;
  animation: fadeInUp 1.2s ease-out;
}

.back-link {
  text-align: left;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.back-link a {
  color: rgba(245, 247, 250, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.back-link a:hover {
  color: #cfae60;
  transform: translateX(-5px);
}

.impressum-heading {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.impressum-details {
  text-align: left;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.impressum-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(245, 247, 250, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(245, 247, 250, 0.1);
  backdrop-filter: blur(10px);
}

.impressum-section:last-child {
  margin-bottom: 0;
}

.impressum-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 247, 250, 0.85);
  margin: 0;
}

.impressum-section strong {
  color: #f5f7fa;
  font-weight: 600;
}

.impressum-section a {
  color: #cfae60;
  text-decoration: none;
  transition: color 0.3s ease;
}

.impressum-section a:hover {
  color: rgba(207, 174, 96, 0.8);
  text-decoration: underline;
}

/* Allow scrolling on impressum page */
body:has(.impressum-content) {
  overflow: auto;
  min-height: 100vh;
}

/* Subtle hover effects */
.logo:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.company-name:hover {
  color: rgba(245, 247, 250, 0.9);
  transition: color 0.3s ease;
}
