/*
Theme Name: Spitzer
Author: Fabian Bratzel
Author URI: https://bratzel.net
Description: Theme for Peter Spitzer
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 0.2
Requires PHP: 7.4
Text Domain: spitzer
*/


/* Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline
}

html {
    scroll-behavior: smooth
}

body {
    line-height: 1
}

a {
    text-decoration-skip-ink: auto
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none
}

button {
    outline: 0
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none
}

q {
    display: inline;
    font-style: italic
}

q:before {
    content: '"';
    font-style: normal
}

q:after {
    content: '"';
    font-style: normal
}

textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0
}

input[type="search"] {
    -webkit-appearance: textfield
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

th,
td {
    padding: 2px
}

big {
    font-size: 120%
}

small,
sup,
sub {
    font-size: 80%
}

sup {
    vertical-align: super
}

sub {
    vertical-align: sub
}

dd {
    margin-left: 20px
}

kbd,
tt {
    font-family: courier;
    font-size: 12px
}

ins {
    text-decoration: underline
}

del,
strike,
s {
    text-decoration: line-through
}

dt {
    font-weight: bold
}

address,
cite,
var {
    font-style: italic
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'SPDTheSans', sans-serif;
    color: var(--t-c-on-surface);
}

/* Reset -------- */

.sticky {}

.bypostauthor {}

.wp-caption {}

.wp-caption-text {}

.gallery-caption {}

.alignright {}

.alignleft {}

.aligncenter {}

/* Screen Reader Text */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    word-break: normal
}

.screen-reader-text:focus {
    background-color: #f7f7f7;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #007acc;
    display: block;
    font-size: 14px;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000
}

.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration: underline
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 15px 23px 14px;
    z-index: 100000;
    right: auto
}

.visually-hidden:not(:focus):not(:active),
.form-allowed-tags:not(:focus):not(:active) {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

/* Screen Reader Text -------- */


.timeline-widget {
    list-style: none;
    padding: 0;
}
.timeline-widget li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px;
}
.timeline-widget li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #0073aa;
    border-radius: 50%;
}

/*Site styles */

body {
    background-color: var(--t-c-surface);
}

.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - var(--t-header-height));
    position: relative;
    background-color: var(--t-c-primary);
}

.hero-img img {
    position: absolute !important;
    max-height: 100% !important;
    width: auto !important;
}

.spacer-sections {
    position: absolute;
    height: var(--t-header-height);
    transform: translateY(-80px);
}

section {
    position: relative;
    padding: 5em;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1em;
    width: calc(100% - 2em);
    height: 1px;
    background-color: #00000021;
    z-index: -1;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 1em;
    color: var(--t-c-primary);
    margin-bottom: 0.5em;
}

.section-subtitle {
    font-size: 1.5em;
    font-weight: 500;
    opacity: 0.7;
    margin: 0 0;
    color: var(--t-c-on-surface);

}

.section-banner {
    width: 100dvw;
    padding: 5em;
    background: var(--t-c-primary);
    color: var(--t-c-on-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-last {
    padding-bottom: 1em;

    &::after {
        display: none;
    }
}

.wp-block-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-left: 2em;

    li {
        list-style: disc;
        font-size: 1.2em;
        
        &::marker {
            color: var(--t-c-primary);
        }
    }
}

@media screen and (max-width: 768px) {
    .hero-img {
        height: 70dvh;

        img {
            bottom: 0;
        }
    }

    .spacer-sections {
        height: var(--t-header-height-sm);
        transform: translateY(-60px);
    }

    section {
        padding: 2em;
    }
    
}