/* =========================
   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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #111a25;
  color: #fafdff;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s;
}
img {
  border: none;
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font: inherit;
  outline: none;
}

/* =========================
   CSS VARIABLES (with fallbacks)
   ========================= */
:root {
  --color-primary: #22577a;
  --color-secondary: #5584ac;
  --color-accent: #fff9ec;
  --color-bg: #111a25;
  --color-surface: #1a2532;
  --color-card: #182533;
  --color-neon: #93f6ec;
  --color-danger: #ed6a5e;
  --color-success: #45e695;
  --text-light: #fafdff;
  --text-dark: #20232a;
  --radius: 18px;
  --shadow-main: 0 4px 20px 0 rgba(34,87,122,0.11), 0 1.5px 8px 0 rgba(87,231,238,0.07);
  --font-title: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =========================
   BASE BODY & TYPOGRAPHY
   ========================= */
body {
  font-family: var(--font-body);
  background: linear-gradient(137deg, #223147 0%, #22577a 100%);
  color: var(--text-light);
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 { font-size: 32px; margin-bottom: 20px; }
h2 { font-size: 24px; margin-bottom: 18px; }
h3 { font-size: 18px; margin-bottom: 12px; }
h4, h5, h6 { font-size: 16px; margin-bottom: 8px; }

p, li, ul {
  font-size: 16px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}

/* =========================
   CONTAINER & LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Extra spacing for larger screens */
@media (min-width: 992px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* =========================
   SECTION & SPACING RULES
   ========================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-card);
  padding: 22px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px 0 rgba(87,246,236,0.09);
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid var(--color-secondary);
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px var(--color-neon));
  background: var(--color-bg);
  border-radius: 8px;
}
.feature-item:hover {
  border-color: var(--color-neon);
  box-shadow: 0 6px 28px 0 rgba(87,246,236,0.15), 0 0 0 2px var(--color-neon);
}
.text-section {
  background: var(--color-surface);
  padding: 24px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-main);
}
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--color-card);
  padding: 0;
  box-shadow: 0 2px 10px 0 rgba(34,87,122,0.07);
  border-bottom: 1.5px solid var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  color: var(--color-accent);
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-family: var(--font-title);
}
header nav a:hover, header nav a:focus {
  background: var(--color-neon);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 0 8px var(--color-neon);
}
header img[alt="Fellfreunde Hamburg"] {
  height: 46px;
  width: auto;
  margin-right: 18px;
}
.cta-button {
  background: linear-gradient(90deg,var(--color-neon),var(--color-primary));
  color: var(--color-bg);
  font-family: var(--font-title);
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 28px 0 rgba(87,246,236,0.22);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.14s;
  margin-left: 8px;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg,var(--color-primary),var(--color-neon));
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 36px 4px rgba(22,231,238,0.25), 0 0 18px 2px var(--color-neon);
}

/* =========================
   MOBILE BURGER NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  background: var(--color-secondary);
  border: none;
  color: var(--text-light);
  font-size: 34px;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(87,246,236,0.14);
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-neon);
  color: var(--color-primary);
  outline: 2px solid var(--color-neon);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(137deg, #151e2e 70%, var(--color-primary) 100%);
  box-shadow: 0 12px 40px 0 rgba(87,246,236,0.22);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.23,1.1,.32,1), opacity 0.18s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-danger);
  color: var(--text-light);
  font-size: 24px;
  border: none;
  border-radius: 10px;
  padding: 6px 16px;
  margin: 24px 0 12px 20px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(225,100,120,0.15);
  transition: background 0.16s;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-neon);
  color: var(--color-danger);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-left: 32px;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--color-neon);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 8px 8px 0px;
  border-radius: 8px;
  transition: color 0.14s, background 0.14s;
  margin-bottom: 2px;
  min-width: 180px;
  min-height: 36px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-primary);
  background: var(--color-neon);
}
@media (min-width: 930px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 929px) {
  header nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-card);
  border-top: 1.5px solid var(--color-secondary);
  color: var(--color-accent);
  font-size: 14px;
  padding: 28px 0 8px 0;
  box-shadow: 0 -2px 10px 0 rgba(87,246,236,0.06);
  position: relative;
  z-index: 10;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-neon);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-neon);
  color: var(--color-primary);
}
footer p {
  color: var(--color-accent);
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff9ec;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 24px 0 rgba(87,246,236,0.19);
  border: 2.2px solid var(--color-neon);
  color: #20232a;
  transition: border-color 0.16s, box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 10px 36px 0 rgba(34,87,122,0.22) !important;
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  font-size: 17px;
  color: #20232a;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 15px;
  color: #22747e;
  font-style: italic;
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  margin-top: 7px;
  display: inline-block;
}

/* =========================
   CONTACT SUMMARY
   ========================= */
.contact-summary {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(34,87,122,0.08);
  padding: 22px 18px;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.contact-summary ul {
  list-style: none;
  margin-bottom: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-summary li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.contact-summary img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px var(--color-neon));
}
.contact-summary strong {
  color: var(--color-neon);
}
.contact-summary a.cta-button {
  margin-top: 10px;
}

/* =========================
   LIST STYLING
   ========================= */
ul, .text-section ul {
  list-style-position: inside;
  padding-left: 0;
  margin-top: 16px;
  margin-bottom: 16px;
  color: var(--text-light);
}
.text-section ul li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
}
.text-section ul li:before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--color-neon);
  display: inline-block;
  position: absolute;
  left: 0;
  top: 3px;
  box-shadow: 0 1px 6px 0 var(--color-neon);
}

/* =========================
   LINKS, BUTTONS, INTERACTIONS
   ========================= */
a, button {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, border-color 0.18s, transform 0.14s;
}
a:focus, a:active, button:focus, button:active {
  outline: 2px solid var(--color-neon);
  outline-offset: 2px;
  z-index: 2;
}
a.cta-button, .cta-button {
  text-shadow: 0 2px 8px rgba(87,246,236,0.15);
}

/* =========================
   RESPONSIVE MEDIA QUERIES
   ========================= */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .feature-grid,
  .card-container,
  .card-grid,
  .content-grid,
  .text-image-section,
  .content-wrapper {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .feature-item, .card, .testimonial-card, .text-section, .contact-summary {
    padding: 16px 10px;
    border-radius: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
  }
  .feature-item img, .feature-item img {
    width: 38px;
    height: 38px;
  }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  .cta-button {
    font-size: 16px;
    padding: 9px 18px;
  }
}

/* Extra small fix for burger menu spacing */
@media (max-width: 500px) {
  .mobile-menu-toggle {
    top: 12px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .mobile-menu-close {
    font-size: 18px;
    margin: 14px 0 4px 10px;
    padding: 4px 10px;
  }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--color-card);
  box-shadow: 0 -4px 18px 0 rgba(87,246,236,0.20);
  color: var(--color-accent);
  border-top: 2px solid var(--color-neon);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  font-size: 15px;
  transition: opacity 0.24s, transform 0.3s;
  opacity: 1;
  pointer-events: all;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 16px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(87,246,236,0.12);
  margin-bottom: 2px;
  transition: background 0.17s, color 0.13s, box-shadow 0.15s, outline 0.18s;
}
.cookie-banner .accept {
  background: linear-gradient(95deg, var(--color-success) 80%, var(--color-neon) 100%);
  color: var(--color-bg);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-neon);
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: var(--color-danger);
  color: var(--color-accent);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #fae8ea;
  color: var(--color-danger);
}
.cookie-banner .settings {
  background: var(--color-primary);
  color: var(--color-neon);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-neon);
  color: var(--color-primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 8px;
    font-size: 14px;
  }
  .cookie-banner .cookie-buttons {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* =========================
   COOKIE MODAL (Preferences)
   ========================= */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,18,30,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: var(--color-card);
  color: var(--color-accent);
  border-radius: var(--radius);
  padding: 38px 26px 24px 26px;
  box-shadow: 0 8px 38px 4px rgba(87,246,236,0.16);
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  border: 2px solid var(--color-neon);
  font-size: 16px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 6px;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--color-danger);
  color: #fff;
}
.cookie-modal .preferences-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.cookie-modal .pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  padding: 10px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--color-secondary);
  font-size: 15px;
}
.cookie-modal .pref-row .toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 14px;
  background: #20394b;
  border: 1.5px solid var(--color-neon);
  display: flex;
  align-items: center;
  padding: 2.5px;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, border-color 0.16s;
}
.cookie-modal .pref-row .toggle-switch[data-enabled="true"] {
  background: var(--color-neon);
  border-color: var(--color-success);
}
.cookie-modal .pref-row .toggle-slider {
  background: #fff;
  width: 17px; height: 17px;
  border-radius: 50%;
  transition: transform 0.19s;
  position: absolute;
  left: 3px; top: 2.5px;
  box-shadow: 0 1px 4px 0 rgba(87,246,236,0.19);
}
.cookie-modal .pref-row .toggle-switch[data-enabled="true"] .toggle-slider {
  background: var(--color-success);
  transform: translateX(16px);
}
.cookie-modal .pref-row.pref-essential {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 16px;
  font-family: var(--font-title);
  cursor: pointer;
  background: var(--color-success);
  color: var(--color-bg);
  font-weight: 700;
  transition: background 0.18s, color 0.15s;
}
.cookie-modal .cookie-modal-actions .cancel {
  background: var(--color-danger);
  color: var(--color-light);
}
.cookie-modal .cookie-modal-actions .cancel:hover, .cookie-modal .cookie-modal-actions .cancel:focus {
  background: #fae8ea;
  color: var(--color-danger);
}
.cookie-modal .cookie-modal-actions .apply {
  background: linear-gradient(90deg,var(--color-success), var(--color-neon));
  color: var(--color-bg);
}
.cookie-modal .cookie-modal-actions .apply:hover, .cookie-modal .cookie-modal-actions .apply:focus {
  background: var(--color-neon);
  color: var(--color-primary);
}
@media (max-width: 480px) {
  .cookie-modal .cookie-modal-content {
    padding: 22px 6px 14px 10px;
    max-width: 98vw;
  }
  .cookie-modal .cookie-modal-actions button {
    padding: 8px 12px;
    font-size: 15px;
  }
}

/* =========================
   GENERAL CARD LAYOUTS
   ========================= */
.card, .feature-item, .text-section, .contact-summary {
  box-shadow: 0 2px 16px 0 rgba(87,246,236,0.09);
  border-radius: var(--radius);
}
.card {
  border: 1.5px solid var(--color-secondary);
  background: var(--color-card);
  color: var(--color-light);
}

/* =========================
   ANIMATION MICRO-INTERACTIONS
   ========================= */
.cta-button, .card, .testimonial-card, .feature-item, button, a {
  transition-property: background, color, box-shadow, border, transform, opacity;
  transition-duration: 0.13s, 0.13s, 0.16s, 0.16s, 0.14s, 0.15s;
}
.card:hover {
  box-shadow: 0 6px 34px 0 rgba(87,246,236,0.17);
  border-color: var(--color-neon);
}

/* =========================
   ACCESSIBILITY FOCUS
   ========================= */
*:focus-visible {
  outline: 2px solid var(--color-neon);
  outline-offset: 1.5px;
  z-index: 20;
}

/* =========================
   MISCELLANEOUS
   ========================= */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-card);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 12px;
}
/* Dark mode hint for selection */
::selection {
  background: #22577a;
  color: #fff9ec;
}

/* =============================
   END OF STYLE.CSS
   ============================= */
