/*---------------------------------------------------------------------------------

	Theme Name: Hamilton Child (Thoma)
	Template: hamilton
	Version: 1.2.0
	Description: Child-Theme für Hamilton 2.1.2. Enthält alle Anpassungen, die zuvor direkt im Hamilton-Theme (Stand 2.0.7) und im Customizer ("Zusätzliches CSS") vorgenommen wurden: Top-Leiste, mehrspaltiger Footer mit Menüs, Portfolio-Metadaten, zusätzliche Seitenvorlagen, Widget-Bereich "filter_area", Schrift Readex Pro und das gesamte individuelle CSS.
	Author: Thoma
	Text Domain: hamilton
	Requires at least: 4.5
	Requires PHP: 5.4
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html

	Diese Datei wird nach allen anderen Stylesheets geladen (siehe functions.php),
	also an der Stelle, an der bisher das "Zusätzliche CSS" des Customizers stand.
	Das Stylesheet des Eltern-Themes (hamilton/style.css) wird davor geladen.

	Die Schrift im Editor wird in assets/css/editor.css an diese Datei angeglichen.
	Wer hier Schrift, Überschriften oder Textfarben ändert, passt sie dort mit an.

-----------------------------------------------------------------------------------

	1.	Basis und Typografie
	2.	Hilfsklassen
	3.	Top-Leiste
	4.	Header und Navigation
	5.	Seitenkopf und Inhalt
	6.	Seitennavigation mit Sprungmarken
	7.	Blöcke
	8.	Plugins
	9.	Footer
	10.	Responsive

----------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/*	1. Basis und Typografie
/* -------------------------------------------------------------------------------- */


body {
	color: #424242;
	font-family: 'Readex Pro', sans-serif !important;
}

::selection {
	background: #000;
	color: #fff;
}

p {
	line-height: 1.6;
}

article a {
	color: #b01736;
}

/* Gilt bewusst für alle Listen der Website, nicht nur im Footer. */
ul,
.bottom-nav ol {
	padding: 0;
}

li {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
	color: #222;
	font-family: 'Readex Pro';
	font-weight: 400;
}

h1,
h2,
h3 {
	text-align: center;
}

h1 {
	font-size: calc(3.4 * 1.2vw + 1rem);
}

h2 {
	font-size: 3.4rem;
	margin-bottom: 44px;
}

h3 {
	font-size: 2.2rem;
}

h4 {
	color: #808080 !important;
	line-height: 1.3;
}

h5 {
	letter-spacing: 3px;
	text-transform: uppercase;
}

h6 {
	color: #b01736;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}


/* -------------------------------------------------------------------------------- */
/*	2. Hilfsklassen (im Editor unter "Zusätzliche CSS-Klasse(n)" verwendbar)
/* -------------------------------------------------------------------------------- */


.reduce-margin-top {
	margin-top: 20px;
}

.padding-20 {
	padding: 40px 20px 20px 20px;
}

/* Farben */

.has-red-color {
	color: #b01736;
}

.has-red-background-color {
	background: #b01736 !important;
}

.has-thoma-red-color {
	color: #b01736 !important;
}

.has-thoma-red-background-color {
	background-color: #b01736 !important;
}

/* Schriftgrößen */

.has-large-font-size {
	font-size: calc(20px + 0.75vw) !important;
}

.has-small-font-size {
	font-size: 16px !important;
}


/* -------------------------------------------------------------------------------- */
/*	3. Top-Leiste
/* -------------------------------------------------------------------------------- */


.top-bar {
	background-color: #000;
	height: 40px;
	margin-top: 0;
}

.top-bar ul {
	margin-left: auto !important;
	margin-right: auto;
	margin-top: 0;
	max-width: 1280px;
	padding-right: 20px;
	padding-top: 2px;
	text-align: right;
	width: 100%;
}

.top-bar ul li {
	display: inline;
	margin-left: 20px;
}

.top-bar ul li a {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}


/* -------------------------------------------------------------------------------- */
/*	4. Header und Navigation
/* -------------------------------------------------------------------------------- */


.site-header .custom-logo {
	max-width: 100%;
}

.show-alt-nav .site-header {
	align-items: center;
}

/* Aufklappbares Menü (Overlay) ------------- */

.site-nav a {
	border: 0;
	font-family: 'Readex Pro', sans-serif !important;
	font-weight: 500;
	letter-spacing: 0.1px;
}

.site-nav ul:first-child li {
	font-size: 24px;
}

.site-nav ul + ul li {
	font-size: 18px;
}

.site-nav ul + ul li a {
	color: #b01736 !important;
}

.site-nav .sub-menu {
	padding-bottom: 16px;
}

.site-nav .sub-menu li {
	margin-bottom: 8px;
	margin-left: 18px;
	margin-top: 8px;
}

.site-nav .sub-menu li a {
	color: rgba(0, 0, 0, .5);
	font-size: 18px;
}

/* Im Overlay-Menü steht ein Theme-Hinweis, der nicht angezeigt werden soll. */
.theme-by {
	display: none;
}

/* Menü in der Kopfzeile (Desktop) ---------- */

.alt-nav li {
	margin-top: 18px;
}

.alt-nav li a {
	color: #424242;
	font-family: 'Readex Pro', sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

/* Letzter Menüpunkt als roter Button */
.alt-nav li:nth-last-child(1) a {
	background-color: #ac2d31;
	color: white;
	margin-top: -0.6em;
	padding: .6em 1.2em;
}

/* Aktiver Menüpunkt */

.current_page_item a {
	border-bottom: 1px solid !important;
}

.alt-nav .current-menu-item > a,
.current-page-ancestor > a {
	border-bottom: 2px solid;
}

.current-page-ancestor > ul > .current-menu-item > a {
	border-bottom: 0 !important;
	color: #c5c5c6;
}

.alt-nav li a:hover {
	color: #b01736;
}

/* Menüpunkte mit Untermenü: Pfeil */

.alt-nav > li.menu-item-has-children:hover {
	text-decoration: none !important;
}

.alt-nav > li.menu-item-has-children::after {
	border: 5px solid transparent;
	border-left-width: 4px;
	border-right-width: 4px;
	border-top-color: #b01736;
	content: "";
	display: block;
	position: absolute;
	right: 0;
	top: calc(50% - 6px) !important;
	transition: all .2s ease-in-out;
}

/* Untermenü */

.alt-nav ul,
.alt-nav ul a,
.alt-nav ul a:hover {
	background: #b01736;
	color: #fff;
}

.alt-nav ul::after {
	border: 5px solid transparent;
	border-bottom-color: #b01736;
	bottom: 100%;
	left: 20px;
}


/* -------------------------------------------------------------------------------- */
/*	5. Seitenkopf und Inhalt
/* -------------------------------------------------------------------------------- */


.page .page-header {
	margin: 0 auto;
}

.entry-title {
	color: #b01736;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Kategorie und Kommentar-Link unter dem Titel ausblenden */
.meta {
	display: none;
}

/* Portfolio-Metadaten (singular.php) ------- */

.portfolio_meta {
	border-top: 1px solid #efefef;
	color: rgba(0, 0, 0, .9);
	font-size: 0.85rem;
	line-height: 1.4;
	margin-bottom: 70px;
	margin-left: auto;
	margin-right: auto;
	max-width: 590px;
	padding-top: 18px;
	text-align: center;
}

.portfolio_meta div {
	display: inline-block;
	margin-right: 4px;
}

.portfolio_meta div b {
	color: #999;
	display: inline;
}

/* Je Sprache nur die passende Beschriftung zeigen */
.language-de .portfolio_meta div b:nth-child(2),
.language-en .portfolio_meta div b:nth-child(1) {
	display: none;
}

.portfolio_meta div.portfolio_meta_besonderheiten {
	margin: 0 auto;
	max-width: 450px;
	text-align: center;
}

.portfolio_meta div.portfolio_meta_besonderheiten b {
	color: #b01736;
	display: block;
	margin-bottom: 14px;
	margin-left: 0;
	margin-top: 28px;
	width: auto;
}


/* -------------------------------------------------------------------------------- */
/*	6. Seitennavigation mit Sprungmarken (.inpage / #navbar)
/* -------------------------------------------------------------------------------- */


#navbar {
	margin-top: 0;
	top: 0;
	z-index: 9999;
}

#navbar a.active {
	color: #dadada;
}

#navbar.sticky p.has-background {
	padding: 18px;
}

.sticky {
	border-radius: 0;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999;
}

.inpage a {
	color: #424242;
	font-weight: 500;
	padding: 6px 12px 6px 12px;
	text-decoration: none;
}

.inpage div p {
	border-radius: 0;
	display: block;
}

/* Links auf rotem Hintergrund (z. B. in der Sprungmarken-Leiste) */
.has-thoma-red-background-color a {
	color: #efefef;
}


/* -------------------------------------------------------------------------------- */
/*	7. Blöcke
/* -------------------------------------------------------------------------------- */


/* Spalten ---------------------------------- */

.wp-block-columns {
	display: flex !important;
}

.wp-block-columns,
.radius5,
.border-radius5 {
	border-radius: 5px;
}

.wp-block-columns .wp-block-navigation__container {
	display: block;
}

/* Buttons ---------------------------------- */

.wp-block-button__link {
	color: #fff;
}

.wp-block-button__link:hover {
	background: rgba(0, 0, 0, 0.5);
}

.wp-block-button__width-100 a {
	text-align: left !important;
}

/* Achtung: betrifft auch jedes Element mit schwarzer Textfarbe (.has-black-color). */
.has-black-color,
.is-style-outline {
	border: 2px solid #b01736;
	color: #b01736 !important;
}

.is-style-outline:hover {
	opacity: 0.7;
}

.is-style-outline > .wp-block-button__link:not(.has-background),
.wp-block-button__link.is-style-outline:not(.has-background) {
	border: 2px solid #f5f5f5 !important;
}

/* Listen mit Häkchen ----------------------- */

.is-style-checkbox li {
	margin-bottom: 12px;
}

.is-style-checkbox li::before {
	color: #b01736;
}

/* CoBlocks: FAQ, Akkordeon, Feature -------- */

.wp-block-coblocks-faq__title {
	margin-top: 0;
}

.wp-block-coblocks-faq-item__answer a {
	text-decoration: none;
}

.wp-block-coblocks-faq-item__answer a:hover {
	opacity: 0.7;
}

.wp-block-coblocks-accordion-item {
	line-break: strict;
	word-wrap: break-word;
}

.wp-block-coblocks-accordion-item .wp-block-file__button {
	font-size: 14px;
	margin-left: 48px;
	padding: 12px 16px 12px 16px;
}

.wp-block-coblocks-accordion-item .wp-block-file {
	font-size: 14px;
	margin: 12px 0 0 0;
	padding: 16px;
}

.wp-block-coblocks-feature {
	justify-content: inherit;
}


/* -------------------------------------------------------------------------------- */
/*	8. Plugins
/* -------------------------------------------------------------------------------- */


/* Visual Portfolio ------------------------- */

.vp-portfolio__preloader {
	display: none;
}

/* Filter */

.vp-filter select {
	border: 0;
	font-family: 'Readex Pro', sans-serif !important;
	font-weight: 500;
	letter-spacing: 0.1px;
}

.vp-filter__style-minimal .vp-filter__item > * {
	font-size: 16px;
}

.vp-filter__style-minimal a {
	color: #ccc !important;
}

.vp-filter__style-minimal .vp-filter__item-active a,
.vp-filter__style-minimal a:hover {
	color: #424242 !important;
}

/* Einträge */

.vp-portfolio__item-meta h2 {
	margin-top: 6px;
}

.vp-portfolio__item-meta-read-more {
	color: #b01736 !important;
}

.vp-portfolio__item-meta-read-more:hover,
.vp-portfolio__item-meta-title a:hover {
	color: #710e21 !important;
}

/* Sonderfall Seite mit der ID 88345 */

.page-id-88345 .vp-portfolio__item-meta {
	padding: 0;
}

.page-id-88345 .vp-portfolio__item-meta-title {
	color: #666;
	font-size: calc((1.4 - 1) * 1.4vw + 1rem);
	margin-top: 30px;
}

.page-id-88345 .vp-portfolio__items-wrap {
	padding-left: 4vw;
	padding-right: 4vw;
}

/* Cool Timeline ---------------------------- */

.cool-vertical-timeline-body .timeline-content .story-details {
	border-radius: 0;
}

.cool-vertical-timeline-body .timeline-content .story-details p {
	color: #808080;
	font-size: 1rem;
	line-height: 1.4;
}

.story-content h3 {
	font-size: 24px;
	margin: 0 0 16px 0;
	text-align: left;
}

/* Polylang: Sprachauswahl im Footer -------- */

#lang_choice_polylang-2 {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, gray 50%),
		linear-gradient(135deg, gray 50%, transparent 50%),
		linear-gradient(to right, #ccc, #ccc);
	background-position:
		calc(100% - 20px) calc(1.25em + 2px),
		calc(100% - 15px) calc(1.25em + 2px),
		calc(100% - 2.75em) 0.8em;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px, 1px 1.5em;
	border: 0;
	font-family: 'Readex Pro', sans-serif !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	padding: 12.6px 70px 12.6px 23.4px;
}

/* Sonstige --------------------------------- */

.grecaptcha-badge {
	visibility: hidden;
}

.fancybox-button--share {
	display: none;
}


/* -------------------------------------------------------------------------------- */
/*	9. Footer
/* -------------------------------------------------------------------------------- */


.site-footer {
	color: #5f5f5f;
	font-size: 14px;
	list-style: none;
	text-align: left;
}

/* Spalten ---------------------------------- */

.site-footer .wp-block-columns > .wp-block-column {
	flex-grow: 1;
	min-width: 0;
}

/* Desktop: nebeneinander, gleich breit */
@media ( min-width: 782px ) {

	.site-footer .wp-block-columns {
		flex-wrap: nowrap;
	}

	.site-footer .wp-block-columns > .wp-block-column {
		flex-basis: 0;
		flex-grow: 1;
	}

}

/* Mobil: untereinander */
@media ( max-width: 781px ) {

	.site-footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100%;
	}

}

footer .wp-container-2,
footer .wp-container-4 {
	display: block;
	margin-bottom: 32px;
}

footer .wp-container-3 {
	display: block !important;
}

/* Menüs in den Spalten --------------------- */

.footer-menu__title {
	color: #000;
	margin: 0 0 16px 0 !important;
	text-align: left;
	text-transform: uppercase;
}

.bottom-column {
	text-align: left !important;
}

.site-footer input,
ul.bottom-column {
	margin-left: 0;
}

ul.bottom-column li {
	margin-top: 8px;
}

/* Untere Zeile: Copyright, Menü, Sprachauswahl */

.bottom_layer ul,
.bottom_layer p {
	line-height: 22px;
	margin-right: 24px;
	margin-top: 10px;
}

.site-footer p,
ul.bottom-column,
.bottom-nav li {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.8;
	list-style: none;
	text-align: left;
}

ul.bottom-nav {
	margin-left: 0;
}

.bottom-nav ol,
.bottom-nav ul {
	margin-right: 0 !important;
}

.bottom-nav li {
	display: inline;
}

.bottom-nav li:nth-child(n+1) {
	margin-right: 12px;
}

.bottom-nav li:last-child {
	margin-right: 0;
}

.bottom-nav a {
	color: rgba(0, 0, 0, .3);
}

@media screen and ( min-width: 980px ) {

	.bottom_layer {
		align-content: space-between;
		display: flex;
		flex-wrap: wrap;
	}

	.bottom_layer .bottom-nav {
		flex-grow: 1;
	}

	.bottom-nav {
		text-align: center;
	}

}


/* -------------------------------------------------------------------------------- */
/*	10. Responsive
/* -------------------------------------------------------------------------------- */


@media ( max-width: 768px ) {

	.reverse-mobile {
		flex-direction: column-reverse;
	}

}

/* Tablet und großes Smartphone ------------- */

@media only screen and ( min-width: 420px ) and ( max-width: 780px ) {

	.wp-block-columns {
		flex-wrap: nowrap;
	}

	.site-header {
		padding-bottom: 0 !important;
		padding-top: 12px !important;
	}

	.site-header .custom-logo img {
		height: 60px;
	}

	.site-nav {
		margin-top: 60px;
		overflow-x: scroll;
	}

}

/* Ab 780px (Desktop) ----------------------- */

@media only screen and ( min-width: 780px ) {

	.hide_desktop {
		display: none;
	}

	.page-header {
		min-height: 100px;
	}

	.section-inner.thin {
		max-width: 704px;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:first-child) {
		margin-left: var(--wp--style--block-gap, 2.6em);
	}

	.inpage a:hover {
		color: #b01736;
		padding-bottom: 12px;
		padding-top: 12px;
		text-decoration: none;
	}

	.personen p {
		font-size: 16px;
		line-height: 1.4;
		margin: 0 auto;
		text-align: center;
	}

	/* Seitenvorlage "Resume" */

	.resume-template .section-inner.thin {
		max-width: 100%;
	}

	.resume-template .entry-content h1,
	.resume-template .entry-content h2,
	.resume-template .entry-content h3,
	.resume-template .entry-content h4,
	.resume-template .entry-content h5,
	.resume-template .entry-content h6 {
		border-top: 1px solid #000;
		font-size: 24px;
		font-weight: 400;
		margin-top: 80px;
		padding: 50px 920px 0 0;
		text-align: left;
	}

	/* Footer */

	footer h6 {
		margin-top: 0;
	}

	.bottom_layer #sidebar-header {
		text-align: right;
		width: 202px;
	}

}

/* Bis 780px (Mobil) ------------------------ */

@media ( max-width: 780px ) {

	h2 {
		font-size: 28px;
	}

	h3 {
		font-size: 24px;
	}

	h4 {
		font-size: 18px;
	}

	p {
		font-size: 16px;
	}

	ul {
		margin-left: 18px;
	}

	.hide_mobile {
		display: none !important;
	}

	.top-bar {
		display: none;
	}

	nav {
		padding-top: 40px !important;
	}

	/* Seitennavigation mit Sprungmarken */

	#navbar.has-text-align-center {
		text-align: center;
	}

	.inpage a {
		display: block;
		font-size: 14px;
	}

	.inpage a:hover {
		color: #b01736;
		text-decoration: none;
	}

	.inpage.sticky {
		overflow-x: scroll;
	}

	.inpage.sticky a {
		display: inline;
	}

	.inpage.sticky #navbar {
		width: 680px;
	}

	/* Blöcke */

	.wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
		width: auto;
	}

	.wp-block-file {
		display: block !important;
	}

	.wp-block-file a.wp-block-file__button {
		display: block;
		margin-left: 0;
		margin-top: 18px;
	}

	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		margin-top: 18px;
		padding: 18px;
	}

	.personen p {
		font-size: 14px;
		line-height: 1.4;
		text-align: center;
	}

	/* Footer */

	.site-footer {
		margin-top: 80px;
	}

	.wp-container-3 {
		margin-bottom: 32px;
	}

	.wp-container-3 .bottom-column {
		margin-bottom: 21px;
		margin-top: 7px;
	}

	ul.bottom-nav li {
		display: block;
		margin-right: 0 !important;
	}

}
