/* --- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #FAFAFD;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
/* --- END RESET --- */

/* --- BRAND VARIABLES (with fallback) --- */
:root {
  --color-primary: #22334D;
  --color-secondary: #8E7F66;
  --color-accent: #E7E2DA;
  --color-white: #fff;
  --color-black: #10101a;
  --color-vibrant1: #F94F1D;
  --color-vibrant2: #17C3B2;
  --color-vibrant3: #FFD600;
  --color-violet: #9231FF;
  --color-blue: #1D8CFF;
  --color-grey: #E3E7ED;
  --color-grey-light: #F5F8FA;
  --color-grey-dark: #3a4760;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-base: 0 2px 12px rgba(34,51,77,0.1);
  --shadow-hover: 0 2px 18px rgba(249,79,29,0.07), 0 4px 36px rgba(29,140,255,0.05);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: all 0.28s cubic-bezier(.44,.13,.48,.87);
}

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-accent);
  color: var(--color-grey-dark);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-vibrant2);
}
.text-section h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}
p, ul, ol, dl, li, dd, dt {
  color: var(--color-grey-dark);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong, b {
  color: var(--color-primary);
  font-weight: bold;
  letter-spacing: 0.01em;
}

/* --- LINK & BUTTONS --- */
a {
  transition: color var(--transition);
}
a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: var(--color-vibrant1);
}
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-vibrant1);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  border: none;
  padding: 14px 34px;
  box-shadow: var(--shadow-base);
  cursor: pointer;
  margin-top: 18px;
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.btn-secondary, .btn-accent {
  display: inline-block;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 22px;
  transition: background var(--transition), color var(--transition);
  animation: pulse-accent 3s infinite ease-in-out;
  cursor: pointer;
  border: none;
}
.btn-secondary {
  background: var(--color-vibrant2);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-vibrant1);
  color: var(--color-white);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-accent:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
@keyframes pulse-accent {
  0%, 100% {box-shadow: 0 0 0 0 rgba(249,79,29,0.18);}
  50% {box-shadow: 0 0 0 8px rgba(249,79,29,0.07);}
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 8px 32px -22px var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 40;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 28px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a[aria-current="page"] {
  background: var(--color-vibrant2);
  color: var(--color-white);
}
/* --- LOGO --- */
header img[alt="Bücherkristall"] {
  height: 40px;
  min-width: 120px;
  margin-right: 12px;
}

/* --- GENERAL SECTION SPACES & UTILITIES --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main > section {
  margin-bottom: 60px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  background: transparent;
  width: 100%;
}
.text-section {
  padding: 0;
  background: transparent;
}

/* --- HERO SECTION --- */
.hero {
  width: 100vw;
  background: var(--color-blue);
  background-image: linear-gradient(110deg, var(--color-blue) 72%, var(--color-violet) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 32px -12px rgba(34,51,77,0.13);
  margin-bottom: 0px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  padding-bottom: 18px;
}
.hero h1,
.hero p,
.hero .tagline {
  color: var(--color-white);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 20px 38px 20px;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
}
.hero p {
  font-size: 1.16rem;
  font-family: var(--font-body);
  color: var(--color-accent);
  margin-bottom: 8px;
}
.hero .btn-primary {
  margin-top: 16px;
  box-shadow: 0 2px 24px rgba(255,214,0,0.09);
}

/* --- FLEX PATTERNS (MANDATORY) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  flex: 1 1 320px;
  margin-bottom: 20px;
  padding: 28px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 260px;
  position: relative;
}
.card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: var(--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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 18px 0 rgba(34,51,77,0.08);
  margin-bottom: 20px;
  font-size: 1.08rem;
  position: relative;
  min-width: 240px;
}
.testimonial-card p {
  color: var(--color-primary) !important;
  font-size: 1.08rem;
  margin-bottom: 0;
  font-style: italic;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-blue);
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- LISTS ENHANCEMENT --- */
ul, ol {
  margin-left: 0;
  padding-left: 0;
}
li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
li img {
  height: 28px;
  width: 28px;
}

/* --- DL/FAQ --- */
dl {
  margin-bottom: 18px;
  width: 100%;
}
dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-vibrant1);
  margin-top: 10px;
  font-size: 1rem;
}
dd {
  margin-bottom: 7px;
  margin-left: 0;
  font-size: 1.03rem;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 36px 0 8px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  width: 100%;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 10px;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  display: flex;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition);
  border-radius: 6px;
  padding: 2px 7px;
}
.footer-nav a:hover {
  background: var(--color-vibrant1);
  color: var(--color-white);
}
footer .content-wrapper {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  width: 100%;
  align-items: flex-start;
  padding-top: 8px;
}
footer .text-section {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.8;
  max-width: 380px;
}
footer .social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
footer .social-links a {
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
footer .social-links a:hover {
  transform: scale(1.13) rotate(-6deg);
  background: var(--color-vibrant2);
}
footer .social-links img {
  width: 28px;
  height: 28px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 150;
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  color: var(--color-white);
  background: var(--color-vibrant1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-blue);
  transform: scale(1.09);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 10px 0 50px 0 rgba(34,51,77,0.16);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 24px 24px 24px;
  gap: 28px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.48s cubic-bezier(.6,1.81,.7,.91), opacity .29s;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-vibrant1);
  background: none;
  border: none;
  padding: 6px;
  margin-bottom: 4px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-vibrant1);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  padding: 12px 4px;
  transition: background var(--transition), color var(--transition);
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: var(--color-vibrant2);
  color: var(--color-white);
}

/* --- COOKIES CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -2px 18px 0 rgba(34,51,77,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9000;
  padding: 24px 12px 18px 12px;
  animation: slide-in-cookie 0.7s;
  gap: 16px;
}
@keyframes slide-in-cookie {
  0% { opacity: 0; transform: translateY(56px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-accent);
  font-size: 1.04rem;
  text-align: center;
  margin-bottom: 10px;
}
.cookie-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn-group button {
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-bottom: 0;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn-group .accept {
  background: var(--color-vibrant2);
  color: var(--color-white);
}
.cookie-btn-group .accept:hover {
  background: var(--color-vibrant1);
  color: var(--color-white);
  transform: scale(1.05);
}
.cookie-btn-group .reject {
  background: var(--color-vibrant3);
  color: var(--color-primary);
}
.cookie-btn-group .reject:hover {
  background: var(--color-vibrant1);
  color: var(--color-white);
  transform: scale(1.05);
}
.cookie-btn-group .settings {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn-group .settings:hover {
  background: var(--color-vibrant2);
  color: var(--color-white);
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(34,51,77,0.23);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: initial;
  animation: fade-in-cookie-modal .29s;
}
@keyframes fade-in-cookie-modal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  max-width: 410px;
  width: 100%;
  padding: 28px 26px 26px 26px;
  box-shadow: 0 4px 32px 0 rgba(34,51,77,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.43rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: var(--color-vibrant2);
  width: 19px; height: 19px;
}
.cookie-modal .cookie-category .info {
  font-size: 0.92rem;
  color: var(--color-grey-dark);
}
.cookie-modal .btn-close {
  position: absolute;
  top: 12px; right: 17px;
  width: 31px; height: 31px;
  border-radius: 50%;
  background: none;
  color: var(--color-vibrant1);
  border: none;
  font-size: 1.16rem;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal .btn-close:hover,
.cookie-modal .btn-close:focus {
  background: var(--color-vibrant1);
  color: var(--color-white);
}
.cookie-modal .save-btn {
  margin-top: 18px;
  align-self: flex-end;
  background: var(--color-vibrant2);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .save-btn:hover {
  background: var(--color-vibrant1);
  color: var(--color-white);
}

/* --- TAGLINE --- */
.tagline {
  color: var(--color-vibrant3);
  font-size: 1.2rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-weight: 800;
}

/* --- SPACING, BORDERS, UTILITIES --- */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.shadow { box-shadow: var(--shadow-base); }

/* --- INTERACTIVE & FOCUS STYLES --- */
button, .btn-primary, .btn-secondary, .btn-accent, .mobile-menu-toggle, .mobile-menu-close {
  outline: none!
  transition: var(--transition);
}
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--color-vibrant3);
  outline-offset: 2px;
}

/* --- RESPONSIVE (MOBILE-FIRST) --- */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  header .container, footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  header nav {
    gap: 14px;
  }
  main > section {
    padding-top: 6px; padding-bottom: 6px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .hero .container { padding: 24px 8px 22px 8px; }
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    min-width: unset;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    padding: 12px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 1.4rem; }
  .hero p, .content-wrapper, .testimonials-card p {
    font-size: 1rem;
  }
}

/* --- HIDE MOBILE MENU BUTTON ON DESKTOP --- */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* --- ANIMATIONS FOR HIGH ENERGY --- */
.card, .testimonial-card {
  transition: box-shadow 0.26s, transform 0.27s;
  cursor: pointer;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(36,220,255,0.15), 0 2px 24px rgba(249,79,29,0.09);
  transform: scale(1.016) translateY(-2px) rotate(-1deg);
}

.btn-primary, .btn-secondary, .btn-accent {
  will-change: background, color, transform;
}

@media (hover: none) {
  .btn-primary:hover, .btn-secondary:hover, .btn-accent:hover, .card:hover, .testimonial-card:hover {
    /* Avoid animation on touch devices */
    transform: none;
    box-shadow: var(--shadow-hover);
  }
}

/* --- VIBRANT ENERGY DECORATIVE ELEMENTS (Optional) --- */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  right: -160px;
  top: -56px;
  width: 350px; height: 350px;
  background: radial-gradient(circle at 60% 30%, var(--color-vibrant1) 0 60px, transparent 100%);
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: var(--radius-md);
}

/* --- FORMS (for future contact forms etc.) --- */
input, textarea, select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-secondary);
  background: var(--color-white);
  padding: 11px 14px;
  margin-bottom: 12px;
  width: 100%;
  font-size: 1rem;
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-vibrant1);
}
label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.01rem;
  margin-bottom: 2px;
  color: var(--color-primary);
}

/* --- PRINT (optional) --- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

/* --- END OF MODERN, VIBRANT, ENERGETIC FLEXBOX LAYOUT CSS FOR BÜCHERKRISTALL --- */
