/* ===== 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 {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #F2F5F7;
  color: #13304A;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== VARS (with fallbacks) ===== */
:root {
  --primary: #13304A;
  --secondary: #39B574;
  --accent: #F2F5F7;
  --dark: #1A2230;
  --border: #E4E8EB;
  --text: #13304A;
  --heading: #1A2230;
  --muted: #8A939A;
  --shadow: 0 2px 16px 0 rgba(19,48,74,0.08);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.55,.1,.27,1);
  --font-display: 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; }
p, ul, ol, li, dl, dt, dd, span, a, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
p { margin-bottom: 16px; }
strong { font-weight: bold; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--secondary); text-decoration: underline; }


/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 32px;
  }
}

/* ===== HEADER and NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(19,48,74,0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  background: #F2F5F7;
}
.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
  padding: 10px 30px;
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(57,181,116,0.06);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 20px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #179156;
  box-shadow: 0 4px 20px 0 rgba(57,181,116,.17);
  color: #fff !important;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition), color var(--transition);
  z-index: 1101;
}
/* Show hamburger icon on mobile */
@media (max-width: 900px) {
  header .container nav, header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,48,74,0.96);
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(0.77,0,0.18,1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  padding: 16px 18px 8px 18px;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 18px;
  margin-right: 18px;
  transition: color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 0 0 0 42px;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(242,245,247,0.18);
  width: 170px;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}
@media (max-width: 500px) {
  .mobile-nav { margin-left: 20px; }
  .mobile-nav a { width: 120px; font-size: 0.98rem; }
  .mobile-menu-close { font-size: 2rem; }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(111deg, #F2F5F7 77%, #E7EFE6 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 34px;
  padding-bottom: 34px;
}
.hero .content-wrapper {
  max-width: 650px;
  gap: 18px;
}
.hero h1 {
  font-size: 2.75rem;
  color: var(--heading);
  margin-bottom: 10px;
}
.hero p {
  color: var(--muted);
  font-size: 1.13rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hero { min-height: 120px; }
  .hero .container { padding: 18px 6px; }
  .hero h1 {font-size: 2rem;}
}

/* ===== SECTIONS, LISTS, ICONS ===== */
ul, ol {
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid #E4E8EB;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
ul li:last-child, ol li:last-child { border: none; }
ul li img, ol li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
@media (max-width: 500px) {
  ul li img, ol li img { width: 20px; height: 20px; }
  ul li, ol li { font-size: 0.97rem; }
}

/* ===== FLEXBOX UTILITY CLASSES ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 30px 0 rgba(19,48,74,0.14);
  transform: translateY(-2px) scale(1.015);
}
.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) {
  .text-image-section { flex-direction: column; gap: 18px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px 0 rgba(19,48,74,0.04);
  margin-bottom: 24px;
  margin-top: 0;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.testimonial-card p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 0;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--muted);
}
.testimonial-card:hover {
  border-left-color: #179156;
  box-shadow: 0 4px 30px 0 rgba(57,181,116,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== TEAM AND CASE LIST ===== */
.team-list,
.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.team-list > div,
.case-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-list > div:hover, .case-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(19,48,74,0.13);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 950px) {
  .team-list > div, .case-list > div { min-width: 170px; max-width: 100%; }
}
@media (max-width: 650px) {
  .team-list, .case-list { flex-direction: column; gap: 18px; }
}

/* ===== FAQ LIST ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-list dt {
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--primary);
  font-family: var(--font-display);
}
.faq-list dd {
  margin-left: 0;
  color: var(--text);
  margin-bottom: 10px;
}

/* ===== INPUT FIELDS (Kontakt) ===== */
.input-field {
  width: 100%;
  min-height: 44px;
  border: 1px solid #E4E8EB;
  border-radius: 7px;
  background: #F8FAFA;
  margin-bottom: 16px;
  padding: 10px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-field:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 1.5px var(--secondary);
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid #E4E8EB;
  padding: 36px 0 22px 0;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--primary);
  opacity: 0.8;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.footer-nav a:hover {
  color: var(--secondary);
}
.footer-company {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-company img { height: 36px; width: auto; }
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 18px rgba(19,48,74,0.07);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  z-index: 2100;
  transition: transform 0.4s;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner-message {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  background: #F2F5F7;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  outline: none;
  min-width: 100px;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #179156;
  color: #fff;
}
.cookie-banner .settings {
  background: #F2F5F7;
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E4E8EB;
  color: var(--primary);
}
.cookie-banner .reject {
  background: #E6EDF1;
  color: var(--muted);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #EEF3F6;
  color: #a14143;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
    padding: 15px 4px 14px 4px;
  }
  .cookie-banner-actions { width: 100%; gap: 4px; flex-wrap: wrap; }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(19,48,74,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2110;
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: var(--text);
  max-width: 95vw;
  width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 8px 60px 0 rgba(19,48,74,0.13);
  padding: 42px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalAppear 0.45s cubic-bezier(0.77,0,0.18,1) 1;
}
@keyframes cookieModalAppear {
  from { transform: translateY(64px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 9px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  outline: none;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-weight: bold;
  color: var(--primary);
}
.cookie-category .toggle {
  width: 36px; height: 20px;
  background: #F2F5F7;
  border-radius: 20px;
  position: relative;
  margin-right: 4px;
  cursor: pointer;
  border: 1px solid #E4E8EB;
  display: inline-block;
  transition: background var(--transition), border var(--transition);
}
.cookie-category .toggle input { display: none; }
.cookie-category .toggle:after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #AAB9C5;
  border-radius: 50%;
  transition: left 0.22s, background var(--transition);
}
.cookie-category .toggle input:checked + span {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-category .toggle input:checked + span:after {
  left: 18px;
  background: #fff;
}
.cookie-category[aria-disabled='true'] .toggle {
  opacity: 0.70;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-weight: 600;
  font-size: 1rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius:6px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-actions .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal-actions .accept:hover { background: #179156; }
.cookie-modal-actions .cancel {
  background: #E4E8EB;
  color: var(--muted);
}
.cookie-modal-actions .cancel:hover { background: #F2F5F7; color: #a14143; }

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 24px 6px 12px 6px;
    width: 100vw;
    max-width: 100vw;
  }
}

/* ===== BUTTONS AND LINK INTERACTIONS ===== */
button, .cta-btn {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  outline: none;
}
button:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
  z-index: 2;
}

/* ===== ACCESSIBILITY & UX ===== */
::-webkit-input-placeholder { color: #A0A9B1; }
::-moz-placeholder { color: #A0A9B1; }
:-ms-input-placeholder { color: #A0A9B1; }
::placeholder { color: #A0A9B1; }

/* Remove extra tap highlight color */
html {
  -webkit-tap-highlight-color: rgba(0,0,0,0.15);
}

/* ===== SCROLLBAR ELEGANCE FOR DESKTOP ===== */
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-thumb {
  background: #E4E8EB;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #F8FAFA;
}

/* ===== HEADINGS SPACING & HIERARCHY ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 16px;
}
.section h2 {
  margin-bottom: 22px;
}

/* ===== MISC ===== */
img {
  max-width: 100%;
  border-radius: 6px;
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.1rem; }
  .card { padding: 16px 9px; }
  .footer-company img { height: 25px; }
  .content-wrapper { gap: 11px; }
}

/* ===== PRINT STYLES (hide nav/footer) ===== */
@media print {
  header, nav, .cta-btn, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
