/* =========================
   Sifted Pebble: style.css
   Modern Bold Design System
   ========================= */
/* --- CSS 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100vh;
  line-height: 1.5;
  background: #FAFAFA;
  color: #1A2331;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
}

/* --- Brand Colors, Typography --- */
:root {
  --color-primary: #205072;
  --color-secondary: #AFE3C4;
  --color-accent: #FFD447;
  --color-bg: #FAFAFA;
  --color-contrast: #1A2331;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(32, 80, 114, 0.08);
  --color-card-border: #E0F2EF;
  --font-title: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.13; }
h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.18; }
h3 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.22; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 700; }
pm, li, ul, ol { font-family: var(--font-body); font-size: 1rem; color: var(--color-contrast); line-height: 1.65; }
strong, b { font-weight: 700; color: var(--color-primary); font-family: var(--font-title); }
.text-section h2, .text-section h3 { color: var(--color-primary); margin-top: 32px; }
.text-section p, .text-section ul, .text-section ol { margin-bottom: 16px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* --- Utility Classes, Spaces --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 36px; }
}

/* --- Cards, Flex Containers --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 2px solid var(--color-card-border);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 var(--color-card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  min-width: 260px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(32, 80, 114, 0.18);
  transform: translateY(-4px) scale(1.016);
  border-color: var(--color-primary);
}
.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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column !important;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: 20px;
  box-shadow: 0 4px 18px 0 rgba(32,80,114,0.10);
  margin-bottom: 20px;
  min-width: 260px;
}
.testimonial-card p { color: var(--color-contrast); font-size: 1.09rem; }
.testimonial-card strong { font-size: 1.07em; color: var(--color-primary); font-family: var(--font-title); }
.testimonial-card span { color: var(--color-accent); font-size: 1.2em; font-weight: bold; }

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

/* --- Buttons & CTAs --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #205072;
  background: var(--color-accent);
  border-radius: 32px;
  padding: 16px 36px;
  border: none;
  box-shadow: 0 2px 10px rgba(32,80,114,0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.21s, transform .13s;
  margin-top: 16px;
  text-decoration: none;
  min-width: 164px;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.btn-primary:hover {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 4px 24px 0 rgba(32,80,114,0.15);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.07rem;
  color: var(--color-primary);
  background: var(--color-secondary);
  padding: 14px 30px;
  border-radius: 30px;
  transition: background 0.2s, color .2s, box-shadow .18s;
  border: none;
  cursor: pointer;
  margin: 4px 8px 0 0;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.07rem;
  color: #fff;
  background: var(--color-primary);
  padding: 14px 28px;
  border-radius: 28px;
  transition: background 0.2s, color .2s;
  border: none;
  margin: 4px 8px 0 0;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--color-accent);
  color: #205072;
}

/* --- Site Header & Navigation --- */
header {
  background: #fff;
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 2px 10px 0 rgba(32,80,114,.04);
  padding-top: 10px;
  padding-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo img {
  height: 46px;
  width: auto;
  display: block;
  margin-right: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
nav a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-contrast);
}

a.btn-primary {
  margin-left: 14px;
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1100;
  margin-left: 18px;
  transition: background .18s;
}
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 160px 0 rgba(32,80,114,.32);
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.7, .18, .34, 1.13);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 0 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.2rem;
  border-radius: 10px;
  border: none;
  padding: 4px 16px;
  cursor: pointer;
  transition: background .18s;
  z-index: 1210;
}
.mobile-menu-close:focus-visible {
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 36px;
  font-size: 1.22rem;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-title);
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 0px;
  transition: background 0.15s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-contrast);
}

@media (max-width: 1024px) {
  header .container {
    gap: 8px;
  }
  nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .btn-primary {
    display: none;
  }
}

@media (max-width: 768px) {
  .brand-logo img {
    height: 34px;
  }
  .mobile-nav {
    font-size: 1.05rem;
    padding: 18px 18px;
  }
  .mobile-menu-close { margin: 14px 14px 0 0; }
}


/* --- Hero --- */
.hero {
  background: linear-gradient(95deg, var(--color-secondary) 68%, var(--color-accent) 100%); /* fallback effect */
  padding: 48px 0 32px 0;
  border-radius: 0 0 40px 40px;
  margin-bottom: 28px;
  overflow: hidden;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  padding: 0 0;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.8rem;
  line-height: 1.07;
  margin-bottom: 10px;
}
.hero p {
  color: var(--color-contrast);
  font-size: 1.21rem;
}
@media (max-width: 768px) {
  .hero {
    padding: 24px 0 20px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* --- Generic Section, Card, List --- */
section {
  background: none;
  margin-bottom: 60px;
}
section:last-child { margin-bottom: 0; }
section h2 {
  position: relative;
  color: var(--color-primary);
  font-size: 2rem;
}
.content-wrapper ul, .content-wrapper ol {
  margin-left: 18px;
  margin-bottom: 20px;
  padding-left: 0;
}
.content-wrapper li {
  margin-bottom: 10px;
  line-height: 1.7;
  position: relative;
  padding-left: 12px;
}
.content-wrapper ul li::before {
  content: '';
  display: inline-block;
  background-color: var(--color-accent);
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin-right: 12px;
  position: absolute;
  left: 0;
  top: 7px;
}
.content-wrapper ol li::before {
  display: none;
}

/* --- Text-section Visuals --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul li {
  padding-left: 20px;
  position: relative;
}
.text-section ul li::before {
  content: '';
  display: inline-block;
  background-color: var(--color-primary);
  height: 9px;
  width: 9px;
  border-radius: 50%;
  margin-right: 12px;
  position: absolute;
  left: 0;
  top: 9px;
}

/* --- Footer Styles --- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 42px 0 22px 0;
  border-top: 3px solid var(--color-secondary);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--color-accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color .15s;
}
.footer-links a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 30px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: box-shadow .16s, background .16s;
  background: #fff;
  padding: 6px;
}
.footer-social img:hover {
  background: var(--color-secondary);
  box-shadow: 0 2px 14px 0 var(--color-card-shadow);
}
footer small {
  color: var(--color-secondary);
  font-size: 0.92rem;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .footer-contact,
  .footer-links,
  .footer-social {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Micro Interactions --- */
.card, .testimonial-card, .btn-primary, .btn-secondary, .btn-accent, .mobile-menu, .mobile-menu-close {
  transition-property: box-shadow, background, border, color, transform;
  transition-duration: .18s;
}

/*  ========== Cookie Consent Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-contrast);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 24px 0 rgba(32,80,114,0.09);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 20px;
  font-size: 1rem;
  animation: slideUp .4s cubic-bezier(.75,0,.25,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 22px 10px;
    font-size: 0.96rem;
    gap: 12px;
  }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-title);
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  margin: 0 2px;
  font-weight: 700;
}
.cookie-banner .btn-cookie-accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .btn-cookie-accept:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .btn-cookie-reject {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .btn-cookie-reject:hover {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-banner .btn-cookie-settings {
  background: none;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  padding: 8px 18px;
}
.cookie-banner .btn-cookie-settings:hover {
  background: var(--color-secondary);
}

/* --- Cookie Modal Overlay --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,80,114, 0.28);
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .27s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 40px 0 rgba(32,80,114,0.28);
  max-width: 390px;
  width: calc(100vw - 48px);
  padding: 34px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalPopupOpen .34s cubic-bezier(.6,0,.4,1);
}
@keyframes modalPopupOpen {
  from { transform: scale(0.90) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0);   opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-contrast);
  font-weight: 600;
}
.cookie-modal input[type=checkbox], .cookie-modal input[type=radio] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  cursor: pointer;
}
.cookie-modal .cookie-essential {
  color: #747479;
  font-size: 0.97em;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 1.3rem;
  border-radius: 10px;
  padding: 2px 10px;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-accent);
}
.cookie-modal .cookie-modal-save-btn {
  margin-top: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08em;
  border-radius: 20px;
  padding: 10px 32px;
  transition: background .18s;
}
.cookie-modal .cookie-modal-save-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --- Forms and Inputs --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}
input, textarea {
  border-radius: 8px;
  border: 2px solid var(--color-card-border);
  padding: 11px 14px;
  margin-bottom: 14px;
  background: #fff;
  transition: border .15s;
}
input:focus, textarea:focus {
  border: 2px solid var(--color-primary);
}

/* --- Icon styles in contact (kontakt) --- */
.text-section img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 7px;
}

/* --- Newsletter + Utility Banners --- */
.newsletter-banner {
  background: linear-gradient(90deg, var(--color-secondary) 82%, var(--color-accent) 100%);
  border-radius: 18px;
  box-shadow: 0 4px 26px 0 rgba(32,80,114,.16);
  padding: 38px 24px;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

@media (max-width:440px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 16px 6px 12px 10px;
  }
}

/* ====== Accessibility Improvements ====== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
}

/* ===== Misc ===== */
::-webkit-input-placeholder { color: #B6B8BF; }
::-moz-placeholder { color: #B6B8BF; }
:-ms-input-placeholder { color: #B6B8BF; }
::placeholder { color: #B6B8BF; }

/* Prevent content overlapping */
section, .card, .testimonial-card, .feature-item, .content-wrapper, .card-container, .content-grid {
  margin-bottom: 20px;
}

/*  --- Ensure z-index stacking for overlays --- */
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1200;
}

/* --- Hide elements by utility class --- */
.hide { display: none !important; }