/*
Theme Name: Hello Elementor Agrokom
Description: Child Theme fuer Hello Elementor - Agrokom/LASKI Portal
Author: Agrokom
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-agrokom
*/

/* ============================================
   Agrokom Design-System
   ============================================ */

:root {
    /* Markenfarben */
    --agrokom-green: #2D6A4F;
    --agrokom-green-dark: #1B4332;
    --agrokom-green-light: #74C69D;
    --agrokom-green-lighter: #D8F3DC;
    --agrokom-orange: #E76F51;
    --agrokom-gray-dark: #212529;
    --agrokom-gray: #6C757D;
    --agrokom-gray-light: #F8F9FA;
    --agrokom-white: #FFFFFF;

    /* Abstände */
    --agrokom-section-padding: 80px;
    --agrokom-element-gap: 24px;

    /* Schatten */
    --agrokom-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --agrokom-shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --agrokom-shadow-lg: 0 8px 30px rgba(0,0,0,0.15);

    /* Radius */
    --agrokom-radius: 12px;
    --agrokom-radius-sm: 8px;
    --agrokom-radius-lg: 20px;

    /* Transition */
    --agrokom-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global
   ============================================ */

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--agrokom-gray-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--agrokom-gray-dark);
    line-height: 1.3;
}

a {
    color: var(--agrokom-green);
    transition: var(--agrokom-transition);
}

a:hover {
    color: var(--agrokom-green-dark);
}

/* ============================================
   Agrokom Buttons (globale Klasse)
   ============================================ */

.agrokom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--agrokom-radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--agrokom-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.agrokom-btn-primary {
    background: var(--agrokom-green);
    color: var(--agrokom-white);
    border-color: var(--agrokom-green);
}

.agrokom-btn-primary:hover {
    background: var(--agrokom-green-dark);
    border-color: var(--agrokom-green-dark);
    color: var(--agrokom-white);
    transform: translateY(-2px);
    box-shadow: var(--agrokom-shadow-md);
}

.agrokom-btn-outline {
    background: transparent;
    color: var(--agrokom-green);
    border-color: var(--agrokom-green);
}

.agrokom-btn-outline:hover {
    background: var(--agrokom-green);
    color: var(--agrokom-white);
    transform: translateY(-2px);
}

.agrokom-btn-orange {
    background: var(--agrokom-orange);
    color: var(--agrokom-white);
    border-color: var(--agrokom-orange);
}

.agrokom-btn-orange:hover {
    background: #C75B3F;
    border-color: #C75B3F;
    color: var(--agrokom-white);
    transform: translateY(-2px);
    box-shadow: var(--agrokom-shadow-md);
}

/* ============================================
   Produkt-Karten
   ============================================ */

.agrokom-product-card {
    background: var(--agrokom-white);
    border-radius: var(--agrokom-radius);
    box-shadow: var(--agrokom-shadow-sm);
    overflow: hidden;
    transition: var(--agrokom-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agrokom-product-card:hover {
    box-shadow: var(--agrokom-shadow-lg);
    transform: translateY(-4px);
}

.agrokom-product-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--agrokom-gray-light);
}

.agrokom-product-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agrokom-product-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--agrokom-gray-dark);
}

.agrokom-product-card__excerpt {
    font-size: 14px;
    color: var(--agrokom-gray);
    margin-bottom: 16px;
    flex: 1;
}

.agrokom-product-card__link {
    margin-top: auto;
}

/* Badges */
.agrokom-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agrokom-badge-green {
    background: var(--agrokom-green-lighter);
    color: var(--agrokom-green-dark);
}

.agrokom-badge-orange {
    background: rgba(231, 111, 81, 0.15);
    color: var(--agrokom-orange);
}

.agrokom-badge-gray {
    background: var(--agrokom-gray-light);
    color: var(--agrokom-gray);
}

/* ============================================
   Dokumenten-Portal
   ============================================ */

.agrokom-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agrokom-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #E9ECEF;
    border-radius: var(--agrokom-radius-sm);
    margin-bottom: 8px;
    background: var(--agrokom-white);
    transition: var(--agrokom-transition);
}

.agrokom-doc-item:hover {
    border-color: var(--agrokom-green-light);
    box-shadow: var(--agrokom-shadow-sm);
    transform: translateX(4px);
}

.agrokom-doc-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
    font-size: 18px;
}

.agrokom-doc-item__icon-pdf {
    background: rgba(231, 111, 81, 0.15);
    color: #C0392B;
}

.agrokom-doc-item__icon-zip {
    background: rgba(45, 106, 79, 0.15);
    color: var(--agrokom-green);
}

.agrokom-doc-item__info {
    flex: 1;
    min-width: 0;
}

.agrokom-doc-item__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--agrokom-gray-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agrokom-doc-item__meta {
    font-size: 13px;
    color: var(--agrokom-gray);
}

.agrokom-doc-item__download {
    flex-shrink: 0;
    margin-left: 16px;
}

.agrokom-doc-locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.agrokom-doc-locked .agrokom-doc-item__download {
    pointer-events: none;
}

/* Typ-Suche */
.agrokom-typ-search {
    position: relative;
    margin-bottom: 32px;
}

.agrokom-typ-search__input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    font-size: 16px;
    border: 2px solid #E9ECEF;
    border-radius: var(--agrokom-radius);
    transition: var(--agrokom-transition);
    background: var(--agrokom-white);
}

.agrokom-typ-search__input:focus {
    outline: none;
    border-color: var(--agrokom-green);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.agrokom-typ-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--agrokom-gray);
}

/* Typ-Karten Grid */
.agrokom-typ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.agrokom-typ-card {
    background: var(--agrokom-white);
    border: 1px solid #E9ECEF;
    border-radius: var(--agrokom-radius);
    padding: 20px;
    text-align: center;
    transition: var(--agrokom-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.agrokom-typ-card:hover {
    border-color: var(--agrokom-green);
    box-shadow: var(--agrokom-shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.agrokom-typ-card__skizze {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: var(--agrokom-radius-sm);
    background: var(--agrokom-gray-light);
}

.agrokom-typ-card__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--agrokom-gray-dark);
    margin-bottom: 4px;
}

.agrokom-typ-card__count {
    font-size: 13px;
    color: var(--agrokom-gray);
}

.agrokom-typ-card__badges {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Login-Seite
   ============================================ */

.agrokom-login-wrapper {
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--agrokom-white);
    border-radius: var(--agrokom-radius-lg);
    box-shadow: var(--agrokom-shadow-lg);
}

.agrokom-login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.agrokom-login-subtitle {
    text-align: center;
    color: var(--agrokom-gray);
    font-size: 15px;
    margin-bottom: 32px;
}

.agrokom-login-form .login-username,
.agrokom-login-form .login-password {
    margin-bottom: 20px;
}

.agrokom-login-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--agrokom-gray-dark);
}

.agrokom-login-form input[type="text"],
.agrokom-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E9ECEF;
    border-radius: var(--agrokom-radius-sm);
    font-size: 15px;
    transition: var(--agrokom-transition);
}

.agrokom-login-form input[type="text"]:focus,
.agrokom-login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--agrokom-green);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.agrokom-login-form .button {
    width: 100%;
    padding: 14px;
    background: var(--agrokom-green);
    color: var(--agrokom-white);
    border: none;
    border-radius: var(--agrokom-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--agrokom-transition);
}

.agrokom-login-form .button:hover {
    background: var(--agrokom-green-dark);
}

.agrokom-login-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.agrokom-login-links a {
    color: var(--agrokom-gray);
}

.agrokom-login-links a:hover {
    color: var(--agrokom-green);
}

/* ============================================
   Händler-Dashboard
   ============================================ */

.agrokom-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.agrokom-dashboard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.agrokom-dashboard__welcome {
    font-size: 24px;
    font-weight: 700;
}

.agrokom-dashboard__user {
    color: var(--agrokom-gray);
}

.agrokom-dashboard__section {
    margin-bottom: 48px;
}

.agrokom-dashboard__section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--agrokom-green-lighter);
}

/* ============================================
   Tabs (Dokumente nach Kategorie)
   ============================================ */

.agrokom-tabs {
    margin-top: 24px;
}

.agrokom-tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #E9ECEF;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.agrokom-tabs__tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--agrokom-gray);
    cursor: pointer;
    transition: var(--agrokom-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.agrokom-tabs__tab:hover {
    color: var(--agrokom-green);
}

.agrokom-tabs__tab.active {
    color: var(--agrokom-green);
    border-bottom-color: var(--agrokom-green);
}

.agrokom-tabs__panel {
    display: none;
}

.agrokom-tabs__panel.active {
    display: block;
    animation: agrokomFadeIn 0.3s ease;
}

@keyframes agrokomFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Hinweis-Box (geschützte Inhalte)
   ============================================ */

.agrokom-notice {
    padding: 20px 24px;
    border-radius: var(--agrokom-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.agrokom-notice--info {
    background: var(--agrokom-green-lighter);
    border-left: 4px solid var(--agrokom-green);
}

.agrokom-notice--warning {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
}

.agrokom-notice--locked {
    background: #F8D7DA;
    border-left: 4px solid #DC3545;
}

.agrokom-notice__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.agrokom-notice__text {
    flex: 1;
}

.agrokom-notice__text strong {
    display: block;
    margin-bottom: 4px;
}

/* ============================================
   Sektion-Abstände für Elementor
   ============================================ */

.agrokom-section {
    padding-top: var(--agrokom-section-padding);
    padding-bottom: var(--agrokom-section-padding);
}

.agrokom-section--tight {
    padding-top: 40px;
    padding-bottom: 40px;
}

.agrokom-section--hero {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   responsive
   ============================================ */

@media (max-width: 768px) {
    :root {
        --agrokom-section-padding: 48px;
    }

    .agrokom-typ-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .agrokom-typ-card__skizze {
        height: 100px;
    }

    .agrokom-login-wrapper {
        padding: 32px 24px;
    }

    .agrokom-dashboard__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
