/* BuchZauber Vintage Retro Style CSS | Mobile-first Responsive | Only Flexbox */

/* --- RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
  color: #35332f;
  background-color: #F8F5ED;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}
ul ul, ol ol {
  margin-bottom: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}
th, td {
  padding: 0.75em 1em;
  border: 1px solid #D8B483;
}
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  margin: 0 0 12px 0;
}
hr {
  border: 0;
  height: 1px;
  background: #EAB964;
  opacity: 0.15;
  margin: 32px 0;
}

/* --- VINTAGE COLOR PALETTE --- */
:root {
  --primary: #223A5E;
  --primary-light: #4C6075;
  --secondary: #F1F3F9;
  --background: #F8F5ED;
  --accent: #EAB964;
  --accent-dark: #BC9339;
  --brown: #A97A50;
  --retro-red: #F25F5C;
  --retro-green: #607744;
  --retro-blue: #4381C1;
  --dark-text: #22201A;
  --off-white: #FFF8EC;
  --muted-border: #D8B483;
}

/* --- VINTAGE RETRO TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, li, blockquote, cite, span, td, th, address {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  margin-bottom: 12px;
  letter-spacing: 0.1px;
}
dt {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
dd {
  margin-left: 0.75em;
  margin-bottom: 8px;
}
cite {
  font-style: normal;
  font-size: 0.98em;
  color: var(--brown);
  margin-top: 6px;
  display: block;
  letter-spacing: 0.5px;
}

/* --- BASIC LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- SECTION/ CARD SPACING --- */
section {
  background: var(--off-white);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(34, 58, 94, 0.07), 0 0.5px 0px #e6e1d9 inset;
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 1.5px 8px rgba(234,185,100,0.09);
  padding: 24px 20px;
  border: 1px solid var(--muted-border);
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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: #FCF6E6;
  border-radius: 15px;
  box-shadow: 0 1.5px 8px rgba(234,185,100,0.13);
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(234,185,100,0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--primary);
  box-shadow: 0 2px 14px 0 rgba(34,58,94, 0.10);
  padding: 18px 0 14px 0;
  position: relative;
  z-index: 103;
}
header > a img {
  height: 48px;
  margin-bottom: 4px;
  margin-left: 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border 0.18s;
  margin-bottom: 0;
  letter-spacing: 0.2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}
.main-nav .cta-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 18px 8px 18px 8px;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(255,204,106,0.10);
  margin-left: 12px;
  font-size: 1.08rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1.1px;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  border-bottom: none;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 7px 24px 0 rgba(255,204,106,0.21);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #EEDEC4;
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 110;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--accent-dark);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #f1f3f9cc;
  z-index: 2000;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.38s cubic-bezier(0.68,0.14,0.14,1.11);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  font-size: 2.2rem;
  padding: 0;
  margin: 21px 21px 0 auto;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #EEDEC4;
  transition: background 0.2s;
  z-index: 2100;
}
.mobile-menu-close:active,
.mobile-menu-close:focus {
  background: var(--accent-dark);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin: 60px 0 0 40px;
}
.mobile-nav a {
  background: none;
  color: var(--primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 9px 0;
  width: 100%;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
.cta-primary,
button, input[type="submit"], .btn {
  background: var(--accent);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 17px 7px 17px 7px;
  padding: 9px 24px;
  margin-top: 6px;
  box-shadow: 0 4px 18px 0 rgba(234,185,100,0.19);
  cursor: pointer;
  transition: background 0.19s, color 0.15s, box-shadow 0.16s, transform 0.11s;
  letter-spacing: 1.2px;
  outline: none;
  display: inline-block;
}
.cta-primary:hover,
button:hover,
input[type="submit"]:hover,
.btn:hover,
.cta-primary:focus,
button:focus,
input[type="submit"]:focus,
.btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(234,185,100,0.3);
  transform: translateY(-2px) scale(1.01);
}

/* --- TABLE STYLES --- */
table {
  background: #FEF9F2;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 24px 0;
  box-shadow: 0 1.5px 8px rgba(234,185,100,0.07);
}
th {
  background: var(--accent);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
}
td {
  color: var(--brown);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
tr:nth-child(even) td {
  background: #F5E4C3;
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
  font-size: 1.07rem;
  padding-left: 6px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  background: var(--accent);
  width: 11px;
  height: 11px;
  border-radius: 100%;
  margin-right: 11px;
  position: absolute;
  left: -22px;
  top: 7px;
}
ol li {
  padding-left: 0;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 37px 0 21px 0;
  margin-top: 50px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 1rem;
  background-color: #fff;
  margin-top: 8px;
}
.footer-contact a {
  color: #c1b18a;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- RESPONSIVE SPACING & TYPOGRAPHY SCALE --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.13rem;
  }
  .container {
    padding: 0 6px;
  }
  section {
    padding: 28px 6px;
    border-radius: 11px;
    margin-bottom: 38px;
  }
  .card {
    padding: 17px 7px;
    border-radius: 10px;
    min-width: unset;
  }
  .testimonial-card {
    padding: 13px 5px;
    border-radius: 9px;
  }
  .content-grid, .text-image-section, .card-container, .feature-item {
    flex-direction: column !important;
    gap: 14px !important;
  }
}

/* Text-Image-Sections: Column on mobile, Row on desktop */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px;
  }
}
@media (min-width: 769px) {
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}

/* --- VINTAGE/RETRO PATTERNS/ELEMENTS --- */
section {
  background-image: repeating-linear-gradient(-33deg, #f4deac 0px, #f4deac 2px, transparent 2px, transparent 18px);
  background-size: 100% 38px;
  background-blend-mode: lighten;
  border: 1.5px solid #EAB964;
  box-shadow: 0 4px 24px 0 rgba(173, 163, 124, 0.11);
}

.card {
  border: 1.5px dashed #EAB964;
  background: #FFF8EC;
}
.testimonial-card {
  background: #fcf6e6;
  border-left: 7px solid #EAB964;
  border-radius: 14px;
  color: #22201A;
  box-shadow: 0 3px 24px 0 rgba(143,118,51,0.06);
}
blockquote {
  font-size: 1.12rem;
  color: #72582c;
}

/* --- HERO STYLES --- */
section:first-of-type {
  background: linear-gradient(110deg, #fef6d8 60%, #eab96412 100%);
  background-blend-mode: lighten;
  border: none;
  box-shadow: 0 10px 36px rgba(234,185,100,0.06);
}

/* --- ICONS IN LISTS --- */
ul li img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  vertical-align: bottom;
  position: relative;
  top: 3px;
  background: #fff2db;
  border-radius: 100%;
  box-shadow: 0 2px 7px #f8e1bb36;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-primary,
button,
.btn {
  transition: background 0.19s, color 0.15s, box-shadow 0.16s, transform 0.11s;
}
a {
  transition: color 0.13s;
}
.card, .section {
  transition: box-shadow 0.23s, background 0.13s;
}
.card:hover, .section:hover {
  box-shadow: 0 6px 36px rgba(234,185,100,0.17);
  background: #FFF2DB;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fef6d8;
  color: #72582c;
  box-shadow: 0 -5px 30px 0 rgba(234,185,100,0.36);
  padding: 22px 14px 18px 22px;
  z-index: 5000;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  animation: cookie-slideup 0.77s cubic-bezier(0.19,1,0.22,1) 0.1s both;
  border-top: 2.5px solid #BC9339;
}
@keyframes cookie-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__content {
  flex: 2;
  min-width: 180px;
}
.cookie-banner__actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .btn {
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 8px 18px 8px 18px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin: 0;
  background: var(--accent);
  color: var(--primary);
  border: none;
  box-shadow: 0 2px 8px 0 rgba(234, 185, 100, 0.14);
  transition: background 0.16s, color 0.14s;
  cursor: pointer;
}
.cookie-banner button:hover, .cookie-banner .btn:focus {
  background: var(--primary);
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 8000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34, 58, 94, 0.13);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__box {
  background: #fff8ec;
  border: 1.8px solid #EAB964;
  box-shadow: 0 8px 44px 0 rgba(185, 159, 61, 0.12);
  border-radius: 23px;
  max-width: 420px;
  width: 97vw;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: space-between;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-option .toggle {
  min-width: 46px;
  height: 24px;
  border-radius: 12px;
  cursor: pointer;
  background: #ebe1c2;
  position: relative;
  transition: background 0.19s;
  border: 1px solid #bba763;
  display: flex;
  align-items: center;
}
.cookie-option .toggle[data-checked="true"] {
  background: var(--accent);
}
.cookie-option .toggle::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 100%;
  transition: transform 0.21s;
  box-shadow: 0 1.5px 4px #e7d4bc69;
  transform: translateX(2px);
}
.cookie-option .toggle[data-checked="true"]::before {
  transform: translateX(22px);
}
.cookie-option--essential .toggle {
  pointer-events: none;
  background: #EAB96465;
}

/* --- MODAL RESPONSIVE --- */
@media (max-width: 480px) {
  .cookie-modal__box {
    padding: 16px 4px 12px 8px;
    border-radius: 14px;
  }
  .cookie-modal__close { top: 8px; right: 10px; }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex-row    { display: flex; flex-direction: row; }
.flex-col    { display: flex; flex-direction: column; }
.gap-8      { gap: 8px; }
.gap-16     { gap: 16px; }
.gap-24     { gap: 24px; }
.gap-32     { gap: 32px; }
.w-100      { width: 100%; }
.maxw-500   { max-width: 500px; }

/* --- PRINT STYLES --- */
@media print {
  body, section, .container, .content-wrapper { background: #fff !important; box-shadow:none !important; }
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, header nav, footer { display:none !important; }
}
