/* ===================================
   GLOW ASSET - PROFESSIONAL CORPORATE
   ===================================
   RESET & BASE
   ===================== */

/* RESET & NORMALIZE */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F6F3;
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #17597A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #C48406;
  text-decoration: underline;
  outline: none;
}

/* TYPOGRAPHY HIERARCHY */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #17597A;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #17597A;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #17597A;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  color: #2B2F36;
}
h1, h2, h3, h4 {
  line-height: 1.2;
}
p, ul, ol {
  font-size: 1rem;
  color: #2B2F36;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
  color: #2B2F36;
}
strong {
  font-weight: 700;
  color: #17597A;
}

.center {
  text-align: center;
}

/* ============================
   BRAND COLORS & VARIABLES
   ============================ */
:root {
  --color-primary: #17597A;
  --color-secondary: #F7F6F3;
  --color-white: #ffffff;
  --color-accent: #C48406;
  --color-dark: #222F36;
  --color-gray: #5E6C7C;
  --color-light-gray: #EDF1F5;
  --color-border-gray: #E1E6EB;
  --color-footer-bg: #182127;
  --color-footer-link: #bdd5e6;
}

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

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.text-section {
  padding: 0 0 0 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
}

/* ================
   NAVIGATION STYLES
   ================ */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-gray);
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 2px 8px rgba(23, 89, 122, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  padding: 8px 4px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:focus, .main-nav a:hover {
  color: var(--color-accent);
  background: #f3f7fb;
}
.main-nav .cta-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 9px 0 rgba(23,89,122,0.10);
}
.main-nav .cta-primary:focus, .main-nav .cta-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 20px 0 rgba(196,132,6,0.15);
}

/* HAMBURGER MENU*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.15s;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(23, 89, 122, 0.95);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.5,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-white);
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 24px;
  right: 28px;
  cursor: pointer;
  z-index: 10001;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 46px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(246,176,34,0.10);
  color: #F6B022;
}
@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================
   HERO / SECTION SPACING
   ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 768px) {
  section {
    padding: 24px 8px 28px 8px;
    margin-bottom: 36px;
  }
}

/* =======================
   FLEXBOX CARD CONTAINERS 
   ======================= */
.feature-grid, .faq-grid, .testimonial-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-item, .faq-item, .card {
  background: var(--color-white);
  border: 1px solid var(--color-border-gray);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(23, 89, 122, 0.10);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, border 0.2s;
  min-width: 220px;
  flex: 1 1 260px;
  position: relative;
}
.feature-item:hover, .faq-item:hover, .card:hover {
  box-shadow: 0 4px 22px 0 rgba(23,89,122,0.13);
  border-color: var(--color-primary);
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

/* FAQ Grid Responsive Handling */
.faq-grid {
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.faq-item {
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 400px;
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-grid {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px 18px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border-gray);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(23,89,122,0.10);
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border 0.18s;
}
.testimonial-card p {
  font-size: 1.09rem;
  font-style: italic;
  color: #2B2F36;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: #17597A;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(23,89,122,0.13);
}

/* =============
   BUTTONS
   ============= */
.cta-primary, .cookie-btn, .cookie-settings-btn, .cookie-reject-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
  margin-top: 12px;
  box-shadow: 0 2px 10px 0 rgba(23,89,122,0.09);
  text-decoration: none;
}
.cta-primary:focus, .cta-primary:hover,
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 17px 0 rgba(196,132,6,0.13);
}
.cookie-settings-btn {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  margin-left: 14px;
}
.cookie-settings-btn:hover {
  background: #F7F6F3;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-reject-btn {
  background: #E1E6EB;
  color: #2B2F36;
  margin-left: 10px;
}
.cookie-reject-btn:hover {
  background: #c4d5e0;
  color: var(--color-primary);
}

/* =======
  INFOBOX
 ======= */
.info-box {
  background: #EDF1F5;
  border-left: 5px solid var(--color-primary);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px 0 rgba(23,89,122,0.07);
}
.info-box h3 {
  margin-bottom: 8px;
}

/* =====
  FOOTER
 ===== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  margin-top: 40px;
  border-top: 1px solid #23324a;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 42px 0 18px 0;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 10px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: var(--color-footer-link);
  font-size: 0.99rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  transition: color 0.14s;
  margin-bottom: 2px;
}
.footer-nav a:focus, .footer-nav a:hover,
.footer-legal a:focus, .footer-legal a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  padding: 14px 0 14px 0;
  border-top: 1px solid #22323a;
  text-align: center;
  font-size: 0.96rem;
}

/* ===================
  RESPONSIVE LAYOUTS
 =================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
  .feature-grid, .faq-grid, .testimonial-grid, .content-grid {
    gap: 18px;
  }
  .footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .feature-grid, .faq-grid, .testimonial-grid {
    gap: 14px;
  }
  .feature-item, .faq-item, .testimonial-card {
    min-width: 190px;
    padding: 15px 10px 16px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  .content-wrapper, .text-section {
    padding: 0;
  }
  .feature-grid, .faq-grid, .testimonial-grid, .content-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .feature-item, .faq-item, .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .footer-top {
    flex-direction: column;
    gap: 12px;
    padding: 28px 0 8px 0;
    align-items: flex-start;
  }
}

/* TEXT-IMAGE FLEX SECTION */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* CARD CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border-gray);
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(23,89,122,0.10);
  padding: 22px 18px;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(23,89,122,0.13);
}

/* Content Grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Section Titles */
section > .container > .content-wrapper > h2 {
  margin-bottom: 28px;
}

/* FAQ in Kontakt/ablauf Page */
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ========================
   Z-INDEX / SHADOWS / DECOS
   ======================== */
[tabindex]:focus, button:focus, input:focus, .cta-primary:focus {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
}

/* ======================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 40px 24px 32px;
  z-index: 10040;
  box-shadow: 0 -4px 20px 0 rgba(23, 89, 122, 0.13);
  transition: transform 0.22s, opacity 0.22s;
  gap: 34px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150%);
}
.cookie-banner strong {
  color: #FFF6E1;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px;
    font-size: .98rem;
  }
  .cookie-actions {
    flex-direction: row;
    gap: 10px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 89, 122, 0.28);
  z-index: 10045;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  color: #202C36;
  border-radius: 16px;
  box-shadow: 0 3px 34px 0 rgba(23, 89, 122, 0.19);
  padding: 36px 32px 32px 32px;
  min-width: 320px;
  min-height: 90px;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  animation: popIn 0.3s cubic-bezier(0.5,0,0.2,1);
}
@keyframes popIn {
  from {transform: scale(0.9); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-modal .category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #EDF1F5;
}
.cookie-modal .category-row:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: .99rem;
  color: #273241;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-modal input[type="checkbox"]:disabled + label {
  color: #999;
  opacity: .7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: none;
  color: #B5B5B5;
  border: none;
  font-size: 1.9rem;
  position: absolute;
  top: 12px; right: 15px;
  cursor: pointer;
}
@media (max-width: 550px) {
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    max-width: 99vw;
    padding: 22px 8px 20px 16px;
  }
}

/* COOKIE TOGGLE SWITCHES */
.cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: #E7ECF3;
  display: inline-block;
  position: relative;
  margin-left: 8px;
  vertical-align: middle;
  transition: background 0.18s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top:2px; left:2px;
  width: 18px; height: 18px;
  background: #B8C9DB;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left:22px;
  background: var(--color-primary);
}

/* ========
  MISC
 ======== */
::-webkit-input-placeholder {color: #8BA3B4;} /* Chrome/Safari/Webkit */
::-moz-placeholder {color: #8BA3B4;}
:-ms-input-placeholder {color: #8BA3B4;}
::placeholder {color: #8BA3B4;}

hr {
  border-top: 1px solid #E5E5E5;
  margin: 24px 0;
}

/* ===============
   PRINT STYLES
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body, .container, section {
    background: #fff !important;
    color: #222 !important;
  }
}
