/* --- 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  line-height: 1.6;
  background: #F7F4ED;
  color: #24303D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #236380; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #AD4D2A; }
ul, ol { list-style: none; }


/* --- FONT IMPORTS (Retro/Vintage) --- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600&family=Roboto:wght@400;500&display=swap');

:root {
  --primary: #236380;
  --primary-dark: #174152;
  --secondary: #F9C846;
  --accent: #FFFFFF;
  --retro-orange: #fd8c44;
  --retro-green: #A5C272;
  --retro-brown: #966451;

  --display-font: 'Baloo 2', cursive;
  --body-font: 'Roboto', Arial, sans-serif;

  --radius-card: 20px;
  --shadow-card: 0 6px 18px 0 rgba(45,32,13,0.11);
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 285px;
}
.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: #fff9e3;
  border-radius: 18px;
  border: 2px solid var(--retro-orange);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(160,87,22,.07);
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--display-font);
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--retro-orange);
  text-shadow: 1px 2px 0 #fff6df, 2px 3px 0 #ad4d2a22;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  text-shadow: 1px 1px 0 #f9c84633;
}
h3 {
  font-size: 1.36rem;
  color: var(--retro-brown);
  margin-bottom: 10px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p, ul, ol, li, span, label {
  color: #24303D;
  font-family: var(--body-font);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: var(--retro-orange);
  font-family: var(--display-font);
  letter-spacing: 0.01em;
}
ul, ol {
  margin-bottom: 20px;
  margin-left: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.7;
  position: relative;
}
ul li:before {
  content: '\25CF';
  color: var(--primary);
  margin-right: 10px;
  font-size: .85em;
}
ol li { counter-increment: step-counter; }
ol {
  counter-reset: step-counter;
  list-style: none;
}
ol li:before {
  content: counter(step-counter) '. ';
  color: var(--primary);
  font-weight: bold;
  font-family: var(--display-font);
}

/* --- HEADER STYLES --- */
header {
  background: var(--secondary);
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 3px 16px 0 #f1e4b0;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px 10px;
}
header img[alt="Familienzeit Finder"] {
  width: 174px;
  min-width: 105px;
  filter: sepia(0.16) contrast(1.1);
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-family: var(--display-font);
  font-size: 1.02rem;
  color: var(--primary-dark);
  padding: 7px 16px;
  border-radius: 13px;
  transition: background .2s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: var(--primary);
}
.cta-btn {
  font-family: var(--display-font);
  display: inline-block;
  background: var(--retro-orange);
  color: #fff9e4;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border: none;
  border-radius: 20px 8px 20px 8px;
  box-shadow: 0 3px 12px #fd8c4438;
  margin-left: 8px;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px #23638027;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--primary-dark);
  cursor: pointer;
  position: absolute;
  top: 20px; right: 16px;
  z-index: 900;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  transition: background .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fff7d4;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #FFF8DE;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.69,.15,.28,1.14);
  box-shadow: 6px 0 24px #96645121;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--retro-brown);
  align-self: flex-end;
  margin: 0 16px 8px 0;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 18px 18px;
}
.mobile-nav a {
  font-family: var(--display-font);
  color: var(--retro-orange);
  font-size: 1.3rem;
  background: transparent;
  padding: 12px 6px 12px 0;
  margin: 0;
  border: none;
  border-radius: 7px;
  transition: background .2s, color .18s, padding .18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--primary);
  padding-left: 12px;
}

/* --- HERO SECTIONS --- */
.hero {
  background: repeating-linear-gradient(135deg, #f9c846, #fde4aa 20px, #f7f4ed 40px, #f7f4ed 60px);
  min-height: 320px;
  border-bottom: 4px dotted var(--retro-orange);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.hero .content-wrapper {
  background: #fffbe6;
  box-shadow: var(--shadow-card);
  border-radius: 24px 68px 32px 18px;
  padding: 38px 22px 34px 28px;
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 3px double var(--retro-brown);
}
.hero h1 {
  color: var(--retro-brown);
  font-size: 2.2rem;
  margin-bottom: 14px;
  text-shadow: 1px 2px 0 #fffaf3, 0 2px 1px #f9c846;
}
.hero p {
  font-size: 1.17rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 17px;
  border: 2px dashed #fd8c44;
  box-shadow: 0 2px 10px #a55f2220;
  padding: 26px 16px;
  flex: 1 1 220px;
  min-width: 190px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow .18s, transform .17s;
  margin-bottom: 0;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 8px 30px #fd8c442a;
  transform: translateY(-4px) rotate(-1.2deg) scale(1.045);
}
.feature-grid > div img {
  height: 52px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  margin-bottom: 7px;
  text-align: center;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff9e3;
  border: 2px solid var(--retro-orange);
  box-shadow: 0 2px 12px #a55f2221;
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 20px;
  transition: box-shadow .16s;
  color: #462918;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #462918;
  font-family: var(--display-font);
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--primary);
  font-style: italic;
  font-family: var(--body-font);
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px #fd8c4433;
  background: #fff5db;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.team-list > div {
  background: #FAF4E2;
  border-radius: 16px;
  border: 2px solid #c2bfaa;
  box-shadow: 0 2px 10px #c2bfaa29;
  padding: 21px 14px 18px 14px;
  flex: 1 1 220px;
  min-width: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-list > div img {
  width: 66px;
  margin-bottom: 9px;
}
.team-list h3 {
  margin-bottom: 6px;
}

/* --- ACCORDIONS --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 12px;
  border: 1.7px solid var(--retro-green);
  box-shadow: 0 2px 10px #a5c27218;
  padding: 16px 18px;
  transition: box-shadow .17s;
}
.faq-accordion > div h3 {
  font-size: 1.05rem;
  margin-bottom: 7px;
  color: var(--primary);
}

/* --- CONTACT DETAILS --- */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 0;
}
.contact-details img {
  width: 22px;
  margin-right: 8px;
}
.map-embed {
  background: #fd8c4424;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.business-hours {
  color: var(--retro-brown);
  font-size: 1.06rem;
  margin: 13px 0 8px 0;
  background: #f3eac2;
  border-radius: 10px;
  padding: 11px 18px;
  font-family: var(--display-font);
}

/* --- QUICK LINKS --- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.quick-links li a {
  background: #f9c846;
  color: var(--primary-dark);
  border-radius: 11px;
  padding: 6px 18px;
  font-family: var(--display-font);
  font-size: 1rem;
  transition: background .15s, color .17s;
}
.quick-links li a:hover, .quick-links li a:focus {
  background: var(--primary);
  color: #fff;
}

/* --- CARDS AND CONTENT WRAPPER --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 18px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.next-steps {
  background: #f4e7c9;
  border-left: 7px solid #fd8c44;
  margin-bottom: 11px;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--body-font);
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  position: relative;
  padding: 38px 0 24px 0;
  box-shadow: 0 -8px 44px #16405511;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 19px;
  align-items: center;
}
.footer-nav a {
  color: #fffbe7;
  background: #fd8c44;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--display-font);
  font-size: .97rem;
  transition: background .15s, color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: var(--retro-orange);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .98rem;
  color: #fff;
  min-width: 230px;
}
.footer-contact img {
  width: 19px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact a {
  color: #fff9e5;
  text-decoration: underline dotted;
  transition: color .13s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--secondary);
}
.footer-social {
  display: flex;
  gap: 17px;
  align-items: center;
}
.footer-social a {
  display: block;
  background: #fffbe7;
  padding: 7px;
  border-radius: 6px;
  transition: background .14s;
  border: 1px solid #ffc978;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--retro-orange);
}
.footer-social img {
  width: 29px;
  height: 29px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5555;
  background: rgba(249,200,70,0.99);
  color: #462918;
  font-family: var(--body-font);
  border-top: 4px solid #fd8c44;
  box-shadow: 0 -8px 20px #f9c84633;
  padding: 18px 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  animation: cookieIn .4s ease;
}
@keyframes cookieIn { from {transform: translateY(100%);} to {transform: translateY(0);} }
.cookie-banner p {
  color: #462918;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #fd8c44;
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.03rem;
  border: none;
  border-radius: 11px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .13s, transform .16s, color .11s;
  box-shadow: 0 1px 7px #fd8c4432;
}
.cookie-btn.accept { background: #4EA54B; }
.cookie-btn.reject { background: #E15E5E; }
.cookie-btn.settings { background: #fff; color: var(--primary-dark); border: 1.5px solid #fd8c44; }
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 3px 16px #fd8c4477;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f7e9be;
  color: var(--retro-orange);
  border-color: #f9c846;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100%; height: 100vh;
  z-index: 9999;
  background: rgba(36,48,61,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .22s;
}
@keyframes fadeIn {from {opacity: 0;} to {opacity: 1;}}
.cookie-modal {
  background: #FFFBE9;
  color: #462918;
  border: 3px solid var(--secondary);
  border-radius: 18px 36px 26px 18px;
  max-width: 440px;
  width: 91vw;
  padding: 34px 26px 24px 28px;
  box-shadow: 0 6px 36px #f9c84669;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.44rem;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 7px 0;
  font-size: 1.03rem;
}
.cookie-category label {
  flex: 1;
  font-family: var(--body-font);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal .cookie-btn-group {
  justify-content: flex-end;
}

/* --- FORMS --- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
input[type="text"], input[type="email"], textarea {
  border: 1.3px solid #fd8c44;
  border-radius: 11px;
  padding: 8px 14px;
  margin-bottom: 14px;
  transition: border .16s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
}
button {
  cursor: pointer;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar { width: 8px; background: #f9c84633; }
::-webkit-scrollbar-thumb { background: #fd8c44; border-radius: 5px; }

hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, #fd8c44 0, #f9c846 58%, #236380 100%);
  margin: 28px 0;
}

/***** RESPONSIVE DESIGN (MOBILE-FIRST) *****/
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
  .footer-nav { flex-wrap: wrap; gap: 11px; }
}
@media (max-width: 860px) {
  .content-wrapper { padding: 32px 6px 18px 8px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .feature-grid, .team-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  header .container { flex-direction: row; gap: 9px; }
  .footer-nav, .footer-contact, .footer-social { flex-direction: column; gap: 11px; }
  footer .container { flex-direction: column; gap: 19px; }
  .hero .container { min-height: 120px; padding: 0; }
  .hero .content-wrapper { padding: 24px 8px 22px 10px; margin: 24px auto; }
  .section { padding: 24px 8px; margin-bottom: 40px; }
  .testimonial-card { max-width: 97vw; }
}
@media (max-width: 520px) {
  html, body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  .hero .content-wrapper { padding: 14px 5px 15px 7px; border-radius: 21px 34px 17px 9px; }
  .cookie-modal { padding: 18px 6px 18px 7px; }
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.cta-btn,
.feature-grid > div,
.team-list > div,
.testimonial-card,
.faq-accordion > div,
.cookie-btn,
.mobile-nav a {
  transition: background .17s, color .17s, box-shadow .16s, transform .17s, border .14s;
}

/* --- VISUAL VINTAGE DETAILS --- */
.section {
  background: #FFFAE7;
  border-radius: 28px 12px 35px 18px;
  box-shadow: 0 2px 20px #e0bb6722;
  border-bottom: 2px dotted #ad4d2a55;
  margin-bottom: 60px;
}

/* --- ACCESSIBILITY: FOCUS RING --- */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2.5px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* --- Z-INDEX LAYERING FOR MODALS/MENUS --- */
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 5555; }
.cookie-modal-overlay { z-index: 9999; }

/* --- HIDE MOBILE MENU BY DEFAULT --- */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* --- SUPPORT FOR JS CLASSES (open, etc) --- */
.mobile-menu.open { display: flex; }

/* --- END --- */
