/*
Theme Name: Hohagen 2026
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: hohagen-2026
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+ */
}

/* Basic formatting */

h1 {
    font-size: 1.6em;
    margin: 0 0 0.5em 0;
    font-weight: normal;
}
h2 {
    font-size: 1.4em;
    margin: 1em 0 0.3em 0;
    font-weight: normal;
}
h3 {
    font-size: 1.2em;
    margin: 0.5em 0 0.3em 0;
    font-weight: normal;
}
h4 {
    font-size: 1em;
    margin: 1em 0 0.5em 0;
    font-weight: normal;
}

main,
header,
nav,
div,
section,
article,
dl,
dt,
footer,
p {
    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;
        }

aside.sidebar-right a[target="_blank"]:after {
            display: none;
        }


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: 3em;
    margin-top: 0.5em;
    margin-bottom:0.5em;
}
ul ul, ul ol, ol ol, ol ul {
    margin-top: 0;
    margin-bottom:0;
}
article li {
    list-style: square;
    margin-left: 2em;
}

img {
    max-width: 100%;
    height:auto;
}

iframe {
    max-width: 100%;
}

pre {
 white-space: pre-wrap;
}

.clearfloat {
    clear: both;
    display:block;
    float:none;
}
.klein {
    font-size: 0.85em;
}


/* styling */

body {
    box-sizing: content-box;
    font-family: 'Open Sans', Arial, sans-serif;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid transparent; /* always display vertical scrollbar */
}

.wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-color: ;
    }

.inner,
.main-nav > div,
.slides  {
    max-width: 1100px;
    margin: 0 auto !important;
}
.slides {
    margin-top: 0.4rem !important;
}

.slides img {
    border-radius: 1em;
}

header {
    position: sticky;
    top:0;
    z-index: 9999;
}

header .inner {
    background-color: #fff;
    padding: 1rem 0 1em 0;
}


header .inner .logo img {
    height: auto;

}

header .inner a {
    border-bottom: none;
}
header .inner a:hover {
    border-bottom: none;
}

.home header .inner a {
    cursor: default;
}


/* Header resizing */

header img {
    height: 151px;
    width: auto;
}


header.size-header .inner{

}

@keyframes size-logo {
    from {height:151px;}
    to {height: 110px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    width: auto;
}



/* Menu */

.main-nav {
    background-color: #fff;
    border-top: 1px solid #ff8210;
    border-bottom: 4px solid #ff8210;
    font-size:1.1em;
    position: sticky;
    top:0;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin:0;
    padding:0;
    position: relative;
}
.main-nav li {
    border-right: 1px solid #999;
    list-style: none;
}
.main-nav li:first-child {
    border-left: 1px solid #999;
}

.main-nav a {
    display:block;
    text-decoration: none;
    padding: 0.3em 1em;
    background-color: ;
    transition: background-color 0.5s;
    border-bottom: none;
}
.main-nav a:hover {
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,efefef+100 */
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(239,239,239,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
}

/* 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 {
    display: flex;
}


main .inner {
    padding: 1rem 0;
    line-height: 1.3em;
    max-height: 100%;
}

.article-headline {
    font-size: 1.7em;
    line-height: 1em;
}
.blog .article-headline a {
    border: none;
}
article {
    padding: 0 3rem 0 0;
    flex-grow: 1;
}

.page-template-wenig-text article {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    height: 100%;
    padding-bottom: 10em;
}

.wp-post-image {
    display:block;
    margin:auto;
}

article p {
    margin: 0 0 0.3em 0;
}

article h2 {
    font-weight: normal;
}

.article-date {
    margin:0;
    font-size:0.85em;
    text-align: 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;
}



/* Teamseite Fotos */

.page-id-76 article {
            display: flex;
            flex-wrap: wrap;
        }
        .page-id-76 article h2 {
            width: 100%;
        }

        .page-id-76 .wp-block-image {
            position: relative;
            max-width: 33.3%;
            padding: 0.2rem;
        }
        .page-id-76 .wp-block-image img {
            height: auto;
        }
        .page-id-76 .wp-block-image figcaption {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            width: 100%;
            height: 3.5rem;
            bottom: 0;
            margin-bottom: 0;
            padding-bottom: 0.4em;
            font-size: 0.75em;
            line-height: 1.1em;
            text-align: center;
            background-color: rgba(255,255,255,0.85);
        }


.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;
}


/* Formulare */

form.wpcf7-form label {
    display: inline-block;
    min-width: 12em;
    margin-bottom: 0.5em;
    vertical-align: top;
        }

form.wpcf7-form label.datenschutz {
    font-size: 0.8em;
    width: 100%;
    text-align:left;
}

input,
textarea {
    max-width: 100%;
}




aside.sidebar-right {
    white-space: nowrap;
    line-height: 1.2em;
    font-size: 0.9em;
}
aside.sidebar-right p {
    margin: 0 0 0.2em 0;
}
aside.sidebar-right h2 {
    font-weight: normal;
}
aside.sidebar-right .widget {
    border-bottom: 1px solid #aaa;
    padding: 1rem 0;
}
aside.sidebar-right .widget:last-child {
    border-bottom: none;
}



/* Blogseite */

        .blog main .inner {
            display: grid;
            grid-template-columns: repeat(4, 25%);
            grid-template-rows: repeat(99, auto);
        }

        .blog article {
            padding:0;
            margin-bottom: 0.5rem;
        }

        .blog article .inner {
            border: 1px solid #aaa;
            padding: 0.5em;
            display:block;
            position: relative;
        }

        .blog img {
        }

        .blog .teaser {
            position: relative;
        }

        .blog .article-date {
            background-color: rgba(255,255,255,1);
            border: 1px solid #555;
            border-radius: 2em;
            padding: 0 1em;
            display: inline-block;
            float:right;
            margin-top: -1.3em;
        }

        .blog article:nth-child(4n+1) .inner {
            margin: 0 0.25rem 0 0;

}
        .blog article:nth-child(4n+2) .inner,
         .blog article:nth-child(4n+3) .inner {
            margin: 0 0.25rem 0 0.25rem;

        }
        .blog article:nth-child(4n+4) .inner {
            margin: 0 0 0 0.25rem;

        }
        .blog article img {
            height: auto;
        }



.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: #ff8210;
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 #ff8210;
}

footer .menu a {
    border-bottom: 1px dotted #333;
}
footer .menu a:hover {
    border-bottom: 1px solid #333;
}
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 {

}
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<1100px) {
        header .inner,
        footer .inner {
            padding-right: 1rem;
            padding-left: 1rem;
        }
        main {
            padding: 0 1rem;
        }

}


@media screen and (width<900px) {
#commentform input,
#commentform textarea {
    width: 70%;
}
header h1 {
     line-height: 1.2em;
}

}

@media screen and (width<888px) {
/* Linie Header wenn  Slicknav aktiv */

.mainheader {
    border-bottom: 2px solid #ff8210;
}


}


@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;
}

main .inner {
    display: block;
}

article {
    padding-right:0;
}

aside.sidebar-right {
    border-top: 1px solid #ff8210;
    margin-top: 1rem;
}



}

@media screen and (width<560px) {
#commentform input,
#commentform textarea,
.wpcf7-form textarea,
.wpcf7-form input {
    width: 100%;
}

header h1 {
    font-size: 2.3rem;
    line-height: 1.2em;
}

        .page-id-76 .wp-block-image {
            max-width: 50%;
            padding: 0.2rem;
        }

}

@media screen and (width<380px) {
header .inner {
    display: block;
}
.custom-logo {
    display: block;
    margin: auto;
}

}

