/* ===== CSS RESET & BASE ===== */
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;
}

/* 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: linear-gradient(135deg, #E8B021 0%, #ffffff 50%, #174880 100%);
  min-height: 100vh;
  color: #174880;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  font-size: 16px;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #174880;
  text-decoration: underline;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E8B021;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #E8B021;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.93);
  border-radius: 24px;
  box-shadow: 0 4px 28px rgba(23,72,128,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== TYPOGRAPHY SCALE ========== */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #174880;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #174880;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #174880;
  margin-bottom: 8px;
}
p, ul, ol, address {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #174880;
  margin-bottom: 10px;
}
address {
  font-style: normal;
  color: #174880;
}

/* ========== HEADER NAVIGATION ========== */
header {
  width: 100%;
  background: linear-gradient(90deg, #174880 0%, #E8B021 90%);
  box-shadow: 0 3px 12px 0 rgba(23,72,128,0.055);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
.logo img {
  height: 48px;
}

.main-navigation {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-navigation a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation a:focus {
  color: #E8B021;
}

.cta-button {
  background: linear-gradient(90deg,#E8B021 60%,#f3cf69 100%);
  color: #174880;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 26px;
  border-radius: 32px;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 18px 0 rgba(232,176,33,0.13);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  text-decoration: none;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #174880;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(23,72,128,0.13);
}

/* ======= HERO ======= */
section.hero {
  background: linear-gradient(120deg, #E8B021 10%, #FFF 80%, #174880 100%);
  padding: 72px 0 48px 0;
  border-radius: 0 0 36px 36px;
  margin-bottom: 40px;
  box-shadow: 0 10px 46px 0 rgba(23,72,128,0.07);
  display: flex;
}
section.hero .container {
  min-height: 180px;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 720px;
}
.hero h1, .hero p {
  color: #174880;
}
.hero .cta-button {
  margin-top: 16px;
}

/* ======= FLEX PATTERNS MANDATORY ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(23,72,128,0.09);
  padding: 24px;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(23,72,128,0.11);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 540px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: #174880;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card span {
  font-weight: 600;
  color: #174880;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(23,72,128,0.16);
  transform: translateY(-4px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== CUSTOM PATTERNS BY PAGE ====== */
/* Features grid (index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.feature-grid li {
  background: #fff;
  box-shadow: 0px 4px 20px 0 rgba(23,72,128,0.09);
  border-radius: 18px;
  padding: 24px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 36px 0 rgba(23,72,128,0.13);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

/* Services cards (index, dienstleistungen) */
.service-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.service-list li, .service-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(23,72,128,0.08);
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.service-list li:hover, .service-grid > div:hover {
  box-shadow: 0 6px 28px 0 rgba(23,72,128,0.13);
  transform: translateY(-3px) scale(1.01);
}
.price, .service-list li span, .service-grid > div span {
  font-weight: 700;
  color: #E8B021;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
}
.service-cta {
  margin-top: 10px;
  color: #174880;
  background: #E8B021;
  border-radius: 24px;
  padding: 8px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
  display: inline-block;
}
.service-cta:hover, .service-cta:focus {
  background: #174880;
  color: #FFF;
}

/* USP grid (about page) */
.usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.usp-grid li {
  background: #fff;
  color: #174880;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,72,128,0.09);
  padding: 20px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 300px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
}

/* CONTACT BOX (kontakt) */
.contact-box {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,72,128,0.11);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  min-width: 230px;
  max-width: 480px;
}
.map-placeholder {
  background: repeating-linear-gradient(45deg,#E8B021 0 6px,#FFF 6px 12px);
  height: 100px;
  border-radius: 12px;
  margin-top: 8px;
}

/* EVENT TEASERS (festkalender) */
.event-teasers {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 14px 0 rgba(23,72,128,0.09);
  padding: 18px 14px;
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: 1.04rem;
  color: #174880;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg,#174880 0%,#E8B021 90%);
  color: #fff;
  margin-top: 80px;
  padding: 28px 0 12px 0;
  width: 100%;
  box-shadow: 0 -2px 22px 0 rgba(23,72,128,0.04);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-navigation a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: none;
  padding: 6px 0;
  opacity: 0.92;
  transition: color 0.2s, opacity 0.18s;
}
.footer-navigation a:hover,.footer-navigation a:focus {
  color: #E8B021;
  opacity: 1;
}
.contact-footer {
  font-size: 0.99rem;
  color: #fff;
  opacity: 0.89;
  margin-bottom: 8px;
  line-height: 1.6;
}
.contact-footer a { color: #fff; text-decoration: underline; }
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
  opacity: 0.93;
}
.footer-social img {
  height: 32px;
}

/* ============= MOBILE NAVIGATION ============= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 12px;
  cursor: pointer;
  z-index: 2020;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #E8B021;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 85vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  color: #174880;
  box-shadow: -4px 0 38px 0 rgba(23,72,128,0.21);
  transition: transform 0.35s cubic-bezier(.85,0,.15,1), right 0.25s;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 2050;
  transform: translateX(100vw);
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #174880;
  margin: 22px 22px 0 0;
  cursor: pointer;
  z-index: 3002;
  transition: color 0.19s;
}
.mobile-menu-close:focus {
  outline: 2px solid #E8B021;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 32px 36px 24px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #174880;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.18s, background 0.15s;
  padding: 9px 4px 9px 0;
  border-radius: 6px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E8B021;
  color: #fff;
}
@media (max-width: 1024px) {
  .main-navigation {
    gap: 16px;
  }
}
@media (max-width: 920px) {
  .main-navigation {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
  }
  .main-navigation {
    gap:4px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
  }
  .main-navigation {
    display: none;
  }
  .cta-button {
    padding: 10px 16px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ============= COOKIE CONSENT BANNER & MODAL ============= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #174880;
  color: #fff;
  z-index: 3000;
  box-shadow: 0 -2px 24px 0 rgba(23,72,128,0.15);
  padding: 22px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.75,0,0.25,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 4px;
  font-size: 0.98rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  padding: 7px 18px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  outline: none;
}
.cookie-banner .accept {
  background: #E8B021;
  color: #174880;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
  color: #174880;
}
.cookie-banner .reject {
  background: #fff;
  color: #174880;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E8B021;
  color: #174880;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #E8B021;
  color: #174880;
  border-color: #E8B021;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,72,128,0.15);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 38px 0 rgba(23,72,128,0.18);
  padding: 34px 30px 22px 30px;
  width: 92vw;
  max-width: 402px;
  color: #174880;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h2 {
  color: #174880;
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-switch {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
.cookie-modal input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e9e9ef;
  border-radius: 22px;
  position: relative;
  outline: none;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal input[type="checkbox"]:checked {
  background: #E8B021;
}
.cookie-modal input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s;
}
.cookie-modal input[type="checkbox"]:checked:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-save {
  background: #E8B021;
  color: #174880;
  border-radius: 22px;
  padding: 7px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal .cookie-modal-save:hover, .cookie-modal .cookie-modal-save:focus {
  background: #174880;
  color: #fff;
}
.cookie-modal .cookie-modal-cancel {
  background: #fff;
  color: #174880;
  border-radius: 22px;
  border: 1.5px solid #174880;
  padding: 7px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.17s;
}
.cookie-modal .cookie-modal-cancel:hover, .cookie-modal .cookie-modal-cancel:focus {
  background: #E8B021;
  color: #174880;
  border-color: #E8B021;
}

/* ======= BASIC RESPONSIVE ======= */
@media (max-width: 1000px) {
  .feature-grid, .service-list, .service-grid, .usp-grid {
    gap: 10px;
  }
  .feature-grid li, .service-list li, .service-grid > div, .usp-grid li {
    min-width: 180px;
    max-width: 260px;
    padding: 18px 11px;
  }
}
@media (max-width:820px) {
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  section.hero {
    padding: 56px 0 32px 0;
  }
  h1, .hero h1 {
    font-size: 2.1rem;
  }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero .content-wrapper {
    gap: 16px;
    max-width: 99vw;
  }
  .feature-grid, .service-list, .service-grid, .usp-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li, .service-list li, .service-grid > div, .usp-grid li {
    min-width: 90vw;
    max-width: 100vw;
    padding: 13px 7px;
  }
  section.hero {
    border-radius: 0 0 22px 22px;
    padding-top: 36px;
    padding-bottom: 18px;
  }
  .testimonial-card {
    min-width: 150px;
    max-width: 100vw;
    padding: 12px 6vw;
  }
  .section {
    padding: 22px 0px;
    margin-bottom: 30px;
    border-radius: 14px;
  }
  .contact-box {
    min-width: 0;
    padding: 12px 7px;
  }
  .footer-social img {
    height: 22px;
  }
  .map-placeholder {
    height: 64px;
    border-radius: 8px;
  }
  .event-teasers {
    padding: 10px 4px;
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* Smooth transitions */
.card, .testimonial-card, .feature-grid li, .service-list li, .service-grid > div, .section, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.2s, transform 0.15s, background 0.14s, color 0.13s;
}

::-webkit-scrollbar {
  width: 8px; background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #E8B021; border-radius: 12px;
}

/* ========== PRINT STYLES (for data pages) ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section, .container { box-shadow: none !important; }
  body { background: #fff !important; color: #000; }
}
