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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100vw;
}

.container {
    text-align: center;
    background: #ffffff;
    border-radius: 0;
    padding: 2rem 1.5rem;
    box-shadow: none;
    max-width: 500px;
    width: 90%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.logo svg {
    filter: none;
    transition: transform 0.3s ease;
}

.logo img {
    width: 300px;
    height: 300px;
    max-width: none;
    max-height: none;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.logo svg:hover,
.logo img:hover {
    transform: scale(1.05);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.school-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    color: #0A6BD5;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: none;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.school-button:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(10, 107, 213, 0.1);
    background: #f1f3f4;
    border-color: #0A6BD5;
}

.school-button:active {
    transform: none;
}

.school-button .arrow {
    width: 16px;
    height: 16px;
    stroke: #0A6BD5;
    stroke-width: 2;
    fill: none;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.fundraising-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #28a745;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: none;
    border: 1px solid #28a745;
    cursor: pointer;
}

.fundraising-button:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    background: #218838;
    border-color: #1e7e34;
}

.fundraising-button:active {
    transform: none;
}

.fundraising-button .arrow {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.social-media {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.social-media h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon svg {
    width: 40px;
    height: 40px;
    fill: #666;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Individual platform styling with simple colors */
.social-icon[id="instagramLink"]:hover {
    background: #E1306C;
    border-color: #E1306C;
}

.social-icon[id="instagramLink"]:hover svg {
    fill: white;
}

.social-icon[id="tiktokLink"]:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon[id="tiktokLink"]:hover svg {
    fill: white;
}

/* Fix TikTok icon centering */
.social-icon[id="tiktokLink"] svg {
    transform: translateX(-2px);
}

.social-icon[id="youtubeLink"]:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.social-icon[id="youtubeLink"]:hover svg {
    fill: white;
}

.social-icon[id="discordLink"]:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.social-icon[id="discordLink"]:hover svg {
    fill: white;
}

/* Glow animation styles */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8), 0 0 30px rgba(40, 167, 69, 0.6);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    10% { transform: rotate(-5deg) translateY(-2px); }
    20% { transform: rotate(5deg) translateY(2px); }
    30% { transform: rotate(-3deg) translateY(-1px); }
    40% { transform: rotate(3deg) translateY(1px); }
    50% { transform: rotate(-2deg) translateY(-1px); }
    60% { transform: rotate(2deg) translateY(1px); }
    70% { transform: rotate(-1deg) translateY(0px); }
    80% { transform: rotate(1deg) translateY(0px); }
    90% { transform: rotate(0deg) translateY(0px); }
}

.fundraising-button.glow-active {
    animation: glowPulse 2s ease-in-out;
}

.social-icon.wiggle-active {
    animation: wiggle 0.8s ease-in-out;
}

/* Desktop styles */
@media (min-width: 769px) {
    .logo img {
        width: 200px !important;
        height: 200px !important;
    }
    
    .container {
        padding: 3rem 2rem;
        max-width: 600px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1.2rem;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile First Approach */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .container {
        padding: 1rem;
        margin: 0 auto;
        width: 90%;
        max-width: 90%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .logo img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .logo {
        margin-bottom: 1.5rem;
    }

    .social-media {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .social-media h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .social-icons {
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 64px !important;
        height: 64px !important;
        border-radius: 16px;
    }

    .social-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .school-button {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .buttons {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .fundraising-button {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        justify-content: space-between;
        align-items: center;
    }
    
    .container {
        padding: 0.5rem;
        width: 95%;
        max-width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        flex: 1;
    }
    
    .logo img {
        width: 160px !important;
        height: 160px !important;
    }

    .logo {
        margin-bottom: 1rem;
    }
    
    .title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .school-button {
        padding: 0.9rem 1.4rem;
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .social-media {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .social-media h3 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icon {
        width: 60px !important;
        height: 60px !important;
        border-radius: 15px;
    }

    .social-icon svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .footer {
        padding: 0.3rem 0;
    }
}

/* Footer Styles */
.footer {
    margin-top: auto;
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.impressum-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.impressum-link:hover {
    color: #0A6BD5;
    text-decoration: underline;
}

/* Extra small devices */
@media (max-width: 360px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    .container {
        padding: 0.3rem;
        width: 98%;
        max-width: 98%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        flex: 1;
    }
    
    .logo img {
        width: 140px !important;
        height: 140px !important;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .social-icons {
        gap: 1.2rem;
    }
    
    .social-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .social-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .school-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .buttons {
        gap: 0.8rem;
    }
    
    .fundraising-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Impressum Page Styles */
.impressum-container {
    max-width: 800px;
    width: 90%;
    text-align: left;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
}

.impressum-container .title {
    text-align: center;
    margin-bottom: 2rem;
}

.impressum-container .logo {
    text-align: center;
}

.impressum-content {
    margin-bottom: 3rem;
    line-height: 1.6;
}

.impressum-content h2 {
    color: #333;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.impressum-content h3 {
    color: #444;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.impressum-content p {
    color: #666;
    margin-bottom: 1rem;
    text-align: justify;
}

.impressum-content strong {
    color: #333;
}

/* Contact Form Styles */
.contact-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0rem 1.5rem 1.5rem 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.contact-form h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0A6BD5;
    box-shadow: 0 0 0 3px rgba(10, 107, 213, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: #0A6BD5;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
}

.form-submit:hover:not(:disabled) {
    background: #0856b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 107, 213, 0.3);
}

.form-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-loading {
    opacity: 0.8;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-link {
    text-align: center;
    margin-bottom: 2rem;
}

.arrow-back {
    transform: rotate(180deg);
}

/* Responsive adjustments for impressum */
@media (max-width: 768px) {
    .impressum-container {
        text-align: left;
        padding: 2rem 1.5rem;
    }
    
    .impressum-content h2 {
        font-size: 1.3rem;
    }
    
    .impressum-content h3 {
        font-size: 1.1rem;
    }
    
    .impressum-content p {
        text-align: left;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
    }
    
    .form-submit {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .impressum-container {
        padding: 1.5rem 1rem;
    }
    
    .impressum-content h2 {
        font-size: 1.2rem;
    }
    
    .impressum-content h3 {
        font-size: 1rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    
    .form-submit {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mobile Responsive für Impressum */
@media (max-width: 768px) {
    .impressum-container {
        max-width: 95% !important;
        width: 95% !important;
        padding: 1rem;
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .impressum-content {
        margin-bottom: 2rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    .impressum-content p {
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-form {
        padding: 1rem;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .impressum-container {
        max-width: calc(100vw - 10px) !important;
        width: calc(100vw - 10px) !important;
        padding: 0.5rem;
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .impressum-content h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .impressum-content h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .impressum-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .contact-form {
        padding: 0.8rem;
        margin-top: 0.8rem;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .form-submit {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
}

@media (max-width: 360px) {
    .impressum-container {
        max-width: calc(100vw - 5px) !important;
        width: calc(100vw - 5px) !important;
        padding: 0.3rem;
        margin: 0 auto;
        overflow-x: hidden;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .impressum-content h2 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .impressum-content h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .impressum-content p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .contact-form {
        padding: 0.6rem;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
}

/* Chrome-spezifische Fixes für Impressum */
@supports (-webkit-appearance: none) {
    .impressum-container {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    @media (max-width: 768px) {
        .impressum-container {
            width: calc(100vw - 20px) !important;
            max-width: calc(100vw - 20px) !important;
        }
    }
    
    @media (max-width: 480px) {
        .impressum-container {
            width: calc(100vw - 10px) !important;
            max-width: calc(100vw - 10px) !important;
        }
    }
    
    @media (max-width: 360px) {
        .impressum-container {
            width: calc(100vw - 5px) !important;
            max-width: calc(100vw - 5px) !important;
        }
    }
}

/* Success Page Styles */
.success-container {
    max-width: 500px;
    padding: 2rem 1.5rem;
}

.success-content {
    margin-bottom: 2rem;
}

.success-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-check {
    color: #10b981;
    width: 80px;
    height: 80px;
}

.success-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #374151;
}

/* Mobile Responsive für Success Page */
@media (max-width: 768px) {
    .success-container {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .success-icon {
        margin-bottom: 1rem;
    }
    
    .success-check {
        width: 60px;
        height: 60px;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 0;
    }
}
