/* --- CSS RESET & BASE TYPOGRAPHY --- */
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;
  box-sizing: border-box;
  vertical-align: baseline;
  font: inherit;
  background: transparent;
}
html { 
  box-sizing: border-box; 
  scroll-behavior: smooth;
}
*, *::before, *::after { 
  box-sizing: inherit;
}
a { 
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol { list-style-position: inside; }
img { display: block; max-width: 100%; height: auto; }

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #F8F9FA;
  color: #32475B;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #F8F9FA;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #263347;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
  font-weight: 500;
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Roboto', 'Georgia', serif;
  color: #32475B;
  font-size: 1rem;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.2rem;
  font-family: 'Georgia', serif;
  color: #556276;
  margin-bottom: 24px;
}
strong { font-weight: 700; color: #2B3B4E; }

/* --- CONTAINERS & LAYOUT --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FLEXBOX LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(50,71,91,0.05), 0 1.5px 6px 0 rgba(50,71,91,0.04);
  transition: box-shadow .3s;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border: 1px solid #E6EDF3;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(50,71,91,0.06);
  position: relative;
  transition: box-shadow .3s, transform .2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(50,71,91,0.10);
  transform: translateY(-4px) scale(1.012);
}
.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;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: #F7FAFC;
  border: 1px solid #E6EDF3;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(50,71,91,0.04);
  min-width: 260px;
  max-width: 420px;
  color: #28364A;
}
.testimonial-card strong {
  font-size: 1.05rem;
  color: #2B3B4E;
  font-weight: 600;
  margin-bottom: 6px;
}
.testimonial-card p {
  color: #3D495C;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #F2CD5C;
  font-size: 1.15em;
  letter-spacing: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- LISTS --- */
.feature-grid, .service-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 0 0 20px 0;
}
.feature-grid li, .service-list li, .article-list li {
  flex: 1 1 320px;
  background: #FAFBFD;
  border-radius: 12px;
  border: 1px solid #E6EDF3;
  padding: 28px 22px;
  min-width: 250px;
  max-width: 370px;
  box-shadow: 0 1px 4px 0 rgba(50,71,91,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .26s, transform .18s;
  margin-bottom: 20px;
}
.feature-grid li:hover, .service-list li:hover, .article-list li:hover {
  box-shadow: 0 6px 24px 0 rgba(50,71,91,0.11);
  transform: translateY(-3px) scale(1.008);
}
.feature-grid img, .service-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

/* --- BUTTONS & CALL-TO-ACTIONS --- */
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #32475B;
  color: #fff;
  font-family: 'Georgia', serif;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: 0 1.5px 6px rgba(50,71,91,0.09);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background .22s, color .16s, transform .18s, box-shadow .22s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #28364A;
  color: #F2CD5C;
  box-shadow: 0 2px 18px 0 rgba(50,71,91,0.15);
  transform: scale(1.03);
  outline: none;
}
.cta.secondary {
  background: #D3E6F5;
  color: #32475B;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  margin: 8px 0;
  transition: background .19s, color .14s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #F2CD5C;
  color: #32475B;
}

/* --- NAVIGATION --- */
header {
  background: #FFFFFF;
  box-shadow: 0 1px 12px 0 rgba(46,63,85,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  min-height: 72px;
  gap: 0;
}
header nav a {
  font-size: 1rem;
  color: #32475B;
  font-family: 'Georgia', serif;
  font-weight: 500;
  margin-right: 28px;
  transition: color .19s;
  position: relative;
}
header nav a:last-child {
  margin-right: 0;
}
header nav a.cta.primary {
  margin-left: auto;
  margin-right: 0;
  padding: 10px 24px;
  font-size: 1rem;
}
header nav a:not(.cta):hover, header nav a:not(.cta):focus {
  color: #F2CD5C;
}
header nav img {
  margin-right: 32px;
  height: 36px;
  width: auto;
  display: block;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 24px;
  background: #32475B;
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 1.38rem;
  cursor: pointer;
  z-index: 112;
  transition: box-shadow 0.18s, background .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #28364A;
  box-shadow: 0 2px 12px 0 rgba(50,71,91,0.17);
  color: #F2CD5C;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(250,250,252,0.975);
  box-shadow: -8px 0 20px 0 rgba(41,53,86,0.12);
  z-index: 111;
  transition: transform .43s cubic-bezier(.85,.01,.25,1), right .32s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
  transition: transform .36s cubic-bezier(.85,.01,.25,1);
}
.mobile-menu-close {
  background: #32475B;
  color: #fff;
  border: none;
  font-size: 1.58rem;
  margin: 25px 25px 0 0;
  border-radius: 6px;
  padding: 6px 13px;
  cursor: pointer;
  transition: background .16s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2CD5C;
  color: #32475B;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 36px;
  padding: 6px 36px;
  gap: 14px;
}
.mobile-nav a {
  font-size: 1.20rem;
  color: #32475B;
  padding: 14px 0;
  border-bottom: 1px solid #E6EDF3;
  font-family: 'Georgia', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color .19s, background .21s;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F2CD5C;
  background: #eae2be;
}

/* --- FEATURED POST, TAGS --- */
.featured-post {
  padding: 20px 26px;
  border-radius: 10px;
  background: #FFFDEE;
  border-left: 5px solid #F2CD5C;
  box-shadow: 0 1px 6px 0 rgba(242, 205, 92, 0.09);
  margin: 18px 0 22px 0;
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.category-tags span {
  background: #E6EDF3;
  color: #32475B;
  border-radius: 18px;
  padding: 7px 18px;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  font-weight: 500;
}

/* --- LOCATION MAP (Kontakt) --- */
.location-map img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 8px 24px -8px #32475B25;
  border: 3px solid #F2CD5C;
  margin-top: 8px;
}

/* --- FOOTER --- */
footer {
  background: #32475B;
  color: #fff;
  padding: 36px 0 8px 0;
  margin-top: 48px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  font-weight: 500;
  transition: color .16s;
}
footer nav a:hover, footer nav a:focus {
  color: #F2CD5C;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #D3E6F5;
  opacity: 0.93;
}
.footer-branding img {
  height: 33px;
  width: auto;
  margin-bottom: 3px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FAF8F4;
  color: #32475B;
  border-top: 2px solid #F2CD5C;
  box-shadow: 0 -3px 28px 0 rgba(50,71,91,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  z-index: 120;
  font-family: 'Georgia', serif;
  gap: 18px;
  transition: transform .35s, opacity .26s;
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.6;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-consent-banner button {
  font-family: 'Georgia', serif;
  border: none;
  border-radius: 5px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  background: #32475B;
  color: #fff;
  box-shadow: 0 1px 4px 0 rgba(50,71,91,0.07);
  cursor: pointer;
  margin-right: 0;
  transition: background .16s, color .16s, transform .13s;
}
.cookie-consent-banner button.accept {
  background: #32475B;
  color: #fff;
}
.cookie-consent-banner button.accept:hover, .cookie-consent-banner button.accept:focus {
  background: #2B3B4E;
  color: #F2CD5C;
}
.cookie-consent-banner button.reject {
  background: #fff;
  border: 1px solid #E6EDF3;
  color: #32475B;
}
.cookie-consent-banner button.reject:hover, .cookie-consent-banner button.reject:focus {
  background: #F7FAFC;
  color: #32475B;
  outline: none;
}
.cookie-consent-banner button.settings {
  background: #D3E6F5;
  color: #32475B;
}
.cookie-consent-banner button.settings:hover, .cookie-consent-banner button.settings:focus {
  background: #F2CD5C;
  color: #32475B;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: rgba(50, 71, 91, 0.15);
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s;
}
.cookie-modal {
  background: #FFF;
  color: #32475B;
  border-radius: 14px;
  box-shadow: 0 6px 28px 0 rgba(46,63,85,0.16);
  padding: 36px 32px 28px 32px;
  min-width: 310px;
  max-width: 95vw;
  font-family: 'Georgia', serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.38rem;
  color: #32475B;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #F2CD5C;
  outline: none;
}
.cookie-modal h3 {
  margin-top: 12px;
  font-size: 1.3rem;
  color: #2B3B4E;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  padding: 8px 0;
  line-height: 1.4;
}
.cookie-toggle {
  width: 38px; height: 21px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E6EDF3;
  border-radius: 12px;
  transition: background .18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #F2CD5C;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 15px; width: 15px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(50,71,91,0.04);
  transition: transform .18s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(17px);
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.62;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-actions button {
  font-family: 'Georgia', serif;
  border: none;
  border-radius: 5px;
  padding: 9px 25px;
  font-size: 1rem;
  font-weight: 600;
  background: #32475B;
  color: #fff;
  box-shadow: 0 1px 4px 0 rgba(50,71,91,0.09);
  cursor: pointer;
  margin-right: 0;
  transition: background .16s, color .16s;
}
.cookie-modal .cookie-modal-actions button.accept {
  background: #32475B;
  color: #fff;
}
.cookie-modal .cookie-modal-actions button.accept:hover, .cookie-modal .cookie-modal-actions button.accept:focus {
  background: #2B3B4E;
  color: #F2CD5C;
}
.cookie-modal .cookie-modal-actions button.reject {
  background: #fff;
  border: 1px solid #E6EDF3;
  color: #32475B;
}
.cookie-modal .cookie-modal-actions button.reject:hover, .cookie-modal .cookie-modal-actions button.reject:focus {
  background: #F7FAFC;
  color: #32475B;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
  .container { max-width: 94vw; }
}
@media (max-width: 1020px) {
  .feature-grid li, .service-list li { max-width: 95vw; }
  .section { padding: 34px 6vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 32px 3vw; }
}
@media (max-width: 768px) {
  .section { margin-bottom: 36px; padding: 26px 6vw; }
  .container { padding-left: 11px; padding-right: 11px; }
  .feature-grid, .service-list, .article-list, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-grid li, .service-list li, .article-list li {
    min-width: 0; max-width: 100%;
    margin-right: 0;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    padding: 18px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.36rem;
    line-height: 1.19;
    margin-bottom: 12px;
  }
  h2 { font-size: 1.04rem; margin-bottom: 14px; }
  h3 { font-size: 1rem; margin-bottom: 8px; }
  .section { padding: 17px 3vw; border-radius: 8px; }
  .footer-branding {
    font-size: 0.93rem;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 13px;
  }
  .cookie-modal {
    padding: 17px 8px 13px 8px;
    min-width: 0;
  }
}

/* --- UTILITY CLASSES --- */
.hide-mobile { display: block; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

.hide-desktop { display: none; }
@media (max-width: 768px) {
  .hide-desktop { display: block !important; }
}

/* --- MISC --- */
address {
  font-style: normal;
  color: #3D495C;
}
::-webkit-input-placeholder { color: #B1BCCB; }
::-moz-placeholder { color: #B1BCCB; }
:-ms-input-placeholder { color: #B1BCCB; }
::placeholder { color: #B1BCCB; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(15px); }
  90% { opacity: .92; }
  100% { opacity: 1; transform: translateY(0); }
}
.section, .testimonial-card, .card, .cookie-consent-banner, .cookie-modal {
  animation: fadeInUp .74s cubic-bezier(.12,.54,.63,1.14) both;
  will-change: opacity, transform;
}

/* --- LINK and BUTTON FOCUS --- */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #F2CD5C;
  outline-offset: 2px;
}

/* --- CUSTOM SCROLLBAR --- */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 8px; background: #E6EDF3; }
  ::-webkit-scrollbar-thumb { background: #D3E6F5; border-radius: 5px; }
}
