/*
Theme Name: WAB Fancy
Theme URI: https://wab.monster
Description: Responsives WordPress-Theme im klassischen Fancy-Stil (Türkis, dunkle Leisten, Sidebar).
Version: 2.6
Author: WAB
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wab-fancy
*/

:root {
    --blue: #23a2cc;
    --pink: #fe0059;
    --pink-strong: #d6004c;
    --yellow: #feb400;
    --black: #252525;
    --text: #252525;
    --link: #0072c6;
    --muted: #6b6b6b;
    --line: #e5e5e5;
    --page-width: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--text);
    background: #eee url("images/tapete.png") repeat;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

img, video, iframe, embed { max-width: 100%; }
img, video { height: auto; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--pink-strong); }

:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: .5rem; left: .5rem;
    z-index: 100;
    width: auto; height: auto;
    margin: 0; padding: .75rem 1rem;
    clip-path: none;
    color: #fff;
    background: var(--black);
}

/* Seite */

.site {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    background: #fff;
}

.wrap { padding-inline: 35px; }

/* Kopf */

.site-header { padding-block: 35px 25px; }

.site-title {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.site-title a { color: var(--blue); text-decoration: none; }
.site-title a:hover { color: var(--pink); }

.site-description {
    margin: .5rem 0 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.2;
}

/* Navigation */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    background: var(--black);
    border-block: 3px solid var(--blue);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: .4rem 1.25rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    border-right: 1px dotted #888;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #fff;
    background: var(--blue);
}

.main-nav .feed-link {
    align-self: center;
    margin: 0 1rem;
    padding: .1rem .6rem;
    font-size: .8125rem;
    border: 1px solid var(--blue);
}

.main-nav .feed-link:hover { color: var(--black); }

/* Headerbild: Zuschnitt statt Verkleinern auf dem Handy */

.header-image { line-height: 0; }

.header-image img {
    display: block;
    width: 100%;
    aspect-ratio: 940 / 137;
    object-fit: cover;
    object-position: left center;
}

/* Suchleiste unter dem Bild */

.search-bar {
    display: flex;
    justify-content: flex-end;
    padding: .5rem 15px;
    color: #fff;
    background: var(--black);
    border-bottom: 3px solid var(--blue);
}

.search-bar .search-form { align-items: center; }

.search-bar .screen-reader-text {
    position: static;
    width: auto; height: auto;
    margin: 0;
    clip-path: none;
    overflow: visible;
    font-size: .875rem;
}

.search-bar input[type="search"] { width: 14rem; padding-block: .3rem; }
.search-bar button { padding-block: .3rem; color: var(--black); background: #fff; border-color: #fff; }
.search-bar button:hover { color: var(--black); background: var(--blue); border-color: var(--blue); }

/* Inhalt + Sidebar */

.site-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 35px;
    padding-block: 35px;
}

.content-area, .widget-area { min-width: 0; }

/* Beiträge */

.entry { margin-bottom: 50px; }

.entry + .entry {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.entry-title {
    margin: 0 0 .5rem;
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    font-weight: 700;
    line-height: 1.4;
}

.entry-title a, .entry-title span, .archive-title span {
    padding: 2px 7px;
    color: #fff;
    background: var(--blue);
    text-decoration: none;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.entry-title a:hover { color: #fff; background: var(--pink); }

.entry-meta {
    margin: 0 0 .5rem;
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.entry-meta > * + *::before {
    content: "|";
    margin-inline: .6em;
    color: var(--muted);
    text-decoration: none;
}

.entry-meta a { display: inline-block; }
.entry-meta > * + * { display: inline; }

/* Scherenlinie unter dem Beitragskopf */

.entry-cut {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: var(--blue);
    line-height: 1;
}

.entry-cut::before { content: "\2702"; }
.entry-cut::after { content: ""; flex: 1; border-top: 1px dashed var(--blue); }

.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem 1.5rem; padding: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.25; margin: 2rem 0 .75rem; }
.entry-content figure { margin: 0 0 1.5rem; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: .875rem; }

.entry-content a:hover {
    color: #fff;
    background: var(--pink-strong);
    text-decoration: none;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--blue);
    color: #555;
    font-style: italic;
}

.entry-content pre, .entry-content code { background: #f4f4f4; font-size: .9em; }
.entry-content code { padding: .1em .3em; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .4rem .75rem; border: 1px solid var(--line); }

.entry-footer { margin-top: 1.5rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.entry-footer p { margin: 0; }

.archive-header { margin-bottom: 2.5rem; }
.archive-title { margin: 0; font-size: 1.75rem; line-height: 1.5; }
.archive-description { margin-top: .75rem; color: var(--muted); }

.alignleft { float: left; margin: 5px 20px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 20px; }
.aligncenter { display: block; margin: 5px auto 15px; }

/* Musik-Leiste (nach dem 3. Beitrag) */

.header-bar {
    margin-bottom: 50px;
    padding: 15px;
    color: #fff;
    background: var(--black);
}

.header-widget { margin: 0; }
.header-widget-title { display: none; }
.header-widget p { margin: 0; }
.header-widget a { color: #fff; text-decoration: none; }
.header-widget a:hover { color: #fff; background: var(--pink-strong); }

/* Blättern */

.nav-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.pagination .nav-links { justify-content: flex-start; gap: .5rem; }
.page-numbers { padding: .4rem .8rem; border: 1px solid var(--black); color: var(--black); text-decoration: none; }
.page-numbers:hover { color: #fff; background: var(--black); }
.page-numbers.current { color: #fff; background: var(--black); }
.post-navigation { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Kommentare */

.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { margin: 0 0 1rem; font-size: 1.25rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { padding-left: 1.25rem; border-left: 1px dashed var(--blue); }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--line); }
.comment-meta, .comment-metadata { color: var(--muted); font-size: .875rem; }
.comment-meta a { color: var(--muted); }
.comment-content p { margin: .5rem 0; }
.reply { font-size: .875rem; }
.comment-form label { display: block; font-weight: 600; }
.comment-form p { margin: 0 0 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* Formulare */

input[type="text"], input[type="email"], input[type="url"],
input[type="search"], textarea {
    width: 100%;
    padding: .5rem .75rem;
    color: var(--black);
    background: #fff;
    border: 1px solid #767676;
    border-radius: 0;
    font: inherit;
}

button, input[type="submit"], .wp-element-button {
    padding: .5rem 1rem;
    color: #fff;
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover, .wp-element-button:hover {
    color: #fff;
    background: var(--pink-strong);
    border-color: var(--pink-strong);
}

.search-form, .wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; }

/* Sidebar-Blöcke */

.widget {
    margin-bottom: 25px;
    padding: 15px 15px 8px;
    color: var(--black);
    background: var(--blue);
    font-size: .9375rem;
}

.widget-area > .widget:nth-child(2n) { background: var(--yellow); }

.widget-title, .widget .wp-block-heading {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--black);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.widget ul, .widget ol { margin: 0; padding: 0; list-style: none; }
.widget li { margin-bottom: 8px; line-height: 1.6; }
.widget a { padding: 2px 4px; color: #fff; background: var(--black); text-decoration: none; }
.widget a:hover { color: #fff; background: var(--pink-strong); }

/* Footer */

.site-footer {
    padding-block: 20px;
    border-top: 3px solid var(--blue);
    color: var(--muted);
    font-size: .8125rem;
}

.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--pink-strong); }

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Handy und Tablet */

@media (max-width: 56rem) {
    .site { width: 100%; }
    .wrap { padding-inline: 20px; }
    .site-content { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 25px; }
    .site-header { padding-block: 25px 20px; }
    .main-nav a { padding-inline: .9rem; }
}

@media (max-width: 40rem) {
    .header-image img { aspect-ratio: 3 / 1; }
    .search-bar { justify-content: stretch; }
    .search-bar .search-form { width: 100%; }
    .search-bar input[type="search"] { width: auto; }
    .alignleft, .alignright { float: none; display: block; margin: 0 auto 1rem; }
}

/* Mastodon-Widget */

.widget .toots { margin: 0; padding: 0; list-style: none; }

.widget .toot {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px dashed var(--black);
}

.widget .toot:last-child { margin-bottom: 4px; padding-bottom: 0; border-bottom: 0; }

.toot-text { margin: 0 0 6px; overflow-wrap: anywhere; line-height: 1.5; }
.toot-date { font-size: .8125rem; }
.widget-more { margin: 8px 0 4px; font-size: .875rem; overflow-wrap: anywhere; }

/* Duolingo-Widget */

.duo-profile { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.widget .duo-avatar { flex: none; padding: 0; line-height: 0; background: none; }
.duo-avatar img { display: block; width: 64px; height: 64px; object-fit: cover; }
.duo-text { min-width: 0; }
.widget .duo-line { margin: 0 0 .4rem; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }

.widget .duo-courses { margin: 0 0 6px; padding: 0; list-style: none; }
.widget .duo-courses li { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.duo-flag { flex: none; display: block; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; }
.duo-lang { flex: 1; min-width: 0; }
.duo-val { font-size: .875rem; font-weight: 600; white-space: nowrap; }

.widget .duo-phrase { margin: 14px 0 4px; padding-top: 10px; border-top: 1px dashed var(--black); font-style: italic; overflow-wrap: anywhere; }

