/* -----------------------------
   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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fffefb;
  color: #223869;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  padding-left: 1.3em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}

/* -----------------------------
   BRAND COLORS & TYPOGRAPHY
   ----------------------------- */
:root {
  --brand-primary: #223869;
  --brand-secondary: #24c4a5;
  --brand-accent: #f6faff;
  --color-warm1: #ffe2b7;
  --color-warm2: #ffd59a;
  --color-warm3: #fff9f1;
  --color-warm4: #ffe5db;
  --color-warm5: #f8ead6;
  --color-neutral-card: #fffdfa;
  --color-border: #ebebf0;
  --color-shadow: 0 2px 16px rgba(209, 137, 66, 0.10);
  --color-shadow-hover: 0 4px 24px rgba(209, 137, 66, 0.20);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-warm3);
  color: var(--brand-primary);
  font-size: 16px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
}
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; }
p, ul, ol, li { font-size: 1.063rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.13rem; }
}

/* -------------
   LINKS
 -------------- */
a, .main-nav a, .footer-nav a {
  transition: color 0.2s linear, background .2s;
}
a:hover, .main-nav a:hover, .footer-nav a:hover {
  color: var(--brand-secondary);
}

/* -------------
   CONTAINERS
 -------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--color-neutral-card);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  padding: 32px 24px;
}

/* Layout spacing from requirements */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-neutral-card);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  padding: 32px 22px;
  transition: box-shadow 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: var(--color-shadow-hover);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff9f1;
  border-radius: 22px;
  box-shadow: var(--color-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  max-width: 610px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(209,137,66,0.15);
}
.testimonial-card blockquote {
  font-style: italic;
  color: #2b323a;
  font-size: 1.14rem;
}
.testimonial-card p {
  color: #5c5c5c;
}

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

/* -------------
   HEADER / NAV
 -------------- */
header {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(40,30,6,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header > a > img {
  width: 144px;
  height: auto;
  border-radius: 11px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--brand-primary);
  transition: background 0.17s, color 0.17s;
}
.main-nav a.cta-primary {
  color: #fff;
  background: var(--brand-secondary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 16px;
  padding: 10px 22px;
  margin-left: 8px;
  box-shadow: var(--color-shadow);
  transition: background 0.18s, color 0.2s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #12a38b;
  color: #fff;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36, 196, 165, 0.10);
  transition: background 0.2s, color 0.15s;
  border: none;
  margin-left: 12px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #19b193;
  color: #fff7e8;
}

/* RESPONSIVE NAV */
@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(248, 234, 214, 0.98);
  transform: translateX(-110vw);
  z-index: 2500;
  transition: transform 0.35s cubic-bezier(.47,1.64,.41,.8);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 18px;
  margin-bottom: 28px;
  margin-left: 20px;
  font-size: 2rem;
  color: var(--brand-primary);
  background: #fff2e4;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-self: flex-end;
  transition: background .18s;
  box-shadow: 0 1px 7px #ffb15322;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  padding: 12px 9px;
  border-radius: 14px;
  color: var(--brand-primary);
  background: none;
  transition: background 0.13s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-warm2);
  color: #1d2536;
}

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

/* -------------
   HERO SECTIONS
 -------------- */
section {
  margin-bottom: 48px;
}

section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 750px;
}
section .content-wrapper h1, section .content-wrapper h2 {
  margin-bottom: 4px;
}

/* -------------
   CTA BUTTONS
 -------------- */
.cta-primary,
.cta-secondary,
.cta-tertiary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  display: inline-block;
  margin-top: 4px;
  transition: background 0.15s, color 0.18s, box-shadow 0.17s, transform 0.16s;
  font-size: 1.15rem;
  cursor: pointer;
  text-align: center;
  border: none;
}
.cta-primary {
  color: #fff;
  background: var(--brand-secondary);
}
.cta-primary:hover, .cta-primary:focus {
  background: #18ad90;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--color-shadow-hover);
}
.cta-secondary {
  color: var(--brand-primary);
  background: var(--color-warm1);
  border: 1px solid var(--brand-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: var(--color-shadow-hover);
}
.cta-tertiary {
  color: var(--brand-secondary);
  background: none;
  border: 1.5px solid var(--brand-secondary);
}
.cta-tertiary:hover, .cta-tertiary:focus {
  background: var(--brand-secondary);
  color: #fff;
  border-color: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: var(--color-shadow-hover);
}

/* CTA transition for accessibility */
.cta-primary:active, .cta-secondary:active, .cta-tertiary:active {
  box-shadow: none;
  transform: scale(0.97);
}

/* -------------
   LISTS / ICON LISTS
 -------------- */
ul li, ol li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
}
ul img, ol img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 4px;
}
ul {
  margin-bottom: 8px;
}

/* -------------
   BLOG & CARDS
 -------------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.post-teaser {
  flex: 1 1 240px;
  background: var(--color-warm5);
  border-radius: 15px;
  box-shadow: var(--color-shadow);
  padding: 22px 18px;
  min-width: 200px;
  max-width: 330px;
  transition: box-shadow 0.14s, background 0.14s;
}
.post-teaser:hover,
.post-teaser:focus-within {
  background: #fff9ed;
  box-shadow: var(--color-shadow-hover);
}
.categories-filter {
  margin-top: 16px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.categories-filter a {
  color: var(--brand-secondary);
  font-weight: bold;
  margin: 0 4px;
  padding: 3px 11px;
  border-radius: 8px;
  transition: background 0.12s, color 0.15s;
}
.categories-filter a:hover {
  background: var(--color-warm1);
  color: var(--brand-primary);
}

/* Application grid for Anwendungen */
.application-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.application-grid > div {
  flex: 1 1 230px;
  background: var(--color-neutral-card);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  max-width: 300px;
  transition: box-shadow 0.18s;
}
.application-grid > div:hover {
  box-shadow: var(--color-shadow-hover);
  background: #fff6eb;
}
.application-grid h3 {
  margin-bottom: 6px;
}
.application-grid img {
  margin-bottom: 8px;
  width: 34px;
  height: 34px;
}

/* Case study cards for Referenzen */
.case-study-teaser {
  background: var(--color-warm4);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.case-study-teaser:hover,
.case-study-teaser:focus-within {
  box-shadow: 0 8px 24px #f6cf8822;
}
.case-study-teaser blockquote {
  margin: 12px 0;
  padding-left: 20px;
  border-left: 4px solid var(--brand-secondary);
  font-style: italic;
  color: #293d3b;
  font-size: 1rem;
}

.customer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 8px;
  justify-content: flex-start;
}
.customer-logos img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px #e6ae5628;
}

/* -------------
   TABLES (Produkte)
 -------------- */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-neutral-card);
  box-shadow: var(--color-shadow);
  margin-bottom: 16px;
}
thead {
  background: #ffeedd;
  color: #223869;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
}
thead th {
  padding: 11px;
  text-align: left;
}
tbody td {
  padding: 10px 11px;
  border-bottom: 1px solid #f4e3c3;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: #fffaf7;
}

/* -------------
   FOOTER
 -------------- */
footer {
  background: #faf6ed;
  color: #848181;
  padding: 34px 18px 16px 18px;
  margin-top: 35px;
  font-size: 1rem;
  border-top: 2px solid #ffe5bb;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #4c6673;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.18s, color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-warm2);
  color: #223869;
}
.footer-contact {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 10px;
  margin-right: 10px;
  box-shadow: 0 1px 5px #e6ae5622;
}

@media (max-width: 700px) {
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* -----------------
   COOKIE CONSENT BANNER
   ------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fffdfa;
  box-shadow: 0 -2px 20px #e6ae5644;
  border-top: 2px solid #ffe5bb;
  padding: 22px 24px;
  z-index: 2800;
  gap: 28px;
  font-size: 1.09rem;
  animation: cookieBannerAppear 0.6s cubic-bezier(.47,1.64,.41,.8);
}
.cookie-banner__text {
  color: var(--brand-primary);
  font-size: 1.08rem;
  max-width: 450px;
}
.cookie-banner__btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.14s, box-shadow 0.16s;
  box-shadow: 0 1px 5px #e6ae5628;
}
.cookie-btn.accept {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #17a488;
}
.cookie-btn.reject {
  background: #f5f5f5;
  color: var(--brand-primary);
}
.cookie-btn.reject:hover {
  background: #ffe1c3;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--brand-secondary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-btn.settings:hover {
  background: var(--brand-secondary);
  color: #fff;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 12px 22px 12px;
  }
  .cookie-banner__btns { justify-content: flex-start; }
}

@keyframes cookieBannerAppear {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 44, 56, 0.36);
  z-index: 2900;
  animation: cookieModalFadeIn .2s;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #fffdfa;
  border-radius: 22px;
  box-shadow: 0 14px 70px #e6ae5658;
  padding: 40px 30px 30px 30px;
  min-width: 320px;
  max-width: 96vw;
  z-index: 3000;
  animation: cookieModalBounceIn 0.42s cubic-bezier(.23,1.2,.39,.92);
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .category-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #ffe1c3;
}
.cookie-modal .category-item:last-child {
  border-bottom: none;
}
.cookie-modal .category-name {
  flex: 1 1 0;
  font-weight: 500;
}
.cookie-modal .category-control {
  flex-shrink: 0;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #eedab7;
  border-radius: 15px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  transition: background 0.15s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-toggle input:checked + .slider {
  left: 20px;
  background: var(--brand-secondary);
  box-shadow: 0 2px 8px #24c4a532;
}
.cookie-modal .actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cookieModalBounceIn {
  0% { transform: translate(-50%,-44%) scale(0.96); opacity: .5; }
  70% { transform: translate(-50%,-55%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

/* Responsive for cookie modal */
@media (max-width: 500px) {
  .cookie-modal {
    padding: 25px 9px 22px 9px;
    min-width: 0;
    width: 97vw;
  }
}

/* -----------------
   MISC SPACING
 -------------- */
.section:not(:last-child),
.content-wrapper:not(:last-child),
.card:not(:last-child),
.card-container:not(:last-child),
.text-section:not(:last-child) {
  margin-bottom: 60px;
}
@media (max-width: 750px) {
  .section, .section:not(:last-child), .content-wrapper:not(:last-child), .card:not(:last-child) {
    margin-bottom: 32px;
  }
}

/* -------------
   RESPONSIVE LAYOUT
 -------------- */
@media (max-width: 1150px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 920px) {
  section .content-wrapper,
  .card,
  .testimonial-card {
    max-width: 98vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .application-grid > div,
  .blog-list > .post-teaser {
    max-width: 95vw;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .content-grid, .card-container, .blog-list, .customer-logos, .application-grid {
    flex-direction: column;
    gap: 16px;
  }
  .main-nav a {
    font-size: 0.99rem;
  }
}

/* -------------
   SCROLLBAR (subtle, warm)
 -------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #ffe2b7;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #ffd59a;
  border-radius: 7px;
}

/* -------------
   MICRO-INTERACTIONS
 -------------- */
button, .cta-primary, .cta-secondary, .cta-tertiary, a, .mobile-menu-close, .cookie-btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.16s, border 0.15s, transform 0.13s;
}

/* -------------
   FORMS (generic styling, if any forms added)
 -------------- */
input, textarea, select {
  border-radius: 12px;
  border: 1.5px solid #ffd59a;
  padding: 10px 13px;
  margin-bottom: 12px;
  font-size: 1.056rem;
  background: #fffdfa;
  color: var(--brand-primary);
  transition: border 0.18s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 2px 12px #24c4a529;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* -------------
   Accessibility FOCUS
 -------------- */
*:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* -------------
   Utility Classes (spacing helpers, visually hidden, etc)
 -------------- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Custom icons spacing */
p img, .text-section img {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  margin-right: 7px;
}

/* Ensure no overlapping, always adequate margin/gap */
.card, .testimonial-card, .case-study-teaser, .application-grid > div, .post-teaser {
  margin-bottom: 20px;
}

/* End of CSS */
