/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

html {
	font-family: 'Titillium Web', Frutiger, Univers, "DejaVu Sans Condensed", "Liberation Sans", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 200;
	src: url('/wp-content/fonts/TitilliumWeb-ExtraLight.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: italic;
	font-weight: 200;
	src: url('/wp-content/fonts/TitilliumWeb-ExtraLightItalic.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 300;
	src: url('/wp-content/fonts/TitilliumWeb-Light.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: italic;
	font-weight: 300;
	src: url('/wp-content/fonts/TitilliumWeb-LightItalic.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 400;
	src: url('/wp-content/fonts/TitilliumWeb-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: italic;
	font-weight: 400;
	src: url('/wp-content/fonts/TitilliumWeb-Italic.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 600;
	src: url('/wp-content/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: italic;
	font-weight: 600;
	src: url('/wp-content/fonts/TitilliumWeb-SemiBoldItalic.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 700;
	src: url('/wp-content/fonts/TitilliumWeb-Bold.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: italic;
	font-weight: 700;
	src: url('/wp-content/fonts/TitilliumWeb-BoldItalic.ttf') format('truetype');
}
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 900;
	src: url('/wp-content/fonts/TitilliumWeb-Black.ttf') format('truetype');
}

body, p, li, dt, dd, dl, address, label, pre, code {
	font-size:inherit;
}
blockquote p {
	font-size:inherit;
}
table td {
	font-weight:400;
}
.gform_fields a,
article .style-light .uncode_text_column a {
	color: #0000ff;
	font-style:italic;
}

.current-cat > a:before {
	color:#e40613;
}
.menu-dark .menu-smart a:hover {
	transition:color .2s ease-out;
}
.page-wrapper a[target="_blank"]:after {
	content: "🗗";
	vertical-align: super;
	font-size: 70%;
}

.navbar-main a::before {
	transform:scale(0.68);
	margin-right:-4px;
	content:url("https://www.amigo-spiele.de/documents/category/25/icon-family.svg");
	z-index:1; /* Uncode bugfix */
}
.navbar-main li:nth-child(2) a::before {
	content:url("https://www.amigo-spiele.de/documents/category/27/icon-cards.svg");
}
.navbar-main li:nth-child(3) a::before {
	content:url("https://www.amigo-spiele.de/documents/category/28/icon-kids.svg");
}
.navbar-main li:nth-child(4) a::before {
	content:url("https://www.amigo-spiele.de/documents/category/26/icon-party.svg");
}
.top-menu p, .top-menu a, .top-menu span {
	font-size: 15px !important;
}
.navbar-topmenu li:nth-child(4) span,
.navbar-topmenu .menu-item .fa-angle-right, .amigo-game-teaser br {
	display: none;
}
.tmb > .t-inside {
	height: 100%;
}
.t-entry-title {
	hyphens:auto;
}
.uncode_text_column,p {
	max-width: 170ex;
}

/* Social Icons */
footer .footer-last .social-icon i.fa-twitter-x,
footer .footer-last .social-icon i.fa-tiktok {
	background-color:#ffffff;
	color:#e40613;
	border-radius:3px;
	transition:background-color 0.25s ease;
	font-size:16px;
	vertical-align:text-top;
}
footer .footer-last .social-icon .fa-twitter-x:hover,
footer .footer-last .social-icon .fa-tiktok:hover {
	background-color:#000;
}
footer .style-dark .social-icon a:hover {
	color:#000;
}

/* Tables */
.presstable th:nth-child(3) {
	min-width: 175px;
}
.presstable .files img {
	max-height: 100px;
	width: auto;
}
.presstable .head h4,
.presstable .longtxt p {
	max-width:70em;
}
.presstable th > :first-child,
.presstable td > :first-child {
	margin-top:0;
}

.dataTables_wrapper .tablepress {
	font-size: 85%;
}

.amigo-game-teaser {
	overflow:auto;
}
.amigo-game-teaser h1 {
	font-size:24px; /* == h3 */
}

/* Frühjahrsneuheiten */
.amigo-game-teaser .inside p:nth-child(3) img:first-child {
	display: block;
}
.amigo-game-teaser .inside p:nth-child(3) {
	display: inline-block;
}

/* Uncode Bugfixes */
#menu-wordpress {
	z-index:1; /* fehlende Linie */
}
.menu-secondary .menu-borders:not(.needs-after),
.menu-secondary .menu-borders.needs-after::after {
	border-bottom-width: 1px;  /* fehlende Linie */
}


/* ICS Calendar */
.ics-calendar table { margin:0; }
/* fix event hover box overlap */
.fc-daygrid-day-events { position: relative; }
.fc .fc-daygrid-bg-harness { z-index:0; }
.ics-calendar-month-grid td, .ics-calendar-month-grid th {
	font-size:inherit;
}

/* Suche */
.search-box {
	width: 100%;
	overflow: hidden;
	transition: max-height 1s;
	max-height: 100px;
	position: absolute;
	top: 41px;
	z-index: 999999;
	background: #e40613;
}
.search-box.gone {
	max-height: 0;
	transition: max-height 1s;
}
.search-box form {
	display: flex;
	justify-content: center;
	margin-bottom: 5px;
}
.search-box input {
	width: 70em;
}
.search-submit .fa-search::before {
	color: #e40613!important;
}
.search-box input, .search-box button {
	margin: 0;
	border-radius: 0;
}
@media (max-width: 959px) {
	.menu-item.menu-item-34471 {
		display: none;
	}
}

/* Pressematerial */
#listwrapper #preview {grid-column-start: span 4;}
#preview .uncode_text_column { margin-top: 1em; }
#p_search {display: flex; flex-wrap: wrap;}
#p_search input {width: 90%;}
#p_search button {width: 10%;}
#listwrapper > div[data-itemid] { cursor:pointer; }
#listwrapper img { min-height: 1vw; }
.cssgrid-press .cssgrid-container {
	grid-template-columns:repeat(4, 1fr);
}

@media (max-width: 1500px) {
	.cssgrid-press .cssgrid-container {
		grid-template-columns:repeat(3, 1fr);
	}
	#listwrapper #preview {
		grid-column-start: span 3;
	}
}
@media (max-width: 900px) {
	.cssgrid-press .cssgrid-container {
		grid-template-columns:repeat(2, 1fr);
	}
	#listwrapper #preview {
		grid-column-start: span 2;
	}
}
@media (max-width: 600px) {
	.cssgrid-press .cssgrid-container {
		grid-template-columns:repeat(1, 1fr);
	}
	#listwrapper #preview {
		grid-column-start: span 1;
		padding-top: 0;
	}
	#listwrapper #preview img {
		display: none;
	}
}
