/*
 Theme Name:   Divi Child
 Theme URI:    https://omasforfuture.de
 Description:  Child Theme für Divi
 Author:       Juergen Junker
 Author URI:   https://omasforfuture.de
 Template:     Divi
 Version:      1.0.0
*/


/** 
 *   VARIABLEN
 */

:root {
	/*--main-font: 'BarrierefreiSans', Verdana, sans-serif;*/
	--main-font: Verdana, sans-serif;
	--light-green: #93c13d;
	--dark-green-1: #4C7A00;
	--dark-green-2: #5c7a52;
	--dark-blue: #0071BC;
	--dark-grey: #666666;
	--light-blue: #20A0DB;
}



/* Hier kommen unsere eigenen CSS-Regeln rein */
.gd-rating-background {
	display: none;
}

#quizflipboxen .flip_card {
	min-height: 1000px;
}

.single-post .et-l.et-l--header {
	display: none;
}


.single-post .uwp_widget_author_box {
	display: none;
}

.geodir-pos_navigation {
	display: none !important;
}

.display-posts-listing .listing-item {
	margin-bottom: 20px;
}

.comments-number {
	display: none;
}

.wp-block-geodirectory-geodir-widget-post-images .embed-item-cover-xy {
	object-fit: contain !important;
}

.geodir-all-link.btn.btn-outline-primary {
	display: none !important;
}

.page-id-59 .et_pb_section.et_pb_section_0.et_section_regular {
	padding-top: 0% !important;
}

.archive.post-type-archive #et-boc .et-l .et_pb_row {
	width: 100%;
	max-width: 100%;
}

.geodir_location_listing .geodir-images-image img {
	height: auto !important;

}

.gd_place .et_pb_section.et_pb_section_0.et_section_regular {
	padding-top: 0px !important;

}

/* .gd_place .geodir-images  {
	max-height:40vh !important;
}

.gd_place .geodir-images img {
	max-height:40vh !important;
} */



.search-results #et-boc .et-l .et_pb_row {

	width: 100% !important;
	max-width: 100% !important;
}

.gd-list-favorite {
	display: none;
}

.modal-backdrop {
	top: unset !important;
}

#gd-image-meta-input .modal-dialog {

	margin-top: 30vh !important;
}

#logo {
	margin-bottom: -20px;
}

.et_pb_module.et_pb_fullwidth_header.et_pb_fullwidth_header_0.et_pb_text_align_center.et_pb_bg_layout_dark {
	background-color: var(--dark-blue) !important;
}

#pressetabelle .et_pb_with_border {
	border: none;
}

.geodir-map-cat-filter-wrap {
	display: none !important;
}

.form-group.row.aui-conditional-field {
	display: none;
}

@media screen and (min-width: 981px) {

	#page-container .sub-menu,
	#page-container .sub-menu a {
		/*width: 200px !important;
		font-size: 13px !important;
		font-weight: lighter !important;*/
		min-width: 300px !important;
	}
}

.wpcf7 input[type="submit"] {
	background-color: white !important;
	border: none !important;
	color: black !important;
	padding: 15px 32px !important;
	border-radius: 12px !important;
	text-align: center !important;
	text-decoration: none !important;
	display: inline-block !important;
	font-size: 32px !important;
	cursor: pointer !important;
}

/* Anpasssungen mit Stefan */

/**
 *   TYPOGRAPHIE
 */

/* Barrierefreier Font */
/*@font-face {
	font-family: BarrierefreiSans;
	src: url('fonts/BarrierefreiSans-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: BarrierefreiSans;
	src: url('fonts/BarrierefreiSans-Bold.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}*/

/* Anwendung im Theme */
body,
p,
span,
a,
text {
	font-family: var(--main-font);
}

a,
abbr,
acronym,
address,
applet,
b,
big,
blockquote,
body,
center,
cite,
code,
dd,
del,
dfn,
div,
dl,
dt,
em,
fieldset,
font,
form,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
object,
ol,
p,
pre,
q,
s,
samp,
small,
span,
strike,
strong,
sub,
sup,
tt,
u,
ul,
var {
	font-size: 16px;
	line-height: 140%;
}

/* Silbentrennung an */
body {
	hyphens: auto;
}

.keine-silbentrennung {
	hyphens: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--main-font);
	font-weight: 600 !important;
	line-height: 120%;
}

/**
 *   MENÜ
 */

/* Hauptmenü mit Unterstrich bei Hover, nicht aber die Submenüs */
.et_pb_menu_1_tb_header.et_pb_menu ul li:hover>a {
	font-size: 20px !important;
	border-bottom: 1px solid white;
}

.et_pb_menu_1_tb_header.et_pb_menu .current-menu-item {
	color: white;
	border-bottom: 1px solid white;
}

.et_pb_menu_1_tb_header.et_pb_menu ul li>a {
	border-bottom: 1px solid var(--dark-green-1);
}

.et_pb_menu_1_tb_header.et_pb_menu ul.sub-menu li>a,
.et_pb_menu_1_tb_header.et_pb_menu ul.sub-menu li:hover>a {
	border-bottom: none;
}

.et_pb_menu .et_pb_menu__menu>nav>ul>li {
    padding-left: 0;
    padding-right: 0;
    margin-left: 11px;
    margin-right: 11px;
}

ul.sub-menu {
	border: 1px solid white !important;
}

.nav li li {
	padding: 0;
}

/* Links immer unterstrichen */
a,
#menu-sub-menu .current-menu-item a {
	text-decoration: underline;
}

/**
 *   LINKS & BUTTONS
 */

/* ausser in Buttons */
a.et_pb_button,
a.et_pb_button_0,
.et_pb_team_member_description {
	text-decoration: none;
	font-family: var(--main-font) !important;
}

.et_pb_module_header {
	text-decoration: underline;
}

/* Elemente ohne Unterstriche */
a.et_pb_video_play,
.et_pb_fullwidth_post_slider_0 .et-pb-slider-arrows .et-pb-arrow-prev,
.et_pb_fullwidth_post_slider_0 .et-pb-slider-arrows .et-pb-arrow-next {
	text-decoration: none;
}

.et_pb_button {
	font-family: inherit !important;
}

/* Blauer Button */
a.et_pb_button.et_pb_button_1.button-blue,
a.et_pb_button.et_pb_button_2_tb_header.button-blue {
	background-color: var(--dark-blue);
	color: white;
	border-color: white;
}

a.et_pb_button.et_pb_button_1.button-blue:hover,
a.et_pb_button.et_pb_button_2_tb_header.button-blue:hover {
	background-color: var(--dark-green-1);
	color: white;
	border-color: white;
}


/**
 *   Barrierefreiheit: Tab-Fokus
 */

/* Stellt sicher, dass der Rahmen nur bei Tastaturnutzung erscheint */
:focus-visible {
	outline: 2px solid #cccccc !important;
	/* Hellgrau */
	outline-offset: 2px;
	/* Ein kleiner Abstand zum Element sieht oft besser aus */
}

/* Fallback für ältere Browser, die focus-visible nicht kennen (optional) */
:focus {
	outline: 2px solid #cccccc;
	outline-offset: 2px;
}

/* Entfernt den Rahmen, wenn mit der MOUSE geklickt wird (modern) */
:focus:not(:focus-visible) {
	outline: none !important;
}

/* Macht das Submenü sichtbar, wenn das Elternelement den Fokus hat */
.et_pb_menu li.menu-item-has-children:focus-within>.sub-menu,
.et_pb_fullwidth_menu li.menu-item-has-children:focus-within>.sub-menu {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;

	/* Optional: Damit es über anderen Inhalten schwebt */
	z-index: 9999;

	/* Optional: Die Standard-Divi-Animation entfernen, damit es sofort da ist */
	animation: none !important;
}

/* Visuelles Feedback für die Links im Submenü selbst */
.et_pb_menu li li a:focus,
.et_pb_fullwidth_menu li li a:focus {
	background-color: #f0f0f0;
	/* Hellgrau zur Hervorhebung */
	color: #000000 !important;
	/* Textfarbe zur Sicherheit */
}

li.menu-item.menu-item-type-post_type.menu-item-object-page a:focus {
	background-color: var(--dark-blue);
	color: white !important;
}

/* 1. Der Link ist standardmäßig KOMPLETT unsichtbar (aber für Screenreader da) */
.skip-to-content-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	/* Das ist der Trick: Er wird auf 0 Pixel zugeschnitten */
	white-space: nowrap;
	/* Verhindert Umbrüche */
	border: 0;
	z-index: 999999;
	/* Immer ganz oben */
}

/* 2. Nur wenn er FOKUS bekommt (Tastatur), wird er sichtbar */
.skip-to-content-link:focus {
	width: auto;
	height: auto;
	padding: 15px 25px;
	margin: 10px;
	clip: auto;
	/* Zuschneiden aufheben */
	background-color: #ffffff;
	/* Weißer Hintergrund */
	color: #333333;
	/* Dunkler Text */
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	/* Kleiner Schatten */
	border-radius: 4px;
	top: 0;
	left: 0;
	outline: 3px solid #2ea3f2;
	/* Blauer Fokus-Rahmen für Sichtbarkeit */
}

/* Versteckt den Skip-Link auf Handys und Tablets komplett */
@media only screen and (max-width: 980px) {
	.skip-to-content-link {
		display: none !important;
	}
}
