/* ==========================================================
   Kraftwelle Fitness – Gradient Modern Theme (Flexbox Only)
   Comprehensive Responsive CSS for All Pages
============================================================*/
/* =======================
   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 {
  box-sizing: border-box;
  min-height: 100%;
}
body {
  background: linear-gradient(120deg,#e8e7eb 0%,#f1f5fb 40%,#dff0fa 100%);
  color: #174362;
  font-family: Verdana, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #174362;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F8A739;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
}
strong, b {
  font-weight: bold;
  color: #174362;
}

/* =======================
   TYPOGRAPHY & FONTS
======================= */
:root {
  --primary: #174362;
  --secondary: #E8E7EB;
  --accent: #F8A739;
  --surface: #fff;
  --shadow: 0 4px 16px 0 rgba(23,67,98,0.07);
  --radius: 18px;
  --font-display: 'Montserrat', Arial, Verdana, sans-serif;
  --font-body: Verdana, Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  color: var(--primary);
  background-color: var(--secondary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: bold;
  color: #174362;
  margin-bottom: 18px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, table {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #174362;
}
.text-section p {
  margin-bottom: 12px;
}

/* =======================
   CONTAINER & LAYOUT
======================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* =============
   FLEX GRIDS
==============*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.feature-grid li {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 350px;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
  border: 1px solid #e8e7eb;
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.feature-grid li:hover {
  box-shadow: 0 8px 20px 0 rgba(23,67,98,0.14);
  transform: translateY(-3px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 380px;
}
/* =============
   HERO SECTION
==============*/
.hero {
  background: linear-gradient(104deg,#174362 0%,#0d2436 80%);
  color: #fff;
  padding: 64px 0 48px 0;
  position: relative;
  margin-bottom: 48px;
}
.hero h1,
.hero p {
  color: #fff;
  text-shadow: 0 3px 16px rgba(23,67,98, 0.17);
}
.hero .cta-btn {
  background: var(--accent);
  color: #174362;
  font-weight: 700;
  margin-top: 14px;
}

/* ========================
   HEADER & NAVBAR (Desk)
======================== */
header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(19,43,66,0.05);
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 18px;
}
.logo img {
  height: 38px;
  padding: 8px 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #174362;
  font-weight: 500;
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
/* ========================
   ACTION BUTTONS
======================== */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, #ffce6e 100%);
  color: #174362;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  box-shadow: 0 3px 14px 0 rgba(23,67,98,0.07);
  transition: background 0.17s, color 0.19s, transform 0.17s, box-shadow 0.17s;
  margin: 0 0 0 16px;
  cursor: pointer;
  outline: none;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #ffd49e 0%, var(--accent) 100%);
  color: #0d2436;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px 0 rgba(23,67,98,0.14);
  outline: none;
}

/* =============
   BURGER MENU
==============*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  z-index: 102;
  padding: 4px 12px;
  line-height: 1.0;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.82,0,.19,1);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(19,43,66,0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 18px 28px 0 0;
  cursor: pointer;
  z-index: 201;
  padding: 6px 16px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 58px 0 0 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 9px 0;
  transition: color 0.19s;
  min-width: 200px;
  border-radius: 9px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background-color: #f8a73913;
  color: var(--accent);
}

/* =========================
   FOOTER & ADDRESS BLOCK
========================= */
footer {
  background: #174362;
  color: #ffffff;
  padding: 56px 0 26px 0;
  font-size: 1rem;
  margin-top: 48px;
}
footer .container {
  gap: 24px;
  flex-direction: column;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
footer address {
  font-style: normal;
  line-height: 1.5;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
footer img {
  vertical-align: middle;
  margin-right: 5px;
  width: 22px;
  height: 22px;
}
footer small {
  font-size: 0.96rem;
  color: #e0e8ef;
}

/* =====================
   TABLES & FORMS
===================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 rgba(23,67,98,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
thead {
  background-color: #eef3f9;
}
th, td {
  padding: 10px 16px;
  text-align: left;
}
th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
td {
  color: var(--primary);
}
tr:nth-child(even) { background: #f7fafc; }
tr:last-child td { border-bottom: none; }

/* ========================
   TESTIMONIALS CARDS
======================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #174362;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid #e8e7eb;
}
.testimonial-card p {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #174362;
}
.testimonial-card strong {
  color: #174362;
}
span[aria-label="5 Sterne"] {
  color: var(--accent);
  font-size: 1.14em;
  letter-spacing: 2px;
  margin-left: 5px;
}

/* =====================
   BUTTONS & INTERACTIVE
====================== */
button {
  font-family: var(--font-display);
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =====================
   SPACING UTILITIES
====================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }

/* ================================
   COOKIE CONSENT BANNER & MODAL
================================ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 8000;
  background: linear-gradient(90deg, #174362 85%, #f8a739 100%);
  color: #fff;
  padding: 18px 40px 18px 16px;
  box-shadow: 0 -4px 24px rgba(23,67,98,0.11);
  display: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
}
.cookie-consent-banner p {
  color: #fff;
  font-size: 1rem;
  margin: 0 12px 0 0;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  background: #fff;
  color: #174362;
  border: none;
  border-radius: 18px;
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(23,67,98,0.10);
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.17s, color 0.18s, box-shadow 0.12s;
}
.cookie-btn.settings {
  background: #f8a739;
  color: #174362;
  font-weight: 700;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ececec;
  color: #0d2436;
  box-shadow: 0 2px 10px rgba(247,193,83,0.20);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffd99b;
  color: #0d2436;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,67,98,0.60);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  min-width: 310px;
  max-width: 94vw;
  box-shadow: 0 8px 34px rgba(23,67,98,0.23);
  color: #174362;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  position: relative;
}
.cookie-modal-dialog h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #174362;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #f8a739;
}
.cookie-category .essential {
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #174362;
  cursor: pointer;
  padding: 4px 9px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #f8a739;
}

/* ===============
   RESPONSIVE DESIGN
================= */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding-left: 18px;
    padding-right: 18px;
  }
  .feature-grid li { min-width: 180px; }
  .footer-nav { gap: 14px; }
}
@media (max-width: 768px) {
  html { font-size: 95%; }
  .main-nav { display: none; }
  .cta-btn { margin: 0; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    min-height: 56px;
    gap: 12px;
  }
  .footer-nav { flex-direction: column; gap: 6px; }
  .container, footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 34px;
  }
  .feature-grid {
    gap: 18px;
  }
  .feature-grid li {
    padding: 18px 10px 18px 14px;
    min-width: 80vw;
    max-width: 98vw;
    font-size: 0.97rem;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    min-width: 90vw;
    gap: 8px;
  }
  .hero {
    padding: 38px 0 22px 0;
    margin-bottom: 22px;
  }
  .footer-nav, footer address, footer small {
    font-size: 0.99rem;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.01rem; }
  .logo img {
    height: 30px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    padding: 14px 8px 14px 8px;
    font-size: 0.97rem;
    gap: 8px;
    align-items: flex-start;
  }
  .cookie-buttons {
    gap: 8px;
    flex-wrap: wrap;
  }
  .cookie-modal-dialog {
    padding: 18px 7vw 16px 7vw;
    min-width: 80vw;
    font-size: 0.97rem;
  }
}

/* ===============
   ACCESSIBILITY & MISC
================= */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::-webkit-scrollbar-thumb {
  background: #e7e7e8;
  border-radius: 12px;
}
::-webkit-scrollbar {
  width: 8px;
  background: #f8f7fc;
}

/* =============================
   SIMPLE ANIMATION ENHANCEMENTS
============================= */
.cta-btn, .cookie-btn {
  transition: background 0.16s, color 0.19s, box-shadow 0.19s, transform 0.17s;
}
.card, .testimonial-card, .feature-grid li {
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(23,67,98,0.14);
  transform: translateY(-2px) scale(1.02);
}

/* =============================
 TEXT-IMAGE & FLEX HELPER CLASSES
============================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   PRINT STYLES
================= */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  .container { padding: 0 !important; }
  section, .section {
    padding: 0 !important;
    margin-bottom: 24px !important;
  }
}
