@media screen and (max-width: 768px) {

    .leadgen-funnel {
        min-width: unset;
        padding: 0;
        min-height: auto; /* Changed from 70vh to auto for dynamic height */
    }

    /* Anpassung für den Score-Ring auf Mobilgeräten */
    .score-ring {
        width: 100px;
        height: 100px;
    }
    
    .score-ring::before {
        width: 80px;
        height: 80px;
    }
    
    .score-value {
        font-size: 18px;
    }
    
    .score-text {
        font-size: 14px;
    }

    /* Styling für den "Analyse starten" Button auf Mobilgeräten */
    .start-analysis-button-container {
        margin: 15px 0;
        width: 100%;
    }

    .button-atom.button-atom--primary {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }

    .options {
        grid-template-columns: repeat(1, 1fr)!important;
    }

    /* Funnel Container */
    .funnel-container {
        padding: 15px;
        margin: 10px;
    }



    /* Keyfacts */
    .keyfacts-summary {
        padding: 10px;
    }
    
    .keyfacts-summary .keyfact-item {
        font-size: 14px;
        padding: 8px;
    }

    /* Response Tabs */
    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    /* AI Response Container */
    .ai-response-container {
        padding: 10px;
    }

    .ai-response-container h2 {
        font-size: 1.5em;
    }

    .ai-response-container h3 {
        font-size: 1.2em;
    }

    .ai-response-container p,
    .ai-response-container li {
        font-size: 1em;
    }

    /* Form Elements */
    .form-group {
        margin: 10px 0;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        width: 100%;
        padding: 8px;
    }

    /* Buttons */
    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        width: 100%;
        margin: 5px 0;
    }

    /* Keyfacts untereinander */
    .keyfacts-summary > div {
        flex-direction: column;
        gap: 0px !important;
    }

    .keyfact-item {
        width: 100%;
        text-align: center;
    }

    /* Button Navigation Fix */
    .button-group {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0 -15px -15px;
        z-index: 100;
    }

    /* Performance Metriken - nur mittlere Spalte (Bewertung) anzeigen */
    .metric-columns {
        display: flex;
        justify-content: center;
    }

    .metric-column:first-child,
    .metric-column:last-child {
        display: none;  /* TTFB und Antwortzeit ausblenden */
    }

    .metric-column:nth-child(2) {
        width: 100%;  /* Vollständige Breite */
        max-width: none;  /* Maximale Breite entfernen */
        text-align: center;
        padding: 15px;
    }

    /* Navigation Fix */
    .funnel-step {
        padding-bottom: 80px;
        position: relative;
        min-height: auto; /* Changed from calc(100vh - 100px) to auto for dynamic height */
        justify-content: flex-start !important; /* Changed from normal to flex-start */
    }

    .funnel-step[data-step="1"] h3 {
        font-size: 1.8em;
    }

    .button-group {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0;
    }

    /* Zusätzlicher Container für den Content */
    .funnel-step-content {
        padding-bottom: 80px; /* Platz für die Navigation */
        overflow-y: auto;
    }

    /* Verhindert Überlappung mit der Navigation */
    #aiResponse {
        margin-bottom: 80px;
    }

    .analysis-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .analysis-text {
        font-size: 1em;
    }
    
    .loading-circle {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .check-circle {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    /* DSGVO Checkbox für Mobile anpassen */
    .privacy-consent-container {
        margin: 10px 0;
        width: 100%;
    }
    
    .privacy-checkbox-label {
        font-size: 13px;
        padding-left: 26px;
    }
    
    .checkmark {
        height: 16px;
        width: 16px;
    }
    
    .privacy-checkbox-label .checkmark:after {
        left: 5px;
        top: 2px;
        width: 3px;
        height: 8px;
    }
    
    .privacy-text {
        font-size: 12px;
    }

    /* Custom Steps für Mobile */
    .custom-steps {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        text-align: center;
        flex-wrap: wrap;
    }



    .custom-steps span {
        display: inline;
        white-space: nowrap;
    }

    /* Strategy Banner Link Update */
    .strategy-banner a {
        color: white;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .strategy-banner a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
} 