/*
Theme Name: Ginnatic Astra
Theme URI: https://ginnatic.com
Description: Childtheme fuer Astra mit der Ginnatic-Farbwelt. Gold #A09060 aus dem Logo, warmes Nahschwarz als Gegenspieler, Open Sans als Schrift. Ergaenzt die Astra-Einstellungen um alles, was sich im Customizer nicht sauber setzen laesst.
Author: Ginnatic
Template: astra
Version: 1.0.0
Text Domain: ginnatic-astra
*/

/**
 * FARBEN
 *
 * Alle Werte haengen an Variablen. Willst du den Goldton aendern, reicht
 * eine Zeile hier oben, der Rest zieht nach.
 *
 * Das Gold stammt aus dem Logo, ausgelesen als #A09060. Das alte Theme
 * verwendete #A49468, ein kaum unterscheidbarer Nachbarton. Beides
 * nebeneinander wirkt wie ein Druckfehler, deshalb gilt ab hier nur noch
 * der Logoton, auch im Plugin.
 */

:root {
	--gn-gold: #a09060;
	--gn-gold-dunkel: #857748;
	--gn-gold-hell: #f6f2e7;
	--gn-dunkel: #26231d;
	--gn-dunkel-2: #383327;
	--gn-text: #1a1a1a;
	--gn-leise: #6e6e73;
	--gn-linie: #e4e2dc;
	--gn-flaeche: #f8f7f4;
}

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

body {
	color: var(--gn-text);
}

a {
	color: var(--gn-gold-dunkel);
}

a:hover,
a:focus {
	color: var(--gn-gold);
}

/* Auswahlfarbe, ein Detail, das den Eindruck rundet. */
::selection {
	background: var(--gn-gold);
	color: #fff;
}

/* ================================================================
 * Ueberschriften
 *
 * Kein Gold in Ueberschriften. Gold traegt die Akzente, die Ueberschrift
 * traegt den Text. Beides gleichzeitig macht die Seite unruhig.
 * ============================================================= */

.entry-content h2,
.entry-content h3,
h1.entry-title,
.ast-archive-title {
	color: var(--gn-text);
	letter-spacing: -0.01em;
}

/* Feine Goldlinie unter H2, das Erkennungszeichen der Seite. */
.entry-content h2 {
	position: relative;
	padding-bottom: 0.35em;
	margin-top: 1.8em;
}

.entry-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 2px;
	background: var(--gn-gold);
}

.entry-content h3 {
	margin-top: 1.5em;
	color: #2c2c30;
}

/* ================================================================
 * Schaltflaechen
 * ============================================================= */

.wp-block-button__link,
.ast-button,
button,
input[type="submit"] {
	background: var(--gn-dunkel);
	border: 1px solid var(--gn-dunkel);
	border-radius: 8px;
	color: #e8dfc7;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--gn-gold);
	border-color: var(--gn-gold);
	color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--gn-gold);
	color: var(--gn-gold-dunkel);
}

/* ================================================================
 * Inhaltselemente
 * ============================================================= */

.entry-content blockquote {
	padding: 0.9em 1.2em;
	border: 0;
	border-left: 3px solid var(--gn-gold);
	border-radius: 0 8px 8px 0;
	background: var(--gn-gold-hell);
	font-style: normal;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	border: 1px solid var(--gn-linie);
	border-radius: 8px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.entry-content table th {
	background: var(--gn-dunkel);
	color: #e8dfc7;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-align: left;
}

.entry-content table td,
.entry-content table th {
	border: 0;
	border-bottom: 1px solid #f0efeb;
	padding: 0.7em 0.9em;
}

.entry-content table tr:last-child td {
	border-bottom: 0;
}

.entry-content ul li::marker,
.entry-content ol li::marker {
	color: var(--gn-gold);
}

.entry-content figure figcaption,
.wp-element-caption {
	color: var(--gn-leise);
	font-size: 12.5px;
}

.entry-content hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--gn-linie);
	max-width: 100%;
}

/* ================================================================
 * Beitragsliste und Archive
 * ============================================================= */

.ast-article-post,
.ast-separate-container .ast-article-post {
	border-radius: 10px;
}

.ast-separate-container .ast-article-post:hover {
	box-shadow: 0 10px 24px rgba(38, 35, 29, 0.09);
}

.entry-meta,
.entry-meta * {
	color: var(--gn-leise);
	font-size: 12.5px;
}

.entry-meta a:hover {
	color: var(--gn-gold-dunkel);
}

.ast-taxonomy-container a,
.cat-links a {
	color: var(--gn-gold-dunkel);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

/* ================================================================
 * Kopf und Fuss
 * ============================================================= */

.site-header {
	border-bottom: 1px solid var(--gn-linie);
}

.main-header-menu > .menu-item > .menu-link {
	font-weight: 600;
	letter-spacing: 0.01em;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--gn-gold-dunkel);
}

.site-footer,
.footer-adv,
.ast-small-footer {
	background: var(--gn-dunkel);
	color: #cfcabb;
}

.site-footer a,
.ast-small-footer a {
	color: #e8dfc7;
}

.site-footer a:hover,
.ast-small-footer a:hover {
	color: var(--gn-gold);
}

.site-footer .widget-title {
	color: var(--gn-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ================================================================
 * Seitenleiste
 * ============================================================= */

.widget-title,
.widget .wp-block-heading {
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--gn-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.secondary .widget li {
	border-bottom: 1px solid var(--gn-linie);
	padding: 0.45em 0;
}

.secondary .widget li:last-child {
	border-bottom: 0;
}

/* ================================================================
 * Formulare
 * ============================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
	border: 1px solid var(--gn-linie);
	border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gn-gold);
	box-shadow: 0 0 0 3px rgba(160, 144, 96, 0.18);
	outline: none;
}

/* ================================================================
 * Bruecke zu Ginnatic Core
 *
 * Das Plugin bringt seine Farben selbst mit. Hier werden sie auf dieselben
 * Variablen gehoben, damit eine Aenderung oben im Childtheme auch die
 * Suche, die Haendlertabellen und die Autorenbox erreicht.
 * ============================================================= */

.gs,
.gcbq-block,
.gcbq-kacheln,
.gcbq-rueck,
.gcbq-sieger,
.ga-box {
	--gs-gold: var(--gn-gold);
	--gs-gold-dunkel: var(--gn-gold-dunkel);
	--gs-gold-hell: var(--gn-gold-hell);
	--gs-dunkel: var(--gn-dunkel);
	--gs-dunkel-2: var(--gn-dunkel-2);
	--gs-text: var(--gn-text);
	--gs-leise: var(--gn-leise);
	--gs-linie: var(--gn-linie);
	--gs-flaeche: var(--gn-flaeche);

	--gc-gold: var(--gn-gold);
	--gc-gold-dunkel: var(--gn-gold-dunkel);
	--gc-gold-hell: var(--gn-gold-hell);
	--gc-dunkel: var(--gn-dunkel);
	--gc-text: var(--gn-text);
	--gc-leise: var(--gn-leise);
	--gc-linie: var(--gn-linie);
	--gc-flaeche: var(--gn-flaeche);

	--ga-gold: var(--gn-gold);
	--ga-gold-dunkel: var(--gn-gold-dunkel);
	--ga-text: var(--gn-text);
	--ga-leise: var(--gn-leise);
	--ga-linie: var(--gn-linie);
}

/* Der Steckbrief des Plugins in derselben Handschrift. */
.ginnatic-steckbrief {
	border: 1px solid var(--gn-linie);
	border-radius: 10px;
	background: var(--gn-flaeche);
}

.ginnatic-steckbrief__titel {
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--gn-gold);
	font-size: 1.1em;
}

/* ================================================================
 * Schmale Bildschirme
 * ============================================================= */

@media (max-width: 600px) {
	.entry-content h2 {
		margin-top: 1.4em;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
	}
}
