/*
 * Mittelmeiers Theme - Common Templates Styles
 * 404, Page, Single Post templates
 */

/* ========================================
   404 ERROR PAGE
   ======================================== */

.error-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme);
    border-bottom: var(--linie);
    padding: 8rem 5% 5rem;
    /*margin-top: 72px;*/
}

.error-hero-inner {
    max-width: 600px;
    text-align: center;
    animation: einblenden 0.8s ease both;
}

.error-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 700;
    color: var(--rot);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.error-titel {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.error-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grau-tief);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* SITEMAP SECTION */
.error-sitemap {
    padding: 5rem 5%;
    background: var(--weiss);
}

.error-sitemap-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.error-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.error-link-group h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rot);
}

.error-link-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.error-link-group a {
    font-size: 0.9rem;
    color: var(--grau-tief);
    text-decoration: none;
    transition: color 0.2s;
}

.error-link-group a:hover {
    color: var(--rot);
}

/* ========================================
   DEFAULT PAGE TEMPLATE
   ======================================== */

.page-article {
    /*margin-top: 72px;*/
}

.page-hero {
    background: var(--creme);
    border-bottom: var(--linie);
    padding: 5rem 5% 3rem;
}

.page-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: einblenden 0.8s ease both;
}

.page-hero .breadcrumb {
    margin-bottom: 1.5rem;
}

.page-titel {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.page-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--grau-tief);
    max-width: 600px;
    margin: 0 auto;
}

.page-featured-image {
    max-width: 1100px;
    margin: 3rem auto 0;
}

.page-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.page-content {
    padding: 4rem 5%;
    background: var(--weiss);
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--schwarz);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.015em;
}

.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--schwarz);
    margin: 2rem 0 0.8rem;
}

.page-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grau-tief);
    margin-bottom: 1.2rem;
}

.page-content strong {
    color: var(--schwarz);
    font-weight: 600;
}

.page-content ul,
.page-content ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.page-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grau-tief);
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 3px solid var(--rot);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--grau-tief);
}

.page-content blockquote p {
    font-size: 1.1rem;
}

/* Child Pages */
.page-children {
    padding: 5rem 5%;
    background: var(--creme);
    border-top: var(--linie);
}

.page-children-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.child-card {
    background: var(--weiss);
    border: var(--linie);
    padding: 2rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.child-card:hover {
    border-color: var(--rot);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.child-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 0.5rem;
}

.child-card p {
    font-size: 0.9rem;
    color: var(--grau-mittel);
    line-height: 1.6;
}

/* ========================================
   SINGLE POST TEMPLATE
   ======================================== */

.single-article {
    /*margin-top: 72px;*/
}

.single-hero {
    background: var(--creme);
    border-bottom: var(--linie);
    padding: 5rem 5% 0;
}

.single-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 3rem;
    animation: einblenden 0.8s ease both;
}

.single-hero .breadcrumb {
    margin-bottom: 1.5rem;
}

.single-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rot);
    font-weight: 600;
    margin-bottom: 1rem;
}

.single-titel {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--grau-mittel);
}

.meta-separator {
    color: var(--grau-hell);
}

.single-featured-image {
    max-width: 1100px;
    margin: 0 auto;
}

.single-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    padding: 4rem 5%;
    background: var(--weiss);
}

.single-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.single-main {
    min-width: 0;
}

.single-main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--schwarz);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.015em;
}

.single-main h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--schwarz);
    margin: 2rem 0 0.8rem;
}

.single-main p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grau-tief);
    margin-bottom: 1.2rem;
}

.single-main strong {
    color: var(--schwarz);
    font-weight: 600;
}

.single-main ul,
.single-main ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.single-main li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grau-tief);
    margin-bottom: 0.5rem;
}

.single-main blockquote {
    border-left: 3px solid var(--rot);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.single-main blockquote p {
    font-size: 1.1rem;
    color: var(--grau-tief);
}

.single-main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

.single-main figure {
    margin: 2rem 0;
}

.single-main figcaption {
    font-size: 0.85rem;
    color: var(--grau-mittel);
    text-align: center;
    margin-top: 0.5rem;
}

/* Tags */
.single-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--linie);
}

.tags-label {
    font-size: 0.8rem;
    color: var(--grau-mittel);
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--grau-tief);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: var(--linie);
    margin: 0.2rem;
    transition: all 0.2s;
}

.tag-link:hover {
    border-color: var(--rot);
    color: var(--rot);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--linie);
}

.nav-prev,
.nav-next {
    text-decoration: none;
    padding: 1.5rem;
    border: var(--linie);
    transition: border-color 0.2s;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--rot);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rot);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--schwarz);
    line-height: 1.3;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--creme);
    border: var(--linie);
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 0.5rem;
}

.author-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--grau-tief);
}

/* Sidebar */
.single-sidebar {
    min-width: 0;
}

.single-sidebar .widget {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: var(--linie);
}

.single-sidebar .widget:last-child {
    border-bottom: none;
}

.single-sidebar .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--schwarz);
    margin-bottom: 1rem;
}

.single-sidebar ul {
    list-style: none;
}

.single-sidebar li {
    margin-bottom: 0.8rem;
}

.single-sidebar a {
    font-size: 0.9rem;
    color: var(--grau-tief);
    text-decoration: none;
    transition: color 0.2s;
}

.single-sidebar a:hover {
    color: var(--rot);
}

.post-date,
.cat-count {
    font-size: 0.8rem;
    color: var(--grau-mittel);
    margin-left: 0.5rem;
}

/* Page Links (pagination for paginated posts) */
.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: var(--linie);
    font-size: 0.9rem;
    color: var(--grau-mittel);
}

.page-links a {
    color: var(--rot);
    text-decoration: none;
    margin: 0 0.3rem;
}
