/* ========================
   CSS RESET & NORMALIZE
 ======================== */
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.5;
  min-height: 100vh;
  background: #F3F7FA;
  color: #20334A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #20334A;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.2em;
}

/* ========================
   FONT IMPORTS (WEB SAFE)
 ======================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* ========================
   COLOR VARIABLES
 ======================== */
:root {
  --color-primary: #20334A;
  --color-secondary: #6599AE;
  --color-accent: #F3F7FA;
  --color-white: #fff;
  --color-dark: #162132;
  --color-grey: #e5eef4;
  --color-border: #d3e1ea;
  --color-success: #53c221;
  --color-error: #f04d51;
  --shadow-lg: 0 8px 24px rgba(32,51,74,0.12);
  --shadow-md: 0 2px 8px rgba(32,51,74,0.10);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(.41,.83,.59,1), box-shadow 0.3s;
  --bg-gradient: linear-gradient(97deg, #6599AE 0%, #20334A 80%);
  --accent-gradient: linear-gradient(97deg, #F3F7FA 0%, #d3e1ea 100%);
}

/* ========================
   LAYOUT UTILITIES
 ======================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* ========================
   TYPOGRAPHY
 ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.14;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.18rem;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p, li, blockquote {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: var(--color-primary);
}
blockquote {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-dark);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-accent);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}
small {
  font-size: 0.85em;
  color: var(--color-secondary);
}
.text-section {
  margin-bottom: 20px;
}

/* ========================
   BUTTONS & INTERACTIONS
 ======================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 130px;
  padding: 0 40px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  outline: none;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}
.btn-primary {
  background: var(--bg-gradient);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover, .btn-primary:focus {
  background: #162132;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 32px rgba(32,51,74,0.13);
}
.btn-secondary {
  background: var(--accent-gradient);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}
a.btn-primary, a.btn-secondary {
  box-sizing: border-box;
  transition: var(--transition);
}

/* ========================
   HEADER & NAVIGATION
 ======================== */
header {
  width: 100%;
  background: var(--bg-gradient);
  box-shadow: 0 4px 16px rgba(32,51,74,0.08);
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-link img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  padding: 5px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  border-bottom: 2.5px solid var(--color-accent);
  color: #F3F7FA;
}
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 8px;
  z-index: 1020;
  transition: color 0.24s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-accent);
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 17px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-inner {
    gap: 8px;
  }
}

/* ========================
   MOBILE MENU
 ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 10px 48px 12px rgba(32,51,74,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.41,.83,.59,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 18px 0 0;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.12s;
  z-index: 1240;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 48px 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 10px 0;
  border-radius: var(--radius-md);
  width: 100%;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================
   HERO SECTION
 ======================== */
.hero {
  background: var(--bg-gradient);
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 48px 0 32px 0;
}
.hero .container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .hero h2 {
  color: #fff;
  font-size: 2.2rem;
}
.hero p {
  color: #fff;
  font-size: 1.13rem;
  line-height: 1.48;
}
.hero .btn-primary {
  margin-top: 14px;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ========================
   FEATURES SECTION
 ======================== */
.features {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  height: 44px;
  width: 44px;
}
.feature-item h3 {
  color: var(--color-secondary);
  font-size: 1.13rem;
}
.feature-item:hover {
  box-shadow: 0 2px 18px 3px rgba(101,153,174,0.13);
  transform: translateY(-3px) scale(1.04);
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    max-width: 96vw;
  }
}

/* ========================
   CARDS, TESTIMONIALS, SERVICES, FAQ
 ======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  padding: 28px 20px;
  min-width: 230px;
  flex: 1 1 250px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 4px 22px 3px rgba(32,51,74,0.12);
  transform: translateY(-3px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Services Cards (dienstleistungen.html) */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.service-card:hover {
  box-shadow: 0 6px 32px 5px rgba(101,153,174,0.11);
  transform: scale(1.025);
}
.service-card h3 {
  font-size: 1.04rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.service-card small {
  font-size: .92rem;
  color: var(--color-secondary);
  font-weight: 500;
}

/* Testimonials */
.testimonials {
  background: var(--color-grey);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 20px 0;
  min-width: 220px;
  max-width: 640px;
  color: var(--color-primary);
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 2px rgba(101,153,174,0.13);
  transform: scale(1.03);
}
.testimonial-card blockquote {
  color: #162132;
  background: #f6fbff;
  border-left: 3px solid var(--color-secondary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.testimonial-card p, .testimonial-card strong {
  color: var(--color-primary);
  font-size: .97rem;
  margin-bottom: 0;
}
.rating-overview {
  margin-top: 22px;
  color: var(--color-secondary);
  font-size: 1.05rem;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 18px 16px 14px 16px;
  margin-bottom: 8px;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin: 0 0 7px 0;
}
.faq-item a {
  text-decoration: underline;
  color: var(--color-secondary);
  font-weight: 600;
}
.faq-item a:hover {
  color: var(--color-primary);
}

/* ========================
   SPECIAL SECTIONS
 ======================== */
.about-preview, .about, .team, .contact-preview, .services-overview, .product-overview, .legal, .services-preview, .contact, .thank-you {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.thank-you {
  text-align: center;
  align-items: center;
}
.services-preview .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px 0;
}
.service-tags span {
  font-size: 0.96rem;
  background: var(--color-grey);
  color: var(--color-primary);
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
}

/* List Styling */
ul, ol {
  margin-bottom: 10px;
}
li {
  list-style: disc;
  padding-left: 8px;
  margin-bottom: 7px;
}
ul li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  height: 18px;
}

/* ========================
   FOOTER
 ======================== */
footer {
  background: var(--bg-gradient);
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}
.footer-menu {
  display: flex;
  gap: 27px;
}
.footer-menu a {
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: .87;
  transition: color 0.17s, opacity 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.brand-info {
  color: #fff;
  opacity: .85;
  font-size: .97rem;
}
.footer-inner .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
  min-width: 150px;
  margin: 0;
}
.footer-inner .btn-primary:hover, .footer-inner .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-menu {
    gap: 16px;
  }
}

/* ========================
   COOKIE CONSENT BANNER
 ======================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -4px 24px rgba(32,51,74,0.11);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 22px 16px;
  gap: 18px;
  animation: fadeInCookie 0.5s .1s both;
}
@keyframes fadeInCookie {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  font-size: 1.04rem;
  color: var(--color-primary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 7px;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  padding: 0 22px;
  min-height: 36px;
  font-size: .95rem;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5000;
  background: rgba(32,51,74,0.43);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  padding: 28px 18px 20px 22px;
  border-radius: var(--radius-lg);
  min-width: 340px;
  max-width: 98vw;
  box-shadow: 0 24px 56px rgba(32,51,74,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInCookieModal 0.5s .1s both;
}
@keyframes fadeInCookieModal {
  from { transform: translateY(70px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.11rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-category input[disabled] {
  accent-color: var(--color-grey);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-content .btn-primary, .cookie-modal-content .btn-secondary {
  font-size: .97rem;
  min-height: 36px;
  padding: 0 18px;
}

/* Allow modal close button if present */
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 25px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: var(--color-primary);
  cursor: pointer;
}

/* ========================
   RESPONSIVENESS
 ======================== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; padding: 0 10px; }
  .footer-inner, .header-inner {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .section, .about-preview, .about, .team, .contact-preview, .services-overview, .product-overview, .legal, .services-preview, .contact, .thank-you {
    padding: 26px 7px;
    margin-bottom: 35px;
  }
  .hero {
    min-height: 190px;
    padding: 34px 0 16px 0;
    text-align: left;
  }
  .footer-inner, .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-grid, .services-list, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-card, .card {
    min-width: unset;
    max-width: 98vw;
    width: 100%;
  }
  .content-wrapper {
    gap: 10px;
  }
  .testimonial-card {
    max-width: 100vw;
    min-width: 0;
  }
  .services-list {
    margin-bottom: 24px;
  }
}
@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: unset;
    padding: 18px 6px 16px 8px;
  }
  .cookie-banner {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ========================
   ANIMATIONS/MICRO-INTERACTIONS
 ======================== */
.btn-primary, .btn-secondary, .service-card, .feature-item, .card, .testimonial-card {
  will-change: transform, box-shadow;
}
.card, .service-card, .feature-item, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.btn-primary, .btn-secondary {
  transition: background 0.16s, color 0.16s, transform 0.17s;
}

/* ========================
   UTILITY CLASSES
 ======================== */
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.align-flex-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }

/* ========================
   OVERRIDES
 ======================== */
::-webkit-input-placeholder { color: #8298ad; opacity: 1; }
:-ms-input-placeholder { color: #8298ad; opacity: 1; }
::placeholder { color: #8298ad; opacity: 1; }

/* Hide outline on button click but keep for keyboard */
button:not(:focus-visible) { outline: none; }

/* ========================
   END OF CSS FILE
 ======================== */
