/* ============================================
   style.css – Teufelswurm Ticket-Seite
   ============================================ */

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

body {
    background: #f5f7fa;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: #fff;
    max-width: 500px;
    width: 100%;
    padding: 30px 28px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.title-block {
    text-align: center;
    margin-bottom: 20px;
}

.title-block h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a2634;
    letter-spacing: -0.5px;
}

.title-block .subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #2c3e4e;
    margin-top: 2px;
}

.title-block .sub-sub {
    font-size: 16px;
    font-weight: 300;
    color: #4a5a6a;
    font-style: italic;
    margin-top: 2px;
}

.title-block .description {
    margin: 12px 0 8px;
    font-size: 14px;
    color: #3a4a5a;
    line-height: 1.5;
}

.title-block .description a {
    color: #0070ba;
    text-decoration: underline;
    cursor: pointer;
}

/* ----- Galerie ----- */
.gallery-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f4f9;
}

.gallery {
    display: block;
    touch-action: pan-y;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.gallery .slide {
    display: none;
}

.gallery .slide.active {
    display: block;
}

/* Pfeile */
.gallery .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    z-index: 10;
    line-height: 1;
    touch-action: manipulation;
}

.gallery .arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery .arrow-left {
    left: 10px;
}

.gallery .arrow-right {
    right: 10px;
}

.gallery .counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    user-select: none;
    pointer-events: none;
}

/* ----- Artikel (Inline) ----- */
.article {
    display: none;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #1a2634;
    background: #fff;
}

.article h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a2634;
}

.article p {
    margin-bottom: 10px;
}

.article-footer {
    display: none;
    text-align: center;
    margin-top: 8px;
}

.article-footer a {
    color: #0070ba;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* ----- Termine & Adresse ----- */
.termine {
    margin: 18px 0 10px;
    text-align: left;
    padding-left: 20px;
    font-size: 15px;
    color: #1a2634;
    line-height: 1.7;
    border-top: 1px solid #e9edf2;
    padding-top: 16px;
}

.termine .premiere {
    font-weight: 700;
    color: #0070ba;
}

.termine .vorstellungen {
    font-weight: 700;
    color: #0070ba;
    margin-top: 6px;
}

.termine .day {
    font-weight: 700;
    color: #1a2634;
}

.termine .detail {
    font-size: 13px;
    color: #4a5a6a;
    margin-top: 4px;
    font-weight: 400;
}

.termine .address {
    font-size: 14px;
    color: #1a2634;
    margin-top: 8px;
    font-weight: 400;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.termine .address img.logo {
    height: 1.6em;
    width: auto;
    vertical-align: middle;
}

/* ----- Karten-Icon (SVG) ----- */
.termine .address .map-container {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    line-height: 0;
    padding: 2px;
    background: #fff;
}

.termine .address .map-container:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.termine .address .map-container svg {
    height: 24px;
    width: auto;
    display: block;
    vertical-align: middle;
}

/* ----- Overlay (Karte) mit Schließen-Button ----- */
.map-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.map-overlay.active {
    display: flex;
}

.map-overlay-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
}

.map-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    font-weight: 700;
    color: #1a2634;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.map-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.map-overlay-content svg {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #fff;
    display: block;
}

/* ----- Formularfelder ----- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e4e;
    margin-bottom: 4px;
}

.field label .opt {
    font-weight: 400;
    color: #7a8a9a;
    font-size: 12px;
}

.field input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #dce2e8;
    border-radius: 10px;
    font-size: 15px;
    background: #fafcfe;
    transition: 0.15s;
}

.field input:focus {
    border-color: #0070ba;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.1);
    background: #fff;
}

.err {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 3px;
}

.btn {
    width: 100%;
    padding: 15px;
    background: #0070ba;
    border: none;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 4px;
}

.btn:hover {
    background: #005c9e;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.smallprint {
    font-size: 12px;
    color: #6b7a8a;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

/* ----- Erfolgsmeldung ----- */
.success-msg {
    background: #dbeafe;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.5;
    border-left: 4px solid #3b82f6;
}

/* ----- PayPal-Bereich ----- */
.paypal-wrap {
    margin-top: 20px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 20px;
}

.paypal-wrap paypal-add-to-cart-button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.cart-checkout {
    margin-top: 16px;
}

.cart-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2634;
    text-align: center;
    margin-bottom: 6px;
}

.cart-outer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cart-button-wrapper {
    display: inline-block;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cart-button-wrapper:hover {
    border-color: #0070ba;
}

.cart-button-wrapper paypal-cart-button {
    display: block;
}

.general-err {
    color: #b91c1c;
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
}

.footer {
    margin-top: 18px;
    font-size: 12px;
    color: #8a9aa8;
    text-align: center;
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 480px) {
    .card {
        padding: 20px 16px;
    }

    .title-block h1 {
        font-size: 30px;
    }

    .title-block .subtitle {
        font-size: 16px;
    }

    .title-block .sub-sub {
        font-size: 14px;
    }

    .title-block .description {
        font-size: 13px;
    }

    .termine {
        font-size: 14px;
        padding-left: 10px;
    }

    .termine .detail {
        font-size: 12px;
    }

    .termine .address {
        font-size: 13px;
        gap: 2px 4px;
    }

    .termine .address img.logo {
        height: 1.4em;
    }

    .termine .address .map-container svg {
        height: 20px;
    }

    .smallprint {
        font-size: 11px;
    }

    .field input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn {
        font-size: 15px;
        padding: 13px;
    }

    .cart-outer-wrapper {
        flex-wrap: wrap;
    }

    .cart-button-wrapper {
        width: 100%;
    }

    .cart-label {
        font-size: 13px;
    }

    .map-close {
        top: -30px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .title-block h1 {
        font-size: 26px;
    }

    .title-block .subtitle {
        font-size: 14px;
    }

    .title-block .sub-sub {
        font-size: 12px;
    }

    .termine {
        font-size: 13px;
        padding-left: 8px;
    }

    .success-msg {
        font-size: 13px;
    }
}