/* Morphing Container */
.morph-container {
    position: fixed;
    bottom: 0px;
    left: 0px;
    height: 40px;
    width: 40px;
    background: #7b00ff;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow: hidden;
}

#morphContainer2 {
    bottom: 40px !important;
    background: #008c07;
}

#morphContainer2.expanded {
    height: 80px !important;
    bottom: 0px !important;
    /* Bis zum unteren Rand */
}


/* Spezielle Regel für morphContainer2 - genau 2 Zeilen über gesamte Breite */
#morphContainer2 .question-text {
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: none !important;
    min-width: unset !important;
    width: 100% !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* max-height: 2.4em !important; */
}





.morph-container.expanded {
    width: 100vw;
    cursor: default;
    backdrop-filter: blur(3px);
    filter: blur(0px);
    opacity: 1;
}

/* Plus Icon */
.plus-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    transform: translateY(-50%) translateX(-50%);
    font-family: 'Ouvriere';
    /* -webkit-text-stroke: 1.3px #000000; */
    font-size: 30px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    transition: all 0.4s ease;
    z-index: 2;
}

.morph-container.expanded .plus-icon {
    transform: translateY(-50%) rotate(45deg);
    left: 10px;

}

/* Form Content */
.form-content {
    position: absolute;
    left: 50px;
    top: 0;
    width: calc(100% - 60px);
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.morph-container.expanded .form-content {
    opacity: 1;
}

.question-text {
    color: rgb(0, 0, 0);
    font-family: 'ReplicaStd';
    /* -webkit-text-stroke: 1.2px #000000; */
    line-height: 0.95;
    font-size: 13px;
    margin-right: 12px;
    white-space: nowrap;
    min-width: 140px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.plant-input {
    width: 100%;
    border: none;
    font-family: 'Ouvriere';
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 4px 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.plant-input:focus {
    background: white;
}

.plant-input::placeholder {
    color: #666;
    font-style: italic;
}

.action-buttons {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.submit-btn {
    width: 30px;
    height: 30px;
    font-family: 'Ouvriere';
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff00;
    color: rgb(0, 0, 0);
}

.submit-btn:hover:not(:disabled) {
    /* background: #00a085; */
    transform: scale(1.1);
}

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

/* Success/Error Animation */
.morph-container.success {
    /* background: #6600ff; */
    animation: successPulse 0.6s ease;
}

.morph-container.error {
    background: #ff0000;
    animation: errorShake 0.6s ease;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}



/* Ausblenden wenn disabled */
.morph-container.disabled-while-anweisung {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
    .morph-container.expanded {
        width: 450px;
    }
}

/* Notification Styles */
.kraut-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'ReplicaStd';
    font-size: 14px;
    color: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.kraut-notification.show {
    transform: translateX(0);
}

.kraut-notification.success {
    background: #4CAF50;
    border: 2px solid #45a049;
}

.kraut-notification.error {
    background: #f44336;
    border: 2px solid #d32f2f;
}