/*
Theme Name: Kaufmann & Freud
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.
*/

/* open-sans-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: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('inc/fonts/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-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: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('inc/fonts/inter-v20-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;
        }

footer a[target="_blank"]:after {
            background-image: url(inc/pics/external_link_icon_white.png);
        }


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: 'Open Sans', Arial, sans-serif;
    font-family: 'Inter';
    font-size: 1rem;
    border-bottom: 1px solid transparent; /* always display vertical scrollbar */
    background-color: grey;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ebf1f6+0,abd3ee+50,89c3eb+51,d5ebfb+100;Blue+Gloss+%234 */
    background: linear-gradient(to bottom,  rgba(235,241,246,1) 0%,rgba(171,211,238,1) 50%,rgba(137,195,235,1) 51%,rgba(213,235,251,1) 100%); /* W3C, IE10+, FF16+, Chrome26+,               Opera12+, Safari7+ */
    background-attachment: fixed;
}

.wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 1100px;
    margin:auto;
    background-color: #fff;
    box-shadow: 0 1em 1em rgba(0,0,0,0.3);
    }

header {
    position: sticky;
    top:0;
    z-index: 9999;
    background-color: #CCCCCC;
    background-image: url(inc/pics/bg.png);
}

header .inner {
    padding: 1rem 0;
}

header img {
margin:auto;
height: auto;
}
header .inner a {
    cursor: pointer;
    border-bottom: none;
}
header .inner a:hover {
    border-bottom: none;
}

.home header .inner a {
    cursor: default;
}

header .inner h2 {
    margin:0;
    font-size: 1.8em;
}

/* Header resizing */

header.size-header .inner{
    padding: 0.5em 0;
}

@keyframes size-logo {
    from {height:60px;}
    to {height: 50px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    width: auto;
}






/* Menu */

.main-nav {

    border-top: 1px solid #8C0014;
    border-bottom: 1px solid #8C0014;
    font-size:1.1em;
    position: sticky;
    top:0;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin:0;
    padding:0;
    position: relative;
}
.main-nav li {
    list-style: none;
}

.main-nav a {
    display:block;
    text-decoration: none;
    padding: 0.3em 1em;
    background-color: #8C0014;
    color: #fff;
    transition: background-color 0.5s;
    border-bottom: none;
}
.main-nav a:hover {
    background-color: #B2001B ;
}
.main-nav .current-menu-item a, .main-nav .current-menu-parent a, .main-nav .sub-menu .current-menu-item a {
    background-color: #fff;
    color: #333;
    cursor: default;
}
 .main-nav .sub-menu a:hover {
     cursor: pointer;
 }
  .main-nav .sub-menu .current-menu-item a:hover {
     cursor: default;
 }


/* Submenu */

.main-nav .sub-menu {
    background-color: #8C0014;
    color: #fff;
    font-size: 0.9em;
    display:block;
    position: absolute;
    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 a {
    background-color: #8C0014;
    color: #fff;
}
.main-nav .sub-menu a:hover{
    background-color: #fff;
    color: #333;
    }

.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;
    background-color: var(--hintergrund-main-inner);
    color: var(--schift-main-inner);
    line-height: 1.3em;
    height: 100%;
}

h2.article-headline {
    font-size: 1.7em;
    line-height: 1em;
}

article {
    padding: 0;
}

.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;
}

.wp-block-group {
    display: flex;
    justify-content: center;
}

.leistungen li {  /* Liste Seite Service */
    margin-left: 2em;
    list-style: square;
}

.home main .inner {       /* Wenig Text vertikal und horizontal zentrieren */
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontaktdaten { /* Auf der Startseite */
    margin-top: 3rem;
    text-align: center;
    font-size: 1.2em;
}

.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 {
    display: flex;
    justify-content: space-around;
    margin-top: 1em;
}

.next-previous-post 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: #8C0014;
background-size: 100%;
-webkit-transition-duration: 0.4s;
-moz-transition-duration: 0.4s; transition-duration: 0.4s;
outline: none;
border-bottom:none;
opacity: 0.8;
}

#smoothup::after {
        height: 100px;
}

#smoothup:hover {
-webkit-transform: rotate(360deg);
opacity: 1;

}
@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}


/* Footer */

footer {
    border-top: ;
    background-color: #8C0014;
    color: #fff;
}
footer a {
    color: #fff;
    text-decoration: underline;
}

footer .inner {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.2em;
    padding: 0.5em 1rem;
}
footer .inner div, footer .inner nav {
    margin: 0 1rem 1rem 0;
}
footer .inner div:first-child {

}

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.4em;
}

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 ul, footer li {
    margin:0;
    padding:0;
}

.made-by {
    font-size: 0.8em;
    line-height: 1em;
}

@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}



@media screen and (width<900px) {

header.size-header img {
    animation-name: none;
}

#commentform input,
#commentform textarea {
    width: 70%;
}
header h1 {
     line-height: 1.2em;
}

.logo {
    margin: 0 0.5em;
}

.wrapper {
    width: 96%;
}

}

@media screen and (width<640px) {



.menu-header-search {
display:none;
}
#commentform input,
#commentform textarea {
    width: 80%;
}
header .inner h1 {
    font-size: 2.3em;
}

.wrapper {
    width: 90%;
}


}

@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;
}

}


/* Animation Laster */

.lustig {
    width: calc(100% - 150px);
    margin-left: 150px;
    height:71px;
    position: relative;
}

.garage {
    background-color: #fff;
    position:absolute;
    left: -151px;
    height: 100%;
    width:150px;
}


.transporter {
    position: absolute;
    bottom: 0;
    left: -151px;
    animation-name: myAnimation;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    display: inline;
    animation-delay: 5.5s;
    animation-timing-function: ease-out;
}

@keyframes myAnimation {
    0%   {left:-151px; bottom:0;}
    100% {left:calc(100% - 300px); }
}

.transporter2 {
    position: absolute;
    bottom:0;
    left: -151px;
    animation-name: myAnimation2;
    animation-duration: 5s;
    display: inline;
    animation-fill-mode: backwards;
    animation-timing-function: linear;
}

@keyframes myAnimation2 {
    0%   {left: calc(100% - 150px); bottom:0px;}
    100% {left: -151px; bottom:0px;}

}


@media screen and (width<800px) {

.lustig {
    width: calc(100% - 90px);
    margin-left: 90px;
    position: relative;
    height: 43px;
}

.garage {
    left: -90px;
    width: 90px;
}

.transporter {
    width: 90px;
    left: -90px;
    animation-duration: 3s;
    animation-delay: 3.5s;
}

@keyframes myAnimation {
    0%   {left:-90px; bottom:0;}
    100% {left:calc(100% - 130px); }
}

.transporter2 {
    width: 90px;
    left: -90px;
    animation-duration: 3s;
}

@keyframes myAnimation2 {
0%   {left: calc(100% - 90px); bottom:0px; opacity:0;}
    50% {opacity:1;}
    100% {left: -90px; opacity:1;}

}
}


@media screen and (width<480px) {

.lustig {
    width: calc(100% - 65px);
    margin-left: 65px;
    position: relative;
    height: 31px;
}

.garage {
    left: -65px;
    width: 65px;"
}

.transporter {
    width: 65px;
    left: -65px;
    animation-duration: 2.5s;
    animation-delay: 3s;
}

@keyframes myAnimation {
    0%   {left:-65px; bottom:0;}
    100% {left:calc(100% - 90px); }
}

.transporter2 {
    width: 65px;
    left: -65px;
    animation-duration: 2.5s;
}

@keyframes myAnimation2 {
0%   {left: calc(100% - 65px); bottom:0px; opacity:0;}
    50% {opacity:1;}
    100% {left: -65px; opacity:1;}

}

}
