/*
Theme Name: SWW 2026
Author: Frank Hempel
Author URI: https://frank-hempel.de/
Description: A simple, classic theme that is easy to further develop and style.
Tags: blog, one-column, custom-background, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
Version: 1.0
Requires at least: 3.5
Tested up to: 7.1
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blank-2026
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.
*/

html {
    /* Footer nach unten */
    height: 100%;
}

body {
    /* Footer nach unten */
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
    /* Scrollbar immer da */
    border-bottom: 1px solid transparent;
    box-sizing: content-box;
    color: #333;
}

img {
    max-width: 100%;
    height:auto;
}

p {
    margin: 0.2em 0;
}

/* Breite innerer Breich */
.main-header,
.main-menu ul,
.inner {
    max-width: 900px;
    margin:auto;
 }
/* Überschriften ohne Margin */
header h1,
header h2,
main h3 {
    margin:0;
    line-height: 1em;
}
header .main-header {
    display: flex;
    padding: 0.5em 1rem;
}
header .main-header .header-headings {
    flex-grow: 1;
    text-align: center;
    align-content: center;
}


/* Naigation oben */
.main-menu ul {
    display: flex;
    flex-wrap: wrap;
}
ul.sub-menu {
    display: block;
    position:absolute;
    padding:0;
    visibility: hidden;
    opacity: 0;
    background-color: #fff;
}

li:hover ul.sub-menu {
    visibility: visible;
    opacity: 1;
}



main .inner {
    height: 100%;
}


/* Schiebt den next-previous-link nach unten */
.single main .inner {
    display: grid;
    grid-template-rows: auto 1fr auto;
}
footer ul {
    margin: 0;
}
a[target="_blank"]:after {
            content: "";
            background-image: url(assets/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;
}

/* Nach oben Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom:2rem;
    left:calc(50% + 450px);
    width: 45px;
    height: 45px;
    border-radius: 45px;
    background-image: url(assets/icons/top-icon-white.png);
    cursor: pointer;
    z-index: 9999;
    background-color: #b72630;
    opacity: 1;
    -webkit-transition-duration: 0.4s;
    -moz-transition-duration: 0.4s;
    transition-duration: 0.4s;
    border: none;
}


#back-to-top:hover {
    -webkit-transform: rotate(360deg);
    opacity:1;
    border: none;
}



@media screen and (width < 1200px) {
    #back-to-top {
        left:calc(100% - 50px);
    }
}



/* Styling */

/* inter-tight-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 Tight';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/inter-tight-v9-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-tight-italic - 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 Tight';
    font-style: italic;
    font-weight: 400;
    src: url('assets/fonts/inter-tight-v9-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-tight-700 - 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 Tight';
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/inter-tight-v9-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-tight-700italic - 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 Tight';
    font-style: italic;
    font-weight: 700;
    src: url('assets/fonts/inter-tight-v9-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


a {
color: #333;
text-decoration: none;
border-bottom: 2px dotted #333;
}
a:hover {
    border-bottom: 2px solid #777;
}
.wp-block-image a,
.wp-block-image a:hover {
    border: none;
}



h1, h2, h3, h4 {
    font-weight: normal;
}
h2.article-headline {
    font-size: 1.3em;

}


html {
    line-height: 1.2em;
    font-family: 'Inter Tight', Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #d8c084 22%,#b29e6c 63%,#7f714d 100%);
    background-attachment: fixed;
}
body {

}
.main-header,
.main-menu ul,
.inner {
    padding: 0 1rem;
    background-image: url(assets/pics/hgr_body_sww.png);
    background-repeat: repeat-y;
    background-position: 90%;
 }
 .main-menu ul,
 footer .inner {
     background-image: none;

 }

header {
    z-index:300;
    position: sticky;
    top:0;
    box-shadow: 0 0 1em rgba(0,0,0,0.5);
    background-color: #d8c084;
    }
.main-header {

}
header a,
header a:hover {
    text-decoration: none;
    border:none;
}
header h1,
header h2 {
    transition: 0.4s;
}
header.size-header h1 {
    font-size: 1.5em
}
header.size-header h2 {
    font-size: 1.1em
}
.logo img {
   height: auto;
   width:256px;
   max-width: 100%;
   transition: 0.4s;
}
header.size-header .logo img {
    height: auto;
    width:200px;
}

/* Hauptmenü oben */
.main-menu {
    border-bottom: 1px solid #999;
    border-top: 1px solid #999;
    background-color: #fff;
}
.main-menu a,
.main-menu a:hover {
    border: none;
}
.main-menu a {
    display: block;
    box-sizing: border-box;
    background-color: #eee;
    line-height: 2em;
    padding:0 1em;
    transition: 0.5s;
}
header.size-header .main-menu a {
    line-height: 1.7em;

}
.main-menu > ul >li {
    border-left: 1px solid #333;
}
.main-menu li:last-child {
    border-right: 1px solid #333;
}
.main-menu .sub-menu li:last-child {
    border:none;
}
.main-menu a:hover {
    background-color: #f9f9f9;
}
ul.sub-menu {
    padding:0;
    border: 1px solid #aaa;
    transition: all 0.2s;
    box-shadow: 0 0.5em 1em rgba(0,0,0,0.3);
}
li:hover ul.sub-menu {
    margin-left:-0.5px;
}

main {
    margin: 0;
    padding:0;
}

main .inner {
    padding-top:1em;
}

.wp-post-image {
    float: left;
    margin: 0 1em 1em 0;
}
article {
    clear:both;
    padding: 0;
}
article,
article {
    border-top: 3px solid #b72630;
    border-left: 3px solid #b72630;
    border-right: 3px solid #007d3d;
    border-bottom: 3px solid #007d3d;
    background-color: #fff;
    margin-bottom: 0.8rem;
    padding: 1.5rem;
    border-radius: 1rem;
}
.article-headline {
    margin-top:0;
}

.article-headline a,
.article-headline a:hover {
    border-bottom: none;
}
.article-title {
    margin-top: 1em;
}
.read-more {
    text-align: right;
    font-size: 0.75em;
}
.article-date {
    font-size: 0.75em;
    text-align: right;
}
.cat-slug {
    clear:both;
    line-height: 1.3em;
    font-size: 0.8em;
    max-width: 33%;
}
.single .cat-slug {
    margin: 1rem 0 0 0;
}
.cat-slug a {
    white-space: nowrap;
}

.wp-block-gallery {
    margin: 0.5rem 0;
}


/* Pagination Nummerierung Blogseite */
/*
.pagination .nav-links {
    display: flex;
    border: 1px solid #aaa;
}
.nav-links a:first-child,
.nav-links a:last-child {
min-width:0;
width:0;
}
.pagination a,
.pagination span
 {
    border: none;
    min-width: 2rem;
    font-size: 0.9em;
    display: block;
    text-align: center;
    background-color: #eee;
}
.pagination .current {
    border: 1px solid #00507b;
}
*/

.nav-links {
    display: flex;
    justify-content: center;
}
.nav-links .prev,
.nav-links .next {
    border: none;
}

.next-previous-post {
    display:flex;
    justify-content: space-between;
}
.next-previous-post  {
    border-top: 3px solid #b72630;
    border-left: 3px solid #b72630;
    border-right: 3px solid #007d3d;
    border-bottom: 3px solid #007d3d;
    background-color: #fff;
    margin-bottom: 0.8rem;
    padding: .4rem;
    border-radius: 1rem;
    font-size: 0.8em;
    line-height: 1.2em;
}
.next-post {
    text-align: right;
}
.page-numbers {
    padding: 0.5em;
    margin: 0.2em;
    border: 1px solid #fff;
    color: #fff;
}
.page-numbers:hover {
    border-bottom: 1px solid #fff;
    background-color: #bda873;
}

.page-numbers.current {
    background-color: #b72630;
    color: #fff;
}

/* Archivseite */
.beitraege {
    background-color: #fff;
    line-height: 1em;
    border-top: 3px solid #b72630;
    border-left: 3px solid #b72630;
    border-right: 3px solid #007d3d;
    border-bottom: 3px solid #007d3d;
    padding: 0.5rem;
    border-radius: 0.8rem;

}

.beitraege .cat-title,
.beitraege span {
    font-style: italic;
}


.next-previous-post {
    margin-bottom: 2rem;
}
.next-previous-posts {
    margin: 2rem 0;
}

footer {
    background-color: #fff;
    padding: 1rem 0;
    border-top: 1px solid #999;
    box-shadow: 0 0 1em rgba(0,0,0,0.5);
    z-index: 10;
    font-size: 0.8em;
}
footer h2 {
    line-height: 1em;
    margin:0;
}
footer .inner {
    display: flex;
}
footer div,
footer nav {
    margin-right: 1rem;
}
footer .copyright,
footer .made-by {
    line-height: 1em;
}
footer h3 {
    margin:0;
    font-weight: normal;
    line-height: 1em;
}
footer .textwidget p {
    margin: 0 0 0.5em 0;
    line-height: 1.1em;
}
footer nav li,
footer nav a,
footer nav ul,
footer .widget ul,
footer .widget li {
    margin:0;
    padding: 0;
    line-height: 1.3em;
    list-style:none;
}