/* =============================================
   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;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #1B263B;
  background: #fff;
  min-height: 100vh;
  line-height: 1.7;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

/* =============================================
   VARIABLES & UTILS (with fallbacks)
   ============================================= */
:root {
  --primary: #1B263B;
  --secondary: #E0E1DD;
  --accent: #F4972E;
  --black: #181818;
  --white: #fff;
  --grey-light: #F7F7FA;
  --grey-mid: #AEB0B8;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 24px 0 rgba(27,38,59,0.10);
  --shadow-bold: 0 4px 24px 0 rgba(27,38,59,0.15);
}

/* =============================================
   TYPOGRAPHY (modern_bold)
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font), Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.2rem;
  font-weight: 700;
}
h5, h6 {
  font-size: 1rem;
}
p, ul, ol, dl, table {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}
strong, b {
  font-family: var(--heading-font), Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
}
span {
  color: var(--primary);
}

/* =============================================
   LAYOUT & CONTAINER FLEX UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--grey-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: var(--secondary);
  color: var(--black);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-bold);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-family: var(--body-font), Arial, sans-serif;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0px;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
}
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-top: 20px;
}

.section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section ul li {
  font-size: 1.05rem;
  padding-left: 1.25em;
  position: relative;
}
.section ul li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Blog specific styles */
.feature-article {
  background: var(--accent);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}
.feature-article p {
  margin-bottom: 0;
}

/* =============================================
   HEADER, NAV, & MOBILE MENU
   ============================================= */
header {
  background: var(--white);
  border-bottom: 2px solid var(--secondary);
  box-shadow: 0 2px 12px 0 rgba(27,38,59,0.04);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 99;
}
.logo img {
  height: 42px;
  width: auto;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--heading-font), Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav .cta.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 24px 0 rgba(244,151,46,0.22);
}
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.16s;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.7,.16,.23,.96);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px 0 rgba(27,38,59,0.15);
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--accent);
  border: none;
  cursor: pointer;
  margin: 24px 24px 0 0;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 48px 32px;
}
.mobile-nav a {
  font-family: var(--heading-font), Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  padding: 10px 0 10px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* =============================================
   BUTTONS & CTA
   ============================================= */
.cta,
button[type="submit"] {
  font-family: var(--heading-font), Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--primary);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  outline: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.23s;
  display: inline-block;
  margin-top: 8px;
}
.cta.primary {
  background: var(--accent);
  color: var(--white);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 12px 0 rgba(244,151,46,0.18);
}
.cta:hover, .cta:focus,
button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px 0 rgba(244,151,46,0.18);
}

/* Table style (Preise etc.) */
table {
  width: 100%;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: var(--body-font), Arial, sans-serif;
}
thead {
  background: var(--secondary);
}
th, td {
  padding: 18px 14px;
  text-align: left;
}
th {
  font-family: var(--heading-font), Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}
tbody tr {
  border-top: 2px solid var(--secondary);
}
tbody tr:nth-child(even) {
  background: var(--grey-light);
}

/* =============================================
   FORM – BLOG SEARCH
   ============================================= */
form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px 0;
}
input[type="text"] {
  font-family: var(--body-font), Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 18px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  transition: border 0.16s;
  min-width: 0;
  flex: 1;
}
input[type="text"]:focus {
  border-color: var(--accent);
}
button[type="submit"] {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1rem;
}
button[type="submit"]:hover {
  background: var(--primary);
  color: var(--accent);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0 24px 0;
  font-size: 1rem;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-family: var(--heading-font), Arial, sans-serif;
  transition: color 0.18s;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-icons img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(27,38,59,0.10));
  transition: filter 0.15s;
}
.social-icons img:hover {
  filter: drop-shadow(0 2px 10px var(--accent));
}
footer p {
  font-size: 0.97rem;
  color: var(--secondary);
  text-align: center;
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1200;
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px 18px 24px;
  box-shadow: 0 -2px 18px 0 rgba(27,38,59,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: cookieSlideIn 0.7s cubic-bezier(.71,.07,.61,.94);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--heading-font), Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 26px;
  border: none;
  border-radius: var(--radius-md);
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.cookie-banner .reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .settings {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-sizing: border-box;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--accent);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,38,59,0.78);
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s .05s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-bold);
  min-width: 320px;
  max-width: 95vw;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2rem;
  background: none;
  color: var(--accent);
  border: none;
  cursor: pointer;
}

/* =============================================
   RESPONSIVE DESIGN (mobile-first)
   ============================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding: 0 10px;
  }
  .main-nav {
    gap: 15px;
  }
  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 76px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .section {
    padding: 22px 7px;
    margin-bottom: 32px;
    gap: 12px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .card {
    padding: 16px 10px;
  }
  .testimonial-card {
    padding: 16px;
    flex-direction: column;
    gap: 9px;
    font-size: 1rem;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  input[type="text"] {
    width: 100%;
    min-width: 0;
  }
  .footer-nav {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  h1, h2 {
    font-size: 1.22rem;
  }
  .section {
    padding: 10px 2px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
  }
  .card, .testimonial-card, .feature-article {
    padding: 12px 6px;
    border-radius: var(--radius-sm);
  }
  .footer-nav a, .social-icons img {
    font-size: 0.88rem;
    width: 20px;
    height: 20px;
  }
  .cookie-modal-content {
    padding: 16px 5vw;
    min-width: unset;
  }
  .mobile-nav {
    margin: 32px 8px 0 8px;
    gap: 10px;
  }
}

/* =============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================= */
a, button, .cta, .main-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, filter 0.13s;
}
.card, .testimonial-card, .feature-article, .cookie-modal-content {
  transition: box-shadow 0.21s, transform 0.17s;
}
.card:hover,
.testimonial-card:hover,
.feature-article:hover {
  box-shadow: 0 6px 32px 0 rgba(27,38,59,.14);
  transform: translateY(-2px) scale(1.01);
}

/* Visual separation for major sections */
main > section:not(:last-child) {
  border-bottom: 2px solid var(--secondary);
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
::-webkit-input-placeholder { color: var(--grey-mid); }
:-ms-input-placeholder { color: var(--grey-mid); }
::placeholder { color: var(--grey-mid); opacity: 1; }

/* Hide scrollbars on mobile menu overlay */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* Error/success colors (if needed) */
.input-error {
  border-color: #d9534f !important;
}
.input-success {
  border-color: #5cb85c !important;
}

/* =============================================
   CUSTOM SCROLLBARS for desktop
   ============================================= */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 8px; background: var(--secondary); }
  ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
}

/* =============================================
   GEOMETRIC DECORATIVE ELEMENTS (for accents)
   ============================================= */
.section::before {
  content: '';
  display: block;
  width: 48px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  margin-bottom: 16px;
}
.section:first-child::before {
  display: none;
}

/* Prevent overlap on flex containers */
.card-container > *, .content-grid > *, .feature-item > *, .testimonial-card > * {
  min-width: 0;
}
section {
  padding: 20px 0;
}
/* =============================================
   END OF STYLE.CSS
   ============================================= */
