/* --- CSS RESET & 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDF6;
  color: #183152;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  padding-left: 1.2em;
}
strong, b { font-weight: 600; }
img, video { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; font-size: 100%; box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { background: none; border: none; padding: 0; cursor: pointer; }

/* Removing blue tap highlight and improving font smoothing */
html { -webkit-tap-highlight-color: transparent; }
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- COLOR VARIABLES --- */
:root {
  --primary: #183152;
  --secondary: #24AFA7;
  --accent: #FFFDF6;
  --shadow: 0 2px 8px rgba(24,49,82,0.07);
  --radius: 12px;
  --focus: #18315233;
}

/* --- TYPOGRAPHY --- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--primary);
}
h1, .h1 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.16;
}
h2, .h2 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--primary);
  line-height: 1.17;
}
h3, .h3 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--primary);
}
small, .mini-address, .mini-email, .mini-hours {
  font-size: 0.92rem;
  color: #768199;
}
blockquote {
  border-left: 3px solid var(--secondary);
  margin: 20px 0; 
  padding: 10px 0 10px 18px;
  color: var(--primary);
  background: #F8FAFD;
  font-style: italic;
}

/* --- GENERIC SPACING SYSTEM --- */
.section,
.hero,
.about,
.values,
.services,
.events,
.testimonials,
.call-to-action,
.cta,
.about-brief,
.services-overview,
.team,
.workshops,
.audience,
.process,
.location,
.legal,
.contact,
.thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- FLEX CONTAINERS (NO GRID, NO COLUMNS) --- */
.card-container,
.card-grid,
.service-cards,
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
}
.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;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.team ul,
.values ul,
.about ul,
.publications ul,
.section ul,
.section ol {
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fbfbf9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CARDS --- */
.card,
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 260px;
  border: 1px solid #EEF1F5;
  transition: box-shadow 0.17s, border 0.17s, transform 0.18s;
  position: relative;
}
.card:hover,
.service-card:hover {
  box-shadow: 0 4px 16px rgba(24,49,82,0.10);
  border: 1.5px solid var(--secondary);
  transform: translateY(-2px) scale(1.012);
  z-index: 1;
}

/* Price Tag in Services */
.price {
  display: inline-block;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* --- BUTTONS --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--secondary);
  color: #fff;
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 500;
  border: none;
  border-radius: 40px;
  padding: 14px 32px;
  box-shadow: 0 2px 12px rgba(36,175,167,0.10);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, color 0.16s, transform 0.15s;
  margin-top: 8px;
}
.cta-button:hover, .cta-button:focus-visible {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24,49,82,0.12);
  outline: none;
  transform: translateY(-2px) scale(1.025);
}
.cta-button:active {
  background: #137570;
  color: #fff;
}

/* --- HEADER --- */
header {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid #EEF1F5;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding-top: 0;
  padding-bottom: 0;
}
header img {
  max-height: 42px;
  margin-right: 36px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  outline: none;
}
header .cta-button {
  margin-left: 24px;
  font-size: 1.01rem;
  padding: 11px 26px;
  font-weight: 500;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 40px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(36,175,167,0.08);
  position: absolute;
  right: 20px; top: 14px;
  transition: background 0.16s;
  border: none;
  z-index: 21;
}
.mobile-menu-toggle:focus-visible,
.mobile-menu-toggle:hover {
  background: var(--primary);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  z-index: 1010;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px rgba(24,49,82,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.27s cubic-bezier(.65,0,.35,1);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 40px;
  width: 48px; height: 48px;
  margin: 20px 20px 20px 0;
  align-self: flex-end;
  border: none;
  transition: background 0.13s;
  box-shadow: 0 2px 10px rgba(36,175,167,0.10);
}
.mobile-menu-close:focus-visible,
.mobile-menu-close:hover {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 34px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  padding: 12px 0;
  border-radius: 5px;
  transition: background 0.12s, color 0.18s;
}
.mobile-nav a:focus-visible,
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  background: #FFFDF6;
  padding-top: 48px;
  padding-bottom: 32px;
  min-height: 340px;
  margin-bottom: 60px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 22px;
  color: #1b272e;
  max-width: 700px;
}

/* --- FEATURES --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.feature-grid li {
  flex: 1 1 180px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  max-width: 240px;
  padding: 26px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #EEF1F5;
  transition: box-shadow 0.15s, border 0.17s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 6px 20px rgba(24,49,82,0.11);
  border: 1.5px solid var(--secondary);
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
}
.feature-grid h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* --- ABOUT BRIEF / TEXT SECTION --- */
.about-brief .text-section,
.about .text-section,
.values .content-wrapper,
.team .text-section,
.location .text-section,
.contact .text-section,
.legal .text-section,
.section .text-section,
.thank-you .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  gap: 10px !important;
}

/* --- SERVICES GRID (HOMEPAGE + DIENSTLEISTUNGEN) --- */
.service-cards,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service-card {
  min-width: 220px;
  max-width: 340px;
}

/* --- PROCESS / STEPS (dienstleistungen) --- */
.process ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: decimal inside;
  margin-left: 0;
  margin-bottom: 18px;
}
.process li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 0;
  border: 1px solid #EEF1F5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.15s, border 0.17s;
}
.process img {
  width: 38px; height: 38px; margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #f8fafb;
  border-radius: var(--radius);
}
.testimonial-card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1.08rem;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid #EEF1F5;
  min-width: 220px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1rem;
  margin-left: 10px;
}

/* --- PUBLICATIONS SEARCH --- */
input[type="text"] {
  border: 1px solid #cbd7e2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.05rem;
  background: #fff;
  transition: border-color 0.14s;
  outline: none;
}
input[type="text"]:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 10px rgba(36,175,167,0.07);
}

/* --- LEGAL & FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #EEF1F5;
  padding: 0;
  color: #232b36;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 34px;
  padding-bottom: 34px;
}
.footer-nav {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #536077;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus-visible {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 18px;
}
.legal-links {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #b3b7c5;
}
.legal-links a {
  color: #7886a0;
  margin: 0 2px;
  transition: color 0.16s;
}
.legal-links a:hover, .legal-links a:focus-visible {
  color: var(--secondary);
}

/* --- MISCELLANEOUS --- */
a, .cta-button, .main-nav a, .mobile-nav a {
  outline: none;
}
a:focus-visible {
  box-shadow: 0 0 0 2px var(--focus);
  border-radius: 3px;
}
input:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 2px var(--focus);
}
::-webkit-input-placeholder { color: #b3bcc9; opacity: 1; }
::-moz-placeholder { color: #b3bcc9; opacity: 1; }
:-ms-input-placeholder { color: #b3bcc9; opacity: 1; }
::placeholder { color: #b3bcc9; opacity: 1; }

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(24,49,82,0.06);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.28s cubic-bezier(.61,0,.38,1), opacity 0.13s;
  opacity: 1;
}
#cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
#cookie-banner p {
  font-size: 1rem;
  color: #3d4150;
  margin-bottom: 0;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-actions button {
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1.5px solid #EEF1F5;
  transition: background 0.15s, color 0.17s, border 0.12s;
}
.cookie-actions .accept {
  background: var(--secondary);
  color: #fff;
  border: none;
}
.cookie-actions .accept:hover, .cookie-actions .accept:focus-visible {
  background: var(--primary);
  color: #fff;
}
.cookie-actions .settings {
  background: #fff;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-actions .settings:hover, .cookie-actions .settings:focus-visible {
  background: var(--secondary);
  color: #fff;
}
.cookie-actions .reject {
  background: #fff;
  color: #DE3F1C;
  border: 1.5px solid #DE3F1C;
}
.cookie-actions .reject:hover, .cookie-actions .reject:focus-visible {
  background: #DE3F1C;
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 1220;
  background: rgba(24,49,82,0.15);
  align-items: center;
  justify-content: center;
}
#cookie-modal.open {
  display: flex;
  animation: cookieModalFade 0.26s both;
}
@keyframes cookieModalFade {from{opacity:.1;transform:scale(0.97);}to{opacity:1;transform:scale(1);}}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 30px 32px 22px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 34px rgba(24,49,82,0.16);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 22px; top: 22px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.3rem;
  transition: background 0.13s;
}
.cookie-modal-content .close-modal:hover,
.cookie-modal-content .close-modal:focus-visible {
  background: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #EEF1F5;
}
.cookie-category-row:last-child {
  border-bottom: none;
}
.cookie-category-row input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: var(--secondary);
  cursor: pointer;
}
.cookie-category-row input[disabled] {
  accent-color: #c9d3e1;
  cursor: not-allowed;
}
#cookie-modal .cookie-actions {
  margin-top: 10px;
}

/* --- RESPONSIVE/DESKTOP --- */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  header .container { padding: 0 10px; }
  .feature-grid, .service-cards, .card-container { gap: 14px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 15px; }
  .hero { padding: 32px 0 22px 0; min-height: 170px; }
  .section, .about-brief, .about, .values, .services, .events, .testimonials, .call-to-action, .cta, .location, .contact, .legal, .thank-you {
    padding: 28px 8px 28px 8px;
    margin-bottom: 30px;
  }
  .main-nav { display: none; }
  header .cta-button { display: none; }
  .mobile-menu-toggle { display: flex; }
  .feature-grid, .card-container, .service-cards, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li, .service-card, .card {
    min-width: 0; max-width: 100vw;
  }
  .testimonial-card { margin-bottom: 14px; }
  .footer-nav { flex-direction: column; gap: 18px; }
  .footer-contact { flex-direction: column; gap: 8px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.34rem; }
  .mobile-menu { font-size: 1.1rem; }
}
@media (max-width: 540px) {
  .container { padding: 0 5px; }
  .section, .about-brief, .about, .services, .events, .testimonials, .call-to-action, .cta, .location, .contact, .legal, .thank-you {
    padding: 19px 2px 19px 2px;
  }
  h1, .h1 { font-size: 1.32rem; }
  h2, .h2 { font-size: 1.07rem; }
  .hero p, p { font-size: 0.98rem; }
  #cookie-banner { padding: 18px 6px; }
  .cookie-modal-content {
    padding: 18px 10px 14px 10px;
    max-width: 96vw;
  }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .service-card, .feature-grid li, .cta-button, .main-nav a, .mobile-nav a, .cookie-actions button, .mobile-menu-close, .mobile-menu-toggle {
  transition: box-shadow 0.17s, border 0.17s, background 0.18s, color 0.13s, transform 0.15s;
}

/*--- Z-INDEX FOR NAV / MENU ---*/
header { position: relative; z-index: 900; }
.mobile-menu, .mobile-menu.open { z-index: 1010; }
#cookie-banner, #cookie-modal { z-index: 1200;
}

/*---- THE END ----*/
