/* --- CSS RESET & BASE TYPOGRAPHY --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #193148;
  background: #F6F7F9;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #193148;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  margin-left: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #193148;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.375rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1rem; }
p, li {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { font-weight: 700; color: #193148; }
em { color: #193148; font-style: italic; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- LAYOUT SECTIONS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.accent-bg {
  background: linear-gradient(120deg, #f6f7f9 0%, #e4eadf 95%);
}

/* --- HEADER AND NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(25,49,72,0.06);
  z-index: 20;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 18px 18px;
}
header img {
  height: 45px;
  margin-right: 32px;
}
nav.main-navigation {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.main-navigation a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  color: #193148;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom-color 0.2s;
}
nav.main-navigation a:hover, nav.main-navigation a:focus {
  color: #9EC1A3;
  border-bottom: 2px solid #9EC1A3;
}

.cta-primary {
  background: linear-gradient(85deg, #9ec1a3 0%, #193148 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.075rem;
  padding: 12px 32px;
  border-radius: 26px;
  box-shadow: 0 2px 16px rgba(25,49,72,0.09);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.22s, transform 0.19s;
  margin-left: 32px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(85deg, #193148 0%, #9ec1a3 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(25,49,72,0.15);
  transform: translateY(-2px) scale(1.01);
}
.cta-secondary {
  background: transparent;
  border: 2px solid #193148;
  color: #193148 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 24px;
  transition: background 0.2s, color 0.2s, border-color 0.16s;
  margin-top: 10px;
  margin-bottom: 2px;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #9EC1A3;
  color: #fff !important;
  border-color: #9EC1A3;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #193148;
  margin-left: 20px;
  cursor: pointer;
  z-index: 34;
  align-items: center;
  height: 48px;
  width: 48px;
  transition: color .2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #9ec1a3;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(101deg, #F6F7F9 70%, #9EC1A3 100%);
  box-shadow: 0 8px 24px rgba(25,49,72,0.15);
  z-index: 999;
  transform: translateX(-110vw);
  transition: transform 0.37s cubic-bezier(.6,.04,.29,.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 28px 16px 28px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #193148;
  margin-bottom: 32px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #9EC1A3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.29rem;
  padding: 14px 0 10px 0;
  color: #193148;
  border-bottom: 2px solid transparent;
  transition: color 0.19s, border-bottom-color 0.17s;
  width: 100%;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #9EC1A3;
  border-bottom: 2px solid #9EC1A3;
}

/* Hide navigation/show hamburger on mobile */
@media (max-width: 1024px) {
  nav.main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 1024px) {
  .cta-primary {
    margin-left: 0;
  }
}

/* --- FOOTER --- */
footer {
  background: #193148;
  color: #fff;
  padding: 42px 0px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
footer img {
  height: 40px;
}
footer nav.footer-navigation, footer nav.legal-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav.footer-navigation a, footer nav.legal-navigation a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.92;
  transition: color 0.15s;
}
footer nav.footer-navigation a:hover, footer nav.legal-navigation a:hover {
  color: #9EC1A3;
}
.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-icons img {
  height: 28px;
  width: 28px;
  opacity: 0.86;
  transition: opacity 0.17s, transform 0.12s;
  cursor: pointer;
}
.social-icons img:hover { opacity: 1; transform: scale(1.09); }

@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* --- HERO SECTION --- */
.hero, .exhibitions-hero, .kuenstler-hero, .workshop-hero, .thank-you-section {
  background: linear-gradient(108deg, #9EC1A3 0%, #f6f7f9 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 60px;
}
.hero h1, .hero p, .exhibitions-hero h1, .kuenstler-hero h1, .workshop-hero h1 {
  color: #193148;
}
.hero .cta-primary {
  margin-top: 24px;
}

/* --- FEATURES, CARDS, ACCENTS --- */
.gallery-features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 12px 0;
  justify-content: flex-start;
}
.gallery-features .feature-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 20px 0 rgba(25,49,72,0.07);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.12s;
}
.gallery-features .feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(25,49,72,0.13);
  transform: translateY(-3px) scale(1.015);
}
.gallery-features img {
  height: 40px;
  margin-bottom: 4px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(25,49,72,0.07);
  padding: 24px 20px;
  flex: 1 1 300px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.about-snippet, .about-section, .team-section, .philosophy-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(25,49,72,0.04);
  margin-bottom: 60px;
  padding: 40px 18px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 0;
}

/* --- TESTIMONIALS --- */
.testimonials, .testimonial-list {
  width: 100%;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 22px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(25,49,72,0.10);
  max-width: 390px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 3px rgba(25,49,72,0.15);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #193148;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #9EC1A3;
  font-weight: 600;
  font-size: 1rem;
}

/* --- DYANMIC ACCENT BG ON CTA --- */
.cta-section {
  background: linear-gradient(110deg, #f6f7f9 60%, #9EC1A3 100%);
  padding: 40px 0 40px 0;
  margin-bottom: 60px;
  border-radius: 18px;
}

/* --- UTILITIES & GENERIC CLASSES --- */
.accent {
  color: #9EC1A3;
}
.text-center {
  text-align: center;
}
.align-center {
  align-items: center;
  justify-content: center;
}

/* --- CONTACT SECTION --- */
.contact-section ul, .contact-form-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: #193148;
}
.contact-section li img {
  height: 22px;
  width: 22px;
}

.contact-form-section a.cta-primary {
  margin-top: 14px;
  margin-bottom: 10px;
}

/* --- COOKIE BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 24px rgba(25,49,72,0.13);
  z-index: 10001;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 22px 30px;
  font-size: 1rem;
  transition: transform 0.23s ease, opacity 0.16s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-consent-banner button, .cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px 18px;
  transition: background .16s, color .15s;
}
.cookie-consent-banner .accept {
  background: #9EC1A3;
  color: #fff;
  font-weight: 600;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #193148;
  color: #fff;
}
.cookie-consent-banner .reject {
  background: #f6f7f9;
  color: #193148;
  font-weight: 500;
  border: 1.5px solid #193148;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: #193148;
  color: #fff;
}
.cookie-consent-banner .settings {
  background: #fff;
  color: #193148;
  font-weight: 500;
  border: 1.5px solid #9EC1A3;
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: #9EC1A3;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 10010;
  left: 0; top: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(25,49,72,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  max-width: 430px;
  width: 100%;
  padding: 32px 30px 32px 30px;
  box-shadow: 0 12px 52px rgba(25,49,72,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.cookie-modal-content h3 {
  margin-bottom: 0px;
  font-size: 1.175rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-category label {
  font-size: 1rem;
  color: #193148;
}
.switch {
  position: relative;
  width: 48px;
  height: 24px;
  display: inline-block;
}
.switch input { display:none; }
.slider {
  cursor: pointer;
  background: #9ec1a3;
  border-radius: 24px;
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background .17s;
}
.slider:before {
  content: "";
  position: absolute;
  left: 5px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.16s;
}
input:checked + .slider {
  background: #193148;
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #193148;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 36px;
  cursor: pointer;
  opacity: .74;
}
.cookie-modal .modal-close:hover {
  color: #9ec1a3;
  opacity: 1;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .feature-grid, .testimonial-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .gallery-features .feature-grid > div {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section, .about-snippet, .about-section, .team-section, .philosophy-section,
  .cta-section {
    padding: 22px 7px;
    margin-bottom: 36px;
  }
  .hero, .exhibitions-hero, .kuenstler-hero, .workshop-hero, .thank-you-section {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  .container {
    padding: 0 7px;
  }
  .gallery-features .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 14px 7px;
  }
  footer {
    padding: 26px 0px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 10px;
  }
  .cookie-modal-content {
    padding: 18px 10px 18px 10px;
  }
}

/* --- FORM ELEMENTS & BUTTONS --- */
button, input[type="submit"], .cta-primary {
  outline: none;
}
input, textarea, select {
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #e4eadf;
  background: #fff;
  padding: 9px 13px;
  color: #193148;
  margin-bottom: 14px;
  transition: border-color 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9EC1A3;
  outline: none;
}
::-webkit-input-placeholder { color: #a9b8c3; }
::-moz-placeholder { color: #a9b8c3; }
:-ms-input-placeholder { color: #a9b8c3; }
::placeholder { color: #a9b8c3; }

/* --- CARDS FOR ARTISTS, EVENTS, ETC. --- */
.artist-overview ul, .event-highlights ul, .exhibition-list ul, .workshop-offer ul, .usp-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.event-highlights img {
  height: 19px;
  width: 19px;
}
.focus-artist, .event-highlights {
  margin-top: 16px;
  border-radius: 12px;
  background: #F6F7F9;
  box-shadow: 0 1px 8px rgba(25,49,72,0.045);
  padding: 18px 14px;
}

/* --- LEGAL AND INFO PAGES --- */
.datenschutz-section, .gdpr-section, .cookie-section, .terms-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(25,49,72,0.04);
  padding: 42px 24px 38px 24px;
  margin-bottom: 48px;
}
.datenschutz-section h1, .gdpr-section h1, .cookie-section h1, .terms-section h1 {
  margin-bottom: 26px;
}
.datenschutz-section ul, .gdpr-section ul, .cookie-section ul, .terms-section ul {
  margin-left: 10px;
  margin-bottom: 22px;
}
.datenschutz-section li, .gdpr-section li, .cookie-section li, .terms-section li {
  margin-bottom: 6px;
  font-size: 1rem;
}

@media (max-width: 650px) {
  .datenschutz-section, .gdpr-section, .cookie-section, .terms-section {
    border-radius: 12px;
    padding: 22px 6px 18px 6px;
    margin-bottom: 24px;
  }
}

/* --- ACCESSIBILITY & INTERACTIONS --- */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid #9EC1A3;
  outline-offset: 2.5px;
  border-radius: 4px;
}

/* --- TRANSITIONS & EFFECTS FOR CONTEMPORARY FEEL --- */
.section, .about-snippet, .about-section, .team-section, .philosophy-section {
  transition: box-shadow 0.22s;
}
.section:hover, .about-snippet:hover, .about-section:hover,
.team-section:hover, .philosophy-section:hover {
  box-shadow: 0 6px 30px rgba(25,49,72,0.08);
}

/* --- FONT FA LLBACKS/INJECT --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Montserrat Bold'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm45_dJE3gnD-w.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Montserrat Medium'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm459W1AZY.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Source Sans Pro'), url('https://fonts.gstatic.com/s/sourcesanspro/v21/6xK3dSBYKcSV-LCoeQqfX1RYOo3i54r0.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Source Sans Pro SemiBold'), url('https://fonts.gstatic.com/s/sourcesanspro/v21/6xK3dSBYKcSV-LCoeQqfX1RYOo3i54r0.ttf') format('truetype');
}

/* --- Z-INDEX FOR OVERLAYS --- */
header { z-index: 3; }
.mobile-menu { z-index: 999; }
.cookie-consent-banner { z-index: 10001; }
.cookie-modal { z-index: 10010; }

/* --- MINIMUM GAPS ALWAYS --- */
.section, .about-snippet, .about-section, .team-section, .philosophy-section, .cta-section, .workshop-offer, .usp-section, .exhibition-list, .artist-overview, .exhibitions-preview, .gallery-features, .contact-section, .contact-form-section {
  margin-bottom: 60px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.card, .testimonial-card, .gallery-features .feature-grid > div {
  margin-bottom: 20px;
}
.card-container, .testimonial-list, .feature-grid, .content-grid {
  gap: 24px;
}
/* End of comprehensive gradient_modern CSS for Artiffisce Galerie Passau */
