/* ========================================================
   TraumaHaus Augsburg | Modern Gradient CSS (Flexbox only)
   ========================================================
   - Mobile-first, pure flexbox layouts
   - Modern gradients & brand colors
   - Montserrat (display), Open Sans (body)
   - Hamburger navigation + mobile menu
   - Cookie consent banner & modal
   - No CSS Grid/Columns at all
   ======================================================== */

/* Reset and 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,
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #f6f9fa, #e9ecef 60%, #f4ebe2 100%);
  color: #264653;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264653;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }

p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #264653;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
ul, ol { padding-left: 1.25em; margin-bottom: 24px; }
li { margin-bottom: 8px; }
strong { font-weight: bold; color: #264653; }
a {
  color: #4C9075;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E9C46A;
}

/* Globals and Utility */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(38,70,83,0.06), 0 0.5px 2px 0 rgba(38,70,83,0.02);
  padding: 24px;
  min-width: 230px;
  max-width: 350px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 28px 0 rgba(38,70,83,0.13), 0 1.5px 6px 0 rgba(76,144,117,0.08);
  transform: translateY(-4px) scale(1.03);
}
.feature-item img {
  width: 40px;
  height: 40px;
}

/* Special lists and cards */
.usp-list, .project-list, .blog-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.usp-item, .project-item, .blog-summary {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(38,70,83,0.07);
  padding: 24px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.usp-item:hover, .project-item:hover, .blog-summary:hover {
  box-shadow: 0 6px 24px 0 rgba(38,70,83,0.13), 0 2px 10px 0 rgba(76,144,117,0.06);
  transform: translateY(-3px) scale(1.03);
}
.usp-item img, .project-item img, .blog-summary img {
  width: 36px; height: 36px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(76,144,117,0.11);
  color: #222;
  min-width: 250px;
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #232323;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #4C9075;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0;
  letter-spacing: 0.01em;
}

/* Process, FAQ, Service cards */
.service-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(233,196,106,0.09);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 230px;
  max-width: 350px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-section:hover {
  box-shadow: 0 8px 32px 0 rgba(233,196,106,0.16);
  transform: translateY(-4px) scale(1.04);
}
.service-section img { width: 36px; height: 36px; }
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E9C46A;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 4px;
}
.faq-item {
  padding: 20px;
  border-radius: 12px;
  background: #f8f8fc;
  color: #264653;
  margin-bottom: 24px;
  box-shadow: 0 0.5px 3px 0 rgba(38,70,83,0.08);
}
.faq-item strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Spacing helpers */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px !important; }

/* CTA Button & Interactions */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #4C9075 0%, #264653 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(38,70,83,0.09);
  transition: background 0.22s, box-shadow 0.22s, transform 0.16s;
  cursor: pointer;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #E9C46A 0%, #4C9075 100%);
  color: #264653;
  box-shadow: 0 8px 28px 0 rgba(76,144,117,0.15);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* Header and Navigation */
header {
  background: linear-gradient(90deg, #E9C46A 0%, #fff 100%);
  border-bottom: 1.5px solid #f3efe3;
  padding: 0;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 38px; transition: filter 0.2s; }
.logo:hover img, .logo:focus img {
  filter: brightness(0.92) saturate(1.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #264653;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s, transform 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #4C9075;
  color: #fff;
  transform: translateY(-1.5px);
}

/* Hide mobile burger menu by default (shown in mobile below) */
.mobile-menu-toggle {
  display: none;
}

/* Mobile menu overlay + slide panel */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,70,83,0.94);
  z-index: 10009;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 26px;
  padding-left: 0;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.75,0.05,0.25,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  padding: 15px 24px 15px 24px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E9C46A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
  margin-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E9C46A;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0 10px 6px;
  border-radius: 8px 0 0 8px;
  transition: background 0.15s, color 0.18s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #4C9075;
}

/* Footer */
footer {
  background: linear-gradient(90deg,#264653 0%,#4C9075 100%);
  color: #fff;
  margin-top: 60px;
  padding: 36px 0 16px 0;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-navigation nav, .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-navigation a, .footer-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-navigation a:hover, .footer-menu a:hover, .footer-navigation a:focus, .footer-menu a:focus {
  color: #E9C46A;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}
.footer-branding img { height: 34px; }
.copyright {
  color: #E9C46A;
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* Miscellaneous */
img { max-width: 100%; height: auto; display: block; }
label { font-weight: 600; font-size: 1rem; color: #264653; }
select, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border: 1.5px solid #E9C46A;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 16px;
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid #4C9075;
  border-color: #4C9075;
}

/* Contact details */
.contact-details {
  margin: 24px 0 0 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(38,70,83,0.07);
  padding: 24px 24px 18px 24px;
  color: #264653;
  font-size: 1.08rem;
  line-height: 1.75;
}
.contact-details a { color: #4C9075; word-break: break-all; }
.contact-details a:hover { color: #E9C46A; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 24px 16px 17px 16px;
  background: #264653;
  color: #fff;
  z-index: 11000;
  box-shadow: 0 -5px 17px 0 rgba(38,70,83,0.19);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 20px;
  font-size: 1rem;
  transition: transform 0.40s cubic-bezier(0.8,0.18,0.24,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  appearance: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  cursor: pointer;
  background: #E9C46A;
  color: #264653;
  box-shadow: 0 2px 8px rgba(233,196,106,0.14);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  transition: background 0.15s, color 0.14s, transform 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #4C9075;
  transform: translateY(-2px) scale(1.07);
}
.cookie-banner .cookie-settings-btn {
  background: #4C9075;
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #E9C46A;
  color: #264653;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 11100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,70,83,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.24s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #264653;
  border-radius: 18px;
  box-shadow: 0 12px 44px 0 rgba(38,70,83,0.23);
  padding: 40px 34px 34px 34px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 11200;
  animation: modalIn 0.33s cubic-bezier(0.77,0,0.175,1);
}
@keyframes modalIn {
  0% { transform: scale(0.85) translateY(110px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 14px;
  color: #264653;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 10px 0;
  border-bottom: 1px solid #E9C46A;
  width: 100%;
  font-size: 1.09rem;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-category label {
  margin-bottom: 0;
  font-weight: 500;
  color: #264653;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #4C9075;
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category .always-on {
  color: #4C9075;
  font-size: 0.97rem;
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 26px;
  display: flex;
  gap: 20px;
}
.cookie-modal .cookie-modal-actions button {
  background: #E9C46A;
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 30px;
  border: none;
  padding: 11px 26px;
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 2px 9px 0 rgba(233,196,106,0.12);
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: #264653;
  color: #fff;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  align-self: flex-end;
  top: 15px; right: 20px;
  background: none;
  border: none;
  color: #264653;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #E9C46A;
}

/* ---------------------------------------------
   Responsive Design (Mobile-first)
--------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 820px;
  }
  .footer-menu {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav { display: none; }
  .cta-button { font-size: 1rem; padding: 13px 24px; }
  .logo img { height: 32px; }
  .mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #264653;
    padding: 8px 17px;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    z-index: 10010;
    transition: color 0.18s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: #E9C46A;
  }
  header .container {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .content-wrapper, .section, .card-container, .usp-list, .project-list, .blog-summary-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .project-item, .service-section, .blog-summary, .usp-item {
    min-width: 0;
    max-width: 95vw;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 98vw;
    padding: 16px 7vw;
    font-size: 1rem;
  }
  .footer-branding {
    min-width: 100px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-navigation nav, .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 28px 7vw 14px 7vw;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.05rem; }
  .section, .content-wrapper { padding-left: 0; padding-right: 0; }
  .cookie-modal { padding: 16px 4vw 10px 4vw; }
}

/* ---------------------------------------------
   Print adjustments (minimal)
--------------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { padding: 0; max-width: 100vw; }
  body { background: #fff; }
}

/* ---------------------------------------------
   Animations & Effects
--------------------------------------------- */
.card, .feature-item, .project-item, .usp-item, .service-section, .testimonial-card, .blog-summary {
  transition: box-shadow 0.21s, transform 0.16s;
}
.card:hover, .feature-item:hover, .project-item:hover, .usp-item:hover, .service-section:hover, .testimonial-card:hover, .blog-summary:hover {
  box-shadow: 0 9px 32px 0 rgba(76,144,117,0.15);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/* Ensure minimum 20px margin between content cards/sections (enforced above) */

/* No CSS Grid or Columns anywhere (fully flex) */
/* Layout spacing above enforced consistently on .card-container, .section, .content-grid, etc. */
