/* ===============================
   LEGALPRO MÜNCHEN – TECH FUTURISTIC
   style.css | v1.0
   Brand: Seriös, modern, vertrauensvoll | "tech_futuristic"
   =============================== */

/* RESET & BASE TYPOGRAPHY */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: #153243;
  color: #F5F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
a {
  color: #2695A3;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F5F7FA;
}
ul, ol {
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong { font-weight: bold; }
em { font-style: italic; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #F5F7FA;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
h1 { font-size: 2rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 12px; }

p {
  margin-bottom: 16px;
}

/* ==== FLEXBOX CONTAINER CLASSES ==== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 18px;
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #1E4257;
  border-radius: 16px;
  box-shadow: 0 3px 16px 0 rgba(38,149,163,0.09);
  padding: 32px 24px;
  color: #F5F7FA;
  min-width: 240px;
  flex: 1 1 280px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(38,149,163,0.22);
  transform: translateY(-2px) scale(1.012);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F5F7FA;
  color: #153243;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(21,50,67,0.10);
  flex-direction: column;
  position: relative;
}
.testimonial-card p {
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #2695A3;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === BRAND COLOR PALETTE === */
:root {
  --brand-primary: #153243;
  --brand-secondary: #2695A3;
  --brand-accent: #F5F7FA;
  --brand-primary-dark: #122835;
  --neon-blue: #1bd9fe;
  --neon-green: #00f4b8;
  --neon-pink: #ee00ca;
}

body {
  background: linear-gradient(130deg, var(--brand-primary) 80%, #20707f 100%);
}

section {
  background: rgba(21,50,67,0.84);
  border-radius: 20px;
}

/* ============= HEADER/NAVIGATION ============= */
header {
  width: 100%;
  background: #122835;
  box-shadow: 0 1px 6px 0 rgba(20,50,67,0.04);
  position: relative;
  z-index: 200;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
header img {
  height: 54px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #F5F7FA;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 7px 0 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
}

.cta-btn {
  background: linear-gradient(115deg, var(--brand-secondary) 78%, var(--neon-blue) 100%);
  color: #153243;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 11px 28px;
  margin-left: 20px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(0,244,184,0.08),0 0 0 0 rgba(0,0,0,0.03);
  text-shadow: 0px 1px 7px rgba(0,244,184,0.04);
  transition: background 0.22s, color 0.19s, transform 0.18s;
  letter-spacing: .01em;
  display: inline-block;
  outline: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(102deg, var(--neon-blue) 70%, var(--neon-pink));
  color: #F5F7FA;
  transform: translateY(-2px) scale(1.02) perspective(22px);
}

/* ============= MOBILE NAVIGATION ============= */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  color: #F5F7FA;
  font-size: 2rem;
  margin-left: 16px;
  z-index: 210;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--neon-blue);
}

.mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,50,67, 0.98);
  z-index: 330;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.55,0,0.13,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  padding: 11px 18px;
  background: none;
  border: none;
  color: #F5F7FA;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 22px 8px 0;
  cursor: pointer;
  outline: 0;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--neon-pink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  align-items: flex-start;
  padding: 0 28px;
}
.mobile-nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 15px 0;
  width: 100%;
  border-left: 4px solid transparent;
  transition: color 0.22s, border 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--neon-blue);
  border-left: 4px solid var(--neon-blue);
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 991px) {
  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none!important;
  }
}

/* ======= HERO / FEATURE ICONS ======= */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 8px 0;
  align-items: center;
  justify-content: flex-start;
}
.feature-icons img {
  width: 54px;
  height: 54px;
  background: #2695A3;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 2px 6px 0 rgba(38,149,163,0.12);
  transition: background 0.22s, transform 0.16s;
}
.feature-icons img:hover {
  background: var(--neon-blue);
  transform: scale(1.06);
}

/* ====== BUTTONS & CTA ====== */
button, .cta-btn, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  outline: none;
}

/* ====== CARDS ====== */
.card h3, .card h4 {
  color: var(--neon-blue);
}

/* ====== FOOTER ====== */
footer {
  background: #122835;
  color: #F5F7FA;
  padding: 36px 0 24px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #B0C6D5;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--neon-blue);
  text-shadow: 0 0 12px #00f4b8;
}
footer p {
  color: #71B6CB;
  font-size: 0.97rem;
}


/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F5F7FA;
  color: #153243;
  border-top: 2px solid #2695A3;
  box-shadow: 0 -2px 12px rgba(21,50,67,0.14);
  z-index: 2500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  gap: 24px;
  animation: cookie-slidein 0.7s cubic-bezier(0.7,0,0.2,1);
}
@keyframes cookie-slidein {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner__text {
  flex: 2 1 350px;
  font-size: .99rem;
}
.cookie-banner__actions {
  flex: 1 1 180px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  border-radius: 8px;
  border: 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 20px;
  min-width: 110px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(38,149,163,0.07);
  margin-right: 4px;
  margin-bottom: 2px;
  transition: background 0.18s, color 0.15s, box-shadow 0.22s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #00f4b8 60%, #2695A3 100%);
  color: #153243;
}
.cookie-btn.accept:hover {
  background: #2695A3;
  color: #F5F7FA;
}
.cookie-btn.reject {
  background: #F5F7FA;
  color: #153243;
  border: 1px solid #2695A3;
}
.cookie-btn.reject:hover {
  background: #e0f9f6;
  color: #2695A3;
}
.cookie-btn.settings {
  background: #153243;
  color: #F5F7FA;
  border: 1px solid #2695A3;
}
.cookie-btn.settings:hover {
  background: #2695A3;
  color: #153243;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 3500;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(21,50,67, 0.88);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: cookie-modal-in .4s cubic-bezier(.41, .2, .35, .99);
}
@keyframes cookie-modal-in {
  0% { opacity:0; transform: scale(0.96) translateY(40px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal__dialog {
  background: #F5F7FA;
  color: #153243;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  max-width: 430px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 3px 38px -4px #2695A3;
  position: relative;
}
.cookie-modal__title {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.18rem;
  color: #2695A3;
  margin-bottom: 6px;
}
.cookie-modal__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-switch input[type="checkbox"] {
  accent-color: #00f4b8;
  width: 22px;
  height: 22px;
}
.cookie-switch label {
  font-weight: 500;
  color: #153243;
  font-size: 1rem;
}
.cookie-switch.essential input {
  accent-color: #2695A3;
}
.cookie-switch.essential label {
  color: #B7C1C8;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 11px;
  right: 15px;
  background: none;
  border: none;
  color: #2695A3;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ====== ANIMATIONS & MICRO INTERACTIONS ====== */
.card,
.feature-icons img,
.cta-btn,
.main-nav a,
.mobile-nav a,
.footer-nav a,
.cookie-btn,
.cookie-modal__close {
  transition: all 0.22s cubic-bezier(0.43,.19,0.31,1);
}

.card:active, .cta-btn:active {
  transform: scale(0.98);
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1040px) {
  .container {
    max-width: 98vw;
  }
  .card,
  .content-wrapper {
    padding: 0 4px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; margin-bottom: 16px; }
  h2 { font-size: 1.17rem; margin-bottom: 14px; }
  .section { padding: 28px 6px; margin-bottom: 38px; }
  .content-wrapper,
  .text-section {
    padding: 0 2px;
    gap: 14px;
  }
  .feature-icons {
    gap: 15px;
  }
  .testimonial-card { padding: 13px; gap: 12px; }
  .footer-nav { gap: 14px; }
}
@media (max-width: 654px) {
  header .container { gap: 10px; padding: 10px 6px; }
  .cta-btn { margin-left: 0; padding: 11px 17px; font-size: 0.97rem; }
}
@media (max-width: 520px) {
  .container { padding: 0 2px; }
  .testimonial-card { border-radius: 10px; }
  .card { padding: 18px 9px; }
  .cookie-modal__dialog { padding: 19px 10px 12px 10px; min-width: unset; }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Extra spacing and prevent overlapping for all content elements */
.card, .testimonial-card, .section, .content-wrapper, .feature-item, .text-section {
  margin-bottom: 20px;
}

/* ===== SCROLLBAR (Futuristic touch) ===== */
::-webkit-scrollbar { width: 10px; background: #153243; }
::-webkit-scrollbar-thumb { background: #2695A3; border-radius: 5px; }

/* ===== FOCUS STATES FOR A11Y ===== */
a:focus, .cta-btn:focus, button:focus, .cookie-btn:focus {
  outline: 2px dashed #00f4b8;
  outline-offset: 2px;
}

/* ===== ERROR/UTILITY CLASSES ===== */
.text-accent {
  color: #2695A3;
}
.text-dark {
  color: #153243!important;
}
.bg-accent {
  background: #F5F7FA;
  color: #153243;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

/* ========== END STYLES ========== */