/*
Theme Name: Stahlliebe Theme
Author: AI Studio Build
Description: Ein professionelles, industrielles Theme für Stahlliebe.
Version: 2.1
*/

:root {
    --primary-color: #141414;
    --secondary-color: #333333;
    --accent-color: #555555;
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --light-text: #ffffff;
    --border-color: #e5e5e5;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
}

body.dark-mode {
    --primary-color: #f5f5f5;
    --secondary-color: #e5e5e5;
    --accent-color: #a1a1aa;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --border-color: #1e293b;
    --header-bg: #1e293b;
    --card-bg: #1e293b;
}

body.dark-mode .site-header,
body.dark-mode .site-main,
body.dark-mode .hero-section,
body.dark-mode .hero-left,
body.dark-mode .trust-bar,
body.dark-mode .featured-categories,
body.dark-mode .referenz-card,
body.dark-mode .main-navigation {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode .hero-title,
body.dark-mode .section-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: var(--text-color);
}

body.dark-mode .nav-list li a {
    color: var(--text-color);
}

body.dark-mode .icon-btn {
    color: var(--text-color);
}

body.dark-mode .preloader {
    background: #000;
}

.dark-mode-toggle .sun-icon { display: none; }
.dark-mode-toggle .moon-icon { display: block; }
body.dark-mode .dark-mode-toggle .sun-icon { display: block; }
body.dark-mode .dark-mode-toggle .moon-icon { display: none; }

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Hide page titles globally on pages and WooCommerce */
.page .entry-header,
.page .page-title,
.woocommerce-page .page-title {
    display: none !important;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 100px;
    height: 2px;
    background: #eee;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.98); }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header.site-header {
    background: #fff;
    color: var(--text-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.site-header.header-shrink {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

header.site-header.header-shrink .logo-img, 
header.site-header.header-shrink .custom-logo-link img {
    height: 80px !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-logo-link {
    display: block;
}

.logo-img, .custom-logo-link img {
    height: 120px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    transition: height 0.3s ease;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    max-width: 250px;
    line-height: 1.4;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s ease;
}

.nav-list li a:hover {
    color: #000;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    color: var(--text-color);
    transition: color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
    color: #000;
    transform: scale(1.1);
}

.icon-btn svg {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    z-index: 1100;
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        display: block;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-list li a {
        font-size: 1.2rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        backdrop-filter: blur(4px);
    }
}

.custom-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.cart-btn {
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Content */
.site-main {
    background: #ffffff;
    min-height: 70vh;
    padding: 60px 0;
}

.home .site-main {
    padding: 0;
}

.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
    color: var(--primary-color);
}

.entry-content {
    font-size: 1.1rem;
    color: #444;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.home .entry-content {
    max-width: 100%;
    padding: 0;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* Footer */
footer.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.footer-tagline {
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: #0f172a;
    transform: translateY(-5px);
    opacity: 1;
}

footer.site-footer h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #fff;
}

.newsletter-col p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    background: #1e293b;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    flex: 1;
    outline: none;
}

.newsletter-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: #1d4ed8;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography & Elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.back-link {
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-split-container {
    display: flex;
    min-height: 90vh;
}

.hero-left {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #fff;
}

.hero-content-wrapper {
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 40px;
}

.hero-badge .icon {
    color: #3b82f6;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin: 0 0 40px 0;
    text-transform: uppercase;
}

.hero-title .accent {
    color: #94a3b8;
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 50px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.vertical-rail {
    position: absolute;
    left: 30px;
    bottom: 80px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.vertical-rail span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #cbd5e1;
}

.hero-right {
    flex: 1;
    position: relative;
    background: #f1f5f9;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.9);
}

.feature-bubble {
    position: absolute;
    bottom: 60px;
    right: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    max-width: 320px;
    border: 1px solid #f1f5f9;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-text {
    font-size: 0.6rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.quote {
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.author {
    font-size: 0.6rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    opacity: 1;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.btn-outline {
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #94a3b8;
}

/* Trust Bar */
.trust-bar {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    color: #ccc;
    letter-spacing: -1px;
}

/* Featured Categories */
.featured-categories {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.sub-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.view-all {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    color: #fff;
}

.card-content .count {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    display: block;
    margin-bottom: 5px;
}

.card-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Technical Features */
.tech-features {
    background: var(--primary-color);
    color: #fff;
    padding: 100px 0;
}

.tech-features .section-title {
    color: #fff;
}

.tech-container {
    display: flex;
    align-items: center;
    gap: 100px;
}

.tech-content {
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-text h4 {
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.feature-text p {
    color: #888;
    margin: 0;
}

.tech-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tolerance-circle {
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tolerance-circle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(50px);
}

.tolerance-circle .number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.tolerance-circle .label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

.hero-content-wrapper > * {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content-wrapper .hero-badge { animation-delay: 0.1s; }
.hero-content-wrapper .hero-title { animation-delay: 0.2s; }
.hero-content-wrapper .hero-description { animation-delay: 0.3s; }
.hero-content-wrapper .hero-actions { animation-delay: 0.4s; }

.feature-bubble {
    animation: float 6s ease-in-out infinite;
    transform: rotate(-2deg);
}

.category-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
    transform: translateY(-10px);
}

/* Premium Typography */
.hero-title {
    letter-spacing: -0.05em;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.section-title {
    letter-spacing: -0.03em;
}

.btn {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    letter-spacing: 2px;
}
/* FAQ Akkordeon */
.stahlliebe-faq {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 400px; /* Increased for longer answers */
    padding-bottom: 20px;
}

.faq-contact-cta {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

body.dark-mode .faq-contact-cta {
    background: #1e293b;
}

.faq-contact-cta:hover {
    transform: translateY(-5px);
}

.faq-contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Material Guide */
.material-guide-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.material-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
    margin-top: 20px;
}

.comparison-slider .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-slider .foreground-img {
    width: 50%;
    z-index: 2;
    border-right: 2px solid #fff;
}

.comparison-slider .slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    margin: 0;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.comparison-slider .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 300px;
    background: #fff;
    cursor: pointer;
}

.slider-button {
    pointer-events: none;
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    left: calc(50% - 18px);
    top: calc(50% - 18px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.slider-button::before, .slider-button::after {
    content: '';
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.slider-button::before { transform: rotate(135deg); }
.slider-button::after { transform: rotate(-45deg); }

/* Floating Widget */
.floating-configurator-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.widget-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #333;
    opacity: 1;
}

.widget-icon {
    font-size: 1.2rem;
    color: #fbbf24;
}

/* Referenzen Slider (Startseite) */
.referenzen-slider-section {
    padding: 100px 0;
    background: #f8f9fa;
}

body.dark-mode .referenzen-slider-section {
    background: #0f172a;
}

.slider-container {
    overflow: hidden;
    margin-top: 60px;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 400px;
    flex: 1;
}

@media (max-width: 768px) {
    .slider-item {
        min-width: 300px;
    }
}

.referenz-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.referenz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.referenz-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.referenz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.referenz-card:hover .referenz-image img {
    transform: scale(1.05);
}

.referenz-info {
    padding: 30px;
}

.referenz-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.referenz-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.referenz-link {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.referenz-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.referenz-link:hover::after {
    transform: translateX(5px);
}

/* Single Referenz */
.referenz-hero {
    padding: 100px 0;
    background: #f8f9fa;
    text-align: center;
}

.referenz-meta {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: block;
}

.referenz-main-image {
    margin: -60px auto 80px;
    max-width: 1000px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.referenz-main-image img {
    width: 100%;
    display: block;
}

.referenz-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}
    
    .tech-container {
        flex-direction: column;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    header.site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .site-description {
        border-left: none;
        padding-left: 0;
        max-width: 100%;
    }
    
    .logo-img, .custom-logo-link img {
        height: 90px !important;
    }
    
    .entry-title {
        font-size: 2.2rem;
    }
    
    footer.site-footer .container {
        flex-direction: column;
        gap: 40px;
    }
}
