/* ===== CSS RESET & NORMALIZATION ===== */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f9;
  color: #243041;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img, video {
  max-width: 100%;
  height: auto;
}
a {
  color: #22446a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffb400;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  margin-bottom: 1.25em;
}
li {
  margin-bottom: 0.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #22446a;
  outline-offset: 3px;
}

/* ===== FONT FACES ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* ===== VARIABLES ===== */
:root {
  --color-primary: #22446a;
  --color-secondary: #f7f7f9;
  --color-accent: #ffb400;
  --color-body: #243041;
  --color-light: #fff;
  --color-shadow: rgba(34,68,106,0.07);
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 10px;
}

/* ===== TYPOGRAPHY ===== */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.28;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.24;
}
h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-body);
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}
.testimonial-meta {
  font-family: var(--font-body);
  font-size: 0.95em;
  font-style: italic;
  color: #696969;
  margin-top: 8px;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 22px 26px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(34,68,106,0.18);
  transform: translateY(-2px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 540px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 24px rgba(34,68,106,0.17);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 74px 0 46px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-primary {
  margin-top: 20px;
}

/* ===== FEATURE GRID (3-UP) ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div img {
  width: 43px;
  height: auto;
  margin-bottom: 16px;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 20px rgba(34,68,106,0.15);
  transform: translateY(-2px) scale(1.01);
}

/* ===== TEAM GRID (about page) ===== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.team-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 185px;
  font-family: var(--font-body);
}
.team-grid strong {
  font-family: var(--font-display);
  font-size: 1.08em;
  color: var(--color-primary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 1px 8px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 14px;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.03em;
  color: var(--color-primary);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

.cta-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.68em 1.6em;
  border-radius: var(--radius);
  font-size: 1.08em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255,180,0,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  margin-left: 18px;
  letter-spacing: 0.04em;
  text-align: center;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #e7a900;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,180,0,0.20);
  transform: scale(1.03);
}

.cta-secondary {
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-display);
  border: 2px solid var(--color-primary);
  padding: 0.68em 1.6em;
  border-radius: var(--radius);
  font-size: 1em;
  margin-top: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  display: inline-block;
  text-align: center;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.3em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-left: 16px;
  z-index: 251;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e7a900;
  color: #fff;
}
.mobile-menu {
  transition: transform 0.38s cubic-bezier(.48,.09,.62,.93);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34,68,106,0.96);
  box-shadow: 0 8px 32px rgba(34,68,106,0.25);
  z-index: 250;
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 1.35em;
  position: absolute;
  top: 24px;
  right: 28px;
  padding: 8px 13px;
  cursor: pointer;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e7a900;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 60px 0 0 48px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18em;
  font-family: var(--font-display);
  padding: 10px 4px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.18s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,180,0,0.11);
}

/* ===== HIDE/SHOW NAVIGATION ON MOBILE ===== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== SECTIONS SPACING ===== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 19px 20px 13px 20px;
  font-size: 1.04em;
  transition: box-shadow 0.18s;
}
.faq-accordion > div strong {
  font-family: var(--font-display);
  color: var(--color-primary);
}
.faq-accordion > div span {
  display: block;
  color: #4b5869;
  margin-top: 8px;
  font-size: 0.97em;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 18px rgba(34,68,106,0.13);
}

/* ===== FORMS (SEARCH, FILTERS) ===== */
.filter-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.filter-search input[type="text"] {
  flex: 1 1 160px;
  border: 1.5px solid #e1e6f0;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 1em;
  color: var(--color-body);
  background: #fff;
  transition: border 0.15s;
}
.filter-search input[type="text"]:focus {
  border-color: var(--color-accent);
}
.filter-search button[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 9px 23px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.18s, box-shadow 0.18s;
}
.filter-search button:hover,
.filter-search button:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255,180,0,0.16);
}
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.topic-filters label {
  background: #f2eef9;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 1em;
  color: var(--color-primary);
  cursor: pointer;
}
.topic-filters input[type="checkbox"] {
  margin-right: 7px;
  accent-color: var(--color-accent);
}

/* ===== MAP CONTAINER (kontakt) ===== */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0 6px 0;
  box-shadow: 0 2px 10px var(--color-shadow);
  max-width: 480px;
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  box-shadow: 0 -2px 16px var(--color-shadow);
  padding: 36px 0 18px 0;
  font-size: 0.99em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 26px;
  align-items: center;
}
.footer-nav a {
  color: var(--color-primary);
  opacity: 0.85;
  font-weight: 600;
  transition: color 0.15s;
  border-radius: 6px;
  padding: 5px 9px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  background: #f7f7f9;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-contact img {
  height: 42px;
  margin-right: 10px;
}
.footer-contact div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact a {
  color: var(--color-primary);
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: var(--color-accent);
}
.footer-copy {
  margin-top: 28px;
  color: #758aa1;
  font-size: 0.93em;
  text-align: center;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--color-body);
  box-shadow: 0 -2px 20px rgba(34,68,106,0.13);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  gap: 28px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transition: transform 0.28s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1em;
  max-width: 540px;
}
.cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1em;
  border-radius: 7px;
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #e7a900;
  color: #fff;
}
.cookie-btn.reject {
  background: #ece7dc;
  color: #9d7925;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffecd7;
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #243e5c;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,68,106,.67);
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 38px rgba(34,68,106,0.20);
  max-width: 440px;
  width: 93%;
  padding: 38px 25px 28px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 1.15em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e7a900;
  color: #fff;
}
.cookie-category {
  margin-bottom: 18px;
}
.cookie-category.disabled {
  opacity: 0.60;
  pointer-events: none;
}
.cookie-category label {
  margin-left: 7px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  transform: scale(1.13);
}

/* ===== GENERAL UTILITIES ===== */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px !important; }
.mb-22 { margin-bottom: 22px !important; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1150px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding: 0 8px;
  }
  .hero {
    padding: 44px 0 30px 0;
  }
  .section, section {
    padding: 25px 0;
    margin-bottom: 38px;
  }
  .feature-grid, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  header .container {
    flex-direction: row;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  footer {
    padding: 28px 0 12px 0;
  }
  .footer-nav {
    gap: 12px;
    margin-bottom: 17px;
    font-size: 1em;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 10px;
    font-size: 0.97em;
  }
  .cookie-modal-content {
    padding: 25px 12px 20px 12px;
  }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 1.4rem; }
  h1, .hero h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.07rem; }
  .container { padding: 0 2vw; }
  header img {
    height: 36px;
  }
  .feature-grid > div, .team-grid > div, .faq-accordion > div, .testimonial-card, .card {
    padding: 14px 7px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  .cookie-modal-content { max-width: 99vw; }
}

/* ===== MICRO-INTERACTIONS & ANIMATIONS ===== */
.cta-primary, .cta-secondary, .main-nav a, .feature-grid > div, .card, .testimonial-card, .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.13s;
}

/* ===== ENSURE NO OVERLAPPING AND SPACING ===== */
.card, .testimonial-card, .feature-grid > div, .team-grid > div, .faq-accordion > div {
  margin-bottom: 20px;
}
.section, section, .footer-nav, .card-container, .content-grid, .feature-grid, .team-grid {
  gap: 20px;
}

/* ===== MOBILE MENU Z-INDEX MANAGEMENT ===== */
.mobile-menu { z-index: 250; }
.mobile-menu-toggle { z-index: 251; }


/* ===== END OF STYLE ===== */
