/*
Theme Name: Metallbau Trimmel
Theme URI: https://www.metallbau-trimmel.at
Author: Ihr Name
Author URI: https://www.metallbau-trimmel.at
Description: Maßgeschneidertes Theme für Metallbau Trimmel
Version: 1.0
License: GPL v2 or later
Text Domain: metallbau-trimmel
*/

:root {
    --gold: #F5C800;
    --black: #0A0A0A;
    --dark: #111111;
    --mid: #1C1C1C;
    --steel: #2A2A2A;
    --light-steel: #888;
    --white: #F0EDE8;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Impressum Styles */
.impressum-container {
    max-width: 900px;
    margin: 0 auto;
}

.impressum-block {
    margin-bottom: 2rem;
}

.impressum-block h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.impressum-block h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.impressum-block p {
    font-size: 0.95rem;
    color: rgba(240,237,232,0.7);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .impressum-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Referenzen Logo Grid */
.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.referenz-logo-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,200,0,0.1);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 120px;
}

.referenz-logo-item img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.referenz-logo-item:hover {
    border-color: var(--gold);
    background: rgba(245,200,0,0.05);
}

.referenz-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Impressum Styles */
.impressum-container h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.impressum-container h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.impressum-container p {
    font-size: 0.95rem;
    color: rgba(240,237,232,0.7);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .impressum-container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .referenzen-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .produkt-name {
        font-size: 1.1rem !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
    .produkt-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Logo und Meisterbrief Styling */
.logo img {
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.9;
}

.meisterbrief-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
}

.meisterbrief-badge img {
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 3px;
    background: rgba(245,200,0,0.05);
    transition: transform 0.3s ease;
}

.meisterbrief-badge img:hover {
    transform: scale(1.05);
}

.meisterbrief-badge span {
    font-size: 0.6rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* Produkte Mobile Fix - UMBRUCH erzwingen */
@media (max-width: 768px) {
    .produkt-card {
        padding: 2rem 1rem !important;
    }
    
    .produkt-name {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Speziell für "Spezialanfertigungen" */
    .produkt-card:nth-child(2) .produkt-name {
        font-size: 1.1rem !important;
        letter-spacing: normal !important;
    }
}

/* Zusätzlicher Fix für sehr kleine Screens */
@media (max-width: 480px) {
    .produkt-name {
        font-size: 1rem !important;
    }
}