/* Basisstil für den Hintergrund mit Farbverlauf */
html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    /* Für mobile Browser – PlanFast Branding */
    background: linear-gradient(135deg, #0D1F2D 0%, #18344D 50%, #2A6080 100%);
    background-attachment: fixed;
    /* Verhindert Scroll-Artefakte */
    font-family: 'Helvetica Neue', sans-serif;
    color: white;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0D1F2D 0%, #18344D 50%, #2A6080 100%);
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    display: flex;
}


.logo {
    max-width: 100px;
    height: auto;
}

/* Scrollbarer Inhalt */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 20px;
    /* Abstand oben wegen des fixierten Logos */
    text-align: center;
}

/* Text-Stil */
h1 {
    font-size: 2.5em;
    margin: 0;
}

p {
    font-size: 1.2em;
    margin-top: 10px;
    line-height: 1.6;
    /* Verbesserung der Lesbarkeit */
}

#message {
    padding: 20px;
    border-radius: 20px;
    display: none;
    width: 90%
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.error {
    background-color: #f2dede;
    color: #a94442;
}


.content-container {
    padding: 20px;
    border-radius: 8px;
    text-align: match-parent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.form-container {
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E8EEF2;
    width: fit-content;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.input-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

input {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 20px;
    /* Ecken abgerundet */
    height: 40px;
    /* Höhe einheitlich auf 40px gesetzt */
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
.button {
    background-color: white;
    color: #1E4A6D;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    width: 100%;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-blue {
    background: linear-gradient(135deg, #1E4A6D, #2A6080);
    color: white;
    padding: 10px 15px;

    /* Ecken abgerundet */
    width: 100%;
    /* Gleiche Breite wie Email-Eingabe */
    cursor: pointer;
    /* Höhe einheitlich auf 40px gesetzt */
}

label {
    text-align: left;
    font-size: 1em;
    color: white;
}

/* Stil für das Lade-Icon */
.loading {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;

    /* Höhe des Ladebereichs */
    /* Anpassungen für mobile Geräte */
    @media (max-width: 768px) {
        height: 100%;
        /* Höhe auf 100% gesetzt, um sicherzustellen, dass der Ladebereich auf mobilen Geräten immer sichtbar ist */
    }
}

/* Beispiel für Loader CSS */
.loader {
    border: 8px solid #f3f3f3;
    /* Heller Grauton für den Hintergrund */
    border-top: 8px solid #ffffff;
    /* Weiß für den Loader */
    border-radius: 50%;
    width: 60px;
    /* Größe des Loaders */
    height: 60px;
    /* Größe des Loaders */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

textarea {
    min-height: 150px;
    resize: vertical;
    width: 100%;
    padding: 20px !important;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

select {
    margin-top: 10px;
    width: 100%;
    height: 40px;
    padding: 10px !important;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D1F2D 0%, #18344D 50%, #2A6080 100%);
    /* Halbtransparenz */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.splash-screen img {
    height: 56px;
    max-width: 100%;
    max-height: 100%;
}

.content {
    display: none;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

.success-message {
    opacity: 0;
    transform: translateY(20px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 400px;
    width: 100%;
}

.success-message.show {
    display: flex;
    animation: successSlideUp 0.8s ease-out forwards;
}

@keyframes successSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message h2 {
    margin: 1rem 0;
    color: white;
    font-size: 1.8em;
}

.success-message p {
    color: white;
    margin: 0;
    font-size: 1.1em;
}

.success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: successIconPop 0.5s ease-out 0.3s forwards;
    opacity: 0;
    transform: scale(0.5);
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes successIconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Support Area Styles */
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.support-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-card h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5em;
}

.support-card p {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.1em;
}

.support-card .btn-blue {
    width: 100%;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-card .btn-blue:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.support-card .btn-blue:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .support-card {
        margin: 0 1rem;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Download Button Styles */
.download-buttons {
    text-align: center;
    margin: 2rem 0;
}

.download-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.download-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.download-btn-custom {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 140px;
    min-height: 48px;
    padding: 0.6rem 1rem;
    position: relative;
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 30%, #2a2a2a 60%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    gap: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.download-btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
}

.download-btn-custom:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 30%, #3a3a3a 60%, #2a2a2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.download-btn-custom img {
    height: 20px;
    width: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    left: 12px;
    display: block;
}

.download-btn-custom span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    margin-left: 20px;
    margin-right: 20px;
}

/* App Preview Styles */
.app-preview {
    text-align: center;
    margin: 2rem 0;
}

.app-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* CTA Section Styles */
.cta-section {
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Samsung Browser specific fixes */
@supports (-webkit-appearance: none) {
    .download-btn-custom {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .download-btn-custom img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive Design for Download Buttons */
@media (max-width: 480px) {
    .download-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .download-btn-custom {
        width: 100%;
        max-width: 200px;
        min-height: 52px;
        padding: 0.8rem 1rem;
        gap: 0.4rem;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .download-btn-custom img {
        left: 12px;
        height: 22px;
        width: 22px;
        max-width: 22px;
        max-height: 22px;
    }

    .download-btn-custom span {
        font-size: 0.95rem;
        margin-left: 24px;
        margin-right: 8px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-blue,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .download-badges {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .download-btn-custom {
        width: 130px;
        min-height: 48px;
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .download-btn-custom img {
        left: 8px;
        height: 18px;
        width: 18px;
        max-width: 18px;
        max-height: 18px;
    }

    .download-btn-custom span {
        font-size: 0.8rem;
        margin-left: 20px;
        margin-right: 6px;
    }
}