/* aed-frontend.css */
.aed_leaderboard_wrapper .elementor-shortcode {
	width: 80%;
}

.aed_leaderboard_wrapper {
	width: 100%;
	display: flex;
	justify-content: center!important;
}

.aed-leaderboard {
	width: 100%;
}

.aed-leaderboard table {
    width: 100%;
    margin-top: 10px;
	font-family: "Oswald";
	font-size: 18px;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.aed-leaderboard th,
.aed-leaderboard td {
    padding: 8px;
    text-align: left;
}

.aed-leaderboard th {
    font-weight: bold;
    background: #f9f9f9;
}

.aed-leaderboard tr {
	color: black;
	background: linear-gradient(to bottom, rgba(219,128,55,0.5), rgba(247,183,51,0.5));
	box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

.aed-leaderboard tr td:nth-of-type(1) {
	border-radius: 10px 0px 0px 10px;
}

.aed-leaderboard tr td:nth-of-type(3) {
	border-radius: 0px 10px 10px 0px;
}


.aed-leaderboard tr > td {
	padding: 15px;
	color: black;
  	border: none;
}

.aed-pagination a {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ccc;
    text-decoration: none;
    background: #f9f9f9;
}

.aed-pagination a.active {
    background: #333;
    color: #fff;
}

.aed-leaderboard .aed-search {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.aed-leaderboard .aed-leaderboard-search-form, #aed-search-results {
	width: 75%;
}

.aed-search input {
    padding: 8px;
    width: 70%;
}

.aed-search button {
    padding: 8px 15px;
}

/* Uploadform */
.aed-submission-form {
	background-image: url("/wp-content/uploads/2025/11/defi_league_bg_text.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	padding: 100px 200px 150px 200px;
	font-family: "Oswald";
}

.aed-submission-form form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between
}

.aed-submission-form .aed-form-group {
	width: 48%;
}

.aed-submission-form .aed_location_data {
	width: 100%;
}

.aed-submission-form .aed_data .form-group:nth-of-type(1) {
	width: 100%;
}

.aed-submission-form .aed_data .form-group:nth-of-type(1) div {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.aed-submission-form .aed_data .form-group:nth-of-type(1) div input {
	width: 48%!important;
}

.aed-submission-form  .personal_data h2, .aed-submission-form .aed_data h2 {
	width: 100%;
}

.aed-submission-form  .personal_data, .aed-submission-form .aed_data {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#aed-locate-btn {
	color: black;
	width: 100%;
	background-color: #db8037;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

#aed-locate-btn:hover {
	background-color: black;
	color: white;
}

.aed_location_method {
	width: 100%;
}

.aed-location-method-selector {
	display: flex;
	justify-content: space-between;
}

.aed-location-method-selector label {
	width: 48%;
    background-color: transparent;
	border: 1px solid #db8037;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
    border-radius: 10px;
    text-align: center;
	cursor: pointer;
}

label.selector_active {
	background-color: #db8037;
}

.aed-location-method-selector label input {
	display: none;
}

#aed-address-section {
	width: 100%;
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

#aed-address-section h3 {
	width: 100%;
}

#aed-address-section .aed-form-group {
	width: 32%;
}

.aed-submission-form label, 
.aed-submission-form ::placeholder {
	color: black;
}

.aed-submission-form label{
	margin-bottom: 10px;
}

.aed-submission-form .aed-form-group input, .aed-submission-form .aed-form-group textarea, .aed-submission-form .aed-form-group select {
	background-color: white;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	margin-bottom: 25px;
}

.aed-submission-form #aed_image {
	width: 100%;
}

.aed-submission-form .form-submit {
	width: 100%;
}

/* Foto machen / Foto hochladen: nur auf Touch-Geraeten — am Desktop
   ignoriert der Browser capture, der Kamera-Knopf waere dort eine Luege.
   Die Knoepfe sind Labels und brauchen kein JS. Die Felder werden nicht
   display:none, sonst oeffnet aelteres iOS sie nicht. Das Kamerafeld ist
   immer unsichtbar; das Auswahlfeld nur mit JS, weil erst die Statuszeile
   darunter sagt, dass ein Foto gewaehlt ist. */
.aed-foto-wahl { display: none; }
/* padding/border auf 0: die Feldregel weiter oben blies das 1-px-Feld sonst
   auf 27x23 px auf — ein unsichtbares Klickziel ueber der Ueberschrift.
   pointer-events: none stoert das Label nicht, es loest das Feld direkt aus. */
.aed-submission-form .aed-form-group .aed-foto-kamera {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}
@media (pointer: coarse) {
	.aed-foto-wahl {
		display: flex;
		gap: 10px;
		width: 100%;
		margin-bottom: 10px;
	}
	.aed-form-group.img-upload .aed-foto-wahl .aed-foto-knopf {
		flex: 1;
		width: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		margin-bottom: 0;
		padding: 14px 6px;
		white-space: nowrap;
		border: 1px solid var(--aed-primaer);
		border-radius: 10px;
		font-weight: bold;
		cursor: pointer;
	}
	.aed-foto-icon { font-size: 2em; line-height: 1; }
	.aed-js .aed-form-group.img-upload #aed_image {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		border: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
	}
}

.aed-form-group.img-upload {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.aed-form-group.img-upload label, .aed-form-group.img-upload small, .aed-form-group.img-upload #aed_image {
	width: 100%;
}

.aed-form-group.img-upload #aed_image {
	text-align: center;
	background-color: transparent!important;
	border: 0px;
}

.aed-submission-form #aed-submit-button{
	color: black;
	width: 100%;
	background-color: #db8037;
	border: 0px;
	font-weight:500!important;
	//pointer-events: none;
	margin-top: 25px;
}

.aed-submission-form input[type=submit]:hover{
	color: white;
	background-color: black;
}

.aed-form-group.terms-agreement {
	width: 100%;
	margin-top: 25px;
}

@media (max-width: 1400px) {
	.aed-submission-form {
		padding: 100px 150px 150px 150px;
	}
}

@media (max-width: 1100px) {
	.aed-submission-form {
		background-size: cover;
		padding: 100px 25px 150px 25px;
	}
	.aed-submission-form .aed-form-group {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.aed-leaderboard #aed-search-form {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.aed-submission-form form {
		padding: 0px 5px;
	}
}

.aed-hinweis { background: #FFF8E1; border-left: 4px solid #E0B33C; padding: 10px 12px; margin: 12px 0; color: #5A4500; }
.aed-hinweis p { margin: 0; }

.aed-submission-form {
    --aed-bg: #0A0A0A;
    --aed-flaeche: #151515;
    --aed-flaeche-hoch: #1F1F1F;
    --aed-rand: #2E2E2E;
    --aed-primaer: #DB8037;
    --aed-primaer-gedrueckt: #B8692A;
    --aed-auf-primaer: #0A0A0A;
    --aed-text: #FFFFFF;
    --aed-text-zweit: #B3B3B3;
    --aed-text-still: #7A7A7A;
    --aed-erfolg: #4CAF72;
    --aed-warnung: #E0B33C;
    --aed-fehler: #E05353;

    background: var(--aed-bg);
    color: var(--aed-text);
    padding: 20px;
    border-radius: 14px;
}

.aed-submission-form label,
.aed-submission-form h2,
.aed-submission-form h3,
.aed-submission-form legend { color: var(--aed-text); }

.aed-submission-form small,
.aed-submission-form .method-desc { color: var(--aed-text-zweit); }

.aed-submission-form input[type="text"],
.aed-submission-form input[type="email"],
.aed-submission-form input[type="tel"],
.aed-submission-form input[type="search"],
.aed-submission-form textarea,
.aed-submission-form select {
    background: var(--aed-flaeche-hoch);
    border: 1px solid var(--aed-rand);
    border-radius: 8px;
    color: var(--aed-text);
    /* font: inherit — ein textarea nimmt sonst die Monospace-Schrift des
       Browsers und sieht neben den Eingabefeldern fremd aus. */
    font: inherit;
    line-height: 1.4;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Dieselbe Auswahl wie die aeltere Regel weiter oben (Zeile ~205), die
   Eingabefelder auf weissen Grund und 25 px Abstand setzt. Gleiche
   Spezifitaet, spaetere Stelle — damit gewinnt diese hier, und Textfelder
   sehen aus wie Eingabefelder. */
.aed-submission-form .aed-form-group input,
.aed-submission-form .aed-form-group textarea,
.aed-submission-form .aed-form-group select {
    background-color: var(--aed-flaeche-hoch);
    border: 1px solid var(--aed-rand);
    border-radius: 8px;
    color: var(--aed-text);
    font: inherit;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 10px 12px;
}

.aed-submission-form textarea { resize: vertical; min-height: 96px; }

/* In den Abschnitten steht jedes Feld allein ueber die volle Breite; nur was
   ausdruecklich gepaart ist, teilt sich eine Zeile. Die alte 48-%-Regel
   passte zum frueheren, freien Aufbau. */
.aed-schritt-inhalt > .aed-form-group { width: 100%; }

.aed-submission-form .aed-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95em;
}

.aed-submission-form input::placeholder,
.aed-submission-form textarea::placeholder { color: var(--aed-text-still); }

.aed-submission-form input:focus,
.aed-submission-form textarea:focus {
    outline: none;
    border-color: var(--aed-primaer);
}

.aed-submission-form button,
.aed-submission-form input[type="submit"] {
    background: var(--aed-primaer);
    color: var(--aed-auf-primaer);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

.aed-submission-form button:hover { background: #E8944B; }

.aed-submission-form #aed-locate-btn {
    background: var(--aed-text);
    color: var(--aed-bg);
    border: 1px solid var(--aed-text);
}

.aed-submission-form #aed-locate-btn:hover { background: #E6E6E6; }
.aed-submission-form #aed-locate-btn:active { background: #CCCCCC; }

.aed-submission-form #geo-status { color: var(--aed-text-zweit); }

.aed-submission-form .aed-location-method-selector label {
    background-color: var(--aed-flaeche-hoch);
    color: var(--aed-text);
    border-color: var(--aed-rand);
}

.aed-submission-form .aed-location-method-selector label.selector_active {
    background-color: var(--aed-primaer);
    color: var(--aed-auf-primaer);
    border-color: var(--aed-primaer);
}

.aed-submission-form .aed-location-method-selector label.selector_active .method-desc {
    color: var(--aed-auf-primaer);
}

@media (max-width: 600px) {
    .aed-submission-form .aed-location-method-selector { flex-wrap: wrap; gap: 10px; }
    .aed-submission-form .aed-location-method-selector label { width: 100%; padding: 14px; }
}
.aed-submission-form button:active { background: var(--aed-primaer-gedrueckt); }
.aed-submission-form button:disabled { opacity: 0.5; cursor: default; }

/* --- Die fuenf Abschnitte --- */
.aed-schritt {
    background: var(--aed-flaeche);
    border: 1px solid var(--aed-rand);
    border-radius: 12px;
    margin: 0 0 12px;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.aed-schritt > legend {
    float: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1.3;
}

.aed-schritt-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aed-rand);
    color: var(--aed-text-zweit);
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}

.aed-schritt-erledigt .aed-schritt-nr {
    background: var(--aed-primaer);
    color: var(--aed-auf-primaer);
}

.aed-schritt-offen { border-color: var(--aed-primaer); }
.aed-schritt-inhalt { clear: both; padding: 0 18px 18px; }
.aed-schritt-inhalt .aed-form-group { margin-bottom: 14px; }

.aed-js .aed-schritt:not(.aed-schritt-offen) > legend { cursor: pointer; }
.aed-js .aed-schritt:not(.aed-schritt-offen) .aed-schritt-inhalt { display: none; }

.aed-schritt-weiter-zeile { margin: 18px 0 0; }
.aed-schritt-weiter { width: 100%; }

/* --- Die Karte: das groesste Element des Formulars --- */
.aed-melden-map {
    height: 380px;
    margin: 14px 0 10px;
    border: 1px solid var(--aed-rand);
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .aed-melden-map { height: 300px; }
}

.aed-melden-genauigkeit,
.aed-melden-hinweis {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: var(--aed-text-zweit);
}

.aed-melden-genauigkeit { font-weight: 600; color: var(--aed-text); }

/* --- Geraete in der Naehe --- */
.aed-nachbarschaft-hinweis { margin: 0 0 10px; color: var(--aed-text-zweit); }

.aed-nachbarn { list-style: none; margin: 10px 0; padding: 0; }

.aed-nachbarn li {
    background: var(--aed-flaeche-hoch);
    border: 1px solid var(--aed-rand);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.aed-nachbar-kopf { font-weight: 700; }

.aed-nachbar-adresse {
    color: var(--aed-text-zweit);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.aed-nachbar-waehlen {
    background: transparent !important;
    border: 1px solid var(--aed-erfolg) !important;
    color: var(--aed-erfolg) !important;
    padding: 8px 14px !important;
}

.aed-nachbar-waehlen.ist-gewaehlt {
    background: var(--aed-erfolg) !important;
    color: var(--aed-auf-primaer) !important;
}

.aed-nachbar-keiner {
    border-color: var(--aed-rand) !important;
    color: var(--aed-text-zweit) !important;
}

/* --- Bild-Upload --- */
.aed-submission-form .img-upload {
    background: var(--aed-flaeche-hoch) !important;
    border: 2px dashed var(--aed-rand) !important;
    border-radius: 12px;
}

/* --- Meldungen --- */
.aed-submission-form .aed-hinweis { color: var(--aed-warnung); }
#aed-form-error-container { border-color: var(--aed-fehler) !important; color: var(--aed-fehler) !important; }

.aed-adresse-uebernehmen { width: 100% !important; }
.aed-adresse-uebernehmen button { width: 100%; }

@media (max-width: 600px) {
    .aed-submission-form #aed-address-section .aed-form-group { width: 100%; }
    .aed-submission-form #aed-geodata-section .aed-form-group { width: 100%; }
}

.aed-feld-paar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.aed-feld-paar .aed-form-group { width: 100%; margin-bottom: 14px; }

@media (max-width: 600px) {
    .aed-feld-paar { grid-template-columns: 1fr; gap: 0; }
}

/* --- Foto-Status und Sende-Hinweis (1.7.27) --- */
.aed-foto-status { display: block; width: 100%; margin-top: 8px; color: var(--aed-text-zweit); min-height: 1.2em; }

.aed-sende-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.aed-sende-overlay.ist-aktiv { display: flex; }
.aed-sende-karte {
    background: var(--aed-flaeche-hoch, #1f1f1f);
    color: var(--aed-text, #fff);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    max-width: 320px;
}
.aed-sende-karte p { margin: 14px 0 6px; font-weight: 700; font-size: 1.1em; }
.aed-sende-karte small { color: var(--aed-text-zweit, #b3b3b3); }
.aed-sende-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--aed-primaer, #db8037);
    border-radius: 50%;
    animation: aed-drehen 0.9s linear infinite;
}
@keyframes aed-drehen { to { transform: rotate(360deg); } }
