/* 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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font-size: 100%;
    box-sizing: border-box;
}
html {
    font-size: 16px;
}
body {
    line-height: 1.5;
    background: #fff;
    color: #14325d;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
    box-sizing: inherit;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: #18418c;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #ffb218;
    text-decoration: underline;
}
ul, ol {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    color: #18418c;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}
h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}
h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #FF6C6C;
}
p, li, blockquote, dd {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #14325d;
}
strong {
    color: #18418c;
    font-weight: bold;
}

/* CONTAINER & LAYOUT */
.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
}


/* SECTION, FLEX LAYOUTS */
.section {
    padding: 40px 20px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: #fffbe7;
    border-radius: 18px;
    box-shadow: 0 8px 24px -8px rgba(24,65,140,0.09), 0 2px 6px -4px rgba(255,178,24,0.14);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-6px) scale(1.03) rotate(-2deg);
    box-shadow: 0 12px 34px -8px rgba(24,65,140,0.16), 0 4px 12px -4px rgba(255,178,24,0.18);
}
.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;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #fffbe7;
    border-radius: 18px;
    box-shadow: 0 4px 22px -6px rgba(24,65,140,0.09);
    padding: 20px 30px;
    margin-bottom: 20px;
    color: #1c2440;
}
.testimonial-card p {
    color: #1c2440;
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 6px;
}
.testimonial-card span {
    color: #18418c;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 500;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.text-section {
    padding: 8px 0 8px 0;
}
/* Animate fun bounce-in for cards & sections */
.section, .card, .testimonial-card {
    animation: playfulIn 0.8s cubic-bezier(.56,-0.5,.3,1.3) 0s 1;
}
@keyframes playfulIn {
  0% { opacity:0; transform: translateY(46px) scale(0.95) rotate(2deg); }
  70% { opacity:1; transform: translateY(-8px) scale(1.01) rotate(-1deg); }
  100% { opacity:1; transform: none; }
}

/* HEADER & NAVIGATION */
header {
    background: #18418c;
    box-shadow: 0 4px 26px -14px rgba(24,65,140,.20);
    position: sticky;
    top: 0;
    z-index: 981;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 18px;
}
header nav {
    display: flex;
    gap: 16px;
}
header nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.14s, background 0.18s;
    border-radius: 8px;
    padding: 8px 12px;
}
header nav a:hover, header nav a:focus {
    background: #ffb218;
    color: #18418c;
    text-decoration: none;
}
header .cta-btn {
    background: #ffb218;
    color: #18418c;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    margin-left: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px -2px rgba(255,178,24,0.22);
    outline: none;
    transition: transform 0.14s, background 0.18s, box-shadow 0.12s;
    position: relative;
    z-index: 2;
}
header .cta-btn:hover, header .cta-btn:focus {
    background: #18418c;
    color: #fff;
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 6px 22px -8px #18418c44;
}
header img[alt="SportFlare Hannover"] {
    height: 48px;
    min-width: 140px;
}

/* Burger Menu Button */
.mobile-menu-toggle {
    display: none;
    background: #fffbe7;
    color: #18418c;
    border: none;
    font-size: 2.2rem;
    padding: 8px 20px 8px 12px;
    border-radius: 16px;
    margin-left: 10px;
    box-shadow: 0 2px 10px -2px #18418c11;
    cursor: pointer;
    outline: none;
    z-index: 999;
    transition: background 0.18s, color 0.18s, transform 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #ffb218;
    color: #18418c;
    transform: scale(1.07) rotate(2deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: #18418c;
    z-index: 991;
    transform: translateX(100vw);
    transition: transform 0.36s cubic-bezier(.53,1.82,.23,1.1);
    opacity: 0.97;
    box-shadow: -8px 0 48px -16px rgba(24,65,140,0.16);
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
}
.mobile-menu-close {
    align-self: flex-end;
    font-size: 2.5rem;
    background: none;
    color: #fff;
    border: none;
    margin: 22px 22px 12px 0;
    cursor: pointer;
    transition: color 0.12s, transform 0.14s;
    z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #ffb218;
    transform: scale(1.1) rotate(-10deg);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 36px;
}
.mobile-nav a {
    color: #ffb218;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 22px;
    width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #fffbe7;
    color: #18418c;
}

/* HERO SECTION */
.hero {
    background: #ffb218;
    background-image: repeating-linear-gradient(135deg,#fff 0px,#ffb218 1px,#ffb218 8px,#fff 9px);
    border-bottom: 8px solid #18418c;
    padding-top: 38px;
    padding-bottom: 44px;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    animation: heroBounce 1s cubic-bezier(.42,1.78,.13,.91) 0s 1;
}
@keyframes heroBounce {
   0% { opacity:0; transform: scaleY(0.92) translateY(30px); }
   60% { opacity:1; transform: scaleY(1.05) translateY(-12px); }
   100%{ opacity:1; transform: none; }
}
.hero .container {
    align-items: center;
    justify-content: center;
}
.hero h1, .hero h2 {
    color: #18418c;
    text-shadow: 1px 2px 0 #fffbe7cc;
}
.hero p {
    color: #18418c;
    font-size: 1.13rem;
    font-weight: 500;
    margin-bottom: 24px;
}

/* CTA SECTION */
.cta-section {
    background: #fffbe7;
    border-radius: 24px;
    box-shadow: 0 8px 36px -10px #18418c1a;
    margin: 42px 0;
    animation: playfulIn 0.7s cubic-bezier(.31,1.2,.11,0.99);
}
.cta-section .cta-btn {
    margin-top: 12px;
}

/* CALL TO ACTION BUTTONS */
.cta-btn {
    background: #ffb218;
    color: #18418c !important;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    border-radius: 20px;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    box-shadow: 0 2px 10px -2px #ffb21833;
    cursor: pointer;
    outline: none;
    transition: background 0.17s, color 0.13s, transform 0.16s, box-shadow 0.11s;
    margin-top: 6px;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
    background: #18418c;
    color: #fff !important;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 24px -8px #ffb21855;
}

/* FORMS (For potential  future use) */
input, select, textarea {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #18418c44;
    margin-bottom: 16px;
    background: #fffbe7;
    transition: border 0.12s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border: 2px solid #ffb218;
    background: #fff;
}

/* TYPOGRAPHY - Fun, Energetic */
body, p, li, dd {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #14325d;
}
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 900;
}
.text-section ul {
    padding-left: 18px;
    list-style: disc inside;
    margin-bottom: 10px;
}
.text-section li {
    margin-bottom: 8px;
    font-size: 1.07rem;
    position: relative;
}
.text-section dl {
    margin-bottom: 16px;
}
.text-section dt {
    font-size: 1.09rem;
    font-weight: bold;
    color: #FF6C6C;
}
.text-section dd {
    margin: 0 0 8px 19px;
    color: #18418c;
}

/* ICON IMAGES */
li img, p img, .text-section img {
    vertical-align: middle;
    height: 1.15em;
    display: inline-block;
    margin-right: 4px;
}

/* FOOTER */
footer {
    background: #18418c;
    color: #fff;
    margin-top: 50px;
    padding: 30px 0;
    font-size: 1rem;
}
footer .container {
    flex-direction: column;
    gap: 8px;
}
footer nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
footer nav a {
    color: #fffbe7;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.13s, border 0.13s;
}
footer nav a:hover, footer nav a:focus {
    color: #ffb218;
    border-bottom: 2px solid #ffb218;
}

footer .text-section p {
    color: #fffbe7;
    letter-spacing: 0.02em;
    font-size: 0.97rem;
}

/* CARD/REVIEW/TESTIMONIAL SPACING */
.card+.card, .testimonial-card+.testimonial-card {
    margin-top: 22px;
}
.testimonial-card {
    background: #fffbe7 !important;
    color: #14325d !important;
    border-left: 8px solid #ffb218;
}

/* VISUAL HIERARCHY */
hr {
    border: 0;
    height: 1px;
    background: #18418c33;
    margin: 28px 0;
}

/* Animations for buttons */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
    transition: background 0.18s, color 0.16s, box-shadow 0.13s, transform 0.13s;
}

/* COOKIE CONSENT BANNER & COOKIE MODAL */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fffbe7;
    color: #18418c;
    border-top: 4px solid #ffb218;
    box-shadow: 0 -2px 26px -8px #18418c27;
    padding: 20px 8px 18px 8px;
    z-index: 2222;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: cookieIn 0.75s cubic-bezier(.35,1.8,.13,1.01);
}
.cookie-banner p {
    color: #18418c;
    text-align: center;
    font-size: 1.06rem;
}
.cookie-banner .cookie-btn {
    background: #18418c;
    color: #ffb218 !important;
    border: none;
    border-radius: 16px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
    margin: 0 6px;
    padding: 9px 18px;
    font-size: 1.03rem;
    box-shadow: 0 3px 10px -2px #18418c27;
    cursor: pointer;
    transition: background 0.15s, color 0.12s, transform 0.15s;
    outline: none;
    display: inline-block;
}
.cookie-banner .cookie-btn.primary {
    background: #ffb218;
    color: #18418c !important;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
    background: #14325d;
    color: #fffccf !important;
}
@keyframes cookieIn {
    0% { transform: translateY(80px); opacity: 0; }
    80%{ transform: translateY(-6px) scaleY(1.02); opacity: 1; }
    100%{ transform: none; }
}

.cookie-modal {
    position: fixed;
    left: 0; right: 0; bottom: 0; top:0;
    margin: auto;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(24,65,140,0.64);
    animation: cookieModalIn 0.48s cubic-bezier(.34,1.92,.13,1.05);
}
@keyframes cookieModalIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.cookie-modal .modal-content {
    background: #fffbe7;
    border-radius: 22px;
    padding: 42px 26px 32px;
    box-shadow: 0 14px 48px -12px #18418c44;
    width: 90%;
    max-width: 380px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    animation: playfulIn 0.7s cubic-bezier(.31,1.2,.11,0.99);
}
.cookie-modal .modal-content h2 {
    color: #18418c;
    font-size: 1.36rem;
    margin-bottom: 6px;
}
.cookie-modal .checkboxes {
    margin: 12px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cookie-modal .checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cookie-modal label {
    font-size: 1.05rem;
    color: #18418c;
}
.cookie-modal input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: #ffb218;
    border-radius: 8px;
}
.cookie-modal .cookie-btn {
    margin-top: 12px;
}
.cookie-modal .close-modal {
    background: none;
    border: none;
    position: absolute;
    top: 14px; right: 16px;
    font-size: 1.45rem;
    color: #18418c;
    cursor: pointer;
    padding: 2px 8px 2px 8px;
    z-index: 10;
    border-radius: 10px;
    transition: color 0.12s, background 0.12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
    background: #ffb21811;
    color: #ffb218;
}
/* End Cookie Modal/Banner */

/* SPACING BETWEEN CARDS, SECTIONS, COMPONENTS */
section {
    padding: 40px 20px;
}
.card, .testimonial-card, .feature-item, .content-wrapper, .text-section {
    margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section {
    gap: 24px;
}

/* MEDIA QUERIES - MOBILE FIRST RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .container {
        max-width: 92vw;
    }
}
@media (max-width: 900px) {
    .testimonial-card, .card {
        padding: 18px 14px;
    }
    .content-wrapper {
        gap: 14px;
    }
    header .container {
        flex-direction: row;
        gap: 11px;
    }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { max-width: 98vw; }
    header nav, header .cta-btn {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-block;
    }
    .section, section {
        padding: 26px 6px;
        margin-bottom: 36px;
    }
    .hero {
        padding-top: 30px;
        padding-bottom: 28px;
        min-height: 210px;
    }
    .hero h1 { font-size: 1.7rem; }
    .hero h2 { font-size: 1.19rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.32rem; }
    h3 { font-size: 1rem; }
    .card, .testimonial-card { padding: 13px 7px; }
    .content-wrapper { gap: 10px; }
    .content-grid, .card-container, .text-image-section {
        flex-direction: column;
        gap: 18px;
    }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 3vw; }
    .hero {
        border-radius: 0;
    }
    .cookie-modal .modal-content { padding: 28px 7px 23px; }
}

/* ACCESSIBILITY STYLES */
:focus {
  outline: 2px dashed #18418c;
  outline-offset: 2px;
}

/* PLAYFUL MICRO-INTERACTION - Wiggle effect on major CTAs */
@keyframes wiggle {
  0%,100% { transform: rotate(-2deg); }
  25% { transform: rotate(3deg) scale(1.03); }
  50% { transform: rotate(-4deg) scale(1.06); }
  75% { transform: rotate(2deg) scale(1.02); }
}
.cta-btn:active {
    animation: wiggle 0.25s linear 1;
}

/* FUN FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');


/* CLEAR Z-INDEX & NO ABSOLUTE FOR CARDS */
.card, .testimonial-card, .cta-btn {
    position: relative;
    z-index: 2;
}
/* Prevent accidental overlap */
.card, .testimonial-card, .cta-section, .feature-item, .content-wrapper, .text-section {
    margin-right: 0;
    margin-left: 0;
}

/* SPECIAL: hide mobile menu when not open */
.mobile-menu {
    display: flex;
    opacity: .99;
}
.mobile-menu:not(.open) {
    pointer-events: none;
}

/* Hide Cookie Modal by default */
.cookie-modal {
    display: none;
}
.cookie-modal.open {
    display: flex;
}

/* Miscellaneous: playful shadows for images/icons */
img[alt="SportFlare Hannover"], .text-section img, li img {
    filter: drop-shadow(0 2px 6px #ffb21844);
}

/* Fun animated underline on heading hover */
h1:hover, h2:hover, h1:focus, h2:focus {
    background-image: linear-gradient(90deg, #ffb218 60%, #18418c 100%);
    background-repeat: no-repeat;
    background-size: 100% 6px;
    background-position: 0 100%;
    transition: background 0.33s cubic-bezier(.72,1.8,.43,.94);
}

/* TEXT SCALE FOR VISUAL HIERARCHY */
body, p, li, dd {
    font-size: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.32rem; }
    h3 { font-size: 1.09rem; }
    .testimonial-card p, .card p { font-size: 1rem; }
}


/* END Playful Dynamic CSS for SportFlare Hannover */