/* -------------------------------------------------
   CSS RESET & BASELINE 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 {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F6F4EE;
  color: #203146;
  height: 100%;
  min-height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #F6F4EE;
  font-size: 16px;
  color: #203146;
  font-family: 'Roboto', Arial, sans-serif;
}
av, footer, header, main, section {
  display: block;
}
a {
  color: #29756B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #203146;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 20px;
  padding-left: 1.2em;
  list-style-position: outside;
}
li {
  margin-bottom: 10px;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
}

/* -------------------------------------------------
   BRAND COLORS AND FONTS
---------------------------------------------------*/
:root {
  --primary: #203146;
  --secondary: #29756B;
  --accent: #F6F4EE;
  --neutral: #FFFFFF;
  --text-main: #203146;
  --text-light: #6a778a;
  --border-color: #e4e5e7;
  --shadow: 0 2px 8px rgba(32,49,70,0.08);
  --radius: 14px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
}
p, .lead {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1rem;
}
.lead {
  font-size: 1.20rem;
  color: var(--secondary);
  font-weight: 500;
}
strong {
  font-weight: 600;
}

/* -------------------------------------------------
   CONTAINER & LAYOUT
---------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
main section:last-child {
  margin-bottom: 0;
}

/* FLEXBOX spacing patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}
.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: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 225px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 20px rgba(32,49,70,0.13);
  transform: translateY(-2px) scale(1.03);
}
.features-grid img {
  height: 36px;
  width: 36px;
  margin-bottom: 14px;
}

/* Card & Section Shadows */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* -------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------*/
header {
  background: var(--neutral);
  box-shadow: 0 2px 12px rgba(32,49,70,0.03);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 20px 18px 20px;
  min-height: 68px;
}
header img {
  height: 46px;
  width: auto;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 24px;
  padding: 11px 28px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(41,117,107,0.04);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #1f534a;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 18px rgba(41,117,107,0.13);
  color: #fff;
}

/* -------------------------------------------------
   MOBILE MENU BURGER
---------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 111;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #1f534a;
  color: var(--accent);
}
.mobile-menu {
  display: none;
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,49,70,0.90);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.47,1.64,.41,.8);
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  margin: 8px 18px 8px 0;
  cursor: pointer;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.20rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1024px) {
  header .container {
    gap: 18px;
    padding: 14px 12px;
  }
  .features-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .features-grid > div { min-width: 170px; padding: 18px 12px; }
}
@media (max-width: 768px) {
  /* Hide desktop nav, show burger */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    margin-left: 0;
  }
  header img { height: 38px; }
  .container { padding: 0 6px; }
  section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .features-grid {
    gap: 12px;
  }
  .features-grid > div {
    min-width: 130px;
    padding: 14px 8px 10px 8px;
  }
  .testimonial-card, .card {
    padding: 15px 8px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 2vw;
    max-width: 100vw;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.08rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.16rem; }
  .features-grid { flex-direction: column; }
  .features-grid > div { width: 100%; min-width: 80vw; }
}

/* ------ Responsive Flex Direction for text-image-section, content-grid, etc. ------ */
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* -------------------------------------------------
   FOOTER
---------------------------------------------------*/
footer {
  background: var(--accent);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 7px rgba(32,49,70,0.03);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 32px 20px 28px 20px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
}
.footer-brand img {
  height: 42px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.87;
  padding: 2px 0;
  transition: color 0.18s;
}
footer nav a:hover {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: var(--text-main);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
/* Footer stacking for mobile */
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 8px 16px 8px;
  }
  .footer-brand img { height: 32px; }
}

/* -------------------------------------------------
   BUTTONS, BADGES, INTERACTIVE
---------------------------------------------------*/
.trust-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-size: 0.98rem;
  border-radius: 16px;
  padding: 4px 16px;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--secondary);
}

/* General Buttons */
button, .button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 21px;
  padding: 10px 20px;
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 1px 7px rgba(41,117,107,0.07);
  font-size: 1rem;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #1f534a;
  outline: none;
}

/* -------------------------------------------------
   FORM ELEMENTS (Should you add forms later)
---------------------------------------------------*/
input[type="text"], input[type="email"], input[type="password"], textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #fff;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.20s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

/* -------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--neutral);
  color: var(--primary);
  box-shadow: 0 -6px 24px rgba(32,49,70,0.14);
  z-index: 1300;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 22px 16px 22px;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.47,1.64,.41,.8);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 auto;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  border: 1.5px solid transparent;
  font-weight: 600;
  transition: background 0.16s, color 0.16s, border 0.18s;
}
.cookie-accept {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #1f534a;
  border-color: #1f534a;
}
.cookie-reject {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #f0edeb;
  color: #1f534a;
  border-color: #1f534a;
}
.cookie-settings {
  background: var(--neutral);
  color: var(--primary);
  border-color: var(--border-color);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--accent);
  border-color: var(--secondary);
  color: var(--secondary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.98rem;
    padding: 12px 8px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 8px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1400;
  background: rgba(32,49,70,0.56);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.28s cubic-bezier(.41,1.13,.41,.88);
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--neutral);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(32,49,70,0.18);
  padding: 38px 32px 30px 32px;
  width: 97vw;
  max-width: 390px;
  position: relative;
  animation: appearUp 0.37s cubic-bezier(.55,1.48,.29,1.04);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}
.cookie-category:last-child {
  border: none;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}
.toggle-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background-color: var(--accent);
  border: 1.5px solid var(--secondary);
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch:checked {
  background-color: var(--secondary);
}
.toggle-switch:before {
  content: '';
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 1px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(41,117,107,0.10);
  transition: left 0.19s;
}
.toggle-switch:checked:before {
  left: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: none;
  background: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
}
.cookie-modal .button {
  margin-top: 16px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 6px 18px 8px;
    min-width: 0;
  }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes appearUp {
  from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; }
}

/* -------------------------------------------------
   SECTION-SPECIFIC CLASSES/PATTERNS
---------------------------------------------------*/
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
section ul, section ol {
  padding-left: 1.2em;
}
pre, code {
  font-family: 'Roboto Mono', monospace;
}

/* Arbeitsproben, Preisliste, Kontaktinfos */
ul li img {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  position: relative;
  top: 3px;
}

/* Table workaround (for future expansion) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  font-size: 1rem;
}
th {
  background: var(--accent);
  color: var(--primary);
}

/* -------------------------------------------------
   SHADOWS, BORDERS, MISCELLANEOUS
---------------------------------------------------*/
.card, .features-grid > div, .testimonial-card {
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
.card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(32,49,70,0.13);
  transform: translateY(-1px) scale(1.015);
}

/* For class .section (not native to HTML but for pattern consistency) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* -------------------------------------------------
   TRANSITIONS AND MICRO-INTERACTIONS
---------------------------------------------------*/
a, button, .cta-button, .features-grid > div, .card {
  transition: background 0.17s, color 0.16s, box-shadow 0.19s, transform 0.17s;
}

/* Hover underline for links (subtle, clean) */
a:not(.cta-button):hover, a:not(.cta-button):focus {
  text-decoration: underline dotted var(--secondary) 1.5px;
}

/* -------------------------------------------------
   SCANDINAVIAN CLEAN EXTRA DETAILS
---------------------------------------------------*/
h1, h2, h3, h4, strong { letter-spacing: 0.02em; }
.card, .features-grid > div, .testimonial-card {
  border-radius: 14px;
}

/* Subtle neutral backgrounds for contrast */
section:nth-of-type(odd) {
  background: var(--accent);
}

/* Crisp focus states for accessibility */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* Less clutter on minimal pages */
main > section:only-child {
  background: var(--neutral);
  box-shadow: none;
}

/* -------------------------------------------------
   Hide scroll for open overlays (for JS to toggle)
---------------------------------------------------*/
body.menu-open, body.cookie-modal-open { overflow: hidden; }

/* -------------------------------------------------
   END OF FILE
---------------------------------------------------*/
