/**
 * ==================================================================================
 * BABYLUGG MODERNIZATION - Phase 1 Quick Wins
 * ==================================================================================
 * Moderne UI-Verbesserungen unter Beibehaltung der CI-Farben
 * - Button Modernisierung
 * - Input Field Verbesserungen
 * - Card Shadows & Hover
 * - Typografie Update
 * ==================================================================================
 */

/* ==================== TYPOGRAFIE UPDATE ==================== */

/* Verbesserte Line-Heights und Spacing */
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 600;
}

h3, h4 {
    line-height: 1.4;
    font-weight: 600;
}

p {
    line-height: 1.7;
    font-weight: 400;
}

/* ==================== BUTTON MODERNISIERUNG ==================== */

.button {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 24px; /* Pill-Shape statt 12px */
    padding: 14px 28px; /* Etwas größer */
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(42, 159, 135, 0.25),
                0 1px 3px rgba(42, 159, 135, 0.15);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background-color: #238770;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 159, 135, 0.35),
                0 2px 8px rgba(42, 159, 135, 0.2);
}

.button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(42, 159, 135, 0.2);
}

/* Ripple Effect für Buttons */
.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:active::after {
    width: 300px;
    height: 300px;
}

/* Secondary Button */
.button-secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: none;
    padding: 12px 28px; /* Adjust for border */
}

.button-secondary:hover {
    background-color: rgba(42, 159, 135, 0.08);
    border-color: #238770;
    color: #238770 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 12px rgba(42, 159, 135, 0.15);
}

.button-secondary:active {
    transform: translateY(0) scale(0.98);
    background-color: rgba(42, 159, 135, 0.15);
}

/* Danger Button */
.button-danger {
    background-color: var(--danger-color);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25),
                0 1px 3px rgba(192, 57, 43, 0.15);
}

.button-danger:hover {
    background-color: #a93226;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35),
                0 2px 8px rgba(192, 57, 43, 0.2);
}

/* Success Button */
.button-success {
    background-color: var(--success-color);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25),
                0 1px 3px rgba(39, 174, 96, 0.15);
}

.button-success:hover {
    background-color: #229954;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.35),
                0 2px 8px rgba(39, 174, 96, 0.2);
}

/* Button Größen */
.button-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
}

.button-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 28px;
}

/* ==================== INPUT FIELDS MODERNISIERUNG ==================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #DADCE0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 159, 135, 0.1);
    background-color: #ffffff;
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
    border-color: #9AA0A6;
}

/* Input mit Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 44px;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

.input-with-icon input:focus + i {
    color: var(--primary-color);
    opacity: 1;
}

/* Input Error State */
input.error,
textarea.error,
select.error {
    border-color: var(--danger-color);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Input Success State */
input.success,
textarea.success,
select.success {
    border-color: var(--success-color);
}

input.success:focus,
textarea.success:focus,
select.success:focus {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Placeholder Style */
::placeholder {
    color: #80868B;
    opacity: 1;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

/* Helper Text */
.input-helper {
    font-size: 13px;
    color: #5F6368;
    margin-top: 6px;
}

.input-helper.error {
    color: var(--danger-color);
}

.input-helper.success {
    color: var(--success-color);
}

/* ==================== CARD MODERNISIERUNG ==================== */

/* Produkt Cards */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #F1F3F4;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Allgemeine Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #F1F3F4;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Card mit Image */
.card-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* Info Cards */
.info-card {
    background: var(--light-background);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(42, 159, 135, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(42, 159, 135, 0.15);
    border-color: var(--primary-color);
}

/* ==================== TAB BUTTONS ==================== */

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-button:hover {
    background: rgba(42, 159, 135, 0.08);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(42, 159, 135, 0.25);
}

.tab-button.active:hover {
    background: #238770;
}

/* ==================== MODAL MODERNISIERUNG ==================== */

.modal-content {
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2),
                0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #F1F3F4;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #F1F3F4;
    background: #F8F9FA;
}

/* ==================== BADGES & TAGS ==================== */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background: rgba(42, 159, 135, 0.12);
    color: var(--primary-color);
}

.badge-secondary {
    background: rgba(89, 22, 112, 0.12);
    color: var(--secondary-color);
}

.badge-success {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(192, 57, 43, 0.12);
    color: var(--danger-color);
}

/* ==================== LINKS ==================== */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #238770;
    text-decoration: underline;
}

/* ==================== DIVIDERS ==================== */

hr {
    border: none;
    height: 1px;
    background: #DADCE0;
    margin: 24px 0;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 768px) {
    .button {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 22px;
    }

    .button-large {
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 24px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .card {
        padding: 20px;
        border-radius: 14px;
    }
}

/* ==================== SMOOTH TRANSITIONS ==================== */

* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus visible für Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default focus für Mouse */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
