/*
Theme Name: Magicweb v2
Theme URI: https://www.magicweb.at
Description: Portfolio- & Blog-Theme von Markus Schönemann. Volle Breite, responsive, Pill-Navigation, Lightfall-Header und Sticker-Logo.
Version: 2.3.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Author: Markus Schönemann
Author URI: https://www.magicweb.at/
License: All Rights Reserved
Text Domain: magicweb
*/

/* ==========================================================================
   Grundlagen
   ========================================================================== */

@font-face {
	font-family: 'ElliotSixRegular';
	src: url('fonts/ElliotSix-webfont.woff') format('woff'),
	     url('fonts/ElliotSix-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--mw-gutter: clamp(12px, 2.5vw, 40px);
	--mw-sidebar: clamp(240px, 22vw, 340px);
	--mw-gradient: linear-gradient(to bottom, rgba(242, 242, 242, 1) 0%, rgba(254, 255, 255, 0) 100%);
	--mw-yellow: #f8ea1b;
	--mw-ink: #1d1d1b;
	--mw-dark: #262626;
	--mw-muted: #5c5c5c;
	--mw-radius: 16px;
}

/* Browser-Elemente in den Markenfarben */
::selection {
	background: var(--mw-yellow);
	color: var(--mw-ink);
}
html {
	scrollbar-color: #555 #e6e6e6;
	accent-color: var(--mw-ink);
	caret-color: var(--mw-ink);
}

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

* {
	text-decoration: none;
	margin: 0;
	padding: 0;
	font-family: Tahoma, Geneva, sans-serif;
}

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

body {
	background: url(images/bg.png) repeat;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main#content {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	background-color: #FFF;
}
main#content > section {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}
main#content > section > .wrapper-main {
	flex: 1 0 auto;
}

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

a {
	color: #333;
}
a:visited {
	color: #666;
}
a:hover {
	color: #000;
	text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--mw-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--mw-yellow);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 10px 15px;
	top: 5px;
	left: 5px;
	z-index: 1000;
	background: #F2F2F2;
	color: #000;
}

.wrapper,
.wrapper-main {
	width: 100%;
	padding-left: var(--mw-gutter);
	padding-right: var(--mw-gutter);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header#masthead {
	position: relative;
	overflow: hidden;
	min-height: 130px;
	background: url(images/nav_bg.jpg) repeat-x;
	background-size: auto 100%;
	background-color: #a9a9a9;
}
header#masthead .lightfall,
footer#colophon .lightfall {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}
.header-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
header .site-logo {
	border: 0;
	width: 222px;
	height: 50px;
	margin: 20px 0;
}
header .site-logo a {
	display: block;
	background-image: url(images/magic_sprite.png); /* logo */
	background-position: 0 -364px;
	background-repeat: no-repeat;
	width: 222px;
	height: 50px;
}

/* Sticker-Logo: per JS als abziehbarer Aufkleber gezeichnet (js/sticker-logo.js) */
.sticker-logo {
	position: relative;
}
.sticker-logo.is-sticker {
	background-image: none;
}
.sticker-logo .sticker-canvas {
	position: absolute;
	pointer-events: none;
}

header #topnavi {
	position: relative;
	flex: 1 0 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 6px;
}

/* Pill-Navigation: Kapsel mit einzelnen Pillen */
header #topnavi ul {
	--pill-fill: #F2F2F2;
	--pill-ink: #333;
	--pill-dot: #f8ea1b;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #262626;
	border: 1px solid #444;
	border-radius: 999px;
}
header #topnavi ul li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
header #topnavi ul li a {
	position: relative;
	display: block;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
	padding: 7px 16px 7px 35px;
	border-radius: 999px;
	background-color: #3a3a3a;
	color: #FFF;
	font-weight: normal;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease;
}
/* Menüpunkte ohne Icon brauchen links keinen Platz dafür */
header #topnavi ul li:not(.page-item-193, .page-item-205, .page-item-185, .page-item-384, .page-item-164, .page-item-182) > a {
	padding-left: 16px;
}
/* ohne JS: einfacher Hover wie bisher */
header #topnavi ul li a:hover {
	background-color: var(--pill-fill);
	color: var(--pill-ink);
}
header #topnavi ul .current_page_item > a,
header #topnavi ul .current-menu-item > a {
	background-color: #4a4a4a;
}

/* mit JS (js/pill-nav.js): aufsteigende Füllung + rollende Beschriftung */
header #topnavi ul.is-pill li a:hover {
	background-color: #3a3a3a;
	color: #FFF;
}
header #topnavi ul.is-pill .current_page_item > a:hover,
header #topnavi ul.is-pill .current-menu-item > a:hover {
	background-color: #4a4a4a;
}
.pill-fill {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: var(--d, 200px);
	height: var(--d, 200px);
	border-radius: 50%;
	background: var(--pill-fill);
	transform: translate(-50%, 50%) scale(0);
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
	z-index: -1;
	pointer-events: none;
}
.pill-label {
	position: relative;
	display: block;
	overflow: hidden;
	height: 1.2em;
}
.pill-text {
	display: block;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.pill-text-hover {
	position: absolute;
	left: 0;
	top: 0;
	color: var(--pill-ink);
	transform: translateY(110%);
}
header #topnavi ul.is-pill li a:hover .pill-fill,
header #topnavi ul.is-pill li a:focus-visible .pill-fill {
	transform: translate(-50%, 50%) scale(1);
}
header #topnavi ul.is-pill li a:hover .pill-text,
header #topnavi ul.is-pill li a:focus-visible .pill-text {
	transform: translateY(-110%);
}
header #topnavi ul.is-pill li a:hover .pill-text-hover,
header #topnavi ul.is-pill li a:focus-visible .pill-text-hover {
	transform: translateY(0);
}

/* gleitender Punkt unter dem aktiven bzw. überfahrenen Menüpunkt */
.pill-dot {
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--pill-dot);
	opacity: 0;
	transform: translateX(var(--x, 0));
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
	pointer-events: none;
	z-index: 2;
}
.pill-dot.is-visible {
	opacity: 1;
}

/* Icons der Menüpunkte (Sprite) – als eigene Ebene über der Füllung */
header #topnavi li.page-item-193 > a::before, /* HOME */
header #topnavi li.page-item-205 > a::before, /* BLOG */
header #topnavi li.page-item-185 > a::before, /* PROJEKT */
header #topnavi li.page-item-384 > a::before, /* VIP */
header #topnavi li.page-item-164 > a::before, /* ABOUT */
header #topnavi li.page-item-182 > a::before { /* CONTACT */
	content: "";
	position: absolute;
	left: 0;
	top: -3px;
	width: 35px;
	height: calc(100% + 3px);
	background-image: url(images/icon_sprite.png);
	background-repeat: no-repeat;
	transition: background-position 0s .12s;
}
header #topnavi li.page-item-193 > a::before { background-position: 15px -44px; }
header #topnavi li.page-item-193 > a:hover::before { background-position: 15px 12px; }
header #topnavi li.page-item-205 > a::before { background-position: 15px -156px; }
header #topnavi li.page-item-205 > a:hover::before { background-position: 15px -100px; }
header #topnavi li.page-item-185 > a::before { background-position: 15px -380px; }
header #topnavi li.page-item-185 > a:hover::before { background-position: 15px -324px; }
header #topnavi li.page-item-384 > a::before { background-position: 15px -380px; }
header #topnavi li.page-item-384 > a:hover::before { background-position: 15px -324px; }
header #topnavi li.page-item-164 > a::before { background-position: 15px -492px; }
header #topnavi li.page-item-164 > a:hover::before { background-position: 15px -436px; }
header #topnavi li.page-item-182 > a::before { background-position: 15px -268px; }
header #topnavi li.page-item-182 > a:hover::before { background-position: 15px -212px; }

/* Suche, RSS, Matrix */
#aux {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
	padding: 4px 6px 4px 14px;
	background: #262626;
	border: 1px solid #444;
	border-radius: 999px;
	margin-left: auto;
}
#aux .searchform input[type="search"],
#aux .searchform input[type="submit"] {
	border: 1px solid #555;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 13px;
}
#aux .searchform input[type="search"] {
	background: #3a3a3a;
	color: #FFF;
	width: 150px;
}
#aux .searchform input[type="search"]::placeholder,
.footer .widget input::placeholder {
	color: #b8b8b8;
	opacity: 1;
}
#aux .searchform input[type="submit"] {
	background: #F2F2F2;
	color: #333;
	cursor: pointer;
}
#aux .searchform input[type="submit"]:hover {
	background: #f8ea1b;
}
#aux a {
	display: block;
	color: #FFF;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
}
#aux a:hover {
	color: #F2F2F2;
	opacity: .8;
}
#aux #rss {
	background-position: 0 -166px;
	background-image: url(images/magic_sprite.png);
	text-indent: -9999px;
	overflow: hidden;
}
#aux #matrix svg {
	display: block;
}
#aux .searchform {
	display: inline-flex;
	gap: 3px;
}

/* Hamburger-Button (nur mobil sichtbar) */
.menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 5px;
	background: #333;
	cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: #FFF;
	position: relative;
	transition: transform .2s ease;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Layout: Inhalt + Sidebar
   ========================================================================== */

.wrapper-main {
	background-color: #FFF;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--mw-sidebar);
	gap: 0 20px;
	align-items: start;
	align-content: start;
}
#homebody,
#blogbody,
#projektbody,
#aboutbody,
#contactbody,
#errorbody {
	padding: 10px 0;
	min-width: 0;
}
.sidebar-col {
	min-width: 0;
}
.sidebar-col aside .widget {
	margin-right: 0;
}

/* Seiten mit Robo-Grafik: Text links, Grafik rechts */
#contact #contactbody {
	background-image: url(images/roboiphone.png);
	background-position: right bottom;
	background-repeat: no-repeat;
	min-height: 480px;
}
#contact #contactbody article {
	max-width: calc(100% - 240px);
}
#error #errorbody {
	background-image: url(images/robo404.png);
	background-position: right 30px;
	background-repeat: no-repeat;
	min-height: 420px;
}
#error #errorbody article {
	max-width: calc(100% - 220px);
}

/* Blog */
#blog #blogbody .post_navi {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	border-bottom: solid 1px #999;
	margin-bottom: 5px;
	padding-bottom: 5px;
	font-size: 13px;
	color: var(--mw-muted);
}
#blog #blogbody .post_navi a {
	color: var(--mw-muted);
}
.post_thumbnail {
	background-color: #fff;
	border: 1px solid #333;
	float: left;
	margin: 5px 10px 0 0;
	padding: 3px;
	border-radius: 5px;
}
.archive-title {
	font-family: 'ElliotSixRegular';
	font-weight: normal;
	color: #333;
	margin: 10px 0 20px;
	font-size: 24px;
}

/* About */
#about #abouttext h1.page-title {
	font-family: 'ElliotSixRegular';
	color: #333;
	border-bottom: none !important;
}
#about .about-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 30px;
	align-items: flex-start;
}
#about #aboutside {
	flex: 0 0 154px;
	margin: 0 0 15px 0;
}
#about #aboutimg {
	border: 2px solid #CFCFCF;
	margin: 0 0 15px 0;
	line-height: 0;
}
#about #aboutimg img {
	width: 100%;
}
#about #aboutinfo {
	font-size: 14px;
}
#about #aboutinfo ul li {
	list-style: outside;
	margin-left: 1.2em;
}
#about #aboutcontent {
	flex: 1 1 300px;
	min-width: 0;
}
#about #aboutcontent p {
	margin-top: 0;
}

/* ==========================================================================
   Artikel & Widgets
   ========================================================================== */

.post {
	position: relative;
}
.wrapper-main article {
	display: flow-root;
	padding: 20px 45px 25px 35px;
	margin: 0 0 25px 0;
	background: var(--mw-gradient);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
.wrapper-main article h2 {
	padding-bottom: 5px;
	margin-top: -5px;
	border-bottom: solid 1px #ccc;
	margin-bottom: 10px;
	font-size: 30px;
	overflow-wrap: break-word;
}
.wrapper-main article h1.page-title {
	font-family: 'ElliotSixRegular';
	font-weight: normal;
	color: #333;
	font-size: 30px;
	padding-bottom: 5px;
	margin-top: -5px;
	margin-bottom: 10px;
	border-bottom: solid 1px #ccc;
}
.wrapper-main article h2 a {
	font-family: 'ElliotSixRegular';
	color: #333;
}
.wrapper-main article h2 a:hover {
	text-decoration: none;
}
.wrapper-main article h3 {
	padding: 10px 0 15px 0;
}
.wrapper-main article h3 a {
	color: #333;
}
.wrapper-main article p {
	margin: 10px 0 10px 0;
}
.wrapper-main article small {
	display: inline;
	margin: 10px 0 0 0;
}
.wrapper-main article ul li {
	list-style: inside disc;
}
.wrapper-main article ol li {
	list-style: inside decimal;
}
.wrapper-main article pre,
.wrapper-main article table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

aside .widget {
	padding: 10px 15px;
	margin: 10px 10px 0 0;
	background: var(--mw-gradient);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
.widget .widgettitle {
	font-family: 'ElliotSixRegular';
	color: #333;
	padding-bottom: 5px;
	margin: 0 0 5px 0;
	border-bottom: solid 1px #ccc;
	font-size: 20px;
}
.widget ul li {
	font-size: 14px;
	list-style: none;
}
.widget ul li a {
	color: #333;
	display: block;
}
.widget ul li a:hover {
	background-position: left bottom;
	color: #000;
	text-decoration: underline;
}
.widget ul li ul {
	padding-left: 0;
}
.widget ul li ul li {
	font-size: 14px;
}
.widget .tagcloud a {
	color: #333;
	text-decoration: none;
}
.widget .tagcloud a:hover {
	color: #000;
	text-decoration: underline;
}
.widget .asa_link {
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-align: center;
	display: block;
	max-width: 190px;
	padding: 3px;
}
.widget .asa_img {
	margin-top: 3px;
	box-shadow: 1px 1px 4px #333333;
}
.widget .asa_rating img {
	padding-bottom: 2px;
}
.widget .asa_meta {
	font-size: 12px;
	line-height: 12px;
	padding-bottom: 5px;
}

.time {
	display: block;
	font-size: 13px;
	color: var(--mw-muted);
}

/* Lesetext: Links erkennbar, angenehme Zeilenlänge */
.wrapper-main article {
	line-height: 1.6;
}
.wrapper-main article > p,
.wrapper-main article > ul,
.wrapper-main article > ol,
.wrapper-main article > blockquote,
#aboutcontent > p {
	max-width: 62ch;
	text-wrap: pretty;
}
.wrapper-main article p a,
.wrapper-main article li a:not(.tag-cloud-link),
.wrapper-main article blockquote a,
.page-intro a,
.empty-state a {
	color: var(--mw-ink);
	text-decoration: underline;
	text-decoration-color: var(--mw-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.wrapper-main article p a:hover,
.wrapper-main article li a:not(.tag-cloud-link):hover,
.page-intro a:hover,
.empty-state a:hover {
	text-decoration-color: var(--mw-ink);
}
.wrapper-main article p a:visited {
	color: #444;
}

/* Abschnittsüberschriften einheitlich in ElliotSix */
#comments,
#reply-title,
.section-sub,
#error .page-title {
	font-family: 'ElliotSixRegular', Tahoma, sans-serif;
	font-weight: normal;
	color: #333;
	font-size: 26px;
	line-height: 1.2;
	padding: 20px 0 10px;
	text-wrap: balance;
}
.wrapper-main article h1.page-title,
.archive-title {
	text-wrap: balance;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
}

/* Projektseite */
.page-hero-title {
	font-size: clamp(36px, 5vw, 56px);
}
.page-intro {
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 28px;
}
.empty-state {
	padding: 24px;
	border: 1px dashed #bbb;
	border-radius: var(--mw-radius);
	color: #333;
}
.landing .wp-pagenavi,
.landing .pagination {
	margin-top: 32px;
}

/* Formulare im Inhalt und in der Seitenleiste (Kommentare, Kontaktformular, Suche) */
.wrapper-main input[type="text"],
.wrapper-main input[type="email"],
.wrapper-main input[type="url"],
.wrapper-main input[type="tel"],
.wrapper-main input[type="search"],
.wrapper-main input[type="number"],
.wrapper-main select,
.wrapper-main textarea {
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid #b5b5b5;
	border-radius: 10px;
	background: #FFF;
	color: var(--mw-ink);
	font-size: 16px;
	line-height: 1.4;
}
.wrapper-main textarea {
	width: 100%;
	min-height: 160px;
}
.wrapper-main input:hover,
.wrapper-main textarea:hover,
.wrapper-main select:hover {
	border-color: #777;
}
.wrapper-main input[type="submit"],
.wrapper-main button[type="submit"],
.wrapper-main .wpcf7-submit {
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid #d9cb00;
	border-radius: 999px;
	background: var(--mw-yellow);
	color: var(--mw-ink);
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.wrapper-main input[type="submit"]:hover,
.wrapper-main button[type="submit"]:hover,
.wrapper-main .wpcf7-submit:hover {
	background: var(--mw-ink);
	color: var(--mw-yellow);
	border-color: var(--mw-ink);
}
.wrapper-main input[type="submit"]:disabled,
.wrapper-main .wpcf7-submit:disabled {
	opacity: .5;
	cursor: not-allowed;
}
aside .widget .searchform {
	display: flex;
	gap: 6px;
}
aside .widget .searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
}
aside .widget .searchform input[type="submit"] {
	padding: 8px 14px;
	min-height: 40px;
}
#commentform label small {
	font-size: 14px;
	color: #333;
}
.wpcf7-not-valid-tip {
	color: #b00020;
	font-size: 14px;
}
.wpcf7 form .wpcf7-response-output {
	border-radius: 10px;
	padding: 10px 14px;
}

/* ==========================================================================
   Kommentare
   ========================================================================== */

.commentlist .comment {
	margin: 5px 0;
	list-style: none !important;
}
.commentlist section {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.commentlist .comment-text {
	flex: 1 1 260px;
	min-width: 0;
	padding: 4px 0 14px;
	border-bottom: 1px solid #ddd;
}
/* Kommentare des Autors: kleines Abzeichen statt eingefärbter Karte */
.commentlist .bypostauthor > section > .comment-text cite::after {
	content: "Autor";
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--mw-yellow);
	color: var(--mw-ink);
	font-size: 12px;
	font-weight: bold;
	vertical-align: middle;
}
.commentlist .comment-text em {
	background-image: url(images/magic_sprite.png);
	background-position: 0 -298px;
	background-repeat: no-repeat;
	padding-left: 18px;
	font-size: 12px;
}
.commentlist .comment-text p {
	padding-top: 7px;
}
.commentlist .comment-text cite {
	font-weight: bold;
	font-style: normal;
}
.commentlist .comment-text time {
	font-size: 12px;
	position: relative;
	top: -7px;
}
.commentlist .comment-meta {
	flex: 0 0 90px;
	padding: 5px;
}
.commentlist .comment-meta a {
	font-size: 12px;
}
.commentlist .comment-meta a:hover {
	text-decoration: underline;
}
.commentlist .comment-reply,
.commentlist .clear {
	flex-basis: 100%;
}
.commentlist .children {
	margin-left: 30px;
}

#respond {
	margin-top: 20px;
}
#commentform p {
	margin: 8px 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer#colophon {
	position: relative;
	overflow: hidden;
	background-image: url(images/nav_bg.jpg);
	background-color: #a9a9a9;
	background-repeat: repeat-x;
}
.footer-widgets {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
	align-items: start;
}
.footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* Widget-Karten im Stil der Pill-Navigation: dunkle, abgerundete Fläche */
.footer .widget {
	--card-bg: #262626;
	--card-border: #444;
	--card-text: #d6d6d6;
	--card-link: #F2F2F2;
	--card-accent: #f8ea1b;
	position: relative;
	padding: 16px 20px 18px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--card-text);
	background: var(--card-bg);
	border-radius: var(--mw-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.footer .widget:hover,
.footer .widget:focus-within {
	box-shadow: 0 6px 16px rgba(0, 0, 0, .32);
}
.footer .widget .widgettitle {
	position: relative;
	color: #FFF;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	padding-bottom: 8px;
	margin-bottom: 10px;
}
/* gelber Punkt wie in der Navigation */
.footer .widget .widgettitle::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--card-accent);
}
.footer .widget p,
.footer .widget form {
	font-size: 14px;
	color: var(--card-text);
}
.footer .widget a,
.footer .widget ul li a {
	color: var(--card-link);
}
.footer .widget a:hover,
.footer .widget ul li a:hover,
.footer .widget a:focus-visible {
	color: var(--card-accent);
}
.footer .widget ul li {
	padding: 2px 0;
}
.footer .widget ul li ul li {
	font-size: 14px;
	padding-left: 10px;
}
.footer .widget input[type="search"],
.footer .widget input[type="text"],
.footer .widget input[type="email"],
.footer .widget select {
	max-width: 100%;
	border: 1px solid #555;
	border-radius: 999px;
	padding: 6px 12px;
	background: #3a3a3a;
	color: #FFF;
}
.footer .widget input[type="submit"],
.footer .widget button {
	border: 1px solid #555;
	border-radius: 999px;
	padding: 6px 12px;
	background: #F2F2F2;
	color: #333;
	cursor: pointer;
}
.footer .widget input[type="submit"]:hover,
.footer .widget button:hover {
	background: var(--card-accent);
}
.footer .widget #wp-calendar th,
.footer .widget #wp-calendar td {
	color: var(--card-text);
}

#copyright {
	font-size: 12px;
	text-align: right;
	padding-top: 17px;
	padding-bottom: 7px;
}
#copyright #gandissl {
	float: right;
	margin-top: -15px;
	padding-left: 15px;
}

/* ==========================================================================
   WordPress-Klassen
   ========================================================================== */

#wp-calendar {
	text-align: center;
	padding: 10px;
	width: 100%;
}
.wp-pagenavi,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 16px 0;
}
.wp-pagenavi a,
.wp-pagenavi span,
.pagination .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px !important;
	margin: 0 !important;
	border: 1px solid #444 !important;
	border-radius: 999px;
	background: var(--mw-dark);
	color: #FFF !important;
	text-decoration: none !important;
}
.wp-pagenavi a:hover,
.pagination a.page-numbers:hover {
	background: #F2F2F2;
	color: var(--mw-ink) !important;
}
.wp-pagenavi .current,
.pagination .page-numbers.current {
	background: var(--mw-yellow);
	color: var(--mw-ink) !important;
	border-color: #d9cb00 !important;
	font-weight: bold;
}


.wp-caption {
	max-width: 100%;
	background-color: #fff;
	border: 1px solid #ccc;
	margin: 5px 15px 0 0;
	padding: 10px 10px 5px 10px;
	border-radius: 5px;
}
.wp-caption img {
	border: 1px solid #333;
}
.wp-caption-text,
.wp-element-caption {
	color: #666;
	font-size: 12px;
	text-align: center;
	margin-bottom: 0 !important;
}
.alignleft {
	float: left;
	margin: 0 15px 10px 0;
}
.alignright {
	float: right;
	margin: 0 0 10px 15px;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.alignwide,
.alignfull {
	max-width: 100%;
}
.sticky,
.gallery-caption,
.bypostauthor {
	/* von WordPress erwartete Klassen */
}

.permalink {
	background-position: 0 0;
	background-image: url(images/magic_sprite.png);
	background-repeat: no-repeat;
	color: #333;
	padding-left: 18px;
}
.terminal {
	background-color: #333;
	color: #3F0;
	font-family: monospace;
	padding: 10px;
	font-size: 14px;
	margin: 0 0 10px 0;
	overflow-x: auto;
}
.terminal span {
	font-family: monospace;
	font-size: 14px;
}
.clear {
	clear: both;
}
.syntaxhighlighter {
	overflow-y: hidden !important;
}

/* ==========================================================================
   Landingpage (page-home.php)
   ========================================================================== */

.landing {
	flex: 1 0 auto;
	background: #FFF;
}
.landing-inner {
	width: 100%;
	margin: 0 auto;
	padding-left: var(--mw-gutter);
	padding-right: var(--mw-gutter);
}

/* Buttons im Stil der Pill-Navigation */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.btn-primary,
.btn-primary:visited {
	background: var(--mw-yellow);
	color: var(--mw-ink);
	border-color: #d9cb00;
}
.btn-primary:hover {
	background: var(--mw-ink);
	color: var(--mw-yellow);
	border-color: var(--mw-ink);
}
.btn-secondary,
.btn-secondary:visited {
	background: var(--mw-dark);
	color: #FFF;
	border-color: #444;
}
.btn-secondary:hover {
	background: #F2F2F2;
	color: var(--mw-ink);
	border-color: #ccc;
}
.btn-ghost,
.btn-ghost:visited {
	background: transparent;
	color: #F2F2F2;
	border-color: #5a5a5a;
	font-weight: normal;
}
.btn-ghost:hover {
	color: var(--mw-yellow);
	border-color: var(--mw-yellow);
}

/* Hero */
.landing-hero {
	position: relative;
	background: linear-gradient(to bottom, #f2f2f2 0%, #FFF 100%);
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
	gap: 24px 48px;
	padding-top: clamp(32px, 6vw, 72px);
}
.hero-copy {
	padding-bottom: clamp(32px, 5vw, 64px);
	max-width: 40em;
}
.hero-role {
	font-size: clamp(16px, 1.5vw, 19px);
	font-weight: bold;
	color: var(--mw-ink);
	margin: -6px 0 16px;
}
.hero-title {
	font-family: 'ElliotSixRegular', Tahoma, sans-serif;
	font-weight: normal;
	font-size: clamp(42px, 7vw, 88px);
	line-height: .95;
	color: var(--mw-ink);
	margin-bottom: 18px;
	text-wrap: balance;
}
.hero-lead {
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
	color: #333;
	max-width: 34em;
}
.hero-lead p {
	margin: 0 0 12px;
}
.hero-lead p:empty {
	display: none;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
.hero-art {
	justify-self: center;
	align-self: end;
	line-height: 0;
}
.hero-art img {
	width: clamp(180px, 24vw, 300px);
	height: auto;
}

/* Streifenband aus dem Logo */
.stripe-band {
	height: 12px;
	background: repeating-linear-gradient(-55deg, var(--mw-yellow) 0 14px, var(--mw-ink) 14px 28px);
}

/* Abschnitte */
.landing-section {
	padding: clamp(40px, 6vw, 80px) 0;
}
.landing-section--alt {
	background: #f4f4f4;
}
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.section-title {
	position: relative;
	font-family: 'ElliotSixRegular', Tahoma, sans-serif;
	font-weight: normal;
	font-size: clamp(30px, 3.5vw, 42px);
	line-height: 1.1;
	color: var(--mw-ink);
	padding-bottom: 10px;
}
.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--mw-yellow);
}
.section-more,
.section-more:visited {
	color: var(--mw-ink);
	font-weight: bold;
	text-decoration: underline;
	text-decoration-color: var(--mw-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}
.section-more:hover {
	text-decoration-color: var(--mw-ink);
}
.card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--mw-muted);
}
.card-tag {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--mw-dark);
	color: #F2F2F2;
	font-size: 12px;
}

/* Projektkarten */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
@media (min-width: 1200px) {
	.project-grid {
		grid-template-columns: repeat(3, minmax(0, 440px));
	}
}
.project-card {
	display: flex;
	flex-direction: column;
	background: #FFF;
	border-radius: var(--mw-radius);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover,
.project-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.project-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--mw-dark);
	line-height: 0;
}
.project-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.project-card:hover .project-media img {
	transform: scale(1.04);
}
.project-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(-55deg, var(--mw-yellow) 0 22px, var(--mw-ink) 22px 44px);
	opacity: .9;
}
.project-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
	flex: 1;
}
.project-title,
.wrapper-main article .project-title {
	font-size: 20px;
	line-height: 1.3;
	padding: 0;
	margin: 0;
	border: 0;
}
.project-title a,
.project-title a:visited,
.post-card-title a,
.post-card-title a:visited {
	color: var(--mw-ink);
}
.wrapper-main article .project-title a {
	font-family: inherit;
}
/* ganze Karte klickbar, ohne verschachtelte Links */
.project-title a::after,
.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.project-card,
.post-card {
	position: relative;
}
.project-excerpt,
.post-card-excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: #3a3a3a;
	flex: 1;
}
.project-body .card-meta {
	margin-top: 4px;
}

/* Blogkarten */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}
.post-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: #FFF;
	border: 1px solid #e2e2e2;
	border-radius: var(--mw-radius);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover,
.post-card:focus-within {
	border-color: var(--mw-ink);
}
.post-card-title {
	font-size: 18px;
	line-height: 1.35;
}
.project-title a:focus-visible,
.post-card-title a:focus-visible {
	outline: none;
}
.project-card:focus-within,
.post-card:focus-within {
	outline: 2px solid var(--mw-ink);
	outline-offset: 3px;
}

/* Kontaktkarte */
.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px;
	padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
	background: var(--mw-dark);
	border-radius: var(--mw-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	color: #d6d6d6;
	overflow: hidden;
}
.contact-card .section-title {
	color: #FFF;
	margin-bottom: 16px;
}
.contact-copy {
	padding-bottom: clamp(24px, 4vw, 48px);
	max-width: 36em;
	font-size: 17px;
	line-height: 1.6;
}
.contact-art {
	line-height: 0;
}
.contact-art img {
	width: clamp(120px, 14vw, 180px);
	height: auto;
}

@media (max-width: 800px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 12px;
	}
	.hero-copy {
		grid-column: 1 / -1;
		grid-row: 1;
		padding-bottom: 8px;
	}
	.hero-art {
		grid-column: 2;
		justify-self: end;
		margin-top: -24px;
	}
	.hero-art img {
		width: 140px;
	}
	.contact-card {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.contact-art img {
		width: 96px;
	}
}
@media (max-width: 480px) {
	.btn {
		flex: 1 1 100%;
		justify-content: center;
	}
	.contact-card {
		grid-template-columns: 1fr;
	}
	.contact-art {
		justify-self: end;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: Robo-Grafiken ausblenden, Text volle Breite */
@media (max-width: 1100px) {
	#contact #contactbody,
	#error #errorbody {
		background-image: none;
		min-height: 0;
	}
	#contact #contactbody article,
	#error #errorbody article {
		max-width: none;
	}
}

/* Sidebar unter den Inhalt */
@media (max-width: 900px) {
	.wrapper-main {
		grid-template-columns: minmax(0, 1fr);
	}
	.sidebar-col {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 0 20px;
		padding-bottom: 20px;
	}
}

/* Etwas kompaktere Pillen auf mittleren Breiten */
@media (max-width: 1100px) {
	header #topnavi ul {
		gap: 3px;
	}
	header #topnavi ul li a {
		padding-right: 12px;
		font-size: 15px;
	}
	header #topnavi ul li:not(.page-item-193, .page-item-205, .page-item-185, .page-item-384, .page-item-164, .page-item-182) > a {
		padding-left: 12px;
	}
	#aux .searchform input[type="search"] {
		width: 110px;
	}
}

/*
 * Burger-Menü: js/navigation.js setzt .nav-collapsed, sobald das Menü nicht
 * mehr in eine Zeile passt (oder das Fenster schmaler als 800 px ist).
 * Ohne JavaScript bleibt das Menü immer sichtbar.
 */
header#masthead.nav-collapsed {
	min-height: 0;
}
header#masthead.nav-collapsed .site-logo {
	margin: 12px 0;
}
header#masthead.nav-collapsed .menu-toggle {
	display: block;
}
header#masthead.nav-collapsed #topnavi {
	display: none;
	padding-bottom: 12px;
}
header#masthead.nav-collapsed #topnavi.is-open {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
header#masthead.nav-collapsed #topnavi ul {
	flex-direction: column;
	border-radius: var(--mw-radius);
}
header#masthead.nav-collapsed #topnavi ul li a {
	padding-top: 13px;
	padding-bottom: 13px;
	font-size: 16px;
}
header#masthead.nav-collapsed #topnavi li[class*="page-item-"] > a::before {
	top: 3px;
	height: calc(100% - 3px);
}
header#masthead.nav-collapsed .pill-dot {
	display: none;
}
header#masthead.nav-collapsed #aux {
	margin-left: 0;
	padding: 6px 6px 6px 14px;
}
header#masthead.nav-collapsed #aux .searchform {
	flex: 1 1 auto;
}
header#masthead.nav-collapsed #aux .searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	padding: 8px 12px;
}
header#masthead.nav-collapsed #aux a {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
header#masthead.nav-collapsed #aux #rss {
	width: 16px;
	height: 16px;
}

@media (max-width: 800px) {
	header#masthead {
		min-height: 0;
	}
	header .site-logo {
		margin: 12px 0;
	}
	#copyright {
		text-align: center;
	}
}

@media (max-width: 600px) {
	.wrapper-main article {
		padding: 15px;
	}
	.wrapper-main article h2 {
		font-size: 24px;
	}
	#about #aboutside {
		flex-basis: 100%;
		display: flex;
		gap: 15px;
	}
	#about #aboutimg {
		flex: 0 0 120px;
	}
	.commentlist .comment-meta {
		flex-basis: 100%;
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.commentlist .comment-meta br {
		display: none;
	}
	.commentlist .children {
		margin-left: 10px;
	}
	.alignleft,
	.alignright {
		float: none;
		margin: 10px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
