/* ===================================
   DEVBLOGS - EINHEITLICHES DESIGN
   Schlicht, professionell, aus einem Guss
   =================================== */

/* ===================================
   GRUNDSTRUKTUR - WRAPPER
   =================================== */

.devblog-wrapper {
    background: rgba(26, 31, 46, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

/* ===================================
   COMPANY INFO - HEADER
   =================================== */

.company-info-box {
    padding: 25px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: start;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 0;
    margin: 0;
}

.company-info-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.company-info-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-info-details {
    flex: 1;
}

.company-info-name {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--gi-body-font-color);
}

.company-info-name i {
    color: #5dade2;
    margin-right: 8px;
}

.company-info-desc {
    color: #95a5a6;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 12px;
}

.company-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85em;
}

.company-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #95a5a6;
}

.company-info-item i {
    color: #5dade2;
}

.company-info-item a {
    color: #5dade2;
    text-decoration: none;
}

.company-info-item a:hover {
    color: #85c7f2;
    text-decoration: underline;
}

.company-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    color: #5dade2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.company-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #85c7f2;
}

/* ===================================
   HERO - ARTIKEL HEADER
   =================================== */

.article-hero {
    padding: 25px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.article-hero.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.article-hero.has-background > * {
    position: relative;
    z-index: 1;
}

.article-hero-image {
    max-width: 280px;
    width: auto;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(52, 152, 219, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.article-hero-image img {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.article-hero-content {
    flex: 1;
    position: relative;
    padding-right: 140px;
}

.article-hero-meta {
    position: absolute;
    top: -30px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.8em;
}

.hero-author,
.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
}

.hero-author i,
.hero-date i {
    color: #5dade2;
    font-size: 0.85em;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    color: #5dade2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-hero-title {
    margin: 0 0 10px 0;
    
    font-weight: 600;
    color: var(--gi-body-font-color);
    line-height: 1.2;
}

.article-hero-excerpt {
    color: #95a5a6;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* ===================================
   TAGS
   =================================== */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: transparent;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    margin: 0;
    border-radius: 0;
}

.tags-label {
    color: #7f8c8d;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tags-label i {
    color: #5dade2;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.08);
    color: #5dade2;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(52, 152, 219, 0.15);
    color: #85c7f2;
}

/* ===================================
   GALLERY SLIDER
   =================================== */

.gallery-section {
    padding: 25px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 0;
    margin: 0;
}

.gallery-section-title {
    color: var(--gi-body-font-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-section-title i {
    color: #5dade2;
}

.gallery-count {
    font-size: 0.75em;
    font-weight: 400;
    color: #7f8c8d;
}

.gallery-slider {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.gallery-slider-viewport {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.gallery-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide-image {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-slide-image img {
    max-width: 100%;
    max-height: 290px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    overflow: hidden;
}

.caption-text {
    position: absolute;
    color: #bdc3c7;
    font-size: 0.85em;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 0 30px;
    max-width: 100%;
}

.caption-text.active {
    opacity: 1;
    visibility: visible;
}

.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #95a5a6;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    z-index: 10;
}

.counter-current {
    color: #5dade2;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.gallery-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    color: #5dade2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-btn:hover {
    background: rgba(52, 152, 219, 0.25);
    color: #85c7f2;
}

.gallery-thumbnails {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px;
    max-width: calc(100% - 100px);
    flex-shrink: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.3);
    border-radius: 2px;
}

.gallery-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

.gallery-thumb.active {
    border-color: #5dade2;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ===================================
   ARTICLE CONTENT
   =================================== */

.article-content {
    padding: 25px;
    color: #bdc3c7;
    line-height: 1.75;
    font-size: 0.95em;
}

.article-content h2 {
    color: var(--gi-body-font-color);
    
    font-weight: 600;
    margin: 35px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h2 i {
    color: #5dade2;
    font-size: 0.85em;
}

.article-content h3 {
    color: var(--gi-body-font-color);
    font-size: 1.15em;
    font-weight: 600;
    margin: 25px 0 12px 0;
}

.article-content p {
    margin: 0 0 15px 0;
}

.article-content a {
    color: #5dade2;
    text-decoration: none;
}

.article-content a:hover {
    color: #85c7f2;
    text-decoration: underline;
}

.article-content strong {
    color: var(--gi-body-font-color);
    font-weight: 600;
}

/* Content Section */
.content-section {
    margin-bottom: 25px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Highlight */
.section-highlight {
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid #5dade2;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.section-highlight p:last-child {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid #5dade2;
    padding: 15px 18px;
    margin: 18px 0;
    display: flex;
    gap: 12px;
    border-radius: 0 4px 4px 0;
}

.info-box.warning {
    border-color: #f1c40f;
}

.info-box.success {
    border-color: #1abc9c;
}

.info-box-icon {
    font-size: 1.2em;
    color: #5dade2;
    min-width: 20px;
}

.info-box.warning .info-box-icon {
    color: #f1c40f;
}

.info-box.success .info-box-icon {
    color: #1abc9c;
}

.info-box-content {
    flex: 1;
}

.info-box-content p:last-child {
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.08);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #5dade2;
    margin-top: 3px;
    min-width: 16px;
}

/* Step List */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.08);
}

.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #5dade2;
    color: #1a1f2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

.step-number::before {
    content: counter(step-counter);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.05em;
}

.step-content p:last-child {
    margin-bottom: 0;
}

/* Quote */
.article-quote {
    border-left: 3px solid #5dade2;
    padding: 18px 22px;
    margin: 20px 0;
    position: relative;
}

.article-quote p {
    font-size: 1.05em;
    font-style: italic;
    color: var(--gi-body-font-color);
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.article-quote cite {
    display: block;
    color: #5dade2;
    font-size: 0.85em;
    font-style: normal;
}

/* Code */
.code-example {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #a8dadc;
    line-height: 1.5;
}

/* CTA */
.article-cta {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid #5dade2;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.cta-title {
    color: var(--gi-body-font-color);
    font-size: 1.15em;
    margin: 0 0 8px 0;
}

.cta-body {
    color: #95a5a6;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #1a1f2e;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

/* ===================================
   AUTHOR BOX
   =================================== */

.author-box {
    padding: 25px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
}

.author-box-title {
    color: var(--gi-body-font-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-box-title i {
    color: #5dade2;
}

.author-box-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-box-avatar {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(52, 152, 219, 0.2);
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-box-name {
    margin: 0 0 2px 0;
    font-size: 1.1em;
    color: var(--gi-body-font-color);
}

.author-box-name a {
    color: inherit;
    text-decoration: none;
}

.author-box-name a:hover {
    color: #5dade2;
}

.author-box-company {
    color: #5dade2;
    font-size: 0.85em;
}

.author-box-bio {
    color: #95a5a6;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.author-box-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.1);
    color: #5dade2;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.author-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #85c7f2;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px) {
    .article-hero {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }
    
    .article-hero-image {
        max-width: 150px;
    }
    
    .article-hero-title {
        font-size: 1.5em;
    }
    
    .article-hero-content {
        padding-right: 0;
    }
    
    .article-hero-meta {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .company-info-box {
        grid-template-columns: 70px 1fr;
    }
    
    .company-info-logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .article-hero-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .article-hero-title {
        font-size: 1.4em;
    }
    
    .article-hero-meta {
        justify-content: center;
    }
    
    .company-info-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-info-logo {
        margin: 0 auto;
    }
    
    .company-info-meta {
        justify-content: center;
    }
    
    .company-info-links {
        justify-content: center;
    }
    
    .article-content h2 {
        font-size: 1.2em;
    }
    
    .gallery-slider-viewport {
        height: 300px;
    }
    
    .gallery-slide-image img {
        max-height: 210px;
    }
    
    .gallery-slider-track {
        height: calc(100% - 45px);
    }
    
    .gallery-slide-caption {
        height: 45px;
    }
    
    .gallery-thumbnails {
        max-width: calc(100% - 90px);
    }
    
    .author-box-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-info-box,
    .article-hero,
    .article-tags,
    .gallery-section,
    .article-content,
    .author-box {
        padding: 18px;
    }
    
    .article-hero-title {
        font-size: 1.25em;
    }
    
    .company-info-name {
        font-size: 1.2em;
    }
    
    .gallery-slider-viewport {
        height: 260px;
    }
    
    .gallery-slide-image img {
        max-height: 170px;
    }
    
    .gallery-thumbnails {
        display: none;
    }
    
    .gallery-controls {
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 10px;
    }
}
