/**
 * Content Formatting Styles
 * Styling für typische HTML-Elemente in Seiteninhalten
 */

/* Container für Seiteninhalte */
.shop-page-content,
.page-content,
.entry-content {
    margin-top: 2rem;
    line-height: 1.6;
    color: var(--wp--preset--color--foreground, #333333);
}

.shop-page-content .container,
.page-content .container,
.entry-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0;
}

/* Überschriften */
.shop-page-content h1,
.shop-page-content h2,
.shop-page-content h3,
.shop-page-content h4,
.shop-page-content h5,
.shop-page-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--wp--preset--font-family--montserrat, 'Montserrat', Arial, sans-serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 2rem 0 1rem 0;
    color: var(--wp--preset--color--foreground, #333333);
}

.shop-page-content h1,
.page-content h1,
.entry-content h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Spezifische Styles für Seitentitel */
.entry-title {
    text-align: left !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--wp--preset--color--primary, #133651);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.shop-page-content h2,
.page-content h2,
.entry-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.shop-page-content h3,
.page-content h3,
.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.shop-page-content h4,
.page-content h4,
.entry-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.shop-page-content h5,
.page-content h5,
.entry-content h5 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.shop-page-content h6,
.page-content h6,
.entry-content h6 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

/* Absätze */
.shop-page-content p,
.page-content p,
.entry-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Links - nur für Text-Links, nicht für Buttons */
.shop-page-content p a,
.shop-page-content li a,
.shop-page-content blockquote a,
.shop-page-content td a,
.shop-page-content th a,
.page-content p a,
.page-content li a,
.page-content blockquote a,
.page-content td a,
.page-content th a,
.entry-content p a,
.entry-content li a,
.entry-content blockquote a,
.entry-content td a,
.entry-content th a {
    color: var(--wp--preset--color--primary, #133651);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.shop-page-content p a:hover,
.shop-page-content li a:hover,
.shop-page-content blockquote a:hover,
.shop-page-content td a:hover,
.shop-page-content th a:hover,
.page-content p a:hover,
.page-content li a:hover,
.page-content blockquote a:hover,
.page-content td a:hover,
.page-content th a:hover,
.entry-content p a:hover,
.entry-content li a:hover,
.entry-content blockquote a:hover,
.entry-content td a:hover,
.entry-content th a:hover {
    color: var(--wp--preset--color--accent, #FF8C42);
    text-decoration: underline;
}

.shop-page-content p a:focus,
.shop-page-content li a:focus,
.shop-page-content blockquote a:focus,
.shop-page-content td a:focus,
.shop-page-content th a:focus,
.page-content p a:focus,
.page-content li a:focus,
.page-content blockquote a:focus,
.page-content td a:focus,
.page-content th a:focus,
.entry-content p a:focus,
.entry-content li a:focus,
.entry-content blockquote a:focus,
.entry-content td a:focus,
.entry-content th a:focus {
    outline: 2px solid var(--wp--preset--color--primary, #133651);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Listen */
.shop-page-content ul,
.shop-page-content ol,
.page-content ul,
.page-content ol,
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.shop-page-content li,
.page-content li,
.entry-content li {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: #444;
}

/* Ungeordnete Listen */
.shop-page-content ul li,
.page-content ul li,
.entry-content ul li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.shop-page-content ul li::before,
.page-content ul li::before,
.entry-content ul li::before {
    content: "•";
    color: var(--wp--preset--color--primary, #133651);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Geordnete Listen */
.shop-page-content ol,
.page-content ol,
.entry-content ol {
    counter-reset: list-counter;
}

.shop-page-content ol li,
.page-content ol li,
.entry-content ol li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 2rem;
}

.shop-page-content ol li::before,
.page-content ol li::before,
.entry-content ol li::before {
    content: counter(list-counter) ".";
    color: var(--wp--preset--color--primary, #133651);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1.5rem;
}

/* Verschachtelte Listen */
.shop-page-content ul ul,
.shop-page-content ol ol,
.shop-page-content ul ol,
.shop-page-content ol ul,
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul,
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Zitate */
.shop-page-content blockquote,
.page-content blockquote,
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--wp--preset--color--gray-100, #F8F9FA);
    border-left: 4px solid var(--wp--preset--color--primary, #133651);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--wp--preset--color--gray-700, #495057);
    position: relative;
}

.shop-page-content blockquote::before,
.page-content blockquote::before,
.entry-content blockquote::before {
    content: "";
    font-size: 3rem;
    color: var(--wp--preset--color--primary, #133651);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

.shop-page-content blockquote p,
.page-content blockquote p,
.entry-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Code */
.shop-page-content code,
.page-content code,
.entry-content code {
    background: var(--wp--preset--color--gray-100, #F8F9FA);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--wp--preset--color--error, #DC3545);
    border: 1px solid var(--wp--preset--color--gray-300, #DEE2E6);
}

.shop-page-content pre,
.page-content pre,
.entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.shop-page-content pre code,
.page-content pre code,
.entry-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
    font-size: inherit;
}

/* Tabellen */
.shop-page-content table,
.page-content table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--wp--preset--color--background, #FFFFFF);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shop-page-content th,
.shop-page-content td,
.page-content th,
.page-content td,
.entry-content th,
.entry-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--wp--preset--color--gray-300, #DEE2E6);
}

.shop-page-content th,
.page-content th,
.entry-content th {
    background: var(--wp--preset--color--gray-100, #F8F9FA);
    font-weight: 600;
    color: var(--wp--preset--color--gray-800, #343A40);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-page-content tr:hover,
.page-content tr:hover,
.entry-content tr:hover {
    background: var(--wp--preset--color--gray-100, #F8F9FA);
}

/* Bilder */
.shop-page-content img,
.page-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shop-page-content img.alignleft,
.page-content img.alignleft,
.entry-content img.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.shop-page-content img.alignright,
.page-content img.alignright,
.entry-content img.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.shop-page-content img.aligncenter,
.page-content img.aligncenter,
.entry-content img.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

/* Bildunterschriften */
.shop-page-content .wp-caption,
.page-content .wp-caption,
.entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
}

.shop-page-content .wp-caption-text,
.page-content .wp-caption-text,
.entry-content .wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Hervorhebungen */
.shop-page-content strong,
.page-content strong,
.entry-content strong {
    font-weight: 600;
    color: var(--wp--preset--color--foreground, #333333);
}

/* Explizit Buttons von Content-Formatting ausschließen */
.shop-page-content .button,
.shop-page-content button,
.shop-page-content .btn,
.shop-page-content input[type="submit"],
.shop-page-content input[type="button"],
.page-content .button,
.page-content button,
.page-content .btn,
.page-content input[type="submit"],
.page-content input[type="button"],
.entry-content .button,
.entry-content button,
.entry-content .btn,
.entry-content input[type="submit"],
.entry-content input[type="button"] {
    /* Nur die Content-Formatting-Styles zurücksetzen, die Buttons stören */
    text-decoration: none !important;
    border-bottom: none !important;
}

.shop-page-content .button:hover,
.shop-page-content button:hover,
.shop-page-content .btn:hover,
.shop-page-content input[type="submit"]:hover,
.shop-page-content input[type="button"]:hover,
.page-content .button:hover,
.page-content button:hover,
.page-content .btn:hover,
.page-content input[type="submit"]:hover,
.page-content input[type="button"]:hover,
.entry-content .button:hover,
.entry-content button:hover,
.entry-content .btn:hover,
.entry-content input[type="submit"]:hover,
.entry-content input[type="button"]:hover {
    /* Nur die Content-Formatting-Hover-Styles zurücksetzen */
    text-decoration: none !important;
    border-bottom: none !important;
}

.shop-page-content em,
.page-content em,
.entry-content em {
    font-style: italic;
    color: var(--wp--preset--color--gray-700, #495057);
}

.shop-page-content mark,
.page-content mark,
.entry-content mark {
    background: var(--wp--preset--color--warning, #FFC107);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    color: var(--wp--preset--color--gray-800, #343A40);
}

.shop-page-content del,
.page-content del,
.entry-content del {
    text-decoration: line-through;
    color: var(--wp--preset--color--gray-500, #ADB5BD);
}

.shop-page-content ins,
.page-content ins,
.entry-content ins {
    text-decoration: underline;
    color: var(--wp--preset--color--success, #28A745);
}

/* Horizontale Linien */
.shop-page-content hr,
.page-content hr,
.entry-content hr {
    border: none;
    height: 1px;
    background: var(--wp--preset--color--gray-300, #DEE2E6);
    margin: 3rem 0;
}

/* Abkürzungen */
.shop-page-content abbr,
.page-content abbr,
.entry-content abbr {
    border-bottom: 1px dotted #666;
    cursor: help;
}

/* Adressen */
.shop-page-content address,
.page-content address,
.entry-content address {
    font-style: italic;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--wp--preset--color--gray-100, #F8F9FA);
    border-left: 4px solid var(--wp--preset--color--primary, #133651);
    border-radius: 0 4px 4px 0;
}

/* Kleine Texte */
.shop-page-content small,
.page-content small,
.entry-content small {
    font-size: 0.875rem;
    color: var(--wp--preset--color--gray-600, #6C757D);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-page-content,
    .page-content,
    .entry-content {
        margin-top: 1.5rem;
    }
    
    .shop-page-content .container,
    .page-content .container,
    .entry-content .container {
        padding: 0 15px;
    }
    
    .shop-page-content h1,
    .page-content h1,
    .entry-content h1 {
        font-size: 2rem;
        text-align: left;
    }
    
    .entry-title {
        font-size: 2rem;
        text-align: left !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .shop-page-content h2,
    .page-content h2,
    .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .shop-page-content h3,
    .page-content h3,
    .entry-content h3 {
        font-size: 1.375rem;
    }
    
    .shop-page-content blockquote,
    .page-content blockquote,
    .entry-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .shop-page-content table,
    .page-content table,
    .entry-content table {
        font-size: 0.9rem;
    }
    
    .shop-page-content th,
    .shop-page-content td,
    .page-content th,
    .page-content td,
    .entry-content th,
    .entry-content td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .shop-page-content ul,
    .shop-page-content ol,
    .page-content ul,
    .page-content ol,
    .entry-content ul,
    .entry-content ol {
        padding-left: 1.5rem;
    }
    
    .shop-page-content ul li,
    .page-content ul li,
    .entry-content ul li {
        padding-left: 1.25rem;
    }
    
    .shop-page-content ol li,
    .page-content ol li,
    .entry-content ol li {
        padding-left: 1.75rem;
    }
}
