/*
Theme Name: Kuhle Wampe 2025
Author: Frank Hempel
Author URI: https://frank-hempel.de
Description: A classic basic theme with header resizing and back-to-top button
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-2025
Domain Path: /languages
Tags: blog, custom-header, custom-menu, featured-images, flexible-header, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/* special-elite-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    src: url('inc/fonts/special-elite-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fredericka-the-great-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Fredericka the Great';
    font-style: normal;
    font-weight: 400;
    src: url('inc/fonts/fredericka-the-great-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* Basic formatting */

h1 {
    font-size: 1.6em;
    margin: 0 0 0.5em 0;
}
h2 {
    font-size: 1.3em;
    margin: 0 0 0.5em 0;
}
h3 {
    font-size: 1.1em;
    margin: 0 0 0.5em 0;
}
h4 {
    font-size: 1em;
    margin: 0 0 0.5em 0;
}

main, header, nav, div, section, article, dl, dt, footer {
    box-sizing: border-box;
}

p {
    margin: 0.5rem 0 1rem 0;
}

a {
    text-decoration: none;
    color: #333;
}
a[target="_blank"]:after {
            content: "";
            background-image: url(inc/pics/external_link_icon.png);
            background-repeat: no-repeat;
            background-size: contain;
            width: 0.6em;
            height: 0.6em;
            margin-bottom: 0.2em;
            margin-left: 0.2em;
            display: inline-block;
        }


a[href^="tel"],
a[href^="tel"]:hover {
    text-decoration: none;
    border:none;
    cursor: text;
}

nav a[href=""], nav a[href=""]:hover {
    cursor: text;
}

ul, ol {
    margin-left: 1em;
    margin-top: 0.5em;
    margin-bottom:0.5em;
}
ul ul, ul ol, ol ol, ol ul {
    margin-top: 0;
    margin-bottom:0;
}

img {
    max-width: 100%;
    height:auto;
}

iframe {
    max-width: 100%;
}

pre {
 white-space: pre-wrap;
}

.clearfloat {
    clear: both;
    display:block;
    float:none;
}


/* styling */

body {
    box-sizing: content-box;
    font-family: 'Special Elite';
    font-size: 1.1rem;
    border-bottom: 1px solid transparent; /* always display vertical scrollbar */
    font-family: 'Special Elite';
    line-height: 1.2em;
    font-size: 1rem;
    background-image: linear-gradient(to bottom, #C9C9C9 0%, #121212 100%);
    background-attachment: fixed;
}

.wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 1000px;
    margin:auto;
    background-color: #fff;
    border: 0.2em solid rgba(204, 0, 0, 1);
    box-shadow: 0 0 1em rgba(0,0,0,0.5);
    }

/* .inner,
.main-nav > div  {
    max-width: 1100px;
    margin:0 auto;
}
*/

header {
    position: sticky;
    top:0;
    z-index: 9999;
}

header .inner {
    background-color: #fff;
}

header .inner .title {
    text-align: center;
}
header .inner .logo {
    padding-bottom:0.5em;

}
header .inner .logo img {
    width: 250px;
    display:block;
    margin:auto;
}

header .inner h1 {
    font-size: 3.3em;
    line-height: 1em;
    margin:0;
}
header .inner a {
    cursor: pointer;
    border-bottom: none;
}
header .inner a:hover {
    border-bottom: none;
}
.home header .inner a {
    cursor: default;
}


/* Header resizing */

header.size-header .inner{

}

@keyframes size-logo {
    from {width:250px;}
    to {width: 180px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    width: auto;
}




/* Menu */

.main-nav {
    font-size:1.1em;
    position: sticky;
    top:0;
    font-size: 1.3em;
    padding-bottom: 0.2em;
    border-bottom: 0.1em solid rgba(204, 0, 0, 1);
    background-color: #fff;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin:0;
    padding:0;
    position: relative;
}
.main-nav li {
    list-style: none;
}

.main-nav a {
        display:block;
        text-decoration:none;
        color: #333;
        font-weight:bold;
        margin:0 0.6em;
    }

.main-nav a:before {
        display: inline-block;
        width: 1em;
        content:url("inc/icons/stern.svg");
        opacity:0;
        transition: opacity 1s;
        vertical-align: baseline;
        padding-right: 0.1em;
    }
nav a:hover:before {
       opacity:1;
    }

.main-nav a:hover {

}

.main-nav .current-menu-item a {
    color: rgba(204, 0, 0, 1);
    cursor: default;
}
.main-nav .current-menu-item a:hover {
    cursor: default;
}
.main-nav .current-menu-item a:hover:before {
    opacity:0;

}

/* Submenu */

.main-nav .sub-menu {
    font-size: 0.9em;
    display:block;
    position: absolute;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #999;
}
.main-nav .sub-menu li {
    border: none;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-nav  .sub-menu .sub-menu {
    position: absolute;
    left: 96%;
    margin-top: -1.2em;
    white-space: nowrap;
    border-top: 1px solid #ccc;
}

.main-nav .menu > li:last-child  .sub-menu .sub-menu .sub-menu{
left: -50%;
}

main .inner {
    padding: 1rem;
    line-height: 1.3em;
    height: 100%;
}

h2.article-headline {
    font-size: 1.7em;
    line-height: 1em;
}

article {
    padding: 0 1rem;
}

.page-template-wenig-text article {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    height: 100%;
    padding-bottom: 10em;
}


.blog article {
    border-bottom: 1px solid #666;
}

.wp-post-image {
    float: left;
    margin-right: 1em;
}

article p {
    margin: 0 0 0.3em 0;
}

article h2 {
    font-weight: normal;
}

.article-date {
    margin:0;
    font-size:0.85em;
    text-align: right;
}

.blog article {
    padding: 1em 0
}

.blog .article-date {
    float:right;
}

article h4  {
    float:none;
    clear:both;
    display:block;
    margin-top: 0.5em;
    border-top: 1px solid #999;
    padding-top: 0.5em;
}

article a {
    border-bottom: 1px dotted #333;
}
article a:hover {
    border-bottom: 1px solid #333;
}

.video-block{
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    }
.video-block iframe,
.video-block object,
.video-block embed,
.video-block video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    }

.wenig-text article {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 7em;
}

.read-more, .read-more p, .comments-link {
    text-align: right;
    margin:0;
    padding:0;
    clear:both;
    float:none;
    font-size: 0.85em;
}
.read-more, .read-more p {
    font-weight: bold;
}

p.read-more {
    margin: 2em 0 0 0;
    font-size: 1em;
}
p.read-more a {
    border: none;
}

/* Comments */
#respond {
    margin-top:2em;
    padding-top: 0.5em;
    border-top: 1px solid #999;
}

#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #999
}

#commentform label {
    display:block;
    font-size: 0.85em;
    }
#commentform input,
#commentform textarea {
    width: 60%;
}
.comment-form-cookies-consent {
    display:none;
}
#commentform input#submit {
    width: auto;
    font-size: 0.9em;
    padding: 0 1em;
}

/* Naechster - vorheriger Artikel */
.next-previous-post,
.next-previous-posts {
    display: flex;
    justify-content: space-around;
    margin-top: 1em;
}

.next-previous-post p,
.next-previous-posts p {
    margin: 0;
}





/* Pfeil nach oben  */

#smoothup {
height: 45px;
width: 45px;
border-radius:45px;
position:fixed;
bottom:30px;
left:calc(50% + 560px);
text-indent:-9999px;
display:none;
background-image: url("inc/icons/top-icon-white.png");
background-color: rgba(204, 0, 0, 1);
background-size: 100%;
transition: 0.4s;
outline: none;
border-bottom:none;
}

#smoothup::after {
        height: 100px;
}

#smoothup:hover {
-webkit-transform: rotate(360deg);
}
@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}


/* Footer */

footer {
border-top: 2px solid rgba(204, 0, 0, 1);
}
footer .inner {
    color: var(--text-footer);
    background-color: var(--hintergrund-footer-inner);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.2em;

    padding: 0.5em 0;
}
footer .inner div, footer .inner nav {
    margin: 0 1rem 1rem 0;
}
footer .inner div:first-child {
    margin: 0 1rem 1rem 1rem;
}

footer .inner .textwidget p {
    margin: 0.2em 0;
}


footer .inner nav div {
    margin:0;
}

footer h2 {
    margin:0;
    font-size: 1.3em;
    font-weight: normal;
    margin-bottom: 0.2em;
}

footer p {
    margin:0.3em 0;
    line-height: 1.1em;
}

footer .menu {
    white-space: nowrap;
}

footer .menu li,
footer .copyright li {
    list-style: none;
}

footer a {
    color: #666;
}

footer ul, footer li {
    margin:0;
    padding:0;
}

@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}



@media screen and (width<900px) {
#commentform input,
#commentform textarea {
    width: 70%;
}
header h1 {
     line-height: 1.2em;
}

}

@media screen and (width<640px) {
.menu-header-search {
display:none;
}
#commentform input,
#commentform textarea {
    width: 80%;
}
header .inner h1 {
    font-size: 2.3em;
}

header img {
    height: 120px;
    width: auto;
}

@keyframes size-logo {
    from {height:120px;}
    to {height: 90px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

}

@media screen and (width<560px) {
#commentform input,
#commentform textarea {
    width: 100%;
}

header h1 {
    font-size: 2.3rem;
    line-height: 1.2em;
}

}

@media screen and (width<380px) {
header .inner {
    display: block;
}
.custom-logo {
    display: block;
    margin: auto;
}

}

