/* ----------------------------------------------------
   CSS Reset & Base Styles
----------------------------------------------------- */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FDF6EC;
  color: #1A356D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  position: relative;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A356D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9B233;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
strong { font-weight: 700; }

/* Font faces, using Google Fonts (local fallback) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #1A356D;
  --color-secondary: #F9B233;
  --color-accent: #FFFFFF;
  --color-bg: #FDF6EC;
  --color-dark: #111225;
  --color-grey: #F5F6F9;
  --color-danger: #e94242;
  --border-radius: 20px;
  --shadow-1: 0 2px 16px 0 rgba(26,53,109,0.10);
  --shadow-2: 0 4px 28px 0 rgba(0,0,0,0.12);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ----------------------------------------------------
   Layout Containers & Global Spacing
----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
}

/* ----------------------------------------------------
   Typography (Creative Artistic Style)
----------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 2.8rem;
  color: var(--color-secondary);
  text-shadow: 2px 4px 0 rgba(26,53,109,0.05);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.13rem;
}
h5 {
  font-size: 1rem;
}
p, li, dl, dt, dd {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
p {
  margin-bottom: 12px;
  color: var(--color-dark);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 700px;
  line-height: 1.7;
}
.text-section ul, .text-section ol {
  margin-left: 20px;
}

/* Decorative divider underline for creative touch */
h2:after {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 7px;
  background: var(--color-secondary);
  border-radius: 3px;
}

/* ----------------------------------------------------
   MAIN NAVIGATION & HEADER
----------------------------------------------------- */
header {
  background: var(--color-primary);
  box-shadow: 0 3px 12px 0 rgba(26,53,109,0.08);
  padding-top: 0;
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 16px 0;
}
.main-nav > a  {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  padding: 9px 13px;
  border-radius: 15px;
  transition: background 0.09s, color 0.15s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav img {
  height: 44px;
  margin-right: 7px;
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 17px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  z-index: 44;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Mobile Navigation (Full-screen slide panel, Flex only) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  z-index: 100;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 0 12px 24px;
  align-self: flex-start;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
  box-shadow: var(--shadow-1);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-dark);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 32px 24px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 11px 2px 11px 3px;
  border-radius: 12px;
  transition: background 0.09s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .main-nav > a {
    font-size: 1em;
    padding: 8px 9px;
  }
}
@media (max-width: 899px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 9px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ----------------------------------------------------
   HERO/CTA Buttons (Artistic & Vibrant)
----------------------------------------------------- */
.cta-btn {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 100px;
  padding: 15px 38px;
  margin-top: 18px;
  box-shadow: 0 4px 18px 0 rgba(249,178,51,0.12);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.16s;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.10);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.04);
}

/* Creative Underlines for Call-to-Action */
.cta-btn {
  position: relative;
}
.cta-btn:after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
  position: absolute;
  left: 25%;
  bottom: -7px;
  opacity: 0.13;
  pointer-events: none;
}

/* ----------------------------------------------------
   Feature Grid & Cards (Flexbox Only)
----------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 230px;
  min-width: 210px;
  background: var(--color-grey);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
  padding: 26px 18px 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(2px 2px 0 #F9B23322);
}
.feature-grid li:hover, .feature-grid li:focus {
  box-shadow: 0 8px 28px 0 rgba(26,53,109,0.12);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid li h3 {
  color: var(--color-primary);
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 32px 0 rgba(26,53,109,0.18);
  transform: translateY(-3px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ----------------------------------------------------
   Content Grids, Text-Image Sections
----------------------------------------------------- */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ----------------------------------------------------
   Testimonial Cards (Readable/Dark Text on Light)
----------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  border-left: 7px solid var(--color-secondary);
  max-width: 600px;
  color: var(--color-dark) !important;
}
.testimonial-card p {
  color: var(--color-dark) !important;
  font-size: 1.11rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 7px;
}
.testimonial-card span,
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-primary) !important;
}

/* ----------------------------------------------------
   Lists, Features, FAQ, Pricing Table
----------------------------------------------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ol, ul {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li {
  margin-bottom: 9px;
}
ul li:before {
  content: '\2022';
  color: var(--color-secondary);
  font-weight: bolder;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}

/* FAQ/Definition List */
dl {
  margin-bottom: 20px;
}
dt {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.11rem;
}
dd {
  margin-left: 18px;
  margin-bottom: 12px;
}

/* Table Styling (Pricing, Stundenplan) */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-accent);
  margin-bottom: 22px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(26,53,109,0.05);
}
thead {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
}
th, td {
  padding: 13px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #E2E4EE;
}
th {
  font-weight: 900;
}
tr:last-child td {
  border-bottom: none;
}

/* Download PDF Link under Stundenplan */
a[download] {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
  text-decoration: underline wavy 2px #F9B23388;
}
a[download]:hover {
  color: var(--color-primary);
}

/* ----------------------------------------------------
   Footer
----------------------------------------------------- */
footer {
  background: var(--color-primary);
  padding-top: 36px;
  padding-bottom: 25px;
  color: var(--color-accent);
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  width: 56px;
  height: 56px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 7px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
footer .text-section {
  margin-left: 22px;
  color: var(--color-accent);
}
footer a {
  color: var(--color-secondary);
  word-break: break-all;
}
footer a:hover, footer a:focus {
  color: var(--color-accent);
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer .text-section {
    margin-left: 0;
  }
}

/* ----------------------------------------------------
   Cookie Banner & Cookie Modal
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2222;
  background: var(--color-accent);
  box-shadow: 0 -2px 16px 0 rgba(26,53,109,0.10);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: transform 0.36s cubic-bezier(0.7,0,0.3,1);
  transform: translateY(140%);
  width: 94%;
  left: 3%;
  right: 3%;
}
.cookie-banner.active {
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--color-dark);
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 3px;
}
.cookie-btn,
.cookie-btn-primary {
  border: none;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 26px;
  cursor: pointer;
  margin: 0;
  transition: background 0.16s, color 0.12s, box-shadow 0.11s;
}
.cookie-btn {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-1);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.9);
  min-width: 328px;
  max-width: 97vw;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 48px 0 rgba(26,53,109,0.20);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 34px 26px 18px 26px;
  transition: opacity 0.32s, transform 0.32s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-switch {
  display: inline-flex;
  width: 44px;
  height: 25px;
  background: #F9B23333;
  border-radius: 14px;
  align-items: center;
  position: relative;
  margin-right: 8px;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 25px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}
.cookie-switch .slider {
  width: 44px;
  height: 25px;
  border-radius: 14px;
  background: #F9B23344;
  display: inline-block;
  transition: background 0.15s;
}
.cookie-switch input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-switch .knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 21px;
  height: 21px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-switch input:checked + .slider .knob {
  left: 21px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding-left: 18px;
  padding-right: 18px;
}
.cookie-modal .cookie-btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal .cookie-btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
@media (max-width: 700px) {
  .cookie-modal {
    padding: 21px 7vw 18px 7vw;
    min-width: 0;
  }
}

/* ----------------------------------------------------
   Animation and Transitions
----------------------------------------------------- */
.section, .feature-grid li, .testimonial-card, .card {
  transition: box-shadow 0.13s, transform 0.13s;
}

/* Subtle highlight on hover/focus for cards */
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 24px 0 #1A356D33;
}

/* ----------------------------------------------------
   Artistic Creative Decorations and Details
----------------------------------------------------- */
h1, h2, h3 {
  background: linear-gradient(to right, var(--color-secondary) 10%, var(--color-primary) 99%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1 {
  background: linear-gradient(92deg, var(--color-secondary) 7%, var(--color-primary) 60%, #5CB7A9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Unique line accent for responsiveness */
@media (max-width: 500px) {
  h1, h2 {
    font-size: 1.7rem !important;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .feature-grid li {
    min-width: 80vw;
  }
  .cookie-banner {
    width: 99vw;
    left: 0;
    right: 0;
    border-radius: 13px 13px 0 0;
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

/* ----------------------------------------------------
   Responsive & Mobile-First Tweaks
----------------------------------------------------- */
@media (max-width: 650px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 25px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 425px) {
  html, body {
    font-size: 15px;
  }
  .cta-btn, .cookie-btn, .cookie-btn-primary {
    font-size: 0.97rem;
    padding: 10px 13px;
  }
}

/* ----------------------------------------------------
   Utility and Miscellaneous
----------------------------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  background: #FDF6EC;
}
::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 8px;
}

/* Error/danger coloring for future forms */
.input-error {
  border: 2px solid var(--color-danger);
  background: #fde9e9;
  color: var(--color-danger);
}

/* Focus outlines for accessibility */
:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* ----------------------------------------------------
   End of CSS – Created for Phoenix Bewegungszentrum
----------------------------------------------------- */
