/* ===============================
   CSS RESET & BASE STYLES
   =============================== */
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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F7F7;
  color: #314455;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}

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

/* ===============================
   COLOR VARIABLES (with fallbacks)
   =============================== */
:root {
  --color-primary: #314455;
  --color-secondary: #F7F7F7;
  --color-accent: #F89C1F;
  --color-dark: #22303a;
  --color-light: #fff;
  --color-grey: #e0e4ea;
}

/* ===============================
   CONTAINERS & GLOBAL SPACING
   =============================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 20px 0 rgba(49,68,85,0.04), 0 2px 8px 0 rgba(248,156,31,0.04);
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 10px;
    border-radius: 18px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
  line-height: 1.15;
  color: var(--color-accent);
  text-shadow: 0 2px 18px rgba(248,156,31,0.10);
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.18;
  color: var(--color-primary);
  position: relative;
}
h2:after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 8px;
  background: var(--color-accent);
  border-radius: 2px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}
.subheadline {
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1.35;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 18px;
  max-width: 700px;
}
strong {
  font-weight: 700;
  color: var(--color-accent);
}
.text-section {
  font-size: 1.11rem;
  color: var(--color-dark);
  letter-spacing: 0.15px;
}
p {
  margin-bottom: 10px;
}
.text-section ul, .text-section ol {
  margin: 14px 0;
  padding-left: 26px;
}
.text-section li {
  margin-bottom: 9px;
  position: relative;
  padding-left: 0.8em;
}
.text-section li::before {
  content: '●';
  color: var(--color-accent);
  position: absolute;
  left: -1em;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 20px 0 18px;
  font-size: 0.98rem;
}
.categories-list li {
  color: var(--color-accent);
  font-weight: 700;
}
.categories-list a {
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 3px 16px 3px 12px;
  margin-left: 2px;
  color: var(--color-primary);
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  transition: background .16s, color .16s;
}
.categories-list a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ARTISTIC FONT EFFECT */
h1, h2 {
  font-family: 'Montserrat', cursive, sans-serif;
  letter-spacing: -0.8px;
}

/* ===============================
   FLEXBOX LAYOUT PATTERNS
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(49,68,85,0.10);
}
.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;
  margin-bottom: 20px;
  background: #f4efec;
  box-shadow: 0 4px 16px 0 rgba(248,156,31,0.13);
  border-radius: 20px;
  min-width: 220px;
  max-width: 540px;
}
.testimonial-card p {
  color: #222;
  font-size: 1.12rem;
  margin-bottom: 0;
}
.testimonial-details {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid pattern */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.feature {
  background: #f9f6f1;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(246,182,77,0.06);
  min-width: 210px;
  max-width: 370px;
  padding: 22px 20px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .19s, transform .16s;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 9px;
}
.feature:hover {
  box-shadow: 0 6px 32px 0 rgba(49,68,85,0.21);
  transform: translateY(-3px) scale(1.025);
  z-index: 1;
}

/* Article previews */
.recent-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.article-preview {
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px 0 rgba(49,68,85,0.06);
  min-width: 200px;
  max-width: 360px;
  flex: 1 1 240px;
  transition: box-shadow .17s, background .13s;
}
.article-preview:hover {
  background: #F89C1F10;
  box-shadow: 0 4px 16px 0 rgba(248,156,31,0.17);
}

/* CTA Box */
.cta-box {
  margin: 20px 0 0 0;
  padding: 18px;
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(248,156,31,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

/* Map box (Kontakt) */
.map {
  margin: 18px 0 0 0;
  padding: 13px 15px;
  background: #e9eeff;
  border-radius: 13px;
  font-size: 1rem;
  color: var(--color-primary);
}

/* ===============================
   BUTTONS & INTERACTIVE ELEMENTS
   =============================== */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.13rem;
  box-shadow: 0 3px 18px 0 rgba(248,156,31,0.11);
  transition: background .18s, box-shadow .19s, color .14s, transform .15s;
  cursor: pointer;
  border: none;
}
.cta-primary {
  background: var(--color-accent);
  color: #222;
  border: 2.5px solid var(--color-accent);
  letter-spacing: 0.1px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 6px 26px 0 rgba(248,156,31,0.25);
  outline: none;
  transform: translateY(-2px) scale(1.05);
}
.cta-secondary {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-accent);
  color: #fff;
  outline: none;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.97);
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(17,27,38,0.13);
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header nav > a img {
  width: 173px;
  height: auto;
  margin-right: 12px;
  transition: filter .17s;
  filter: drop-shadow(0 2px 8px #f89c1f22);
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav li {
  list-style: none;
}
header nav ul a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: .04em;
  border-radius: 16px;
  padding: 4px 18px;
  transition: background .18s, color .18s;
}
header nav ul a:hover, header nav ul a:focus,
header nav ul a.active {
  background: var(--color-accent);
  color: var(--color-primary);
}
header .cta-primary {
  margin-left: 16px;
  font-size: 1rem;
  padding: 10px 20px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 #f89c1f33;
  transition: background .14s;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fff4e6;
}

/* ===============================
   MOBILE NAVIGATION STYLES
   =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49,68,85,0.93);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform .44s cubic-bezier(.69,.02,.36,1), visibility .3s;
}
.mobile-menu.open {
  visibility: visible;
  transform: translateX(0);
  transition: transform .39s cubic-bezier(.8,0,.28,1), visibility .3s;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 18px 0 0;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 12px #f89c1f13;
  cursor: pointer;
  transition: background .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 38px 0 0 30px;
  width: 85vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 0 13px 12px;
  border-radius: 15px;
  transition: background .21s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===============================
   MAIN & SECTIONS
   =============================== */
main {
  padding: 44px 0 0 0;
  background: var(--color-secondary);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 50px 0 25px 0;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 52px;
  justify-content: space-between;
}
.footer-brand img {
  width: 82px;
  height: 82px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 11px #f89c1f33);
}
footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav ul a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 13px;
  padding: 3px 12px 3px 7px;
  transition: background .17s, color .12s;
}
footer nav ul a:hover, footer nav ul a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.footer-contact {
  font-size: 1rem;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color .16s;
}
.footer-contact a:hover {
  color: #fff;
}

/* ===============================
   RESPONSIVE STYLES
   =============================== */
@media (max-width: 1020px) {
  .container {
    padding: 0 11px;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 6px;
    border-radius: 15px;
  }
  footer .container {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  footer {
    padding: 34px 0 18px 0;
  }
  .footer-brand img {
    width: 62px;
    height: 62px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6vw;
  }
  header nav ul, header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    gap: 20px;
  }
  .feature-grid, .recent-articles, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .map {
    padding: 10px 8px;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.75rem;
    line-height: 1.1;
  }
  h2 {
    font-size: 1.28rem;
    line-height: 1.18;
  }
  .container {
    padding: 0 5vw;
  }
  .section {
    padding: 11px 2vw;
    border-radius: 10px;
  }
  .card, .feature, .article-preview {
    max-width: 98vw;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===============================
   COOKIE CONSENT BANNER
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 30010;
  background: rgba(255,255,255,0.98);
  color: var(--color-primary);
  box-shadow: 0 -3px 28px 0 rgba(49,68,85,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 20px 10px;
  gap: 18px;
  font-size: 1.07rem;
  animation: cookie-slide-in .9s cubic-bezier(.7,.015,.27,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-left: 16px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  outline: none;
  border-radius: 18px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background .17s, color .13s, box-shadow .13s;
  box-shadow: 0 2px 11px 0 #f89c1f11;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: var(--color-accent);
}
.cookie-btn.reject {
  background: #db6774;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #db6774;
}
.cookie-btn.settings, .cookie-settings-btn {
  background: #f1e5d8;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width:650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 3vw 13px 4vw;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-actions {
    margin-left: 0;
    gap: 8px;
  }
}

/* ===============================
   COOKIE CONSENT MODAL
   =============================== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 30050;
  align-items: center;
  justify-content: center;
  background: rgba(49,68,85,0.61);
  animation: cookieModalFade .3s;
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 410px;
  padding: 38px 24px 28px 24px;
  box-shadow: 0 7px 42px 0 rgba(49,68,85,0.21);
  color: var(--color-primary);
  font-size: 1.09rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalPop .44s cubic-bezier(.8,-0.03,.3,1.08);
}
@keyframes modalPop {
  from { transform: scale(.78) translateY(80px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-accent);
  font-size: 1.19rem;
  font-weight: 900;
  letter-spacing: 0.12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 7px;
  font-size: 1rem;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: var(--color-accent);
  width: 17px; height: 17px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 19px; right: 19px;
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background .15s;
}
.cookie-modal-close:focus,.cookie-modal-close:hover{
  background: #f1e5d8;
}
@media (max-width:520px) {
  .cookie-modal-content {
    padding: 19px 9vw 16px 8vw;
    max-width: 97vw;
    font-size: 0.99rem;
    border-radius: 12px;
  }
  .cookie-modal-header {
    font-size: 1rem;
  }
}

/* ===============================
   MISC/DETAILS
   =============================== */
::-webkit-scrollbar { width: 9px; background: #dee0ea; }
::-webkit-scrollbar-thumb{ background: #f7c787; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #f89c1f; }

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Decorative accents for artistic style */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1:before {
  content: '';
  position: absolute;
  left: -22px; top: 13px;
  width: 40px; height: 18px;
  background: #ffe3ae;
  border-radius: 9px 20px 24px 3px;
  opacity: .53;
  z-index: -1;
}
h2:before {
  content: '';
  position: absolute;
  left: -18px; top: 10px;
  width: 18px; height: 10px;
  background: #f89c1f30;
  border-radius: 13px;
  opacity: .63;
  z-index: -1;
}

/* ===============================
   ACCESSIBILITY/CONTRAST
   =============================== */
.testimonial-card {
  background: #f4efec;
  color: #222;
  border: 1.5px solid #e7d1bc;
  box-shadow: 0 2px 12px 0 #f89c1f17;
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  * { background: none !important; color: #000 !important; box-shadow: none !important; }
  a, a:visited { text-decoration: underline !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .container { page-break-inside: avoid; }
}
