/* ---------------- 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 {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #173042;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #4B9B36;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #357225;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ---------------- VARIABLES ---------------- */
:root {
  --color-primary: #173042;
  --color-secondary: #D6CBBA;
  --color-accent: #4B9B36;
  --color-accent-bold: #357225;
  --color-white: #ffffff;
  --color-electric-blue: #00D4FF;
  --color-hot-orange: #FF6600;
  --color-hot-pink: #FF227A;
  --color-sun-yellow: #FFD600;
  --shadow-card: 0 4px 24px 0 rgba(23,48,66,0.10);
  --radius-main: 18px;
  --radius-btn: 38px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-main: 40px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---------------- GENERAL TYPOGRAPHY ---------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.16;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li {
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1rem;
}
strong {
  color: var(--color-accent);
  font-weight: bold;
}

/* ---------------- LAYOUT & CONTAINERS ---------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1200px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 2px 40px 0 rgba(75,155,54,0.18);
  z-index: 2;
}
.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 30px;
  background: var(--color-secondary);
  border-radius: var(--radius-main);
  box-shadow: 0 2px 12px 0 rgba(23,48,66,0.11);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 480px;
  color: var(--color-primary);
  font-size: 1rem;
}
.testimonial-card p {
  font-size: 1.11rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 0px;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent-bold);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--color-electric-blue) 0%, var(--color-white) 120%);
  background-color: var(--color-secondary);
  border-radius: 0 0 var(--radius-main) var(--radius-main);
  box-shadow: 0 4px 40px 0 rgba(0,212,255,0.07);
  min-height: 330px;
  padding: 60px 0 56px 0;
  margin-bottom: 48px;
}
.hero-section h1,
.hero-section h2 {
  color: var(--color-primary);
  font-size: 2.35rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.hero-section p {
  color: var(--color-primary);
  font-size: 1.17rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ---------------- CTA BUTTON ---------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-hot-orange) 0%, var(--color-electric-blue) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.11rem;
  border-radius: var(--radius-btn);
  padding: 14px 38px;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(255,102,0,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  margin: 8px 0 0 0;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, var(--color-hot-pink) 0%, var(--color-accent) 100%);
  transform: translateY(-2px) scale(1.032);
  box-shadow: 0 2px 24px 0 rgba(255,34,122,0.1);
  color: #fff;
}

/* ---------------- HEADER AND NAVIGATION ---------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(23,48,66,0.05);
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 10px 16px;
}
.logo img {
  max-width: 170px;
  height: auto;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent-bold);
  text-decoration: none;
}
.mobile-menu-toggle {
  display: none !important;
}

/* ---------------- MOBILE MENU ---------------- */
.mobile-menu-toggle {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 2px 12px 0 rgba(23,48,66,0.10);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(130deg, var(--color-white) 80%, var(--color-hot-orange) 150%);
  z-index: 130;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.8,.13,.33,1.04);
  opacity: 0.99;
  box-shadow: 0 0 52px 0 rgba(75,155,54,0.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: 26px 26px 0 0;
  padding: 6px 12px;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 34px;
  gap: 12px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 14px 20px 14px 0;
  border-radius: 12px;
  margin-bottom: 5px;
  width: 95%;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  text-decoration: none;
}

/* Hide nav/show burger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none!important;
  }
}

/* ---------------- PAGE LAYOUT COMPONENTS ---------------- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin: 18px 0 8px 0;
}
.service-item {
  flex: 1 1 260px;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-main);
  box-shadow: 0 2px 14px 0 rgba(75,155,54,0.09);
  padding: 26px 20px 22px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 4px solid var(--color-accent);
}
.service-item h3 {
  margin-bottom: 6px;
  color: var(--color-accent-bold);
}
.service-item:hover {
  box-shadow: 0 2px 28px 0 rgba(23,48,66,0.13);
  transform: translateY(-6px) scale(1.026);
  border-bottom-color: var(--color-hot-orange);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  margin: 46px 0 0 0;
}
.footer-columns > div {
  flex: 1 1 185px;
  min-width: 185px;
}
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 44px 0 18px 0;
  margin-top: 60px;
}
footer h3,
footer h4 {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
footer ul {
  list-style: none;
  margin: 0 0 18px 0;
}
footer a {
  color: var(--color-secondary);
  text-decoration: underline dotted rgba(255,255,255,0.22) 1.5px;
  font-weight: 500;
  transition: color 0.13s;
  font-size: 15px;
}
footer a:hover {
  color: var(--color-hot-orange);
  text-decoration-color: var(--color-hot-orange);
}
footer img {
  margin-bottom: 12px;
}
footer p {
  color: var(--color-secondary);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

/* Mini icons + text in ULs */
ul > li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
ul > li img {
  width: 30px;
  height: 30px;
  display: inline-block;
}

ol > li {
  margin-bottom: 10px;
  padding-left: 4px;
  font-size: 1rem;
}

/* ---------------- SPACING & GAPS ---------------- */
main section {
  margin-bottom: var(--gap-section);
}
section .content-wrapper {
  padding: 0;
}

/* Contact details (Kontakt page) */
.contact-details {
  margin-bottom: 28px;
  background: var(--color-secondary);
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: 0 2px 8px 0 rgba(75,155,54,0.04);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
}
.contact-intro {
  margin-bottom: 18px;
  color: var(--color-primary);
}

/* ---------------- TESTIMONIAL SLIDER (Index) ---------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-hot-pink);
  color: var(--color-white);
  box-shadow: 0 -2px 16px 0 rgba(23,48,66,0.12);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
  font-size: 1rem;
  animation: bannerFadeIn 0.66s;
}
@keyframes bannerFadeIn {
  0% {opacity: 0; transform: translateY(60px);}
  100% {opacity: 1; transform: translateY(0);}
}
.cookie-banner p {
  color: var(--color-white);
  margin-bottom: 0;
}
.cookie-banner .cookie-btn {
  background: var(--color-white);
  color: var(--color-hot-pink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--radius-btn);
  padding: 9px 24px;
  margin-left: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  box-shadow: 0 1px 4px 0 rgba(255,34,122,0.08);
}
.cookie-banner .cookie-btn:hover {
  background: var(--color-hot-orange);
  color: var(--color-white);
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-electric-blue);
  color: var(--color-primary);
  font-family: var(--font-display);
  border-radius: var(--radius-btn);
  margin-left: 10px;
  font-size: 1rem;
  padding: 9px 24px;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: var(--color-white)
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2500;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,48,66,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInModal 0.25s;
}
@keyframes fadeInModal {
  0% { opacity: 0;}
  100% { opacity: 1;}
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius-main);
  box-shadow: 0 4px 40px 0 rgba(23,48,66,0.17);
  max-width: 420px;
  width: 90vw;
  padding: 32px 24px 18px 24px;
  position: relative;
  color: var(--color-primary);
}
.cookie-modal h2 {
  color: var(--color-hot-pink);
  font-size: 1.34rem;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1.5px solid #eee;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 18px;
  font-family: var(--font-display);
}
.cookie-toggle {
  width: 48px;
  height: 24px;
  background: #eee;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #BBB;
  transition: left 0.22s, background 0.2s;
}
.cookie-toggle input:checked + .slider {
  left: 26px;
  background: var(--color-accent);
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 10px 18px;
}
.cookie-modal-close {
  position: absolute; right: 14px; top: 10px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 12px;
  padding: 3px 10px;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #f5f5f5;
}

/* ---------------- ANIMATIONS & HOVER STATES ---------------- */
.card, .service-item, .testimonial-card, .cta-btn {
  transition: box-shadow 0.16s, transform 0.14s, background 0.17s, border 0.16s;
}
.card:focus-within, .service-item:focus-within {
  border-color: var(--color-hot-orange);
  box-shadow: 0 2px 22px 0 rgba(23,48,66,0.15);
}
nav a:focus {
  outline: 2px solid var(--color-hot-pink);
  background: #f7f0e6;
}

/* ---------------- RESPONSIVE DESIGN ---------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 97vw;
  }
  .content-wrapper {
    max-width: 98vw;
  }
}
@media (max-width: 990px) {
  .card-container, .content-grid, .testimonial-slider, .footer-columns, .service-list {
    flex-wrap: wrap;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 34px 0;
    min-height: 150px;
    border-radius: 0 0 16px 16px;
  }
  .container {
    padding: 0 8px;
  }
  .card-container, .content-grid, .testimonial-slider, .footer-columns, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 40px;
  }
  .main-nav {
    display: none!important;
  }
  .footer-columns {
    gap: 30px;
    margin: 12px 0 0 0;
  }
  .testimonial-card, .service-item, .card {
    min-width: 0;
    width: 100%;
    margin-bottom: 16px;
    max-width: 100%;
    padding: 18px 11px;
  }
}
@media (max-width: 550px) {
  .hero-section h1, h1 {
    font-size: 1.40rem;
  }
  .hero-section p, p, li, .cta-btn {
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.98rem;
    padding: 14px 7px 16px 7px;
    gap: 13px;
  }
  .cookie-banner .cookie-btn, .cookie-banner .cookie-settings-btn {
    padding: 8px 16px;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ---------------- MISCELLANEOUS ---------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #f3f3f3;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 7px;
}

::selection {
  background: #ffcb68;
}

/* Accessibility Outlines */
:focus-visible, .cta-btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-hot-orange);
  outline-offset: 2px;
}

/* Hide position: absolute for main content (only for allowed button overlays, etc.) */

/* ---------------- PRINT STYLING (for downloads) ---------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner {
    display: none !important;
  }
  main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
