/* =============================================================
  NESTWEALTH ÜBERSETZUNGEN CSS (Vibrant Energetic Style)
  BRAND: Modern, electric, bold, energetic, with trust & clarity
============================================================= */
/* ======= 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  background: #F9F8F4; /* accent/lightest */
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #30A3CF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A365D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li:not(:last-child) {
  margin-bottom: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
  font-size: 16px;
}
th {
  background-color: #30A3CF;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ======= BRAND COLORS (Vibrant/Energetic) ======= */
:root {
  --color-primary: #1A365D;
  --color-secondary: #30A3CF;
  --color-accent: #F9F8F4;
  --color-electric-pink: #FC2476;
  --color-electric-orange: #FF8300;
  --color-electric-green: #1BE7A2;
  --color-dark: #1A1A1A;
  --color-gray: #e2e8f0;
  --color-muted: #8C99AE;
  --shadow-high: 0 6px 34px rgba(48,163,207,0.15);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A365D;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1.0rem; }
.subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #222;
}

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

/* ======= LAYOUT: FLEX PATTERNS ======= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 40px; }
}
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-high);
  transition: box-shadow 0.2s, transform 0.18s;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(252,36,118,0.10), 0 2px 8px rgba(48,163,207,0.08);
  transform: translateY(-4px) scale(1.03);
}
.card-content {
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* Feature grid items */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(48,163,207,0.09);
  padding: 32px 20px 24px 20px;
  margin-bottom: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 5px solid var(--color-electric-pink);
  transition: border-color 0.27s;
}
.feature-grid li:hover {
  border-left: 5px solid var(--color-electric-green);
}
.feature-grid img {
  width: 42px;
  height: 42px;
}
.feature-grid h3 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-left: 6px solid var(--color-electric-orange);
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(26,54,93,0.07);
  padding: 20px 24px 20px 22px;
  gap: 12px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #161920;
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 8px;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

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

.cta-section {
  background: linear-gradient(90deg, #30A3CF 0%, #FC2476 100%);
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(48,163,207,0.13);
  margin-bottom: 60px;
  padding: 42px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-section h2, .cta-section p {
  color: #fff;
  text-align: center;
}
.cta-section a.btn-primary {
  margin-top: 20px;
}
@media (max-width: 768px) {
  .cta-section {
    border-radius: 16px;
    padding: 30px 8px;
  }
}

/* ======= HEADER / NAVIGATION ======= */
header {
  background: #fff;
  box-shadow: 0 3px 28px 0 rgba(48,163,207,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 14px;
}
header img {
  height: 44px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0 6px;
  transition: color 0.18s;
  border-radius: 6px;
  position: relative;
}
nav a::after {
  content: "";
  display: block;
  width: 0%;
  height: 3px;
  background: var(--color-electric-pink);
  border-radius: 2px;
  transition: width .21s;
  position: absolute;
  left: 10%; bottom: -2px;
}
nav a:hover, nav a:focus {
  color: var(--color-secondary);
}
nav a:focus::after, nav a:hover::after {
  width: 80%;
}
.btn-primary {
  background: linear-gradient(90deg, #FC2476 0%, #30A3CF 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  border-radius: 10px;
  padding: 13px 32px;
  box-shadow: 0 2px 16px 0 rgba(252,36,118,0.13);
  transition: filter 0.14s, box-shadow 0.17s, background 0.32s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  margin-left: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #FF8300 0%, #30A3CF 100%);
  filter: brightness(1.07);
  box-shadow: 0 3px 28px 0 rgba(252,36,118,0.18);
  text-decoration: none;
}

/* ======= MOBILE NAVIGATION ======= */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--color-secondary);
    padding: 9px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .13s, color .13s;
    z-index: 1030;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #F9F8F4;
    color: var(--color-electric-pink);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: 0 4px 84px 0 rgba(48,163,207,0.20);
    z-index: 2000;
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.53,.22,.27,.99);
    padding: 40px 24px 24px 28px;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--color-primary);
    position: absolute;
    right: 18px; top: 14px;
    cursor: pointer;
    z-index: 2100;
    border-radius: 6px;
    padding: 3px 13px;
    transition: background 0.15s;
  }
  .mobile-menu-close:focus, .mobile-menu-close:hover {
    background: #F9F8F4;
    color: var(--color-electric-green);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 90vw;
    margin-top: 54px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    padding: 11px 2px;
    border-radius: 8px;
    transition: background 0.17s, color 0.19s;
  }
  .mobile-nav a:focus, .mobile-nav a:hover {
    color: var(--color-secondary);
    background: #F9F8F4;
  }
}

/* ======= HERO SECTION ======= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: linear-gradient(90deg, #FC2476 0%, #30A3CF 100%);
  color: #fff;
  padding: 80px 0 55px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1, .hero .subtitle {
  color: #fff;
  text-shadow: 0 2px 14px rgba(48,163,207,0.17);
}
.hero .btn-primary {
  margin-top: 20px;
}
@media (max-width: 768px) {
  .hero { padding: 46px 0 32px 0; min-height: 210px; }
  .hero h1 { font-size: 1.55rem; }
}

/* ======= FOOTER ======= */
footer {
  background: #1A365D;
  color: #fff;
  padding: 36px 0 0 0;
  margin-top: 40px;
}
footer .container {
  padding-bottom: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 44px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline 1px rgba(255,255,255,0.3);
  border-radius: 5px;
  padding: 1px 6px;
  transition: background 0.13s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
footer p {
  color: #fff;
  font-size: 0.99rem;
  margin-bottom: 10px;
}
footer a img {
  height: 32px;
  margin-right: 8px;
  margin-bottom: 0;
}
footer .content-wrapper > div:last-child {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
@media (max-width: 998px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px 0px;
  }
  footer nav {
    margin-bottom: 6px;
  }
}

/* ======= COOKIE CONSENT BANNER & MODAL ======= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #222;
  box-shadow: 0 -2px 20px 0 rgba(48,163,207,0.13);
  z-index: 4000;
  padding: 22px 24px 22px 24px;
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.27s cubic-bezier(.41,.57,.51,.98), opacity 0.25s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #222;
  font-size: 1.02rem;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-alt,
.cookie-banner .btn-neutral {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.12s, box-shadow 0.15s;
  margin-left: 0;
}
.cookie-banner .btn-primary {
  background: linear-gradient(90deg, #1BE7A2 0%, #30A3CF 100%);
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(48,163,207,0.14);
}
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background: linear-gradient(90deg, #FC2476 0%, #30A3CF 100%);
  filter: brightness(1.08);
  color: #fff;
}
.cookie-banner .btn-alt {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: none;
}
.cookie-banner .btn-alt:hover,
.cookie-banner .btn-alt:focus {
  background: #F9F8F4;
  color: var(--color-primary);
}
.cookie-banner .btn-neutral {
  background: #F9F8F4;
  color: var(--color-primary);
  border: 2px solid var(--color-gray);
  box-shadow: none;
}
.cookie-banner .btn-neutral:hover,
.cookie-banner .btn-neutral:focus {
  background: #e2e8f0;
  color: var(--color-secondary);
}

/* Cookie preferences modal (centered) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,54,93,0.27);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.16s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 40px 0 rgba(30,163,207,0.17);
  padding: 36px 32px 24px 32px;
  min-width: 320px;
  min-height: 200px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popin 0.29s cubic-bezier(.93,-0.01,.35,1.37);
  position: relative;
}
@keyframes popin { from{ transform: scale(.89); opacity: 0 } to{ transform: scale(1); opacity:1 }}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-switch {
  --height: 26px;
  --width: 48px;
  appearance: none;
  width: var(--width);
  height: var(--height);
  background: #e2e8f0;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  margin-right: 6px;
}
.cookie-switch:checked {
  background: linear-gradient(90deg, #FC2476 0%, #1BE7A2 100%);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 4px; top: 2.5px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px 1px rgba(48,163,207,0.09);
  transition: left 0.17s;
}
.cookie-switch:checked:before {
  left: 23px;
}
.cookie-modal .category-desc {
  color: #666;
  font-size: 0.97rem;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-alt {
  font-size: 1rem;
}
.cookie-modal .close-btn {
  position: absolute;
  right: 16px; top: 8px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 6px 13px;
  border-radius: 7px;
  transition: background 0.14s, color 0.16s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  background: #F9F8F4;
  color: var(--color-electric-pink);
}

@media (max-width: 700px) {
  .cookie-modal { padding: 22px 8px 16px 8px; min-width: 0; }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 6px;
    font-size: 0.98rem;
  }
  .cookie-banner-btns {
    flex-direction: column;
    gap: 11px;
  }
}

/* ======= SPACING & MICRO-ANIMATIONS ======= */
section, .section {
  margin-bottom: 60px;
  padding-top: 10px;
}
@media (max-width: 768px) {
  section, .section { margin-bottom: 38px; }
}

/* Micro-interactions */
.btn-primary, .cookie-banner .btn-primary {
  position: relative;
}
.btn-primary:active, .cookie-banner .btn-primary:active {
  top: 1px;
}

.feature-grid li, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.13s;
}
.feature-grid li:active, .card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ======= MISC. LAYOUT & UTILITIES ======= */
.card-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
section ul {
  margin-top: 0px;
  margin-bottom: 16px;
}
.section > .container > .content-wrapper > * {
  margin-bottom: 0px;
}

/* Responsive adjustments for flex layouts */
@media (max-width: 900px) {
  .feature-grid, .card-grid, .content-grid {
    gap: 14px;
  }
  .card, .feature-grid li {
    flex: 1 1 88vw;
    min-width: 210px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .feature-grid, .card-grid, .content-grid {
    gap: 10px;
  }
  .card, .feature-grid li {
    flex: 1 1 99vw;
    min-width: 190px;
  }
}

/* ======= FORMS (future-proof, e.g. Kontakt) ======= */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  padding: 12px 14px;
  margin-bottom: 14px;
  outline: none;
  font-weight: 400;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #30A3CF;
  box-shadow: 0 1px 9px 0 #30A3CF33;
}

label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #1A365D;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

/* ======= TABLES ======= */
table {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(30,163,207,0.08);
  margin-bottom: 36px;
}
tr:nth-child(even) td {
  background: #F9F8F4;
}
tr:hover td {
  background: #E8F7FC;
}

/* ======= CUSTOM ICONS / IMAGES ======= */
img[alt^="icon-"] {
  /* Force vibant touch to icons */
  filter: drop-shadow(0 2px 4px #30A3CF30) drop-shadow(0 4px 8px #FC247644);
}

/* ======= UTILITIES ======= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mt-8 { margin-top: 32px !important; }
.mb-8 { margin-bottom: 32px !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

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