/* ==========================================================================
   motor4 - Wartungsseite / Coming Soon
   Styles based on Figma Design (motor4 - Preview 170:3)
   ========================================================================== */

/* ==========================================================================
   Local Webfonts (Zero external dependencies)
   ========================================================================== */

/* Bricolage Grotesque */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit 400 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit 500 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit 600 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit 700 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-pine: #004131;             /* Primary dark green */
  --color-pine-deep: #001f17;        /* Deeper green for dark backgrounds */
  --color-mint: #00FFC1;             /* Accent vibrant mint/cyan for buttons */
  --color-mint-hover: #1affcb;       /* Button hover state */
  --color-mint-active: #00e0a9;      /* Button active state */
  --color-mint-light: #C0FFEF;       /* Light mint for footer text */
  --color-bg-top: #F2FFF9;           /* Light mint pastel background */
  --color-white: #ffffff;
  
  --font-headline: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg-top);
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg-top);
  color: var(--color-pine);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Layout Wrapper - max 1920px */
.page-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  z-index: 1;
  overflow: hidden;
  /* box-shadow: 0 0 100px rgba(0, 65, 49, 0.05); */
}

/* ==========================================================================
   Background Video & Animated Mesh Waves (from Figma Design)
   ========================================================================== */
.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg-top);
}

/* Top background solid/gradient fill matching Figma Rectangle 10 */
.bg-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(180deg, var(--color-bg-top) 0%, rgba(242, 255, 249, 0.95) 60%, rgba(242, 255, 249, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Image fallback & subtle breathing CSS mesh from Figma Blend 2 */
.bg-mesh-image {
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 110%;
  height: 100%;
  background-image: url('../img/blend2.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 1;
  opacity: 0.85;
  mix-blend-mode: multiply;
  animation: bgWaveSway 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgWaveSway {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  50% {
    transform: scale(1.04) translateY(-12px) rotate(0.4deg);
  }
  100% {
    transform: scale(1.02) translateY(8px) rotate(-0.3deg);
  }
}

/* Background video layer from Figma Blend 2 motion */
.bg-video {
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  opacity: 0.85;
  /* mix-blend-mode: multiply; */
  pointer-events: none;
}

/* ==========================================================================
   Header / Logo
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.logo-link:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.logo-img {
  width: 161px;
  height: 40px;
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Main Content Hero
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px;
  max-width: 1540px;
  margin: 0 auto;
  flex: 1;
}

.hero-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.25vw, 7.5rem);
  line-height: 1.2;
  color: var(--color-pine);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero-headline span {
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-pine);
  margin-bottom: 48px;
  max-width: 520px;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-mint);
  color: var(--color-pine);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  text-decoration: none;
  min-width: 243px;
  height: 60px;
  padding: 0 32px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 255, 193, 0.25);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-pill:hover {
  background-color: var(--color-mint-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 255, 193, 0.4);
}

.btn-pill:active {
  background-color: var(--color-mint-active);
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 255, 193, 0.2);
}

.btn-pill:focus-visible {
  outline: 3px solid var(--color-pine);
  outline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 40px 80px;
  font-size: 0.9375rem;
  color: var(--color-mint-light);
}

.footer-copyright {
  font-weight: 600;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  list-style: none;
}

.footer-links li {
  display: inline-flex;
  align-items: center;
}

.footer-links li:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--color-mint-light);
  opacity: 0.7;
}

.footer-links a,
.footer-links button {
  color: var(--color-mint-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.footer-links a:hover,
.footer-links button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:focus-visible,
.footer-links button:focus-visible {
  outline: 2px solid var(--color-mint);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Modals / Legal Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  background: #ffffff;
  color: #1a1a1a;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.is-active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e5e5;
  background: #f8faf9;
}

.modal-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-pine);
}

.modal-close-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-pine);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
  background: rgba(0, 65, 49, 0.1);
  transform: scale(1.05);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--color-pine);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  font-size: 0.975rem;
  line-height: 1.7;
  color: #2b3b35;
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4 {
  font-family: var(--font-headline);
  color: var(--color-pine);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.modal-body h1 { font-size: 1.5rem; }
.modal-body h2 { font-size: 1.25rem; }
.modal-body h3 { font-size: 1.1rem; }

.modal-body p {
  margin-bottom: 1.2em;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.modal-body li {
  margin-bottom: 0.4em;
}

.modal-body a {
  color: var(--color-pine);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-body a:hover {
  color: #008f6b;
}

/* Cookie Settings Details in Modal */
.cookie-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.cookie-group {
  background: #f4fbf8;
  border: 1px solid #d8ede4;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cookie-group-info h4 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--color-pine);
}

.cookie-group-info p {
  font-size: 0.875rem;
  color: #556660;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--color-pine);
}

input:checked + .cookie-slider:before {
  transform: translateX(22px);
}

input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-footer {
  padding: 16px 32px;
  border-top: 1px solid #e5e5e5;
  background: #f8faf9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.modal-btn-primary {
  background: var(--color-pine);
  color: #ffffff;
}

.modal-btn-primary:hover {
  background: #002b20;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    padding: 50px 24px 16px;
  }
  
  .site-footer {
    padding: 32px 40px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 36px 20px 12px;
  }

  .logo-img {
    width: 130px;
    height: 32px;
  }

  .main-content {
    padding: 16px 20px;
  }

  .hero-headline {
    margin-bottom: 24px;
  }

  .hero-subtitle {
    margin-bottom: 36px;
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 16px;
  }

  .btn-pill {
    width: 100%;
    min-width: unset;
    font-size: 1.1rem;
    height: 54px;
  }

  .site-footer {
    padding: 24px 20px 32px;
    gap: 16px;
  }

  .footer-links {
    gap: 8px 10px;
    font-size: 0.875rem;
  }

  .footer-links li:not(:last-child)::after {
    margin-left: 10px;
  }

  .modal-card {
    max-height: 90vh;
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 20px;
  }
}
