/* =======================
   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.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: #101720; color: #f8fff6; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
b, strong { font-weight: 700; }
ul, ol { padding-left: 1.6em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
input, button, textarea, select { outline: none; border-radius: 0; }
*, *:before, *:after { box-sizing: inherit; }

/* =======================
   BRAND & DESIGN TOKENS
   ======================= */
:root {
  --color-primary: #235E4A;
  --color-secondary: #B5DCA7;
  --color-accent: #F6FAEA;
  --color-bg: #101720;
  --color-surface: #14222b;
  --color-card: #19292f;
  --color-footer: #1a242a;
  --color-neon: #65FFDE;
  --color-danger: #FF265D;
  --color-dark: #101720;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-default: 18px;
  --radius-card: 24px;
  --shadow-small: 0 1px 8px 0 rgba(35,94,74, 0.09), 0 0.5px 2px 0 rgba(101,255,222,.08);
  --shadow-card: 0 5px 40px rgba(24,246,200,0.05), 0 0.5px 2px 0 rgba(35,94,74,0.14);
  --shadow-neon: 0 0 8px 2px #65ffdedd, 0 0 20px 4px #235E4A25;
  --transition-default: .22s cubic-bezier(.77, 0, .175, 1);
}

/* =======================
   BASE LAYOUTS
   ======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 30px 0 0 0;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-small);
  padding: 28px 24px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}
.card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: var(--shadow-neon), var(--shadow-card);
  border: 1.5px solid var(--color-neon);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  color: #141F1A;
  border-radius: var(--radius-default);
  box-shadow: 0 3px 20px rgba(101,255,222,0.10);
  margin: 16px 0;
  min-width: 0;
  font-size: 18px;
  font-family: var(--font-display);
}
.testimonial-card q {
  color: #123e32;
  font-style: italic;
  font-size: 18px;
}
.testimonial-card span {
  font-size: 16px;
  color: #235E4A;
  font-weight: 500;
}

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

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* =======================
   TYPOGRAPHY
   ======================= */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: #f8fff6;
  background: var(--color-bg);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--color-neon);
  text-shadow: 0 0 8px rgba(101,255,222,0.08);
}
h1 { font-size: 2.4rem; margin-bottom: 0.4em; }
h2 { font-size: 1.8rem; margin-bottom: 0.3em; }
h3 { font-size: 1.25rem; margin-bottom: 0.2em; color: var(--color-secondary); }
h4 { font-size: 1.1rem; }
.subheadline {
  font-size: 1.22rem;
  font-family: var(--font-body);
  color: #CBFFD9;
}
p, ul, ol, li, label {
  font-size: 1rem;
  color: #e9f7ea;
}
ul, ol { margin-left: 1em; }
a, .btn, button {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

/* =======================
   BUTTONS & LINKS
   ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#235e4a 0,#123e32 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 34px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-neon);
  cursor: pointer;
  transition: background .19s, transform .18s, box-shadow .18s, color .18s;
}
.btn-primary {
  background: linear-gradient(90deg, #235E4A 0, #66ffde 80%);
  color: #111;
  box-shadow: var(--shadow-neon);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,#66ffde 0,#235e4a 100%);
  color: #235E4A;
  transform: translateY(-2px) scale(1.07);
  box-shadow: var(--shadow-neon),0 2px 12px #B5DCA780;
}
.btn-secondary {
  background: linear-gradient(90deg,#B5DCA7 0,#F6FAEA 100%);
  color: #235e4a;
  box-shadow: 0 1px 6px #B5DCA780;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(90deg,#F6FAEA 0,#B5DCA7 100%);
  color: #123e32;
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-neon),0 2px 12px #b5dca77a;
}
/* General Button Stylings */
button, a.btn {
  outline: none;
  text-decoration: none;
}
button[disabled], .btn[disabled] {
  opacity: .55;
  pointer-events: none;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: var(--color-dark);
  border-bottom: 1.5px solid #18403b38;
  position: sticky; top: 0; z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 20px;
  min-height: 68px;
}
header a img {
  max-height: 38px; vertical-align: middle;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #bedeee;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 1.01rem;
  transition: background .13s, color .15s;
}
header nav a:hover, header nav a.active {
  background: #65FFDE20;
  color: #65FFDE;
}

.mobile-menu-toggle {
  display: none;
  margin-left: 20px;
  background: none;
  border: none;
  color: #65FFDE;
  font-size: 2.15rem;
  padding: 2px 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: background .16s, color .17s;
}
.mobile-menu-toggle:hover { background: #14222b; color: #B5DCA7; }

/* =======================
   MOBILE NAV OVERLAY
   ======================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(20, 34, 43, 0.98);
  z-index: 1202;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.27s cubic-bezier(.77,0,.18,1), opacity 0.2s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #65FFDE;
  font-size: 2.4rem;
  margin: 23px 32px 0 0;
  border: none;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover { color: #B5DCA7; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 48px 38px;
  width: 100%;
}
.mobile-nav a {
  color: #65FFDE;
  font-size: 1.34rem;
  font-family: var(--font-display);
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 17px;
  transition: background .13s, color .15s;
}
.mobile-nav a:hover {
  background: #123e32CC;
  color: #B5DCA7;
}
/* ===== Footer ===== */
footer {
  background: var(--color-footer);
  color: #e9f7ea;
  font-size: 1rem;
  padding: 44px 0 22px 0;
  border-top: 1.5px solid #18403b38;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 270px;
}
.footer-brand img { max-width: 112px; margin-bottom: 8px; }
.footer-brand span {
  font-size: 1.08rem;
  color: #65FFDE;
  font-family: var(--font-display);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a { color: #CBFFD9; transition: color .16s; }
.footer-nav a:hover { color: #65FFDE; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #B5DCA7;
  font-size: .98rem;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.footer-social img {
  width: 28px; height: 28px;
  filter: drop-shadow(0 1px 4px #235E4Ab0) drop-shadow(0 0 4px #65FFDE50);
  transition: filter .15s;
}
.footer-social img:hover {
  filter: drop-shadow(0 1px 8px #65FFDEbb) drop-shadow(0 0 10px #65FFDE80);
}

/* =======================
   CARDS & BLOG ARTICLES
   ======================= */
.card,
article {
  background: var(--color-surface);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-small);
  padding: 24px 20px;
  color: #f4fff5;
  transition: box-shadow .2s, transform .2s;
}
.card:hover,
article:hover {
  box-shadow: var(--shadow-neon), var(--shadow-card);
  transform: translateY(-2px) scale(1.03);
}
article h3 {
  margin-bottom: 6px;
  color: var(--color-neon);
}
/* Blog grid for posts */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin-top: 30px;
}
.blog-grid article {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
}

/* =======================
   FORMS (Kontakt, Suche)
   ======================= */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 16px 0;
}
input, textarea, select {
  padding: 13px 15px;
  border-radius: 11px;
  background: #172829;
  border: 1.5px solid #B5DCA7;
  color: #f0fff1;
  font-size: 1rem;
  box-shadow: 0 1px 5px #65FFDE0B;
  transition: border-color .13s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-neon);
  box-shadow: 0 3px 16px #65FFDE33;
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1699;
  background: var(--color-card);
  color: #fff;
  border-top: 2.5px solid #65FFDE55;
  box-shadow: 0 -3px 24px #18403b60;
  padding: 26px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s, transform .19s cubic-bezier(.77,0,.18,1);
  transform: translateY(72px);
}
#cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#cookie-consent-banner p {
  color: #ecfff6;
  font-size: 1rem;
  margin-right: 24px;
}
.cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: none;
  border: 1.5px solid #B5DCA7;
  color: #B5DCA7;
  font-family: var(--font-display);
  padding: 8px 18px;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .17s, color .19s, border-color .16s;
}
.cookie-btn.primary {
  background: #235E4A;
  color: #fff;
  border-color: #65FFDE;
  box-shadow: 0 0 10px #65FFDE76;
}
.cookie-btn.danger {
  background: #FF265D;
  color: #fff;
  border-color: #ff3b5f;
  box-shadow: 0 0 8px #FF265D50;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #101720;
  color: #65FFDE;
  border-color: #65FFDE;
}
.cookie-btn.primary:hover {
  background: #65FFDE;
  color: #032F16;
}
.cookie-btn.danger:hover {
  background: #f4fff5;
  color: #FF265D;
}


/* ===== Cookie Settings Modal ===== */
#cookie-preferences-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: 95vw; max-width: 420px;
  z-index: 2005;
  background: #14222b;
  color: #fff;
  border-radius: 19px;
  box-shadow: var(--shadow-neon),0 4px 44px #65FFDE30;
  padding: 26px 20px 26px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s, transform .16s;
}
#cookie-preferences-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-preferences-modal h3 {
  font-size: 1.22rem;
  color: #65FFDE;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: #65FFDE;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}
.cookie-category label {
  font-size: 1.03rem;
  color: #fff;
}
.cookie-preferences-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
#cookie-preferences-modal .close {
  position: absolute;
  top: 12px;
  right: 22px;
  background: none;
  color: #65FFDE;
  font-size: 1.62rem;
  border: none;
  cursor: pointer;
  transition: color .17s;
}
#cookie-preferences-modal .close:hover {
  color: #B5DCA7;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 1060px) {
  .container { max-width: 93vw; }
}
@media (max-width: 850px) {
  header .container {
    flex-direction: row;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .section { padding: 27px 10px; margin-bottom: 38px; border-radius: 15px; }
  .content-wrapper { gap: 16px; }
  .card-container, .card-grid, .content-grid { flex-direction: column; gap: 18px; }
  .text-image-section { flex-direction: column; gap: 22px; }
  .feature-item, .testimonial-card, .quick-actions, .footer-brand { gap: 12px; }
  .footer-contact { gap: 6px; }
  .footer-social { margin-top: 12px; }
  .footer-brand img { max-width: 88px; }
  .footer-nav { gap: 7px; }
  .footer-brand { max-width: 100%; }
  .blog-grid { flex-direction: column; gap: 18px; }
}
@media (max-width: 620px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-brand img { max-width: 66px; }
  .footer-contact, .footer-nav { font-size: 0.97rem; }
  footer .container { flex-direction: column; gap: 19px; align-items: flex-start; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.44rem; } h2 { font-size: 1.15rem; }.subheadline { font-size: 1.02rem; }
  .btn, .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.99rem; }
  .section { padding: 14px 4px; }
  .testimonial-card { font-size: 1rem; padding: 14px; }
  .blog-grid article, .card { max-width: 99vw; min-width: 0; padding: 13px 8px; }
  .footer-brand img { max-width: 46px; }
}

/* ====================
   MICRO-INTERACTIONS
   ==================== */
a, .btn, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background .13s, color .14s, box-shadow .12s, filter .12s, border-color .13s, transform .09s;
}

/* ===================
   MISC FIXES
   =================== */
[tabindex]:focus,
button:focus,
.btn:focus,
a:focus {
  outline: 2px dashed #65FFDE;
  outline-offset: 2px;
  box-shadow: 0 0 4px #65FFDE60;
}

::-webkit-input-placeholder { color: #bedeee; opacity: 1; }
::-moz-placeholder { color: #bedeee; opacity: 1; }
:-ms-input-placeholder { color: #bedeee; opacity: 1; }
::placeholder { color: #bedeee; opacity: 1; }

/* Hide cookie modal/backdrop by default */
#cookie-preferences-modal,
#cookie-consent-banner { visibility: hidden; }
#cookie-preferences-modal.active,
#cookie-consent-banner.active { visibility: visible; }
