/* Allgemeine Stile */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	background-color: rgb(250, 250, 247);
	color: #333333;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	font-size: 1rem;
}

.container {
	background-color: #ffffff;
	padding: 0.75rem 1.75rem 1.75rem 1.75rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-width: 400px;
	width: 100%;
	text-align: left;

}

h2 {
	margin-bottom: 1.7rem;
	color:  rgb(0,145,0);
}
p {
	line-height: 155%;
}

p span {
	font-style: italic;
}
label {
	display: block;
	text-align: left;
	margin-bottom: 0.5rem;	
	font-weight: 400;
}


input[type="url"],
input[type="text"] {
	padding: 0.75rem;
	margin-bottom: 1rem;
	border: 1px solid #cccccc;
	border-radius: 2px;
	font-size: 1rem;
}

input[type="url"] {
	width: 93%;

}

input[type="text"] {
	width:58%;
}

/* Fokus-Effekt für Input-Felder */
input[type="url"]:focus,
input[type="text"]:focus {
	outline: 2px solid rgb(0,145,0); /* Grüne Umrandung */
	border-color: rgb(0,145,0); /* Optionale Anpassung der Border */
	box-shadow: 0 0 5px rgba(0, 145, 0, 0.5); /* Weicher grüner Glow-Effekt */
	transition: all 0.2s ease-in-out;
}


span.custom_url {
	/* width: calc(20% - 2rem); */
	font-weight: 800;
	float: left;
	margin-right: 15px;
	line-height: 42px;
}

.row {
	clear: both;
	overflow: auto;
}
.custom_input {
float: left;
width: 70%;
}

.custom-slug span {
	margin-right: 0.5rem;
	color: #555555;
	float: left;
}

/* Bereich <div class="form"> wird nach dem Klicken ausgegraut */
.form.disabled {
	opacity: 0.5;
	pointer-events: none;
	transition: all 0.3s ease-in-out;
}

/* Fehlertext unter der URL */
.error-message {
	color: red;
	font-size: 0.9rem;
	margin-top: 5px;
	display: none;
}

/* Fehlerhafter Input rot umranden */
input.error-border {
	border-color: red;
	outline: 2px solid red;
	box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Button „Jetzt verkürzen“ initial */
button.shorten-button {
	background-color: white;
	color: rgb(0,145,0);
	border: 2px solid rgb(0,145,0);
	padding: 0.75rem 1.5rem;
	border-radius: 2px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* Hover für „Jetzt verkürzen“ → Dunkelgrau */
button.shorten-button:hover {
	border-color: #555555;
	color: #555555;
}

/* Button „Jetzt verkürzen“ wird nach dem Klicken deaktiviert */
button.shorten-button.disabled {
	border: none;
	background-color: #e0e0e0;
	color: #888888;
	cursor: not-allowed;
}

/* Nachricht nach dem Kopieren */
.copy-success {
	color: rgb(0,145,0);
	font-weight: bold;
	margin-top: 10px;
}

/* Link zum Neuladen */
.reload-link {
	display: block;
	margin-top: 10px;
	color: #777;
	text-decoration: none;
	font-size: 0.9rem;
}

.reload-link:hover {
	color: black;
	text-decoration: underline;
}

/* Button „In Zwischenablage kopieren“ */
button.copy-button {
	border: 2px solid rgb(0,145,0);
	color: rgb(0,145,0);
	background-color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 2px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* Hover für „In Zwischenablage kopieren“ */
button.copy-button:hover {
	border-color: #555555;
	color: #555555;
}



/* Long-URL-Eingabefeld soll beim Laden fokussiert sein */
input[type="url"]:focus {
	outline: 2px solid rgb(0,145,0);
	border-color: rgb(0,145,0);
	box-shadow: 0 0 5px rgba(0, 145, 0, 0.5);
	transition: all 0.2s ease-in-out;
}


.result {
	margin-top: 1.75rem;
	border-top: 1px solid rgb(0,145,0);
}

.result div {
	padding: 1.75rem 0rem 1.75rem;
}
.result p {
	margin-bottom: 0.75rem;
}

.shortUrl {
	color: rgb(0,145,0);
	padding-left: 5px;
	font-weight: 800;
}

abbr[title] {
	border-bottom: 1px dotted gray;
}

@media (max-width: 480px) {
	.container {
		padding: 1rem;
	}

	input[type="url"] {
		width: calc(100% - 1rem);
	}
}

.traffic-chart-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.traffic-chart {
	display: block;
	height: 17px;
	max-height: 17px;
	max-width: 220px;
}

.traffic-chart polyline {
	fill: none;
	stroke: rgb(0,145,0);
	stroke-width: 1.3;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.traffic-chart circle {
	fill: rgb(0,145,0);
}
