/*
Theme Name: Demokratiegeschichte
Theme URI: https://www.demokratie-geschichte.de/
Author: Stiftung Orte der deutschen Demokratiegeschichte
Author URI: https://www.demokratie-geschichte.de/
Description: Custom Block Theme für die Stiftung Orte der deutschen Demokratiegeschichte. Ersetzt das veraltete Perfect Magazine Theme mit voller Gutenberg-Block-Unterstützung, Global Styles und Interactivity API.
Version: 2.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: demokratiegeschichte
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Tags: block-styles, full-site-editing, custom-colors, custom-logo, custom-menu
*/


/* ==========================================================================
   Box Sizing
   ========================================================================== */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}


/* ==========================================================================
   Base Elements
   ========================================================================== */

body {
    margin: 0;
    color: #000;
    background: #fff;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 16px;
    line-height: 1.43;
}

img {
    height: auto;
    max-width: 100%;
    border: 0;
}

a {
    color: #434343;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #d00;
    text-decoration: none;
}

a:focus {
    outline: thin dotted;
}

p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-family: 'Catamaran', sans-serif;
}

h1, h2, h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

h4, h5, h6 {
    font-weight: 700;
}

h1 {
    margin: 0.1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code, kbd, tt, var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9375rem;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}


/* ==========================================================================
   Forms
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border-radius: 4px;
    border: none;
    line-height: 45px;
    height: 45px;
    padding: 0 1em;
    cursor: pointer;
}

input,
select {
    height: 45px;
    line-height: 45px;
}

input:focus,
input:hover,
textarea:focus,
textarea:hover {
    outline: none;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
    overflow: auto;
}


/* ==========================================================================
   Clearfix & Alignment
   ========================================================================== */

.clear:before,
.clear:after,
.clearfix:before,
.clearfix:after,
.entry-content:before,
.entry-content:after,
.site-content:before,
.site-content:after,
.post-navigation:before,
.post-navigation:after,
.widget:before,
.widget:after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.clearfix:after,
.entry-content:after,
.site-content:after,
.post-navigation:after,
.widget:after {
    clear: both;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.site-content {
    max-width: 1200px;
    margin: 50px auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#primary,
#secondary {
    width: 100%;
}

#primary {
    min-height: 1px;
}

.content-area--full {
    width: 100% !important;
}


/* ==========================================================================
   Entry Content
   ========================================================================== */

.entry-content {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
}

.entry-header .entry-title {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
}

.entry-title {
    display: block;
    position: relative;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.3;
}

.entry-meta {
    position: relative;
    margin-bottom: 1em;
}

.posted-on {
    display: block;
    color: #85878b;
    font-size: 14px;
}

.byline {
    color: #85878b;
    font-size: 14px;
}

.post-category-label a {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #ff5722;
}

.post-category-label a:hover {
    color: #d00;
}

.entry-footer {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e5e5e5;
}

.entry-footer .cat-links,
.entry-footer .tags-links {
    display: block;
    margin-bottom: 0.5em;
}

.post-thumbnail {
    margin-bottom: 1.5em;
}

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


/* ==========================================================================
   Archive Posts
   ========================================================================== */

.archive-posts article {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #e5e5e5;
}

.archive-posts article:last-child {
    border-bottom: none;
}

.page-header {
    margin-bottom: 2em;
}


/* ==========================================================================
   Search Results
   ========================================================================== */

.search-result {
    display: flex;
    gap: 1.5em;
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #e5e5e5;
}

.search-result__thumbnail {
    flex: 0 0 200px;
}

.search-result__content {
    flex: 1;
}


/* ==========================================================================
   Error 404
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 50px 0 150px;
}

.error-404 h3 {
    text-transform: uppercase;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.6;
}


/* ==========================================================================
   Post Navigation
   ========================================================================== */

.site-main .post-navigation {
    background: #fff;
    overflow: hidden;
    margin: 1.5em 0;
    padding: 0;
    position: relative;
}

.post-navigation .nav-previous {
    float: left;
    width: 50%;
}

.post-navigation .nav-next {
    float: right;
    text-align: right;
    width: 50%;
}

.nav-previous,
.nav-next {
    padding: 20px 10px;
}

.nav-previous a,
.nav-next a {
    padding: 0 15px;
}


/* ==========================================================================
   Widgets / Sidebar
   ========================================================================== */

.widget {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.widget ol,
.widget ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
}

.widget ol li,
.widget ul li {
    margin-bottom: 10px;
}

.widget select {
    max-width: 100%;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
    padding: 20px 0;
    position: relative;
    text-transform: uppercase;
}

#secondary .widget-title {
    padding: 15px 20px;
    text-align: center;
    background: #282828;
    color: #fff;
}


/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area .comments-title,
.comments-area .comment-reply-title {
    margin: 30px auto;
    padding: 20px 0;
    text-transform: uppercase;
}

.comment-respond .comment-reply-title {
    border-bottom: 1px solid #e5e5e5;
    margin-top: 30px;
}

.comments-area .comment-list {
    padding-left: 0;
    margin-left: 0;
}

.comments-area .comment-list,
.comments-area .comment-list .children {
    list-style-type: none;
}

.comments-area .comment-author img {
    border-radius: 100%;
    width: 64px;
    height: 64px;
    float: left;
    margin-right: 15px;
}

.comments-area .comment-author a {
    color: #35353c;
    text-decoration: none;
}

.comments-area .comment-content,
.comments-area .comment-awaiting-moderation,
.comments-area .reply {
    padding-left: 80px;
}

.comments-area .reply {
    margin-bottom: 15px;
}

.comments-area .reply .comment-reply-link {
    text-decoration: none;
    padding: 0 15px;
    border-radius: 4px;
    line-height: 26px;
    height: 26px;
    display: inline-block;
    background: #282828;
    color: #fff;
}

.comments-area .reply .comment-reply-link:hover {
    color: #3c3c3c;
}

.comment-metadata {
    background: #f3f3f3;
    font-size: 85%;
    line-height: 1.2;
    margin: 5px auto 10px;
    display: inline-block;
    padding: 5px 15px;
}

.comments-area .comment-form-comment label,
.comments-area .comment-form-comment textarea {
    width: 100%;
}

.comments-area .comment-respond .form-submit input {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    min-width: 180px;
}


/* ==========================================================================
   Shared CSS Reset-Korrekturen
   styles-20240520.css setzt * { padding:0; margin:0 }, body { color:#fff }
   und body { font-family: Catamaran }. Diese Regeln korrigieren das.
   ========================================================================== */

/* Block-Spacing: WordPress layout engine needs margins/padding */
.entry-content > * + * {
    margin-top: 1.5em;
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}


/* ==========================================================================
   WordPress Blocks (Overrides)
   ========================================================================== */

.wp-block-gallery {
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.wp-block-quote {
    margin: 30px 0 !important;
    padding: 50px !important;
    font-size: 15px;
    font-style: normal;
    text-align: left;
    quotes: none;
    font-weight: 400;
    position: relative;
    border-left: 0 !important;
    background: #f5f5f5;
}

.wp-block-quote:before,
.wp-block-quote:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    padding: 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    padding: 40px 0;
}

#footer a {
    color: inherit;
}

#footer a:hover {
    color: #d00;
}

#footer .social .icons img {
    width: 28px;
    height: 28px;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.nav-links {
    text-align: center;
    margin: 2em 0;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid #e5e5e5;
    color: #434343;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: #282828;
    color: #fff;
    border-color: #282828;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: #f5f5f5;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (min-width: 992px) {
    #primary {
        float: left;
        width: 66.66%;
        padding-left: 30px;
        padding-right: 10px;
    }

    #secondary {
        float: left;
        width: 33.33%;
    }

    body.no-sidebar #primary {
        width: 100%;
        padding-left: 30px;
        padding-right: 10px;
    }
}

@media only screen and (max-width: 991px) {
    #primary {
        width: 100%;
    }

    #secondary {
        width: 100%;
        margin-top: 2em;
    }

    .search-result {
        flex-direction: column;
    }

    .search-result__thumbnail {
        flex: none;
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .site-content {
        margin: 20px auto;
    }

    .entry-header .entry-title {
        font-size: 1.5em;
    }

    .error-404 {
        padding: 30px 0 80px;
    }
}

@media only screen and (max-width: 640px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
