<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Abiball - Freie Waldorfschule Bremen</title>
    <style type="text/css">
        body {
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }
        .email-container {
            max-width: 600px;
            margin: 0 auto;
        }
        img {
            max-width: 100%;
            height: auto;
        }
        @media screen and (max-width: 600px) {
            .email-container {
                width: 100% !important;
                padding: 10px !important;
            }
            .content-block {
                padding: 15px !important;
            }
            .header-image {
                width: 100% !important;
                max-width: 100% !important;
            }
            h1 {
                font-size: 24px !important;
            }
            h2 {
                font-size: 20px !important;
            }
            p {
                font-size: 16px !important;
            }
            .details-box {
                padding: 15px !important;
                margin: 15px 0 !important;
            }
        }
    </style>
</head>
<body style="margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f6f6f6; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.4; color: #333333;">
    <div style="width: 100%; background-color: #f6f6f6; padding: 15px 0;">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" class="email-container" align="center">
            <tr>
                <td style="background-color: #372064; padding: 15px; text-align: center; border-radius: 8px 8px 0 0;">
                    <img src="{{ email.image('@images/header.jpeg') }}" alt="Abiball" class="header-image" style="width: 100%; max-width: 500px; height: auto; border-radius: 4px;">
                </td>
            </tr>
            <tr>
                <td style="background-color: #ffffff; padding: 0;">
                    <img src="{{ email.image('@images/background.jpeg') }}" alt="Feier" style="width: 100%; height: auto; display: block;">
                </td>
            </tr>
            <tr>
                <td style="background-color: #ffffff;" class="content-block">
                    <div style="padding: 30px 20px; text-align: center;">
                        <h1 style="color: #372064; font-size: 32px; margin: 0 0 20px 0; font-weight: 600;">Du bist eingeladen!</h1>
                        <p style="color: #666666; font-size: 18px; line-height: 1.6; margin: 0 0 30px 0;">
                            Sei dabei bei einem Abend voller Feierlichkeiten, Tanz und unvergesslicher Momente beim Abiball der Freien Waldorfschule Bremen
                        </p>
                        <div class="details-box" style="background-color: #f8f9fa; border-radius: 8px; padding: 25px 20px; margin: 0 0 25px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
                            <h2 style="color: #372064; font-size: 24px; margin: 0 0 20px 0; font-weight: 500;">Veranstaltungsdetails</h2>
                            <p style="color: #666666; margin: 10px 0; font-size: 16px;">Datum: 28. Juni 2025</p>
                            <p style="color: #666666; margin: 10px 0; font-size: 16px;">Uhrzeit: 17:30 - 03:00</p>
                            <p style="color: #666666; margin: 10px 0; font-size: 16px;">Adresse: Graubündener Str. 4, 28325 Bremen</p>
                        </div>
                        <div style="display: inline-flex; align-items: center; border: 1px solid gray; border-radius: 4px; padding: 3px 6px">
                            <a href="https://fws-bremen-abiball.de{{ path('app_calendar') }}"
                               target="_blank"
                               style="display: inline-flex; align-items: center; padding: 12px 24px; background-color: #e5e7eb; border-radius: 4px; text-decoration: none; transition: background-color 0.3s ease;">
                                <twig:ux:icon name="heroicons:calendar" style="width: 20px; height: 20px; margin-right: 8px; color: #4b5563;" />
                                <span style="font-size: 14px; font-weight: 500; color: #4b5563;">Zum Kalender hinzufügen</span>
                            </a>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>