/* ==== 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, 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F4E9D5;
  color: #244026;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img[src$=".svg"], img[src$=".png"], img[src$=".jpg"], img[src$=".jpeg"] {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #B68753;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #385A3A;
  text-decoration: underline;
}
button, [type="button"], [type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  box-sizing: border-box;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong { font-weight: bold; }
em { font-style: italic }

::-webkit-input-placeholder { color: #6d786f; }
::-moz-placeholder { color: #6d786f; }
:-ms-input-placeholder { color: #6d786f; }
::placeholder { color: #6d786f; }

/* ==== BRAND COLORS ==== */
:root {
  --primary: #244026;
  --secondary: #FFFFFF;
  --offwhite-bg: #F4E9D5;
  --accent: #B68753;
  --vibrant-electric: #31D6FC;
  --vibrant-magenta: #F6336A;
  --vibrant-yellow: #FCE831;
  --vibrant-purple: #9038FF;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  color: #244026;
  font-family: 'Merriweather', serif;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--vibrant-magenta);
  /* Electric headline */
  text-shadow:
    0 4px 24px rgba(246,51,106,0.10),
    0 1px 0px #fff;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--vibrant-purple);
}
h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--primary);
}
h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--accent);
}
h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, ul, ol { font-size: 1.08rem; color: #244026; }
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--vibrant-purple);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ========== CONTAINERS & LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ========== FEATURE/CARD LAYOUTS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
  width: 100%;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(49, 214, 252, 0.05),
              0 1.5px 10px rgba(244, 233, 213, 0.10);
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 340px;
  padding: 28px 22px 18px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.23s, transform 0.23s;
  margin-bottom: 20px;
  border: 2px solid var(--vibrant-electric);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(49, 214, 252, 0.25), 0 2px 16px rgba(246, 51, 106, 0.14);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--vibrant-magenta);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px rgba(180,135,83,0.10);
  padding: 18px 20px;
  border: 2.5px solid var(--accent);
  min-width: 220px;
  margin-bottom: 18px;
}
.feature-list img {
  width: 36px;
  height: 36px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(49,214,252,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 20px 24px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(180,135,83,0.21);
  transform: scale(1.025);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(49,214,252,0.14),0 2px 12px rgba(36,64,38,0.07);
  margin-bottom: 20px;
  border-left: 8px solid var(--vibrant-electric);
  position: relative;
  max-width: 700px;
}
.testimonial-card p {
  flex: 1;
  color: #322c2b;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  min-width: 120px;
  color: var(--vibrant-magenta);
  font-weight: bold;
  font-size: 1rem;
}

/* ========== CALL TO ACTION BUTTONS ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,var(--vibrant-electric) 80%,var(--vibrant-magenta) 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 36px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 5px 18px rgba(49,214,252,0.12),0 1.5px 8px rgba(246,51,106,0.07);
  transition: background 0.16s, box-shadow 0.20s, transform 0.18s;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(36,64,38,0.08);
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--vibrant-magenta) 40%, var(--vibrant-electric) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(246,51,106,0.17), 0 2px 12px rgba(49,214,252,0.14);
  transform: scale(1.06) translateY(-2px);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 24px rgba(49,214,252,0.10);
  padding: 0;
  z-index: 99;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
  padding: 8px 20px;
}
header img[alt="TafelReich"] {
  width: 160px;
  height: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 22px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vibrant-magenta);
  color: #fff;
}
.mobile-menu-toggle {
  background: var(--vibrant-magenta);
  color: #fff;
  font-size: 2rem;
  border-radius: 26px;
  padding: 6px 14px;
  border: 2px solid var(--vibrant-electric);
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.16s, color 0.17s, transform 0.15s;
  z-index: 210;
}
.mobile-menu-toggle:active {
  transform: scale(0.95);
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  header img[alt="TafelReich"] { width: 120px; }
  header .container { gap: 8px; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 14px 32px rgba(49,214,252,0.15);
  z-index: 220;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.68,.02,.63,1), opacity 0.23s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 0 0 32px 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 20px 8px 0;
  background: var(--vibrant-magenta);
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 8px 18px;
  font-size: 2.1rem;
  z-index: 223;
  transition: background 0.14s, transform 0.14s;
}
.mobile-menu-close:active {
  background: var(--vibrant-electric);
  transform: scale(0.94);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 30px 0 38px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.24rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 33px;
  transition: background 0.13s, color 0.13s, transform 0.14s;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vibrant-electric);
  color: #fff;
  transform: translateX(4px) scale(1.05);
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ========== SECTIONS, SPACING, FLEX ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
.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;
}

/* ========== CONTACT INFO BLOCKS ========== */
.contact-info {
  background: #fff;
  padding: 18px 18px 14px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(49,214,252,0.10);
  font-size: 1.02rem;
  color: #385A3A;
  margin-top: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
}
.contact-info a { color: var(--vibrant-magenta); font-weight: 600; }

/* ========== FOOTER ========== */
footer {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 0 0 28px 0;
  box-shadow: 0 -7px 24px rgba(49,214,252,0.07);
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  padding: 32px 0 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.footer-nav a {
  color: #F4E9D5;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 5px 12px;
  border-radius: 19px;
  transition: color 0.16s, background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: var(--vibrant-magenta);
}
.contact-details {
  font-size: 0.96rem;
  color: #F4E9D5;
}
.social-media-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-media-icons img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px var(--vibrant-electric));
  transition: filter 0.16s, transform 0.17s;
}
.social-media-icons img:hover { filter: brightness(1.4) drop-shadow(0 4px 16px var(--vibrant-magenta)); transform: scale(1.10); }

/* ========== MAP EMBED PLACEHOLDER ========== */
.map-embed-brief {
  width: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(-45deg, #f4e9d5, #f4e9d5 20px, #fce831 20px, #fce831 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-top: 14px;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 30px rgba(49,214,252,0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 300;
  padding: 22px 28px;
  font-size: 1rem;
  animation: cookieBannerFadeIn 0.55s cubic-bezier(.57,1.41,.57,1) both;
}
@keyframes cookieBannerFadeIn {
  0% { opacity: 0; transform: translateY(80px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-message {
  flex: 1 1 auto;
  margin-right: 12px;
}
.cookie-banner-controls {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-consent-btn, .cookie-settings-btn {
  background: var(--vibrant-electric);
  color: #244026;
  border: none;
  border-radius: 22px;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 7px 18px;
  transition: background 0.13s, color 0.13s, transform 0.16s;
  box-shadow: 0 1.5px 5px rgba(49,214,252,0.09);
}
.cookie-consent-btn.accept {
  background: var(--vibrant-magenta);
  color: #fff;
}
.cookie-consent-btn.reject {
  background: #9038FF;
  color: #fff;
}
.cookie-consent-btn:hover, .cookie-settings-btn:hover {
  background: var(--vibrant-yellow);
  color: #244026;
  transform: translateY(-1.5px) scale(1.07);
  box-shadow: 0 4px 14px rgba(246, 51, 106, 0.12), 0 2px 8px rgba(49,214,252,0.13);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 64, 38, 0.57);
  z-index: 301;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 1;
  animation: cookieModalIn 0.34s cubic-bezier(.47,2,.6,1.2) both;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(49,214,252,0.19), 0 3px 10px rgba(36,64,38,0.10);
  padding: 38px 28px 26px 32px;
  min-width: 320px;
  max-width: 90vw;
  color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1rem;
  z-index: 310;
  animation: cookieModalPop 0.32s cubic-bezier(.52,1.6,.48,1.17) both;
}
@keyframes cookieModalPop {
  0% { opacity: 0; transform: scale(.88) translateY(38px); }
  80% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 1.38rem;
  color: var(--primary);
  background: #f4e9d5;
  border: none;
  border-radius: 18px;
  padding: 6px 13px;
  cursor: pointer;
  z-index: 320;
  transition: background 0.14s, color 0.10s, transform 0.16s;
}
.cookie-modal-close:hover {
  background: var(--vibrant-magenta);
  color: #fff;
}
.cookie-modal-title {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--vibrant-electric);
  width: 22px; height: 22px;
  margin-right: 8px;
}
.cookie-modal-category label {
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  cursor: pointer;
}
.cookie-modal-category .always-on {
  color: var(--accent);
  font-size: 0.99rem;
  font-weight: 800;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal-actions .cookie-consent-btn,
.cookie-modal-actions .cookie-settings-btn {
  min-width: 120px;
}

/* ========== RESPONSIVE: MAX-WIDTH 1020px ========== */
@media (max-width: 1020px) {
  .container {
    max-width: 99vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .section, .footer { padding: 32px 10px; }
  .testimonial-card { max-width: 96vw; }
}

/* ========== RESPONSIVE: TABLET & MOBILE ========== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.06rem; }
  h2 { font-size: 1.37rem; }
  .footer-nav { gap: 11px; }
  .feature-list, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-list li, .feature-grid > div {
    max-width: 100%;
    min-width: 0;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    font-size: 0.96rem;
  }
  .section {
    padding: 22px 3vw;
    margin-bottom: 28px;
  }
  .contact-info {
    padding: 9px 8px 9px 13px;
    font-size: 0.97rem;
    border-radius: 7px;
  }
  footer .content-wrapper {
    gap: 14px;
    padding: 16px 0 0 0;
    flex-direction: column;
  }
  .footer-nav { flex-direction: column; align-items: flex-start; }
  .map-embed-brief { min-height: 90px; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.99rem;
    padding: 16px 8px;
  }
  .cookie-banner-controls { gap: 8px; }
  .cookie-modal {
    min-width: 88vw;
    max-width: 98vw;
    padding: 20px 10px 13px 12px;
  }
}
@media (max-width: 505px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.14rem; }
  body { font-size: .98rem; }
}

/* ========== VISUAL MICRO-INTERACTIONS ========== */
.cta-button, .cookie-consent-btn, .cookie-settings-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.13s, transform 0.16s, box-shadow 0.18s;
}
.cta-button:active, .cookie-consent-btn:active, .cookie-settings-btn:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.97);
  background: var(--vibrant-yellow);
}

/* ========== SCROLLBAR (BRANDING/ELECTRIC) ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F4E9D5;
}
::-webkit-scrollbar-thumb {
  background: var(--vibrant-electric);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vibrant-magenta);
}

/* ========== FORM ELEMENTS ========== */
input, textarea {
  border: 2px solid var(--accent);
  background: #fff;
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--primary);
  font-size: 1.025rem;
  margin-bottom: 12px;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border-color: var(--vibrant-electric);
  outline: none;
}

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