/**
 * components.css – wiederverwendbare Bausteine.
 * Marke, Schaltflächen, Pillen, Formulare, Dialog, Hinweise.
 */

/* --------------------------------------------------------------------------
   Wortmarke
   -------------------------------------------------------------------------- */

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	border: 0;
	padding: 0;
	background: transparent;
	font-size: 25px;
	font-weight: 750;
	letter-spacing: -0.07em;
	text-decoration: none;
}

.brand__suffix {
	font-size: 8px;
	letter-spacing: 0.05em;
}

.brand__spark {
	position: relative;
	width: 19px;
	height: 19px;
	margin-right: 2px;
	flex: none;
	align-self: center;
}

.brand__spark i {
	position: absolute;
	left: 9px;
	top: 8px;
	width: 10px;
	height: 2px;
	background: var(--blue);
	transform-origin: 0 50%;
}

.brand__spark i:nth-child(1) { transform: rotate(-72deg); }
.brand__spark i:nth-child(2) { transform: rotate(0); }
.brand__spark i:nth-child(3) { transform: rotate(72deg); }

.brand--custom img {
	display: block;
	max-height: 46px;
	width: auto;
}

/* Auf dunklen Flächen. */
.is-inverse .brand__spark i {
	background: var(--lime);
}

/* --------------------------------------------------------------------------
   Schaltflächen
   -------------------------------------------------------------------------- */

.link-button {
	display: inline-flex;
	align-items: center;
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: 9px 0;
	background: transparent;
	font-weight: 700;
	text-decoration: none;
	transition: opacity var(--duration) var(--ease);
}

.link-button:hover {
	opacity: 0.7;
}

.arrow {
	margin-left: 10px;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	padding: 15px 22px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background var(--duration) var(--ease);
}

.button:hover {
	background: #0f60d6;
}

.button--outline {
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 17px 25px;
	background: transparent;
	color: inherit;
}

.button--outline:hover {
	background: rgba(255, 255, 255, 0.25);
}

.big-plus {
	display: grid;
	place-items: center;
	width: 170px;
	height: 170px;
	border: 1px solid var(--line-inverse);
	border-radius: 50%;
	background: transparent;
	color: var(--lime);
	font-size: 100px;
	font-weight: 200;
	line-height: 0.8;
	transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.big-plus:hover {
	transform: scale(1.06);
	background: rgba(255, 255, 255, 0.06);
}

/* Hervorgehobene Wörter im Leitsatz. */
.pill {
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 0.02em 0.28em;
	color: var(--blue);
}

.pill:nth-of-type(2) { color: #b52f25; }
.pill:nth-of-type(3) { color: #007b6f; }
.pill:nth-of-type(4) { color: #9a7300; }

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.field {
	display: grid;
	gap: 7px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.field input,
.field textarea,
.search-field {
	width: 100%;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	padding: 14px;
	background: transparent;
	font-family: var(--sans);
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.field textarea {
	resize: vertical;
}

.field .required {
	color: var(--coral);
}

/* Honigtopf – für Menschen unsichtbar, für Formularroboter attraktiv. */
.honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hinweise
   -------------------------------------------------------------------------- */

.notice {
	margin: 0 0 20px;
	border-left: 3px solid var(--blue);
	padding: 14px 18px;
	background: rgba(22, 119, 255, 0.08);
	font-size: 15px;
}

.notice--ok {
	border-color: #007b6f;
	background: rgba(23, 214, 192, 0.14);
}

.notice--error {
	border-color: var(--coral);
	background: rgba(255, 111, 97, 0.14);
}

/* --------------------------------------------------------------------------
   Kontaktdialog
   -------------------------------------------------------------------------- */

.modal {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: none;
	place-items: center;
	padding: 25px;
	background: rgba(1, 25, 28, 0.68);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* :target hält den Dialog auch ohne JavaScript offen. */
.modal.is-open,
.modal:target {
	display: grid;
}

.modal__dialog {
	position: relative;
	width: min(670px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 55px;
	background: #f8f4ea;
	box-shadow: var(--shadow-modal);
}

.modal__close {
	position: absolute;
	right: 20px;
	top: 14px;
	border: 0;
	padding: 6px 10px;
	background: transparent;
	font-size: 30px;
	line-height: 1;
}

.modal__dialog h2 {
	margin: 20px 0;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.modal__dialog > p:not(.eyebrow) {
	max-width: 520px;
	line-height: 1.5;
}

.modal__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 32px;
}

.modal__form .field:last-of-type,
.modal__form .form-actions {
	grid-column: 1 / -1;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.form-actions small {
	max-width: 340px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
}

@media (max-width: 560px) {
	.modal__dialog {
		padding: 45px 25px;
	}

	.modal__form {
		grid-template-columns: 1fr;
	}
}
