/* =====================================================
   AVIDIS REZEPTZAUBER – 'playful_dynamic' CSS STYLESHEET
   Responsive, FLEXBOX-ONLY, playful and dynamic, on-brand
   ===================================================== */

/* ===== CSS RESET & BASELINE NORMALIZATION ===== */
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, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #255F38;
  background: #F6EEDE;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
}

a {
  color: #D2670B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FF8C42;
  text-decoration: underline;
}

/* ===== BRAND FONTS ===== */
h1, h2, h3, .hero-subheadline, .cta-btn, nav a, .price {
  font-family: 'Montserrat', 'Comic Sans MS', Arial, sans-serif;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FF8C42;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 1px 4px 16px #ffe5cc33;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #255F38;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FF8C42;
  margin-bottom: 8px;
}
.hero-subheadline {
  font-size: 1.25rem;
  color: #255F38;
  margin-bottom: 24px;
  font-weight: 500;
}
p, li, address, .footer-info {
  font-size: 1rem;
  color: #255F38;
}
section ul, section ol {
  margin-left: 1.1em;
}

/* ====== SPACING & FLEXBOX LAYOUT PATTERNS ====== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255,140,66,0.07), 0 2px 6px #d2670b22;
  background: #fff;
  padding: 24px 22px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 12px 48px rgba(255,140,66,0.16);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}
.content-grid, .feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 4px 18px #255F3817;
  border-left: 6px solid #FF8C42;
  transition: box-shadow 0.24s, transform 0.18s;
  min-width: 220px;
  max-width: 500px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px #d2670b22;
  transform: translateY(-3px) scale(1.03) rotate(0.5deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.text-section {
  margin-bottom: 22px;
}

/* Margin between all content cards/sections */
section + section {
  margin-top: 40px;
}
.card, .testimonial-card, .feature-grid > li, .service-list > li {
  margin-bottom: 20px;
}

/* ===== FEATURE GRID / SERVICE LIST ===== */
.feature-grid {
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
}
.feature-grid > li {
  background: #fff;
  padding: 22px 18px 14px 18px;
  border-radius: 18px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 16px #d2670b14;
  transition: transform 0.2s, box-shadow 0.22s;
  position: relative;
  margin-bottom: 0;
  border-left: 4px solid #FF8C42;
}
.feature-grid > li:hover {
  transform: translateY(-2px) scale(1.035) rotate(-1deg);
  box-shadow: 0 8px 32px #d2670b22;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px #FF8C4220);
}

.service-list {
  flex-direction: column;
  gap: 22px;
  padding-left: 0;
}
.service-list li {
  background: #FFFBF7;
  border-radius: 13px;
  box-shadow: 0 2px 12px #255F3810;
  padding: 16px 16px 16px 22px;
  position: relative;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}
.price {
  background: #FF8C42;
  color: #fff;
  border-radius: 20px;
  padding: 3px 15px;
  font-family: 'Montserrat', sans-serif;
  margin-left: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 1px 6px #FF8C4212;
}

/* ===== CTA BUTTONS & UI ELEMENTS ===== */
.cta-btn {
  font-family: 'Montserrat', 'Comic Sans MS', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FF8C42 72%, #D2670B 100%);
  color: #fff;
  border-radius: 40px;
  padding: 14px 38px;
  box-shadow: 0 4px 18px #ff8c4240, 0 2px 4px #d2670b20;
  border: none;
  cursor: pointer;
  letter-spacing: 1.2px;
  margin-right: 12px;
  transition: background 0.27s, transform 0.16s, box-shadow 0.2s;
  display: inline-block;
  margin-bottom: 10px;
  user-select: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #D2670B 55%, #FF8C42 100%);
  transform: scale(1.065) rotate(-1deg);
  box-shadow: 0 6px 24px #D2670B40;
  color: #fffcf8;
}

button {
  cursor: pointer;
  border: none;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 7px 40px #D2670B12;
  z-index: 51;
  position: sticky;
  top: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 14px 18px;
  min-height: 65px;
  position: relative;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav a {
  color: #255F38;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  position: relative;
  padding: 7px 10px;
  border-radius: 12px;
  transition: background 0.2s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: #FF8C42;
  color: #fff;
}
nav a.active {
  background: #255F38;
  color: #fff;
}
nav img {
  height: 36px;
  width: auto;
  margin-right: 20px;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  background: #FF8C42;
  color: #fff;
  border-radius: 50%;
  border: none;
  margin-left: 8px;
  box-shadow: 0 1px 12px #FF8C4220;
  cursor: pointer;
  z-index: 70;
  position: absolute;
  right: 18px;
  top: 12px;
  transition: background 0.19s, transform 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D2670B;
  transform: scale(1.09) rotate(-11deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffdfa;
  box-shadow: 0 8px 36px #FF8C4225;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.85,-0.02,.21,1.09);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: #FF8C42;
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 16px;
  right: 20px;
  box-shadow: 0 2px 14px #FF8C4220;
  transition: background 0.19s, transform 0.13s;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D2670B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin-top: 75px;
  padding: 24px;
}
.mobile-nav a {
  padding: 15px 16px;
  border-radius: 14px;
  background: #fff;
  color: #255F38;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  box-shadow: 0 1px 6px #255F3826;
  margin: 0 0 7px 0;
  transition: background 0.2s, color 0.14s, transform 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FF8C42;
  color: #fff;
  transform: scale(1.04) rotate(-2deg);
}

/* Hide desktop nav on small screens, hide burger on big screens */
@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ===== MAIN ===== */
main {
  width: 100%;
  min-height: 60vh;
  padding-bottom: 50px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
  background: transparent;
  width: 100%;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card p {
  color: #2B3A32;
  font-size: 1.06rem;
  font-style: italic;
  font-family: 'Open Sans', cursive, sans-serif;
}
.testimonial-card span, .testimonial-card strong {
  color: #255F38;
  font-size: 0.98rem;
  margin-top: 5px;
}

/* ----------- FORMS AND INPUTS ----------- */
input, textarea {
  background: #fffdfa;
  border: 2px solid #FF8C42;
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 15px;
  font-size: 1.01rem;
  color: #255F38;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #255F38;
}

/* ========== FOOTER ========== */
footer {
  background: #255F38;
  color: #fff;
  width: 100%;
  padding: 32px 0 16px 0;
  font-size: 1rem;
  margin-top: 70px;
  box-shadow: 0 -2px 10px #D2670B20;
}
.footer-nav, .footer-info {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  color: #fff !important;
}
.footer-nav a {
  color: #ffd9bb;
  font-weight: 600;
  margin: 0 2px;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FF8C42;
  text-decoration: underline;
}
.footer-info {
  font-size: 0.98rem;
  opacity: 0.9;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #fffdfa;
  color: #255F38;
  box-shadow: 0 -2px 22px #D2670B17;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px 22px 18px;
  transition: transform 0.41s cubic-bezier(.82,.01,.42,1.05), opacity 0.21s;
  transform: translateY(0);
  opacity: 1;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 22px;
  color: #fff;
  background: #FF8C42;
  border: none;
  font-weight: 700;
  margin-right: 2px;
  margin-bottom: 4px;
  transition: background 0.2s, color 0.13s, transform 0.13s;
  box-shadow: 0 1px 6px #FF8C4212;
}
.cookie-banner .cookie-btn.settings {
  background: #255F38;
}
.cookie-banner .cookie-btn.reject {
  background: #D2670B;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #255F38;
  color: #FF8C42;
}

/* ========== COOKIE MODAL POPUP ========== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1004;
  background: rgba(34, 95, 56, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s;
}
.cookie-modal.hide {
  display: none !important;
  opacity: 0;
}
.cookie-modal-content {
  background: #fffdfa;
  color: #255F38;
  border-radius: 22px;
  box-shadow: 0 6px 48px #D2670B2B;
  padding: 32px 26px;
  min-width: 330px;
  max-width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  animation: popup-in 0.27s cubic-bezier(.85,-0.02,.4,1.09);
}
@keyframes popup-in {
  0% { opacity: 0; transform: scale(0.86) translateY(60px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: #FF8C42;
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.5rem;
  border: none;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #D2670B;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #FF8C42;
  width: 21px; height: 21px;
}
.cookie-category.essential label:after {
  content: " immer aktiv";
  color: #D2670B;
  font-weight: 600;
  margin-left: 6px;
  font-size: 0.97em;
}
/* Modal action buttons */
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}
.cookie-modal-actions .cookie-btn {
  font-size: 1rem;
  padding: 8px 20px;
}

/* ===== SUCCESS & INFO MESSAGES ===== */
.success-message {
  color: #255F38;
  background: #DBFFD9;
  border: 2px dashed #255F38;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ========== RESPONSIVE RULES ========== */
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .feature-grid > li, .card {
    min-width: 170px;
  }
  .content-grid, .feature-grid {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .cta-btn { font-size: 1.01rem; padding: 13px 28px; }
  section { padding: 28px 10px 0 10px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.04rem; }
  .container { padding: 0 3vw; }
  .section { padding: 30px 2vw; }
  .cta-btn { font-size: 0.98rem; padding: 12px 16px; }
  nav img { margin-right: 7px; height: 28px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column; gap: 19px;
  }
  .service-list, .testimonial-card { flex-direction: column; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-wrapper { gap: 15px; }
  .feature-grid { gap: 17px; }
  .service-list { gap: 10px; }
}
@media (max-width: 420px) {
  .cta-btn, .cookie-btn { font-size: 0.91rem; padding: 8px 10px; }
}

/* ===== MICRO-INTERACTIONS ===== */
.cta-btn, .card, .feature-grid > li, .testimonial-card, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-modal-close {
  transition: box-shadow 0.18s, background 0.19s, color 0.13s, transform 0.13s;
}

/* Fun floating animation for playful vibe */
@keyframes playful-float {
  0% { transform: translateY(-2px) rotate(-2deg); }
  50% { transform: translateY(7px) rotate(2deg); }
  100% { transform: translateY(-2px) rotate(-2deg); }
}
.card, .feature-grid > li, .testimonial-card {
  animation: playful-float 4.5s ease-in-out infinite;
  animation-delay: 0.1s;
}
section:nth-child(2) .feature-grid > li {
  animation-delay: 0.5s;
}
.testimonial-card:nth-child(3) {
  animation-delay: 0.8s;
}

/* Fun colorful underline for playful headers */
h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 5px;
  margin-top: 9px;
  border-radius: 30px;
  background: #FF8C42;
  box-shadow: 0 2px 6px #ff8c4213;
}

/* Animated section fade-in for energetic reveal */
section {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  animation: section-fade 0.92s cubic-bezier(.65,0,.24,1.04) forwards;
}
section:nth-child(2) { animation-delay: 0.07s; }
section:nth-child(3) { animation-delay: 0.14s; }
@keyframes section-fade {
  to { opacity: 1; transform: none; }
}

/* ===== GENERAL UTILITIES ===== */
.hide {
  display: none !important;
  visibility: hidden !important;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.rounded { border-radius: 22px; }

/* ===== DEBUG: prevent overlap */
.card, .testimonial-card, .feature-grid > li {
  min-height: 80px;
  box-sizing: border-box;
}

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