/*
Theme Name: Crazy Ties BB Theme
Author: Silvio Mummert
Description: Ein speziell für die Crazy Ties Big Band entwickeltes Theme.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: crazy-ties-bb
*/

/**
* Von Wordpress erzwungener Innenabstand im Kopfbereich entfernen. 
*/
header div:where(.wp-block-group.has-background), .ctbb-content-frame {

	padding: 0;
}

/**
 * Maximalbreite des Inhalts.
 */
.ctbb-content-max-width {

	max-width: 1280px;
}

.ctbb-content-2-3-max-width {
	
	max-width: calc(854px - 2em);
}

.ctbb-content-1-3-max-width {
	
	max-width: 426px;
}

/**
* Kein Abstand zwischen Kopfbereich und Inhalt
*/
header :where(.wp-block-columns) {

	margin-bottom: 0;
}

header .ctbb-title-image-frame {

	padding-left: 8vw !important;
	padding-right: 8vw !important;
}

.ctbb-content-frame {

	padding-top: 0 !important;
}

.ctbb-content-frame > .wp-block-columns {

	row-gap: 0 !important;
}

/**
* Das Menü etwas anpassen.
*/
.wp-block-navigation__responsive-container .wp-block-navigation-item__label {

	font-size: 1.5em !important;
}

header nav * {

	font-family: var(--wp--preset--font-family--holtwood-one-sc) !important;
}

.wp-block-navigation__responsive-container {

	padding-right: 1.5em !important;
}

.wp-block-navigation__submenu-container {

	padding-top: 0 !important;
	padding-right: 0 !important;
	padding-bottom: .4em !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {

	padding-right: 1.5em !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__label {

	font-size: 1.1em !important;

	color: #cccccc !important;
	font-weight: normal !important;
}

.wp-block-navigation__submenu-container a[href="#"] .wp-block-navigation-item__label {

	color: #777777 !important;
}

/**
 * Bei kleineren Displays
 * Elemente im Kopfbereich kleiner
 * Links im Fussbereich umbrechen
 */
@media (max-width: 600px) {

	header .custom-logo {
		width: 40px !important;
		height: 40px !important;
	}

	header .ctbb-title-header h2 {

		font-size: 2em !important;
	}
	
	body footer .wp-block-group {
		
		display: block;
	}
	
	body footer .wp-block-group p {
		
		margin-bottom: .5em;
	}
}

/**
 * Gästebuch
 */
.gwolle-gb .gb-entry br, .gwolle-gb .gwolle-gb-total {
	
	display: none;
}

.gwolle-gb .gb-entry .gb-author-info .gb-datetime {
	
	font-style: italic;
	font-size: small;
}

.gwolle-gb .gb-entry article > * {
	
	margin-bottom: .5em;
}

.gwolle-gb .gwolle-gb-write h3 {
	
	font-family: Roboto;
}

.gwolle-gb .gwolle-gb-write p {

	margin-bottom: 0;
}

.gwolle-gb .gwolle-gb-write .clearBoth {
	
	margin: 0;
	padding: 0;
	height: 0;
}

/**
* Stile für die Crazy Ties Überschriften
*/
h2.ctbb-title-header a {

	font-family: "Hollywood Hills";
	text-decoration: none;
	font-size: inherit;
	color: inherit;
}

h2.cttb-header {

	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.ctbb-color-green {

	color: #4cd917;
}

.ctbb-color-orange {

	color: #ff6600;
}

.ctbb-color-red {

	color: #ff0000;
}

.ctbb-color-blue {

	color: #00ccff;
}

.ctbb-news .wp-block-post-title {

	font-family: Roboto;
	font-size: 1em !important;
	margin-bottom: .1em;
}

/**
* Anpassungen an der Download Liste
*/
ul.downloadlist-list li {

	margin-bottom: 1em;
	font-style: italic;
}

ul.downloadlist-list li::before {

	font-style: normal;
	font-size: 1.5em;
}

ul.downloadlist-list li a {

	font-style: normal;
}

/**
* Formularelemente
*/
.ctbb-content-frame input, .ctbb-content-frame textarea {

	background-color: rgba(232, 232, 232 ,0.2);
	border: 1px solid rgba(232, 232, 232 ,0.35);
	color: #E8E8E8;
	padding: 10px 14px;
	border-radius: 2px;
	box-shadow: 0 3px 3px -2px rgba(15, 15, 15 , 1);
	cursor: pointer;
	transition: transform .1s,box-shadow .2s,border .2s;
	font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
	font-weight: normal;
	font-style: normal;
	line-height: 1.4;
}

.ctbb-content-frame .responsive-form {

	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ctbb-content-frame .responsive-form p {

	margin-bottom: 0 !important;
}

/* Mobile-Standard: Label über Feld */
.ctbb-content-frame .form-row {

	display: flex;
	flex-direction: column;
}

.ctbb-content-frame .form-row label {
	
	font-weight: normal; /* Standard wie in deinem Original */
	margin-bottom: 0.4rem;
	line-height: 1.4;
	display: inline-block;
	width: 200px;
}

.ctbb-content-frame .form-field {

	width: 100%;
}

.ctbb-content-frame .form-field input:not([type="submit"]),
.ctbb-content-frame .form-field textarea {

	display: inline-block !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

/* Submit-Button einrücken */
.ctbb-content-frame .form-row.submit-row .form-field {

	/*margin-left: 200px;*/
	text-align: left;
}

/* Desktop-Ansicht ab 600px: Label links, Felder sauber untereinander */
@media (min-width: 600px) {
	.ctbb-content-frame .form-row {

		flex-direction: row;
		align-items: center;
	}

	.ctbb-content-frame .form-row label {

		flex: 0 0 200px;     /* feste Spaltenbreite */
		max-width: 200px;
		margin-bottom: 0;
		text-align: left;
		padding-right: 1rem;
	}

	.ctbb-content-frame .form-field {

		flex: 0 0 400px;
		max-width: 400px;
	}
}