/* ============================================================
   Juristische Recherche – landing page styles
   Hand-written from the original Svelte components
   (Menu / LandingComponent / SearchBoxLarge / MicButton).
   Palette:  purple #6658ea · ink #1b1642 · muted #575a7b
   ============================================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-y: scroll;
	color: #1b1642;
	background: #fff;
	font-family: 'DM Sans', sans-serif;
}

/* ── Top menu ─────────────────────────────────────────────── */
.menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2em;
	padding: 0.8em 2em 0 0.8em;
}
.menu a {
	color: #737373;
	text-decoration: none;
	letter-spacing: 2px;
	padding-bottom: 2px;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.menu a:hover {
	color: #5148d8;
	border-bottom-color: #5148d8;
	transform: translateY(-1px);
}

/* ── Page column ──────────────────────────────────────────── */
main {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: 3rem;
	padding: 0 1rem 6rem;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
	display: inline-block;
	margin-bottom: 0.5rem;
}
.logo img {
	width: 30vw;
	min-width: 200px;
	height: auto;
	vertical-align: middle;
}

/* ── Headline ─────────────────────────────────────────────── */
h1 {
	margin: 1.5rem 0 3rem;
	font-weight: 500;
	font-size: 2.10938rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
@media (min-width: 768px) {
	h1 {
		font-size: 2.8125rem;
	}
}
h1 span {
	/* warm underline behind "ChatGPT" */
	background: linear-gradient(90deg, rgba(245, 192, 112, 0.4), rgba(245, 192, 112, 0.4))
		repeat-x left 1em / 1em 0.15em;
}

/* ── Search form ──────────────────────────────────────────── */
form {
	width: 83%;
	max-width: 650px;
	margin: 0 auto;
}

.input-group {
	display: flex;
	align-items: center;
	position: relative;
	background: #fff;
	border-radius: 0.5rem 0 0.5rem 0;
	border-top: 4px solid;
	/* signature multicolor top edge */
	border-image: linear-gradient(
			90deg,
			#575a7b,
			#575a7b 20%,
			#f9655b 0,
			#f9655b 40%,
			#f5c070 0,
			#f5c070 60%,
			#6658ea 0,
			#6658ea 80%,
			#fcc 0
		)
		1;
	box-shadow: 0 0 6px rgba(27, 22, 66, 0.03), 0 14px 24px rgba(27, 22, 66, 0.06);
}

#q {
	flex: 1 1 auto;
	min-width: 0;
	height: 82px;
	padding: 0.75rem 1.25rem;
	border: 0;
	outline: none !important;
	resize: none;
	background: #fff;
	color: #1b1642;
	font: inherit;
	font-size: 1.125rem;
	line-height: 1.6;
}
#q::placeholder {
	color: #575a7b;
	opacity: 1;
}

/* Round microphone button — scoped so it never touches other buttons */
.mic-button {
	flex: 0 0 auto;
	margin: 0 0.6em;
	width: 2.9em;
	height: 2.9em;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #e8e8e8;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.mic-button svg {
	height: 52%;
	color: #a4a4a4;
	transition: color 0.15s ease;
}
.mic-button:hover {
	background: #c0c0c0;
}
.mic-button:hover svg {
	color: #fff;
}

/* Recording: red, white mic, pink ring, pulsing colour + subtle size pulse */
.mic-button.recording {
	border: 3px solid #fac6c6;
	animation: mic-pulse 1.1s ease-in-out infinite;
}
.mic-button.recording svg {
	color: #fff;
}
@keyframes mic-pulse {
	0%,
	100% {
		transform: scale(1);
		background-color: #ff2a2a;
	}
	50% {
		transform: scale(1.025);
		background-color: #d70303;
	}
}

/* ── Toggle switches ──────────────────────────────────────── */
.toggles {
	display: flex;
	justify-content: space-around;
	margin-top: 1rem;
}
.toggles > div {
	display: flex;
	align-items: center;
	gap: 0.6em;
}
.toggles label {
	font-size: 0.875rem;
}
.toggles input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	width: 2.5rem;
	height: 1.5rem;
	margin: 0;
	border: 0;
	border-radius: 2.5rem;
	background-color: #dce0f3;
	background-repeat: no-repeat;
	background-position: 0;
	background-size: contain;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
	transition: background-position 0.15s ease-in-out;
	cursor: default;
}
.toggles input[type='checkbox']:checked {
	background-color: #6658ea;
	background-position: 100%;
}
.toggles input[type='checkbox']:disabled {
	opacity: 0.5;
}

/* ── Action buttons ───────────────────────────────────────── */
.actions {
	margin: 2rem 0 5rem;
}
.actions button {
	padding: 0.75rem 1.75rem;
	border: 1px solid transparent;
	border-radius: 0.5rem 0 0.5rem 0;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 0 6px rgba(27, 22, 66, 0.03), 0 14px 24px rgba(27, 22, 66, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}
.actions button:hover {
	box-shadow: 0 1rem 2.5rem rgba(27, 22, 66, 0.1),
		0 0.5rem 1rem -0.75rem rgba(27, 22, 66, 0.1);
	transform: translate3d(0, -3px, 0);
}
/* primary "Suchen" */
.actions button[type='submit'] {
	background: #6658ea;
	border-color: #6658ea;
	color: #fff;
}
.actions button[type='submit']:hover {
	background: #5546e8;
}
/* white "Überrasche mich" (decorative / disabled) */
.actions button[type='button'] {
	margin-left: 4%;
	background: #fff;
	border-color: #fff;
	color: #6658ea;
	cursor: not-allowed;
}

/* ── Examples ─────────────────────────────────────────────── */
.examples {
	width: min(90%, 700px);
	margin-top: 3rem;
}
.examples h4 {
	margin: 0 0 1rem;
	font-weight: 500;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	color: #000;
}
.examples button {
	display: block;
	width: 100%;
	margin: 0.25rem 0;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: 0.5rem 0 0.5rem 0;
	background: #f3f8ff;
	color: #1b1642;
	font-size: 0.875rem;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}
.examples button:hover {
	background: #dfecff;
	box-shadow: 0 1rem 2.5rem rgba(27, 22, 66, 0.1),
		0 0.5rem 1rem -0.75rem rgba(27, 22, 66, 0.1);
	transform: translate3d(0, -3px, 0);
}
