@charset "UTF-8";

:root {
  --farbe-akzent: #6b5500;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "EB Garamond", "Garamond", "Times New Roman", "Georgia", "Cambria", "Liberation Serif", serif;
}

html {
    font-size: 16px;
}

header.navigation {
    border-bottom: 1px solid var(--farbe-akzent);
    padding: 0.4rem;
    position: relative;
    overflow: hidden;
}

.brand-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 700;
    color: #1a1a1a;
    opacity: 0.06;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

h1.kategorie-startseite {
margin: 2rem;
}

#kategorie-teaser {
  border: 1px solid var(--farbe-akzent);
  max-width: 500px;
  margin: 1rem auto 0rem;
  padding: 1rem;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
    .brand-watermark {
        color: #ffffff;
        opacity: 0.08;
    }
}

header.navigation nav {
    position: relative;
    z-index: 1;
}

header nav[aria-label="Hauptnavigation"] ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

header nav[aria-label="Hauptnavigation"] li.startseite {
    margin-right: auto;
}

header nav[aria-label="Hauptnavigation"] a[aria-current="page"] {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.navilink .icon{
    width: 2em;       
    height: 2em;
    flex: 0 0 auto;
    vertical-align: -0.125rem; 
}

/* Linkverhalten */

a {
    color: var(--farbe-akzent);
}

a:hover, a:focus-visible  {
    color: #000;
}

/* Seitenaufbau */

header,
main,
footer {
    max-width: 1080px;
    width:95%;
    margin-inline: auto;
    text-align: center;
}

header,
main{

    padding-inline: 1rem;

}


/* Kopfbereich */

header p {
    font-size: 0.8rem;
}

header h1 {
    font-size: 1.2rem;
}

header p.blogname {
    font-size: 1rem;
    font-weight: bold;
}

/* Hauptbereich */

article, section.suchmaske {
    padding-top: 2rem;
}

article header {
    padding-bottom: 1.5rem;
}

article h2 {
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
}

article p, article ul, #kategorie-teaser p, p code {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

p code {
    font-family: monospace;
}

article p {
    line-height: 1.6;
    max-width: 65ch;
    text-align: left;
    margin-inline: auto;
}

article ul, article ol {
    line-height: 1.4;
    padding-left: 2rem;
    margin-inline: auto;
    max-width: 65ch;
}

article p:last-of-type {
    margin-bottom: 1rem;
}

article footer p {
    text-align: right;
    font-size: 0.8rem;
    max-width: 100%;
    margin: 0;
}

/* Pagination */

nav.pagination {
    margin: 2rem auto;
}

nav.pagination ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

nav.pagination li:has(.pagination-older) {
    margin-left: auto;
}

/* Grundlegendes */


/* Suchfunktion */

.mark {
    background-color: yellow;
    padding: 0.1rem 0;
    border-radius: 0.2rem;
}

.site-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto;
    max-width: 600px;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.site-search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ebdda7a1;
    border-radius: 8px;
    min-width: 200px;
    transition: border-color 0.3s ease;
    color: black;
}

.site-search-form input[type="search"]:focus {
    border-color: #007acc;
    outline: none;
}

.site-search-form button {
    padding: 0.75rem 1.25rem;
    background-color: #ebdda7a1;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

.site-search-form button:hover {
    background-color: #ebdda7;
}


/* Seiteninhalt */

article.search-result-item h2 {
    font-size: 1.5rem;
    font-weight: bold;
}


/* Bilder */

img {
    max-width: 100%;
    margin-bottom: 10px;
}

article > img {
    border-radius: 5px;
}

article > img.coverimage {
  min-width: 0;
  margin: auto;
  width: 100%;
  max-width: 700px;
  margin-bottom: 1rem;
}


/* Listen */


ul li {
    padding-bottom: 6px;
}

/* Tabellen */

table {
    width: 100%;
    margin-bottom: 1.5rem;
}

table thead {
    background: #555555;
    color: #FFF;
}

table td,
table th {
    padding-left: 5px;
}


/* Typografie */

p:lang(de) {
    quotes: '\201E' '\201C' '\201A' '\2018';
}

article blockquote {
    border-left: 1px solid var(--farbe-akzent);
    padding: 0.1rem 0.8rem 0;
    margin-inline: auto;
    max-width: 630px;
    margin-bottom: 1rem;
}

article blockquote p {
    font-style: italic;
    margin-inline: 0;
}

/* Darstellungsmöglichkeit für Screenreader, unsichtbar im gängigen Browser */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  header h1 {
    font-size: 2rem;
}
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #333333;
        color: #e2e2e2;
    }
    h1, h2, h3, h4, h5, h5 {
        color: #f4f4f4;
    }
    img {
        filter: grayscale( 20% );
    }
    hr {
        border-color: #555555;
    }
    a {
        color: #dfbc33;
    }
 }

/* Contact3 – Kontaktformular */

.contact3 {
    margin: 2rem auto 3rem;
    max-width: 500px;
    text-align: left;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid var(--farbe-akzent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact3 input[name="interested"] {
    display: none;
}

.contact3 .form-group {
    margin-bottom: 1.25rem;
}

.contact3 label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact3 input[type="text"],
.contact3 input[type="email"],
.contact3 textarea,
.contact3 input.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ebdda7a1;
    border-radius: 8px;
    font-family: serif;
    font-size: 1rem;
    color: black;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.contact3 textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact3 input:focus,
.contact3 textarea:focus {
    border-color: var(--farbe-akzent);
    outline: none;
}

.contact3 .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.contact3 .form-check-input,
.contact3 .form-check-label {
    cursor: pointer;
}

.contact3 .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.contact3 .form-check-label {
    font-size: 0.85rem;
    text-align: left;
}

.contact3 .contact3-lq {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact3 .contact3-lqa {
    max-width: 200px;
}

.contact3 button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #ebdda7a1;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact3 button[type="submit"]:hover {
    background-color: #ebdda7;
}

@media (prefers-color-scheme: dark) {
    .contact3 {
        background-color: #2b2b2b;
        border-color: #dfbc33;
    }

    .contact3 input[type="text"],
    .contact3 input[type="email"],
    .contact3 textarea,
    .contact3 input.form-control {
        background-color: #3a3a3a;
        color: #e2e2e2;
        border-color: #555555;
    }

    .contact3 input:focus,
    .contact3 textarea:focus {
        border-color: #dfbc33;
    }

    .contact3 label,
    .contact3 .form-check-label,
    .contact3 .contact3-lq {
        color: #e2e2e2;
    }

    .contact3 button[type="submit"] {
        background-color: #555555;
        color: #f4f4f4;
    }

    .contact3 button[type="submit"]:hover {
        background-color: #6b6b6b;
    }
}
