/* =============================================================
   Freuds Spuren Café CSS Stylesheet
   warm_friendly aesthetic | Flexbox-only Layouts
   Brand Colors: #3B2B24 (primary), #C0A98A (secondary), #F5F0EB (accent)
   Fonts: Playfair Display (display), Source Sans Pro (body)
   ============================================================= */

/* RESET & NORMALIZE ------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
  margin: 0;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
}
button,
input,
select,
textarea {
  font: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  cursor: pointer;
}

/* TYPOGRAPHY --------------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display';
  src: local('Playfair Display'), url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: local('Source Sans Pro'), url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');
  font-display: swap;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #F5F0EB;
  color: #3B2B24;
  min-height: 100vh;
  line-height: 1.66;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #3B2B24;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
}
p, li {
  font-size: 1rem;
  color: #3B2B24;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #8c6a4a;
  font-size: 1.19rem;
  padding-left: 20px;
  border-left: 4px solid #C0A98A;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  h1      { font-size: 2.75rem; }
  h2      { font-size: 2.2rem; }
  h3      { font-size: 1.28rem; }
  p, li   { font-size: 1.08rem; } 
}

/* COLOR UTILS ------------------------------------------------------------- */
:root {
  --primary: #3B2B24;
  --secondary: #C0A98A;
  --accent: #F5F0EB;
  --accent-dark: #efdac0;
  --light: #fffaf5;
  --focus: #b89c6b;
  --success: #98a764;
  --warning: #bf7c2a;
  --error: #af3f1d;
}

/* GENERAL LAYOUT ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
section {
  background: var(--accent);
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 18px 0 rgba(160, 119, 64, 0.10);
  transition: box-shadow 0.2s;
}
@media (max-width: 540px) {
  section {
    margin-bottom: 40px;
    padding: 28px 10px;
    border-radius: 18px;
  }
}

/* FLEXBOX LAYOUTS --------------------------------------------------------- */
.feature-grid, .service-list, .testimonial-slider, .testimonial-list, .testimonial-block, .event-feedback, .service-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div, .service-list > div, .testimonial-card, .testimonial-block > .testimonial-card, .event-feedback > .testimonial-card, 
.testimonial-list > .testimonial-card, .service-detail-grid > div {
  background: #fffaf5;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(160, 119, 64, 0.07);
  padding: 26px 22px;
  min-width: 220px;
  max-width: 385px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #f5ede4;
}
.feature-grid > div:hover, .service-list > div:hover, .testimonial-card:hover, .service-detail-grid > div:hover {
  box-shadow: 0 5px 22px 0 rgba(190, 140, 94, 0.22);
  transform: translateY(-2px) scale(1.018);
}

@media (max-width: 900px) {
  .feature-grid, .service-list, .testimonial-slider, .testimonial-list, .testimonial-block, .event-feedback, .service-detail-grid {
    gap: 13px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .service-list, .testimonial-slider, .testimonial-list, .testimonial-block, .event-feedback, .service-detail-grid {
    gap: 8px;
    flex-direction: column;
  }
  .feature-grid > div, .service-list > div, .testimonial-card, .service-detail-grid > div {
    min-width: auto;
    max-width: 100%;
  }
}

/* 
MANDATORY FLEXBOX SPACING AND ALIGNMENT
*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* INDEX & TEASERS ---------------------------------------------------------- */
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 700;
  border-radius: 18px;
  padding: 13px 32px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px 0 rgba(190, 140, 94, 0.12);
  margin-top: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
  outline: none;
  display: inline-block;
}
.cta-btn:hover,.cta-btn:focus {
  background: var(--primary);
  color: #fffaf5;
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 7px 28px 0 rgba(59, 43, 36, 0.19);
}

/* LISTS & DETAILS ---------------------------------------------------------- */
ul {
  list-style: disc outside;
  margin-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}
ul li strong {
  color: var(--primary);
}
.service-list > div > a,
.service-detail-grid > div > a {
  margin-top: 15px;
  background: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  padding: 6px 11px;
  border: 1px solid var(--secondary);
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.service-list > div > a:hover,
.service-detail-grid > div > a:hover {
  background: var(--secondary);
  color: #fffaf5;
  border-color: var(--primary);
}

/* IMAGES & ICONS ----------------------------------------------------------- */
img {
  border-radius: 10px;
}
nav img, .contact-snippet img, .content-wrapper img {
  border-radius: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* NAVIGATION --------------------------------------------------------------- */
header {
  background: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(59,43,36,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0 17px 0;
  justify-content: flex-start;
}
.main-nav a {
  color: #fffaf5;
  font-size: 1.08rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav a:first-child {
  padding: 0 6px 0 0;
  background: none;
}

/* HAMBURGER MENU ----------------------------------------------------------- */
.mobile-menu-toggle {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 14px;
  padding: 2px 14px 1px 14px;
  border: none;
  margin-left: auto;
  box-shadow: 0 2px 8px 0 rgba(190, 140, 94, 0.09);
  display: none;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fffaf5;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 28px;
    top: 15px;
    z-index: 100;
  }
}

/* MOBILE MENU OVERLAY ------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243, 231, 222, 0.96);
  box-shadow: 0 1px 16px 0 rgba(59,43,36,0.13), 0 3px 32px rgba(180, 120, 40,0.10);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.4, 0, .2, 1), opacity 0.19s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  margin: 26px 28px 13px 0;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.16s;
  z-index: 10001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: #fffaf5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 32px;
}
.mobile-nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  background: none;
  padding: 11px 18px;
  border-radius: 12px;
  width: 100%;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
  margin-bottom: 7px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fffaf5;
}
@media (max-width: 700px) {
  .mobile-menu {
    margin: 0;
  }
  .mobile-nav {
    margin: 26px 7vw;
    gap: 10px;
  }
  .mobile-nav a {
    font-size: 1.12rem;
    min-width: 140px;
    padding: 10px 14px;
  }
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fffaf5;
  padding: 0;
  margin-top: 42px;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 5px 22px 5px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fffaf5;
  font-weight: 500;
  font-size: 1.01rem;
  padding: 6px 11px;
  border-radius: 10px;
  transition: background 0.12s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.contact-snippet {
  font-size: 1rem;
  line-height: 1.65;
}
.contact-snippet img {
  height: 1.3em;
  width: 1.3em;
  margin-right: 8px;
  vertical-align: middle;
}
.copyright {
  font-size: 0.95rem;
  color: #f5ede4;
  margin-top: 10px;
}
@media (max-width:700px) {
  footer .content-wrapper {
    padding: 16px 2vw 10px 2vw;
    gap: 10px;
  }
  .footer-nav {
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* TESTIMONIALS ------------------------------------------------------------- */
.testimonial-slider, .testimonial-list, .testimonial-block, .event-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  background: #fffaf5;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(193, 154, 105, 0.08);
  color: #3B2B24;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 390px;
  margin-bottom: 20px;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #f5ede4;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #3B2B24;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #7E5D4B;
  margin-top: 5px;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(192,169,128,0.11);
  background: #fef9f4;
  transform: translateY(-1.5px) scale(1.015);
}
@media(max-width:700px){
  .testimonial-slider, .testimonial-list, .testimonial-block, .event-feedback {
    gap: 10px;
    flex-direction: column;
  }
  .testimonial-card {
    min-width: auto;
    max-width: 100%;
    padding: 15px 9px 11px 11px;
  }
}

/* OTHER CARDS -------------------------------------------------------------- */
.card {
  background: #fffaf5;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(192,169,128,0.08);
  padding: 22px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(192,169,128,0.13);
  transform: translateY(-1px) scale(1.007);
}

/* CONTACT & MAP ------------------------------------------------------------ */
.contact-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.contact-detail-block p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-snippet {
  background: #f5ede4;
  border-radius: 12px;
  padding: 10px 13px;
  color: #564633;
  font-size: 1.01rem;
  margin-bottom: 10px;
}

/* BLOCKQUOTE OVERRIDE ------------------------------------------------------ */
.content-wrapper blockquote {
  margin-top: 10px;
  margin-bottom: 20px;
  background: #fcf7ef;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(190,132,70,0.12);
  padding: 18px 20px 12px 20px;
  color: #8c6a4a;
}

/* RESPONSIVE FLEX LAYOUTS -------------------------------------------------- */
@media (max-width: 900px) {
  .content-wrapper, .container {
    max-width: 97vw;
    padding: 0 7vw;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .section, section {
    padding: 25px 7px;
    margin-bottom: 33px;
  }
}

/* MICRO-INTERACTIONS ------------------------------------------------------- */
a, button, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.16s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.2s;
}

/* FORM FIELD STYLES (if any) ----------------------------------------------- */
input, textarea, select {
  border: 1px solid #C0A98A;
  border-radius: 9px;
  padding: 10px 12px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  background: #fffaf5;
  margin-bottom: 12px;
  transition: border 0.18s, box-shadow 0.18s;
  outline: none;
  color: #3B2B24;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 1px 6px 0 rgba(192,169,128,0.08);
}

/* TABLES (for completeness) ------------------------------------------------ */
table {
  width: 100%;
  background: #fffaf5;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 rgba(192,169,128,0.06);
}
th, td {
  padding: 13px 12px;
  border-bottom: 1px solid #efdac0;
}
th {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
td {
  color: #3B2B24;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.02rem;
}

/* COOKIE CONSENT BANNER ---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 9998;
  background: #fffaf5;
  border-top: 2px solid #C0A98A;
  box-shadow: 0 -3px 15px 0 rgba(100,62,35,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 16px 12px;
  font-size: 1rem;
  color: #453628;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.22s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-text {
  max-width: 430px;
  margin-right: 12px;
  font-size: 0.97rem;
  line-height: 1.43;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  padding: 8px 18px;
  border-radius: 11px;
  border: 1px solid var(--secondary);
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  margin-right: 2px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.settings {
  background: #fffaf5;
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-btn.reject {
  background: #e9d3be;
  color: var(--primary);
  border-color: #C0A98A;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fffaf5;
}

/* COOKIE MODAL POPUP ------------------------------------------------------ */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(59,43,36,0.37);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffaf5;
  color: #3B2B24;
  border-radius: 21px;
  box-shadow: 0 9px 36px 0 rgba(59, 43, 36, 0.17);
  padding: 35px 25px 27px 25px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #3B2B24;
  font-size: 1.7rem;
  border-radius: 8px;
  padding: 0 7px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f1e3cf;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: #b89c6b;
  height: 19px;
  width: 19px;
  margin-right: 6px;
  margin-bottom: 0;
}
.cookie-category.essential label {
  color: #988059;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
@media(max-width:540px){
  .cookie-modal-content {  min-width: 93vw;  padding: 19px 6vw 16px 6vw; }
  .cookie-modal-close {   top: 5px; right: 10px; font-size: 1.34rem; }
}

/* ADDITIONAL UTILITY CLASSES ----------------------------------------------- */
.hide { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.text-center { text-align: center !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* COLOR CONTRAST ENHANCEMENTS ---------------------------------------------- */
.testimonial-card, .testimonial-block .testimonial-card, .event-feedback .testimonial-card {
  background: #fffaf5;
  color: #3B2B24;
}

/* PRINT OPTIMIZATION ------------------------------------------------------- */
@media print {
  header, .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  section { box-shadow: none !important; }
}
