body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: normal !important;
}
h1 {
    color: #444;
    text-align: center;
}
select, input[type="text"] {
    width: 100%;
    height: 40px;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
button {
    background-color: #5cb85c;
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: #4cae4c;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.response-section {
    margin-top: 20px;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
.response-box {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.timer {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.nav-button {
    background-color: #4a90e2;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}
.nav-button:hover {
    background-color: #357abd;
}
.nav-button.active {
    background-color: #357abd;
}
.main-button {
    display: block;
    background-color: #5c4ae2;
    color: white;
    font-size: 18px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 auto 30px auto;
    text-align: center;
    max-width: 300px;
}
.main-button:hover {
    background-color: #4938bd;
}
.question-box {
    padding: 8px 15px 0 15px !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    min-height: 30px;
    color: #000000 !important;
    background-color: #ffffff !important;
    border-radius: 10px 10px 0 0 !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
}
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: #4cae4c;
    width: 100%;
    transition: width 0.5s ease-in-out;
    border-radius: 4px;
}
.search-message {
    font-weight: bold;
    margin: 20px 0;
    min-height: 30px;
}
.bold-text {
    font-weight: bold;
}
.second-row {
    margin-top: -10px;
}
.combined-button {
    background-color: #4a90e2;
    min-width: 200px;
}
.combined-button:hover {
    background-color: #357abd;
}
.combined-button.active {
    background-color: #357abd;
}
.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.info-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    width: 100%;
    text-align: center;
}
.follow-up-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    line-height: normal !important;
}
.follow-up-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.follow-up-response {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
.follow-up-response.active {
    display: block;
}
.follow-up-section button {
    background-color: #4a90e2;
    margin-top: 10px;
}
.info-button:hover {
    background-color: #357abd;
}
.more-info-content {
    margin: 10px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}
.more-info-content.active {
    display: block;
}

/* Globale Reset-Regeln */
.response-section,
.follow-up-section,
.question-box,
.answer-header,
.typewriter-response,
#questionBox,
#assistantResponse {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    gap: 0 !important;
    line-height: normal !important;
}

/* Spezifische Padding nur für Inhalte */
.question-box {
    padding: 8px 15px 0 15px !important;
}

.answer-header {
    padding: 0 15px !important;
}

.typewriter-response {
    padding: 8px 15px !important;
}

/* Container-Verhalten */
.response-section {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

/* Entfernen aller Standard-Margins und Paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iOS-spezifische Styles */
@supports (-webkit-touch-callout: none) {
    select, input[type="text"], button {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 5px !important;
        font-size: 16px !important;
        touch-action: manipulation;
    }
    
    select {
        background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 8px center;
        padding-right: 30px !important;
        background-color: #ffffff;
        cursor: pointer;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Verbesserte Touch-Ziele für iOS */
    select, input[type="text"], button, .follow-up-input {
        min-height: 44px !important;
        padding: 12px !important;
        margin: 8px 0 !important;
    }

    /* Verhindern von unerwünschten Tap-Highlights */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Verbesserte Scrolling-Performance */
    .response-box,
    .follow-up-section,
    .main-container {
        -webkit-overflow-scrolling: touch;
    }

    /* Verhindert das Markieren von Text */
    select {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Verbesserte Touch-Ziele für alle mobilen Geräte */
@media (hover: none) and (pointer: coarse) {
    button,
    select,
    input[type="text"],
    .follow-up-input,
    .follow-up-button {
        min-height: 44px !important;
        padding: 12px !important;
        font-size: 16px !important;
    }

    /* Größere Abstände zwischen klickbaren Elementen */
    .form-group {
        margin-bottom: 16px !important;
    }

    /* Verbesserte Sichtbarkeit des aktiven Zustands */
    select:focus,
    input[type="text"]:focus,
    button:focus,
    .follow-up-input:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(74,144,226,0.3) !important;
    }
}

/* Allgemeine mobile Optimierungen */
@media (max-width: 768px) {
    select, 
    input[type="text"], 
    button,
    .follow-up-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-control {
        padding: 0 15px !important;
    }

    /* Verbesserte Lesbarkeit auf mobilen Geräten */
    body {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* Zusätzliche Verbesserungen für Touch-Interaktionen */
button,
select,
input[type="text"],
.follow-up-input {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.waiting-text {
    font-size: 2em;
    color: #fff59d !important;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
} 