/* ==========================================================================
   CSS Reset & Base (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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFDF6;
  color: #27304A;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #23427C;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #375ca5;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}

/* ==========================================================================
   Font Imports & Typography
   ==========================================================================
*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,700&display=swap');

:root {
  /* Brand Colors */
  --primary: #23427C;
  --secondary: #91C4B1;
  --accent: #FFFDF6;
  --muted: #f3f3ef;
  --text: #27304A;
  --text-muted: #666A7B;
  --shadow: 0 4px 24px rgba(35,66,124,0.08), 0 1.5px 4px rgba(35,66,124,0.03);
  --borderRadius: 14px;
  /* Elegant Classic Font Scale */
  --font-display: 'Montserrat', Georgia, serif;
  --font-body: 'Roboto', Georgia, serif;
  --h1-size: 2.75rem; /* 44px */
  --h2-size: 2rem;   /* 32px */
  --h3-size: 1.5rem; /* 24px */
  --h4-size: 1.25rem;/* 20px */
  --body-size: 1.125rem; /* 18px */
  --sm-size: 0.97rem;    /* 15.5px */
  --xs-size: 0.875rem;   /* 14px */
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  background: var(--accent);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
h1 {
  font-size: var(--h1-size);
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 18px;
}
h2 {
  font-size: var(--h2-size);
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: var(--h3-size);
  font-weight: 500;
  margin-bottom: 12px;
}
h4 {
  font-size: var(--h4-size);
  margin-bottom: 8px;
}
p, ul, ol {
  margin-bottom: 20px;
  color: var(--text-muted);
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
.subheadline {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Layout Containers & Section Spacing
   ==========================================================================
*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
main {
  width: 100%;
  flex: 1 1 auto;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 0 0; /* Top and sides handled by container */
  position: relative;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--borderRadius);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,66,124,.14);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
}

.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: 24px 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,66,124,0.08);
  border-radius: var(--borderRadius);
  font-size: var(--body-size);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  transition: box-shadow 0.14s;
}
.testimonial-card p {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.08em;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(35,66,124,0.14);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  min-width: 210px;
  transition: box-shadow 0.14s;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.feature:hover {
  box-shadow: 0 8px 36px rgba(35,66,124,0.10);
}

.service-listing, .workshop-list,
.feature-grid, .service-grid, .team-grid, .case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.service {
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.16s;
}
.service strong {
  font-size: var(--h4-size);
  color: var(--secondary);
  font-weight: 600;
}
.service:hover {
  box-shadow: 0 10px 38px rgba(35,66,124,0.12);
}

.team-member {
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
  min-width: 200px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.13s;
}
.team-member:hover {
  box-shadow: 0 10px 38px rgba(35,66,124,0.11);
}

.case-study {
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.17s;
}
.case-study:hover {
  box-shadow: 0 10px 38px rgba(35,66,124,0.12);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 1;
  width: 100%;
}

.confirmation {
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: 0 2px 12px rgba(35,66,124,0.10);
  padding-bottom: 40px;
}

/* ==========================================================================
   Header & Navigation
   ==========================================================================
*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(35,66,124,0.05);
  z-index: 30;
  position: sticky;
  top: 0;
  left: 0;
  min-height: 70px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 36px;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: var(--sm-size);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #fff;
  outline: none;
}
.cta-btn {
  font-family: var(--font-display);
  font-size: var(--sm-size);
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 0.17s, box-shadow 0.20s, color 0.18s;
  cursor: pointer;
  margin-left: 22px;
  letter-spacing: 0.03em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(145,196,177,0.33);
  outline: none;
}

/* ==========================================================================
   Mobile Navigation (Hamburger Menu)
   ==========================================================================
*/
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 12px;
  z-index: 105;
  outline: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, 
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247, 248, 251, 0.98);
  box-shadow: 0 6px 28px rgba(35,66,124,0.23);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(0.58,0.01,0.33,1.06);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 2.2rem;
  margin: 16px 22px 8px 0;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.13s;
  padding: 4px 8px;
  border-radius: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  color: var(--primary);
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.13s, color 0.18s;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* ==========================================================================
   Hero Section
   ==========================================================================
*/
.hero {
  background: linear-gradient(95deg, var(--accent) 80%, var(--secondary) 100%);
  border-bottom: 1px solid var(--muted);
  padding: 0;
  margin-bottom: 50px;
}
.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 22px;
}

/* ==========================================================================
   Footer
   ==========================================================================
*/
footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e3e6e9;
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--xs-size);
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  transition: background 0.17s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
footer p {
  font-size: var(--xs-size);
  color: var(--text-muted);
}
footer img {
  height: 32px;
  margin-right: 30px;
}

/* ==========================================================================
   Cookie Consent Banner & Modal
   ==========================================================================
*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(35,66,124,0.10);
  padding: 26px 14px 22px 14px;
  flex-direction: row;
  gap: 28px;
  transition: transform 0.3s, opacity 0.21s;
  font-size: var(--sm-size);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 650px;
  color: var(--text);
  line-height: 1.5;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: var(--sm-size);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,66,124,0.07);
  cursor: pointer;
  transition: background 0.13s, color 0.14s, box-shadow 0.10s;
  outline: none;
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  font-weight: 500;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%) scale(0.96);
  width: 98vw;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 52px rgba(35,66,124,0.19);
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  padding: 32px 26px;
  transition: opacity 0.22s, transform 0.36s cubic-bezier(0.6,0.09,0.42,1.01);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--primary);
}
.cookie-modal .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: var(--secondary);
  cursor: pointer;
  z-index: 2;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: var(--sm-size);
  color: var(--text-muted);
  font-weight: 500;
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin-top: 20px;
}

/* Example toggle switch for cookies */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  left: 0; top: 0;
  right: 0; bottom: 0;
  cursor: pointer;
  background: #eaeaea;
  border-radius: 24px;
  transition: background 0.15s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--secondary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s cubic-bezier(0.63,0,0.45,1.06);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ==========================================================================
   Media Queries: Responsiveness (Mobile First)
   ==========================================================================
*/
@media (max-width: 970px) {
  .container {
    max-width: 97vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .team-grid, .feature-grid, .service-grid, .workshop-list, .case-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
  .service, .feature, .team-member, .case-study {
    flex: 1 1 47%;
    min-width: 210px;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 34px 0 0 0;
  }
  .content-wrapper,
  .feature-grid, .service-grid, .workshop-list, .team-grid, .case-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 20px 10px;
  }
  .feature, .service, .team-member, .case-study {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-nav, footer .container {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 680px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .main-nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding-left: 10px;
    padding-right: 10px;
    min-height: 60px;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero .container {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 20px 4px 8px 4px;
    font-size: var(--xs-size);
  }
}

/* ==========================================================================
   Animations & Micro-interactions
   ==========================================================================
*/
.card,
.service,
.feature, 
.case-study, 
.team-member, 
.testimonial-card {
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .service:hover, .feature:hover, .case-study:hover, .team-member:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 38px rgba(35,66,124,0.10) !important;
}
.cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.14s;
}

/* ==========================================================================
   Accessibility & Utility Classes
   ==========================================================================
*/
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
}
.text-center {
  text-align: center !important;
}

/* Spacing Utilities */
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.pt-20 { padding-top: 20px !important; }
.pb-20 { padding-bottom: 20px !important; }

/* ==========================================================================
   Form Style (Generic for Kontakt, Cookie Modal)
   ==========================================================================
*/
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--body-size);
  border: 1px solid #ccd2e0;
  border-radius: 8px;
  padding: 11px 16px;
  width: 100%;
  margin-bottom: 18px;
  background: #fff;
  color: var(--text);
  transition: border 0.16s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border: 1.5px solid var(--secondary);
  background: #f8fcfa;
}
button,
input[type=submit] {
  font-family: var(--font-display);
}

/* ==========================================================================
   Special Section Styling
   ==========================================================================
*/
.service-listing > .cta-btn, .workshop-list > .cta-btn, .content-wrapper > .cta-btn {
  align-self: flex-start;
  margin-top: 16px;
}

/* Ensure minimum 20px margin between all flex items (cards, sections) */
.card, .service, .feature, .team-member, .case-study, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px !important;
}

/* Error/Success Color Utility, as fallback */
.text-success { color: #3b7f22; }
.text-error { color: #d51919; }

/* ==========================================================================
   END CSS
   ==========================================================================
*/
