@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #286bc4;
    --secondary-color: #1d3557;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --accent-color: #457b9d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    max-width: 100%;
    display: inline-block;
    word-break: break-all;
    vertical-align: top;
}

ul {
    list-style: none;
}

p, h1, h2, h3, h4, h5, h6, a, div, span {
    max-width: 100%;
    overflow-wrap: break-word;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1d3557;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    transition: var(--transition);
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero content styles handled in the hero section styling */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text,
.about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

/* Groups preview styling */
.groups-preview {
    max-width: 800px;
    margin: 0 auto 30px;
}

.group-items-preview {
    list-style: none;
}

.group-items-preview .group-item {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.group-items-preview .group-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

/* Groups list styling */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.group-category {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.group-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.group-items {
    list-style: none;
}

.group-item {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.group-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.group-header h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
}

.group-time {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.group-time i {
    margin-right: 5px;
}

.group-description p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info,
.map-placeholder {
    flex: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.2rem;
    align-self: center;
    color: var(--primary-color);
    width: 25px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-content a {
    color: #ddd;
}

.footer-logo h2 {
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.image-placeholder {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #6c757d;
}

.image-placeholder.circular {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.map-placeholder .image-placeholder {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hero section styling */
#hero, 
.about-hero, 
.signup-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 0;
    margin-bottom: 50px;
}

#hero::before, 
.about-hero::before, 
.signup-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#hero .container, 
.about-hero .container, 
.signup-hero .container {
    position: relative;
    z-index: 2;
}

#hero {
    background-image: url('./bilder/hero.png');
}

#about-hero {
    background-image: url('./bilder/hero.png');
}

#groups-hero {
    background-image: url('./bilder/hero.png');
}

#signup-hero {
    background-image: url('./bilder/hero.png');
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Update existing hero-content styling */
.hero-content h2, 
.about-hero h1, 
.signup-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p, 
.about-intro, 
.signup-intro,
#home-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Hero styles for mobile */
    #hero, 
    .about-hero, 
    .signup-hero {
        height: 350px;
        padding: 20px 0;
    }
    
    .hero-content h2, 
    .about-hero h1, 
    .signup-hero h1 {
        font-size: 2rem;
    }
    
    .hero-content p, 
    .about-intro, 
    .signup-intro {
        font-size: 1rem;
        padding: 0 15px;
    }

#hero .section-title,
.about-hero .section-title,
.signup-hero .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero .section-title::after,
.about-hero .section-title::after,
.signup-hero .section-title::after {
    background: white;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info,
    .map-placeholder {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 880px) {
    .hamburger {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }    /* Hamburger styles and other mobile styles */

    .footer-content>div {
        flex-basis: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .logo-img {
        height: 30px;
    }
    
    .step-card,
    .fee-card {
        min-width: 100%;
    }    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    
    .info-item p, 
    .info-item a {
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .contact-info {
        align-items: center; /* Center the contact info items */
        text-align: center;
        width: 100%;
    }
    
    .about-section {
        padding: 20px;
    }

    .about-fees {
        flex-direction: column;
    }
    
    .about-video {
        aspect-ratio: 4 / 3;
    }
    
    .news-grid {
        width: 100%;
        padding: 0 10px;
    }
    
    .news-item {
        padding: 20px;
        flex-direction: column;
    }
    
    .news-image {
        max-height: 200px;
        margin: 15px 0;
        max-width: 100%;
    }
    
    .news-content {
        width: 100%;
    }
}

.groups-intro, .signup-intro, .about-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.signup-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}

.step-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-top: 60px;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.signup-button-container {
    text-align: center;
    margin: 40px 0;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.gray-bg {
    background-color: #f5f5f5;
}

.fees-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.fee-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fee-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.fee {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.info-text h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Hero styles for About and Groups pages - now handled in the hero section styling */

.about-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
    vertical-align: middle;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-section ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 20px;
}

.about-section ul li {
    margin-bottom: 10px;
}

.about-fees {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.about-fee-item {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    flex: 1;
    min-width: 250px;
}

.about-fee-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.about-video-container {
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-video {
    width: 100%;
    display: block;
    background-color: #000;
    height: auto;
    min-height: 200px;
    max-height: 250px;
}

.video-section {
    background: linear-gradient(to right bottom, #fff, #f8f9fa);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.news-content {
    flex: 1;
    min-width: 250px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-title a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-date:before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    color: var(--primary-color);
}

.news-image {
    margin: 15px 0 15px 20px;
    text-align: center;
    overflow: hidden;
    height: auto;
    max-height: 200px;
    max-width: 40%;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-image img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.02);
}

.news-description {
    font-size: 1rem;
    line-height: 1.7;
    overflow: visible;
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.news-source {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-source a {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    word-break: break-all;
    max-width: 100%;
}

.news-source a:hover {
    text-decoration: underline;
}

.news-source i {
    font-size: 0.8rem;
    margin-left: 4px;
}

.loading-spinner {
    text-align: center;
    padding: 60px 0;
    width: 100%;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .news-grid {
        width: 100%;
        padding: 0 10px;
    }
    
    .news-item {
        padding: 20px;
        flex-direction: column;
    }
    
    .news-image {
        max-height: 200px;
        margin: 15px 0;
        max-width: 100%;
    }
    
    .news-content {
        width: 100%;
    }

    /* Group header styles for mobile devices */
    .group-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .group-header h4 {
        margin-bottom: 5px;
    }
    
    .group-time {
        display: block;
        width: 100%;
    }
}