/* ===========================================================
   BristleShed Ratgeber | Elegant Classic CSS – style.css
   Strictly Flexbox Layouts, No CSS Grid or Columns
   Responsive, timeless, modern and elegant
   =========================================================== */

/* =========================
   0. 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 { line-height: 1.5; }
*, *:before, *:after { box-sizing: inherit; }

/* Remove tap highlight color on mobile */
html {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a { text-decoration: none; color: inherit; }
b, strong { font-weight: 600; }

/* ====================================
   1. ROOT COLORS & FONT CUSTOMIZATION
   ==================================== */
:root {
  --bs-primary: #1C2321;
  --bs-secondary: #DCDCDC;
  --bs-accent: #659EAD;
  --bs-background: #F7F6F3;
  --bs-surface: #FFFFFF;
  --bs-border: #ECEAE7;
  --bs-muted: #7C807E;
  --bs-shadow: rgba(28,35,33,0.06);

  --font-display: 'Montserrat', 'Playfair Display', serif;
  --font-body: 'Roboto', 'Georgia', serif;
}

@media (max-width: 480px) {
  html { font-size: 16px; }
}
@media (min-width: 481px) {
  html { font-size: 17px; }
}
@media (min-width: 768px) {
  html { font-size: 18px; }
}
@media (min-width: 1200px) {
  html { font-size: 19px; }
}

body {
  background: var(--bs-background);
  color: var(--bs-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 100vh;
  min-width: 0;
}

/* Heading hierarchy for elegant/classic look */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--bs-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; }   /* ~48px */
h2 { font-size: 2rem; }      /* ~32px */
h3 { font-size: 1.5rem; }    /* ~24px */
h4 { font-size: 1.25rem; }   /* ~20px */
h5 { font-size: 1.1rem; }    /* ~18px */
h6 { font-size: 0.94rem; }   /* ~15px */

p, li, blockquote {
  font-family: var(--font-body);
  color: var(--bs-primary);
  font-size: 1rem;
  margin-bottom: 1em;
  line-height: 1.7;
}

ul, ol {
  padding-left: 1.6em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  color: var(--bs-muted);
  font-size: 1rem;
}

blockquote {
  font-family: var(--font-display);
  color: var(--bs-primary);
  font-size: 1.12rem;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
  border-left: 4px solid var(--bs-accent);
  padding-left: 20px;
  background: var(--bs-surface);
}

hr {
  border-top: 1px solid var(--bs-border);
  margin: 2em 0;
}

/* ==============================
   2. FLEX LAYOUTS & CONTAINER
   ============================== */
.container {
  width: 100%;
  max-width: 1100px;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bs-surface);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--bs-shadow);
  transition: box-shadow 0.3s;
}
.section:hover {
  box-shadow: 0 6px 24px var(--bs-shadow);
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* Layout Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bs-surface);
  border-radius: 14px;
  border: 1px solid var(--bs-border);
  padding: 24px;
  box-shadow: 0 2px 10px var(--bs-shadow);
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px var(--bs-shadow);
  transform: translateY(-2px) scale(1.012);
}

.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: 18px;
    align-items: flex-start;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bs-secondary);
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  box-shadow: 0 1px 6px var(--bs-shadow);
  margin-bottom: 20px;
  color: var(--bs-primary);
  max-width: 700px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 16px var(--bs-shadow);
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  margin-bottom: 0;
  background: none;
  border: none;
  padding-left: 0;
}
.testimonial-card div {
  margin-left: 16px;
  font-family: var(--font-body);
  color: var(--bs-muted);
  font-size: 1rem;
}

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

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--bs-surface);
  border: 1px solid var(--bs-border);
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: 0 1px 8px var(--bs-shadow);
  transition: box-shadow 0.2s;
}
.faq-accordion > div:hover {
  box-shadow: 0 3px 12px var(--bs-shadow);
}

/* =================================
   3. HEADER, NAV, LOGO, HERO, CTA
   ================================= */
header {
  background: var(--bs-surface);
  border-bottom: 1px solid var(--bs-border);
  box-shadow: 0 2px 4px var(--bs-shadow);
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 32px;
  flex-wrap: wrap;
}
header img[alt="BristleShed Ratgeber"] {
  max-height: 56px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  color: var(--bs-primary);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 0;
  font-size: 1rem;
  transition: color 0.18s;
}
nav a:hover,
nav a:focus {
  color: var(--bs-accent);
  outline: none;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  background: var(--bs-accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 28px;
  border: none;
  font-size: 1.13rem;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--bs-shadow);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-left: 10px;
  text-align: center;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #417189;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* ---- Burger Toggle ---- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--bs-accent);
  cursor: pointer;
  margin-left: 18px;
  z-index: 210;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--bs-primary);
  outline: none;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.hero {
  background: linear-gradient(115deg, var(--bs-secondary) 44%, #ece9e4 100%);
  padding: 40px 0 32px 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--bs-border);
}
.hero .container {
  align-items: center;
  justify-content: center;
  text-align: left;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 0.45em;
  color: var(--bs-primary);
}
.hero p {
  color: var(--bs-muted);
  font-size: 1.18rem;
  max-width: 680px;
}
.hero .cta-primary {
  margin-top: 18px;
}

@media (max-width: 600px) {
  .hero {
    padding: 24px 0 18px 0;
  }
  .hero h1 { font-size: 2.05rem; }
  .hero p { font-size: 1rem; }
}

/* ===================
   4. FOOTER
   =================== */
footer {
  background: var(--bs-surface);
  border-top: 1px solid var(--bs-border);
  box-shadow: 0 -1px 6px var(--bs-shadow);
  padding: 32px 0 12px 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  gap: 16px;
  font-family: var(--font-display);
  color: var(--bs-muted);
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
}
footer a { color: var(--bs-accent); }
footer a:hover { text-decoration: underline; }
footer img[alt] {
  vertical-align: middle;
  margin-right: 4px;
  max-width: 18px;
}
footer div {
  color: var(--bs-muted);
  font-size: 0.96em;
  margin-bottom: 2px;
}

/* =================
   5. MOBILE NAV MENU
   ================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background: var(--bs-background);
  box-shadow: 0 4px 32px var(--bs-shadow);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.87,0.03,0.18,1);
  opacity: 0.995;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--bs-primary);
  cursor: pointer;
  z-index: 210;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--bs-accent);
}
.mobile-nav {
  margin-top: 84px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--bs-primary);
  font-size: 1.23rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 0;
  border-radius: 7px;
  width: 100%;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bs-accent);
  color: #fff;
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================
   6. BUTTONS, FORMS
   =================== */
button, .btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 23px;
  border: none;
  padding: 10px 24px;
  background: var(--bs-accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s, transform 0.14s;
  box-shadow: 0 1px 7px var(--bs-shadow);
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #417189;
  outline: none;
  transform: translateY(-1px) scale(1.04);
}

/* Inputs and forms (future-proof) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 9px 14px;
  border-radius: 7px;
  border: 1px solid var(--bs-border);
  background: var(--bs-surface);
  color: var(--bs-primary);
  margin-bottom: 18px;
  outline: none;
  transition: border 0.15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--bs-accent);
}

/* ===========================
   7. Cookie Consent Banner
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--bs-surface);
  box-shadow: 0 -2px 28px rgba(28,35,33,0.09);
  border-top: 1px solid var(--bs-border);
  padding: 28px 12px 20px 12px;
  z-index: 350;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1.06rem;
  animation: banner_enter 0.65s cubic-bezier(.68,.03,.42,1.04);
}
@keyframes banner_enter {
  0% { transform: translateY(110%); opacity: 0; }
  85% { transform: translateY(-10px); }
  99% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button,
.cookie-banner .btn {
  background: var(--bs-accent);
  color: #fff;
  border-radius: 21px;
  border: none;
  padding: 9px 19px;
  font-size: 1rem;
  font-family: var(--font-display);
  transition: background 0.16s;
}
.cookie-banner .btn-secondary {
  background: var(--bs-secondary);
  color: var(--bs-primary);
  border: 1px solid var(--bs-accent);
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #f5f8fa;
  color: var(--bs-accent);
  outline: none;
}

/* Cookie Modal Overlay (categories) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 370;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,35,33,0.42);
  justify-content: center;
  align-items: center;
  animation: fadein 0.34s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadein 0.34s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal {
  background: var(--bs-surface);
  border-radius: 16px;
  border: 1px solid var(--bs-border);
  padding: 30px 24px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 3px 28px var(--bs-shadow);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalpop 0.34s cubic-bezier(.81,.18,.41,1.29);
  position: relative;
}
@keyframes modalpop {
  0% { transform: scale(0.82) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bs-muted);
  z-index: 380;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--bs-primary);
  outline: none;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bs-secondary);
  border-radius: 9px;
  padding: 13px 18px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1.04em;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2px solid var(--bs-accent);
  border-radius: 6px;
  background: #fafafa;
  margin: 0 0 0 12px;
  cursor: pointer;
  transition: border 0.15s, background 0.15s;
  position: relative;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
}
.cookie-category input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 7px; height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  display: block;
}
/* Always enabled for Essential */
.cookie-category input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  background: #e5e5e5;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  min-width: 123px;
  padding: 10px 21px;
}

/* ===================
   8. MICRO-EFFECTS
   =================== */
section, .section, .card, .testimonial-card, .faq-accordion > div {
  transition: transform 0.17s, box-shadow 0.2s;
}
section:hover, .section:hover, .card:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  transform: translateY(-2px) scale(1.01);
}

.cta-primary, .btn, button, .mobile-nav a {
  transition: background 0.17s, color 0.18s, box-shadow 0.16s, transform 0.15s;
}

/* ===================
   9. MISCELLANEOUS
   =================== */
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* For not-overlapping and breathing space between content blocks */
section + section, .section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* Spacing for ul icon/inline images */
ul li img, p img {
  vertical-align: middle;
  margin-right: 9px;
}

/* Hide visually but remain accessible (useful for screenreaders) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; padding: 0; }

/* Utility */
.d-flex { display: flex !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }
.flex-col { flex-direction: column !important; }
.gap-24 { gap: 24px !important; }

/* ===================
   10. RESPONSIVE TWEAKS
   =================== */
@media (max-width: 700px) {
  .footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section, .content-wrapper, .testimonial-card {
    padding: 20px !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.12rem; }
  .cta-primary, .btn, button {
    font-size: 1rem;
    padding: 10px 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px !important;
  }
}

/* ===== End of stylesheet ===== */
