/* =============================================================
   AUTO SENTINEL DORTMUND - ELEGANT CLASSIC STYLE.CSS
   Responsive, elegant, timeless - Only Flexbox layouts
   ============================================================= */
/* ==== CSS RESET & NORMALIZER ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F8F8;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: color 0.2s linear, border-color 0.2s linear;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ==== ROOT VARIABLES ==== */
:root {
  --primary: #223C53;
  --secondary: #F5B700;
  --accent: #F8F8F8;
  --text-main: #21272A;
  --text-subtle: #4C5666;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(34,60,83,0.11);
  --border-radius: 14px;
  --heading-font: 'Montserrat', serif;
  --body-font: 'Roboto', serif;
  /* Elegant serif fallback */
  --elegant-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap') format('truetype');
}

/* ==== GLOBAL TYPOGRAPHY ==== */
html {
  font-size: 16px;
  box-sizing: border-box;
}
body {
  font-family: var(--body-font), var(--elegant-serif);
  color: var(--text-main);
  background: var(--accent);
  letter-spacing: 0.02em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font), var(--elegant-serif);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p, ul, ol {
  font-size: 1rem;
  font-family: var(--body-font), var(--elegant-serif);
  color: var(--text-subtle);
  margin-bottom: 14px;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 6px;
}
strong, b {
  font-weight: 700;
}

/* ==== CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== HEADER/NAV ==== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(34,60,83,0.09);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 20px;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--heading-font), var(--elegant-serif);
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.22s, color 0.22s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--secondary);
  opacity: 0;
  transition: opacity 0.3s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  opacity: 1;
}
.main-nav .cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 22px;
  box-shadow: 0 2px 8px rgba(34,60,83,.08);
  transition: background 0.22s, box-shadow 0.22s;
}
.main-nav .cta:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(34,60,83,0.15);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(245,247,250,0.96);
  box-shadow: 0 0 36px rgba(34,60,83,0.08);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.79,.14,.15,.86);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 32px; right: 24px;
  font-size: 2.2rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1202;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 80px 0 0 0;
  align-items: center;
  gap: 22px;
}
.mobile-nav a {
  font-family: var(--heading-font), var(--elegant-serif);
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 600;
  padding: 11px 0;
  width: 80vw;
  max-width: 340px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* Hide nav on mobile by default, mobile menu toggle visible only on small screens */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== SECTION, LAYOUT & CARD SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 264px;
  flex: 1 1 270px;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(34,60,83,0.18);
}
.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;
  padding: 20px;
  background: #fff;
  border-left: 4px solid var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px 0 rgba(34,60,83,0.10);
  margin-bottom: 20px;
  color: #21272A;
  font-family: var(--elegant-serif);
}
.testimonial-card p {
  color: #21272A;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 2px 12px 0 rgba(34,60,83,0.10);
  gap: 15px;
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature-item:hover {
  box-shadow: 0 8px 22px 0 rgba(34,60,83,0.16);
  transform: translateY(-4px) scale(1.02);
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

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

.tips-section {
  background: #f2ede7;
  border-radius: var(--border-radius);
  padding: 32px 24px;
  margin-bottom: 40px;
}

/* ==== HERO SECTION ==== */
.hero-section {
  background: linear-gradient(110deg, #f2ede7 65%, #fff 100%);
  padding: 56px 0 48px 0;
  margin-bottom: 60px;
}
.hero-section h1 {
  font-size: 2.25rem;
  color: var(--primary);
  font-family: var(--elegant-serif);
  margin-bottom: 20px;
}
.hero-section p {
  color: var(--text-subtle);
  font-size: 1.17rem;
  margin-bottom: 28px;
}
.hero-section .cta-button {
  font-size: 1.1rem;
}

.cta-section {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px 0 rgba(34,60,83,0.07);
  color: var(--primary);
  text-align: center;
  padding: 36px 16px 36px 16px;
  margin-bottom: 48px;
}
.cta-section h2 {
  color: var(--primary);
}
.cta-section .cta-button {
  margin-top: 10px;
}

/* ==== BUTTONS & LINKS ==== */
.cta-button, .btn, button, input[type='submit'] {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--heading-font), var(--elegant-serif);
  font-size: 1.18rem;
  padding: 12px 36px;
  border-radius: 24px;
  border: none;
  box-shadow: 0 3px 16px 0 rgba(34,60,83,0.09);
  font-weight: 700;
  transition: background 0.18s, transform 0.12s, box-shadow 0.22s;
}
.cta-button:hover, .cta-button:focus, .btn:hover, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 16px 0 rgba(34,60,83,0.13);
  outline: none;
}

a {
  transition: color 0.17s linear, border-color 0.17s linear;
}
a:focus {
  outline: 2px dotted var(--secondary);
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  border-top: 1px solid #e8e3dd;
  padding: 32px 0 16px 0;
  margin-top: 16px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--heading-font), var(--elegant-serif);
  font-size: 1rem;
  padding: 5px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  text-align: center;
}
.footer-nav a:focus,
.footer-nav a:hover {
  color: #fff;
  background: var(--secondary);
}
.footer-contact {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
}
.footer-contact address {
  font-style: normal;
  color: var(--text-subtle);
}
footer img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
footer p {
  font-size: 0.92rem;
  color: #968554;
  text-align: center;
  margin-bottom: 0;
}

/* ---- ADDRESS AND ICONS ---- */
address img {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 3px;
  margin-top: -2px;
  display: inline-block;
}

/* ==== COOKIE CONSENT STYLES ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  color: var(--primary);
  border-top: 1px solid #e5e2db;
  box-shadow: 0 -3px 22px 0 rgba(34,60,83,0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 13vw 24px 13vw;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.34s cubic-bezier(.79,.14,.15,.86), transform 0.34s cubic-bezier(.79,.14,.15,.86);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 2 1 48%;
  margin-bottom: 0;
  color: var(--primary);
  font-size: 1rem;
}
.cookies-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  font-size: 1rem;
  padding: 7px 22px;
  font-family: var(--heading-font), var(--elegant-serif);
  border: none;
  margin: 0 3px;
  transition: background 0.21s, color 0.18s, transform 0.16s;
  cursor: pointer;
  font-weight: 600;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #eae4cd;
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f2ede7;
  color: var(--primary);
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,60,83,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 64px 0 rgba(34,60,83,0.21);
  max-width: 410px;
  width: 92vw;
  padding: 35px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 7px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  font-family: var(--body-font), var(--elegant-serif);
}
.cookie-category label {
  flex: 1;
  color: #57544c;
  font-size: 1.05rem;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px; height: 21px;
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.3rem;
  background: #ecebe7;
  color: var(--primary);
  border-radius: 9px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .close-modal:hover {
  background: var(--secondary);
  color: #fff;
}

/* ==== FORM DEFAULTS ==== */
input, textarea, select {
  font-family: var(--body-font), var(--elegant-serif);
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #C8CACB;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}
label {
  font-family: var(--heading-font), var(--elegant-serif);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 5px;
  display: block;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 991px) {
  .container { max-width: 98vw; }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  section, .section, .hero-section, .cta-section {
    padding: 27px 10px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .content-wrapper, .text-section, .tips-section {
    gap: 13px;
    padding: 0;
  }
  .footer-nav {
    gap: 12px;
  }
  .cta-section {
    padding: 20px 6px;
  }
  .hero-section {
    padding: 34px 0 16px 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 18px 7vw 18px 7vw;
    font-size: 0.98rem;
    gap: 18px;
  }
  .cookie-modal {
    padding: 28px 10px 18px 10px;
    max-width: 98vw;
  }
}
@media (max-width: 660px) {
  html { font-size: 14px; }
  .footer-contact, .content-wrapper, .hero-section h1 {
    font-size: 1.1rem;
  }
  .tips-section, .card, .feature-item, .cta-section {
    border-radius: 8px;
    padding: 15px 7px;
  }
  .feature-item img { width: 36px; height: 36px; }
}

/* ==== ELEGANT ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .feature-item, .testimonial-card, .cta-button, .btn {
  transition: box-shadow 0.22s, transform 0.18s, background 0.22s, color 0.15s;
}
.cta-button:active, .btn:active {
  transform: scale(0.98);
}
input[type="checkbox"]:active + label {
  color: var(--secondary);
}

/* ==== SCROLLBAR CUSTOMIZATION (Elegant Classic) ==== */
body::-webkit-scrollbar {
  width: 9px;
  background: #ecebe7;
}
body::-webkit-scrollbar-thumb {
  background: #C6C5BA;
  border-radius: 5px;
}

/* ==== MISC UTILITY CLASSES ==== */
.text-center { text-align: center !important; }
.muted { color: #888; }
.hide { display: none !important; }
.show { display: block !important; }

/* ==== ENSURE NO ABSOLUTE FOR CONTENT ==== */
.card[style], .feature-item[style] {
  position: relative !important;
}

/* ==== OVERRIDES FOR ATTRIBUTION/CONTRAST ==== */
.testimonial-card {
  color: #21272A !important;
  background: #fff !important;
  border-left: 4px solid var(--secondary);
}
.testimonial-card strong {
  color: var(--primary) !important;
}
