/* ========================================
   A/I/M Leasing + Finance GmbH
   Template 10: "Indigo & Sand"
   Font: Instrument Sans
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #3D348B;
  --primary-light: #5B50A8;
  --accent: #C6A15B;
  --accent-light: #D4B87A;
  --dark: #211D52;
  --darker: #15103A;
  --light-bg: #F8F6F0;
  --white: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e8e4dc;
  --font-family: 'Instrument Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text-color);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Display Classes ===== */
.display-1 { font-size: 4.2rem; font-weight: 700; line-height: 1.15; }
.display-2 { font-size: 3.2rem; font-weight: 700; line-height: 1.2; }
.display-4 { font-size: 1.1rem; font-weight: 400; line-height: 1.5; }
.display-5 { font-size: 1.4rem; font-weight: 600; line-height: 1.4; }
.display-7 { font-size: 1rem; font-weight: 400; line-height: 1.5; }

@media (max-width: 768px) {
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
}

/* ===== Text Colors ===== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: var(--white) !important; }
.text-black { color: var(--text-color) !important; }

/* ===== Background Colors ===== */
.bg-primary { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-dark { background: var(--dark) !important; }
.bg-light { background: var(--light-bg) !important; }
.bg-white { background: var(--white) !important; }

/* ===== Buttons ===== */
.btn {
  padding: 12px 32px;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.btn-secondary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.display-4.btn,
a.display-4 {
  font-size: 1.1rem;
}

/* ===== Navigation ===== */
.menu_box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: transparent;
  transition: var(--transition);
}

.menu_box.scrolled {
  position: fixed;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 8px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 3rem;
}

.navbar-caption {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

.menu_box.scrolled .navbar-caption {
  color: var(--primary) !important;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent) !important;
}

.menu_box.scrolled .nav-link {
  color: var(--text-color) !important;
}

.menu_box.scrolled .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.mbr-section-btn-main {
  display: flex;
  align-items: center;
}

/* ===== Hero Section ===== */
.header1 {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.header1 .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.header1 .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 29, 82, 0.6);
}

.header1 .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header1 .display-1 {
  color: var(--white);
  margin-bottom: 20px;
}

.header1 p {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Content Sections (image + text) ===== */
.content-section {
  padding: 80px 0;
}

.content-section .content-image {
  border-radius: 12px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.content-section .content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.content-section .content-text h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.content-section .content-text p {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Team Section ===== */
.team-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
  text-align: center;
  margin-bottom: 30px;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card .team-info {
  padding: 25px 20px;
}

.team-card .team-info h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.team-card .team-info span {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FAQ Accordion ===== */
.faq-section {
  padding: 80px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item .faq-header {
  padding: 18px 25px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item .faq-header:hover {
  background: var(--light-bg);
}

.faq-item .faq-header i {
  transition: var(--transition);
  font-size: 1.2rem;
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-body {
  padding: 18px 25px;
  max-height: 500px;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 52, 139, 0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ===== Contact Info ===== */
.contact-info-section {
  padding: 80px 0;
}

.contact-info-item {
  text-align: center;
  padding: 30px 20px;
}

.contact-info-item .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.contact-info-item h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-info-item p {
  color: var(--text-light);
  margin-bottom: 3px;
}

/* ===== Google Map ===== */
.map-section {
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: var(--accent);
}

.footer a:hover {
  color: var(--accent-light);
}

.footer .policy-links {
  margin-bottom: 15px;
}

.footer .policy-links a {
  color: var(--accent);
  margin: 0 10px;
  font-size: 0.95rem;
}

.footer .policy-links span {
  color: rgba(255,255,255,0.4);
}

.footer .copyright {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ===== Services Page / Features ===== */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card .icon-box {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}

.feature-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 140px 0 60px;
  background: var(--dark);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ===== Page Content ===== */
.page-content {
  padding: 60px 0;
}

.page-content h2 {
  color: var(--primary);
  font-weight: 700;
  margin: 30px 0 15px;
}

.page-content h3 {
  color: var(--primary);
  font-weight: 600;
  margin: 25px 0 12px;
}

.page-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-color);
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-content li {
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ===== Cookie Tables (Privacy Page) ===== */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 0.95rem;
}

.cookie-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.cookie-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.cookie-table tr:nth-child(even) {
  background: var(--light-bg);
}

.cookie-table tr:hover {
  background: rgba(61, 52, 139, 0.05);
}

/* ===== Testimonials / Success Stories ===== */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-card .quote-icon {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-card .testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .testimonial-author h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.testimonial-card .testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Cookie Consent Popup ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 30px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent h5 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.cookie-consent p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.cookie-consent .cookie-links {
  margin-bottom: 15px;
}

.cookie-consent .cookie-links a {
  color: var(--accent);
  text-decoration: underline;
  margin-right: 15px;
  font-size: 0.9rem;
}

.cookie-consent .btn-group-cookie {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Parallax Section (inner pages) ===== */
.parallax-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--dark);
}

.parallax-section .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 29, 82, 0.7);
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

.parallax-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.parallax-section p {
  color: rgba(255,255,255,0.85);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .menu_box.scrolled .navbar-collapse {
    background: var(--white);
  }

  .nav-link {
    color: var(--text-color) !important;
    padding: 10px 0 !important;
  }

  .header1 .display-1 {
    font-size: 2.5rem;
  }

  .content-section .content-image {
    height: 280px;
    margin-bottom: 30px;
  }

  .team-card img {
    height: 250px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .contact-info-item {
    margin-bottom: 30px;
  }

  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
}

@media (max-width: 576px) {
  .section { padding: 50px 0; }
  .page-hero { padding: 120px 0 40px; }
  .header1 .display-1 { font-size: 2rem; }
  .btn { padding: 10px 24px; }
}
