/*
Theme Name: WaTheme SCC Shop
Theme URI: 
Author: wasiwarez
Author URI: 
Description: Theme speziell für den Shop von SCC-Certification GmbH
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 1.4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: watheme
Text Domain: watheme-scc-shop
Tags:
*/

/*
   Farben, Schriften und Abstaende stehen in theme.json. Hier landet nur, was sich dort
   nicht ausdruecken laesst - Formularfelder, fremdes Markup aus WooCommerce und Gutena
   Tabs, Hilfsklassen aus dem Seiteninhalt.

   Uebernommen aus customizr-child/style.css (Stand 18.10.2026). Was zur Shop-Funktion
   gehoert (Bestellformulare, Fehlermeldungen, SWPM-Anmeldeformular, Bestelluebersicht),
   steht im Plugin "Wasi SCC Shop" (assets/css/shop.css), nicht hier.
*/

/* Allgemein */
html {
	scroll-behavior:smooth;
}

.wp-block-separator {
	border:none;
	border-bottom:1px var(--wp--preset--color--scc-linien-1) solid;
}

/* Innenbreite fuer Abschnitte im Seiteninhalt - kommt dort rund 170-mal vor */
.wwz-inner {
	width:100%;
	max-width:1040px;
	margin-left:auto;
	margin-right:auto;
}

/* Formularfelder
   input, select und textarea sind ueber theme.json nicht erreichbar. Entscheidend ist
   font: inherit - Formularfelder erben Schriftart und -groesse nicht, der Browser setzt
   sonst 13,33 px Arial (Lehre aus simply-learn). */
input,
select,
textarea {
	font:inherit;
	padding:5px;
	border-radius:3px;
	border:1px solid #212638;
}

input.woocommerce-form__input-checkbox {
	background:#ffffff;
	border:1px solid #5a5a5a;
}

/* Schaltflaechen des Plugins "Wasi SCC Shop" - "Angebot generieren" (<button>) und
   "Formular leeren" (<a>) in den Bestellformularen, die Knoepfe in den Hinweisen der
   Buchungsseite. Eine Regel fuer beide Elemente.

   Schrift und Groesse stehen ausdruecklich dabei: Ein <button> erbt sie nicht (der
   Browser setzt 13,33 px Arial), ein <a> bekaeme sie aus der Link-Gestaltung in
   theme.json. Bis zum 23.10.2026 traf den <button> zusaetzlich eine allgemeine Regel
   fuer button[type="submit"], die schwerer wog als diese.

   Blockschaltflaechen und die Knoepfe von WooCommerce (Klasse wp-element-button)
   gestaltet theme.json (elements.button). */
.wwz-button,
button,
input[type="button"],
input[type="submit"] {
	display:inline-block;
	background:var(--wp--preset--color--watheme-primary);
	color:var(--wp--preset--color--watheme-light);
	font-family:inherit;
	font-size:var(--wp--preset--font-size--medium);
	line-height:1.2em;
	padding:1em;
	margin:10px;
	border:none;
	border-radius:0px;
	text-decoration:none;
	text-transform:none;
	letter-spacing:initial;
	vertical-align:initial;
	cursor:pointer;
}

.wwz-button:hover,
.wwz-button:focus,
.wwz-button:active {
	background:var(--wp--preset--color--watheme-primary-hover);
	color:var(--wp--preset--color--watheme-light);
}

/* Tabs - die drei Bestellformulare (Body-Klasse "tabbed" vergibt wasitools)

   Unter Customizr verschwand der Seitentitel, und die Reiter sassen auf dem oberen
   Rand eines weissen Kastens (#main-wrapper mit margin-top:-41px). Der Titel ist hier
   uebernommen, den Kasten gestaltest du neu. */

.gutena-tabs-block.wp-block-gutena-tabs {
	margin-top:-41px;
}
.gutena-tabs-block > .gutena-tabs-tab li {
	line-height:20px;
}

.gutena-tabs-block > .gutena-tabs-tab > .gutena-tab-title.active {
	border-style:solid solid none solid;
	border-width:1px;
	border-color:var(--wp--preset--color--scc-linien-1);
	background:#ffffff;
}

.gutena-tabs-block > .gutena-tabs-tab > .gutena-tab-title.inactive {
	border-style:none none none none;
	border-width:1px;
	border-color:var(--wp--preset--color--scc-linien-1);
	background:none;
}

.gutena-tabs-block > .gutena-tabs-content > .gutena-tab-block {
	border:none;
}

@media screen and (max-width:768px) {
	.gutena-tabs-block > .gutena-tabs-tab {
		border-bottom:1px var(--wp--preset--color--scc-linien-1) solid;
	}
	.gutena-tabs-block > .gutena-tabs-tab li {
		margin:5px;
	}
	.gutena-tabs-block > .gutena-tabs-tab > .gutena-tab-title.active {
		font-weight:bold;
		border-style:solid solid solid solid;
	}
}

/* Kasse: Auftragnehmer/Auftraggeber untereinander statt nebeneinander */
.woocommerce .woocommerce-checkout .col2-set .col-1,
.woocommerce .woocommerce-checkout .col2-set .col-2 {
	width:100% !important;
}

.woocommerce .woocommerce-checkout .col2-set .col-1 {
	margin-bottom:30px;
}

/* Navigation: Startseite, Mein Konto und Abmelden als Symbol

   Die Klassen traegt der jeweilige Navigations-Link im Feld "Zusaetzliche CSS-Klasse(n)":
   scc-home, scc-konto, scc-logout - dieselben Namen wie im alten Customizr-Menue.
   Die Schrift bringt WaTheme lokal mit (Font Awesome 7, Handle watheme-fontawesome).
   Vorher kam sie vom CDN des Font-Awesome-Plugins und stand erst nach der Einwilligung
   im Cookie-Banner zur Verfuegung.

   .wp-block-navigation-item__content statt a: Ein Menuepunkt mit Untermenue (Mein Konto)
   wird je nach Einstellung des Blocks als <a> oder als <button> ausgegeben.

   Der Text wird ausgeblendet, wie im alten Menue. */
.wp-block-navigation-item.scc-home > .wp-block-navigation-item__content::before,
.wp-block-navigation-item.scc-konto > .wp-block-navigation-item__content::before,
.wp-block-navigation-item.scc-logout > .wp-block-navigation-item__content::before {
	font-family:"Font Awesome 7 Free";
	font-weight:900;
}

.wp-block-navigation-item.scc-home > .wp-block-navigation-item__content::before {
	content:"\f015";
}

.wp-block-navigation-item.scc-konto > .wp-block-navigation-item__content::before {
	content:"\f007";
}

.wp-block-navigation-item.scc-logout > .wp-block-navigation-item__content::before {
	content:"\f2f5";
}

.wp-block-navigation-item.scc-home > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.wp-block-navigation-item.scc-konto > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.wp-block-navigation-item.scc-logout > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	display:none;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	z-index:10;
}

/* Video Player */
.wp-block-presto-player-reusable-edit > figure,
.wp-block-presto-player-reusable-edit > p {
	margin:0px;
}