/*
Theme Name: LV Automobile
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('open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --schrift: #333;
    --hintergrund-wrapper: transparent;
    --hintergrund-header: #fff;
    --hintergrund-header: rgba(255,255,255,0.2);
    --hintergrund-header-inner: #efefef;
    --schrift-header: #333;
    --hintergrund-nav-main: rgba(000,000,000,0.2);
    --hintergrund-nav-main-menu:#ddd;
    --hintergrund-nav-hover: #fff;
    --hintergrund-main-inner: #fff;
    --schrift-main-inner:#333;
    --hintergrund-footer: rgba(255,255,255,0.2);
    --hintergrund-footer-inner: rgba(255,255,255,0.95);
    --text-footer: #444;
}

/* Basic formatting */

h1 {
    font-size: 1.6em;
    margin: 0 0 0.5em 0;
}
h2 {
    font-size: 1.3em;
    margin: 0 0 0.5em 0;
    font-weight: normal;
    text-transform: uppercase;

}
h3 {
    font-size: 1.2em;
    margin: 0 0 0.5em 0;
    font-weight: normal;
}
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/icons/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;
}


.aligncenter {
    text-align: center;
}

.clearfloat {
    clear: both;
    display:block;
    float:none;
}


/* styling */

body {
    box-sizing: content-box;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--schrift);
    font-size: 1rem;
    border-bottom: 1px solid transparent; /* always display vertical scrollbar */

/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#1e5799+0,2989d8+50,207cca+51,7db9e8+100;Blue+Gloss+Default */
background: linear-gradient(to bottom,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */


    background-attachment: fixed;
   }

.wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-color: var(--hintergrund-wrapper);
    }

.inner,
.main-nav > div  {
    max-width: 1100px;
    margin:0 auto;
}

header {
    position: sticky;
    top:0;
    z-index: 9999;
}

header .inner {
    background-color: var(--hintergrund-header-inner) ;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logo {
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
}
.logo h1, .logo h2 {
    line-height: 1em;
    padding:0;
    margin:0;
}
.logo h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: normal;
}
.logo h2 {
    text-align: center;
}

.custom-logo {
    width: 100px;
}



header .inner a {
    cursor: pointer;
    color: var(--schrift-header);
    border-bottom: none;
}
header .inner a:hover {
    border-bottom: none;
}


/* Header resizing */

@keyframes size-logo {
    from {width:100px;}
    to {width: 65px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes size-logoschrift-h1 {
    from {font-size: 3.5em;}
    to {font-size: 2.5em;}
}

header.size-header .logo h1 {
    font-size: 3.5em;
    animation-name: size-logoschrift-h1;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes size-logoschrift-h2 {
    from {font-size: 1.3em;}
    to {font-size: 0.9em;}
}

header.size-header .logo h2 {
    font-size: 1.3em;
    animation-name: size-logoschrift-h2;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}




/* Menu */

.main-nav {
    background-color: var(--hintergrund-nav-main);
    border-top: 1px solid var(--hintergrund-wrapper);
    border-bottom: 1px solid var(--hintergrund-wrapper);
    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;
    background-color: var(--hintergrund-nav-main-menu);
    border-left: 1px solid var(--hintergrund-wrapper);
    border-right: 1px solid var(--hintergrund-wrapper);
}
.main-nav li {
    border-right: 1px solid var(--hintergrund-wrapper);
    list-style: none;
}

.main-nav a {
    display:block;
    text-decoration: none;
    padding: 0.3em 1em;
    background-color: var(--hintergrund-nav-main-menu);
    transition: background-color 0.5s;
    border-bottom: none;
}
.main-nav a:hover {
    background-color: var(--hintergrund-nav-hover);
}

.main-nav .current_page_item a,
.main-nav .current_page_item a:hover {
    cursor: default;
    background-color: var(--hintergrund-nav-main-menu);
}

/* 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;
    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;
}

.home h2.article-headline {
    visibility: hidden;
}

article {
    padding: 0 11%;
}

.schmal {
    display:block;
    max-width: 700px;
}

.spacer {
    height: 3.5em;
}

.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,
.is-layout-flex p {
    margin: 0 0 0.6em 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 {
margin-bottom:1em;
}

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%;
    }

.wp-block-group.wenig-text {
    display: flex !important;
    justify-content: center;
    align-items: center;

}

.wp-block-group.wenig-text .wp-block-group__inner-container {

}


.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("top-icon-white.png");
background-color: #dd0000;
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 {
    background-color: var(--hintergrund-footer);
    border-top: 1px solid var(--hintergrund-wrapper);
}
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.5rem 0 0 1rem;
}
footer div,
footer nav {
    margin: 0 1rem 1rem 0;
}

footer div div div {
    margin:0;
}

footer .textwidget {
    margin:0;
}


footer .textwidget p {
    margin: 0.2em 0;
}

footer nav div {
    margin:0;
}

footer h2 {
    line-height: 1em;
    margin:0;
    font-size: 1.3em;
    font-weight: normal;
}

footer p {
    margin:0 0 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 .menu a,
footer .made-by a {
    border-bottom: 1px dotted #333;
}
footer .menu a:hover,
footer .made-by a:hover {
    border-bottom: 1px solid #333;
}

footer ul, footer li {
    margin:0;
    padding:0;
}

footer .made-by {
    line-height: 1em;
}


@media screen and (width < 1100px) {

#smoothup {
left:calc(100% - 50px);
}

.wrapper {
    padding: 0 3%;
}

}



@media screen and (width<900px) {
#commentform input,
#commentform textarea {
    width: 70%;
}

article {
    padding: 0;
}

}

@media screen and (width<640px) {

header .inner {
    padding: 0.5em;
}

.menu-header-search {
display:none;
}
#commentform input,
#commentform textarea {
    width: 80%;
}
header .inner h1 {
    font-size: 2.3em;
}

}

@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 {

}
.custom-logo {

}

}

