/* ----- 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, menu, 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;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F4F9F9;
  color: #20676C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: #20676C; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F3B541; outline: none; }
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* ----- FONT IMPORTS (Google Fonts) ----- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #20676C;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }

p, li, div, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #20676C;
  margin-bottom: 12px;
  line-height: 1.7;
}
.subheadline {
  color: #375f63;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ----- BRAND COLOR SYSTEM (CSS Vars & Fallbacks) ----- */
:root {
  --primary: #20676C;
  --primary-darker: #175152;
  --secondary: #F4F9F9;
  --accent: #F9C784;
  --accent-strong: #F3B541;
  --neutral-bg: #fff;
  --neutral-border: #e9ecec;
  --text-main: #20676C;
  --text-light: #4A4A4A;
  --shadow: 0 2px 16px 0 rgba(249,199,132,0.11);
  --shadow-hover: 0 4px 24px 0 rgba(249,199,132,0.20);
  --radius: 18px;
  --radius-lg: 32px;
}

/* ----- CONTAINER ----- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ----- HEADER ----- */
header {
  background: var(--neutral-bg);
  border-bottom: 1.5px solid var(--neutral-border);
  padding: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px 0 rgba(249,199,132,0.10);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 20px 18px;
  gap: 18px;
}
header a img {
  height: 36px;
  border-radius: var(--radius);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
header nav a {
  color: var(--primary);
  padding: 7px 16px;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--primary-darker);
}
.cta-button {
  display: inline-block;
  padding: 11px 28px;
  background: var(--accent-strong);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.19s;
  margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
  outline: 2px solid var(--accent-strong);
}

/* ----- MOBILE MENU ----- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent-strong);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  margin-left: 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.18s;
  z-index: 320;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 30px 0 rgba(32,103,108,0.18);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 999;
  padding-top: 24px;
  padding-left: 0;
  padding-right: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 2rem;
  color: var(--primary);
  padding: 10px 16px;
  margin: 0 20px 18px 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  padding: 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1px solid #f3e3c4;
  width: 100%;
  transition: background 0.17s, color 0.18s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary-darker);
  padding-left: 8px;
}

/* ----- SECTION SPACING ----- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px 28px 8px;
    margin-bottom: 40px;
    border-radius: var(--radius);
  }
}

/* ----- CONTENT/GRID/STANDARD LAYOUTS ----- */
.content-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.card-container, .feature-grid, .info-blocks, .tip-preview, .tip-list, .guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { margin-top: 18px; }
.card, .feature-item, .ingredient-guide, .diy-recipes, .myth-buster, .tip-item, .guide-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.22s;
}
.card:hover, .feature-item:hover, .tip-item:hover, .guide-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.015);
}
.feature-grid {
  gap: 24px;
  width: 100%;
}
.feature-item {
  /* Flex-direction column default */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  background: #fff9f7;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

/* Preview Tipps (Tip Cards) */
.tip-preview {
  gap: 24px;
}
.tip-preview > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.20s;
}
.tip-preview > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
}
.tip-preview h3 { font-size: 1.1rem; margin-bottom: 9px; }
.tip-preview a {
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-top: 6px;
  transition: color 0.15s;
}
.tip-preview a:hover { color: var(--accent-strong); }

.tip-list, .guide-list {
  gap: 24px;
  margin-top: 16px;
}
.tip-item, .guide-item {
  box-shadow: var(--shadow);
  background: #fff;
}

/***** Testimonial Cards *****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffdfa;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 24px 0 rgba(32,103,108,0.08);
  margin-bottom: 22px;
  margin-top: 6px;
  border: 1.5px solid #f6ded2;
  flex-direction: row;
  min-width: 220px;
  transition: box-shadow 0.20s, border 0.20s;
}
.testimonial-card p {
  color: #1A1A1A;
  font-size: 1.08rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(249,199,132,0.13);
  border-color: var(--accent-strong);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius);
  }
}

/***** FAQ Section *****/
.faq-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff9f7;
  border-radius: var(--radius);
  padding: 28px 18px;
  box-shadow: var(--shadow);
}
.faq-item {
  margin-bottom: 14px;
}
.faq-item h3 {
  font-size: 1.08rem;
  margin-bottom: 5px;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  padding-left: 16px;
}
.faq-item h3:before {
  content: '›';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-strong);
  font-size: 1.2rem;
}
.faq-answer {
  color: #4A4A4A;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-top: 4px;
  border-left: 4px solid var(--accent-strong);
}

/***** ADDRESS, CONTACT & FOOTER *****/
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--accent);
  color: var(--primary-darker);
}
.footer-copy {
  color: var(--primary);
  font-size: 0.99rem;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}
.footer-address, .footer-contact, .footer-hours, .footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 10px auto;
}
.footer-address img,
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}
.footer-hours {
  font-size: 0.98rem;
  color: #446c6f;
}
.footer-social a {
  margin: 0 6px 0 0;
}
.footer-social img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: box-shadow 0.18s;
}
.footer-social a:hover img {
  box-shadow: 0 0 16px 0 var(--accent-strong);
}

footer {
  background: #fff;
  border-top: 1.5px solid var(--neutral-border);
  padding: 24px 0 12px 0;
  margin-top: 0;
}

/****** Responsive Layouts ******/
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 7px; }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-links { gap: 12px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.16rem; }
  .tip-preview, .card-container, .feature-grid,.info-blocks, .tip-list, .guide-list {
    flex-direction: column;
    gap: 12px;
  }
  .card, .feature-item, .tip-preview > div, .ingredient-guide,.diy-recipes,.myth-buster {
    min-width: 0;
  }
  .content-wrapper { padding: 0 2px; }
}

/* ---- SPECIAL SECTION PATTERNS ---- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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;
    gap: 16px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

/***** HAIR TYPE FILTER, HOW-TO, MAP PLACEHOLDER *****/
.hair-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 16px 0;
  align-items: center;
}
.hair-type-filter a {
  background: #fffdfa;
  color: var(--primary);
  border-radius: var(--radius);
  border: 1.5px solid #fae5bd;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 1.01rem;
  transition: background 0.15s, border 0.16s;
}
.hair-type-filter a:hover, .hair-type-filter a.active {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}
.address-info {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
  background: #f9f7f5;
  border-radius: var(--radius);
  padding: 10px 18px 10px 10px;
}
.address-info img {
  width: 28px; height: 28px;
}
.map-placeholder {
  padding: 22px 16px;
  border-radius: var(--radius);
  background: #fff9f7;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 13px;
}
.map-placeholder p {
  margin-bottom: 0;
  color: #4A4A4A;
}
@media (max-width: 550px) {
  .map-placeholder {
    flex-direction: column;
    gap: 8px;
    padding: 16px 6px;
  }
}

/***** INFO BLOCK VARIANTS (KOSMETIK WISSEN) *****/
.info-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.ingredient-guide, .diy-recipes, .myth-buster {
  flex: 1 1 200px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s;
  margin-bottom: 20px;
}
.ingredient-guide h3, .diy-recipes h3, .myth-buster h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

/***** HOW-TO BLOCKS (HAARPFLEGE RATGEBER) *****/
.how-to-blocks {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.how-to-blocks > div {
  flex: 1 1 220px;
  background: #fffdfa;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 13px;
  margin-bottom: 16px;
}
.how-to-blocks ul { list-style: disc; padding-left: 18px; }
.how-to-blocks ul li { margin-bottom: 4px; }

/***** BUTTONS, FORMS, UI ELEMENTS *****/
button, input[type=button], input[type=submit], .cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  appearance: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
button:active, .cta-button:active { transform: scale(0.98); }

/***** UTILITY CLASSES *****/
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.tx-c { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fffdfa;
  border-top: 2px solid var(--accent-strong);
  box-shadow: 0 -2px 16px 0 rgba(249,199,132,0.10);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  z-index: 9999;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.31s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner .cookie-text {
  flex: 2 1 60vw;
  color: var(--primary);
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent-strong);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 9px 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  margin-left: 4px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--accent-strong);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary-darker);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5px 20px 7px;
    gap: 10px;
  }
  .cookie-banner .cookie-actions {
    align-items: flex-end;
    gap: 8px;
    margin-left: 0; padding-left: 0;
  }
}

/***** COOKIE SETTINGS MODAL *****/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,103,108,0.11);
  z-index: 10000;
  display: flex;
  align-items: center; justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffdfa;
  border-radius: var(--radius-lg);
  padding: 36px 28px 18px 28px;
  box-shadow: 0 6px 48px rgba(249,199,132,0.17);
  max-width: 98vw;
  width: 410px;
  border: 2px solid var(--accent-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-size: 1.07rem;
  color: var(--primary);
}
.cookie-modal .toggle {
  margin-left: auto;
}
.cookie-modal .essential {
  color: #b5b5b5;
  font-size: 0.92rem;
  margin-left: 10px;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 9px; right: 13px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover { background: var(--accent); color: var(--primary-darker);}

/***** TOGGLE SWITCH for cookie modal *****/
.toggle {
  width: 46px;
  height: 26px;
  position: relative;
  display: inline-block;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right:0; bottom:0;
  background: #e7ecec;
  border-radius: 16px;
  transition: background 0.18s;
}
.toggle input:checked + .toggle-slider {
  background: var(--accent-strong);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 19px;
  width: 19px;
  border-radius: 50%;
  left: 4px;
  bottom: 3.5px;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(219,190,101,0.11);
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/***** Accessibility & Misc *****/
*:focus { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/***** Animations & Microinteractions *****/
.card, .feature-item, .tip-item, .guide-item, .ingredient-guide, .diy-recipes, .myth-buster {
  transition: box-shadow 0.19s, transform 0.18s, border 0.19s;
}
.cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.22s, color 0.22s, transform 0.16s;
}
.mobile-menu {
  transition: transform 0.32s cubic-bezier(.85,-0.3,.22,1.21);
}

/***** Print Styles (optional, brand minimalistic) *****/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #222; background: #fff; }
  section { background: none; box-shadow: none; padding: 10px; }
}
