/* ============================================================
   Components — buttons, cards, accordion, forms, marquee
   ============================================================ */

/* ============================== BUTTONS ============================== */
.btn {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-btn);
	line-height: 1.4;
	white-space: nowrap;
	border-radius: var(--radius-pill);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--solid {
	background: var(--rose);
	color: var(--white);
	padding: 15px 32px;
}
.btn--solid:hover { background: var(--rose-dark); }

.btn--outline {
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--rose);
	padding: 8px 8px 8px 24px;
	gap: 48px;
}
.btn__icon {
	flex: 0 0 auto;
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rose);
	color: var(--white);
	border-radius: 50%;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn__icon svg { width: 24px; height: 24px; }
.btn--outline:hover { background: var(--rose); color: var(--white); }
.btn--outline:hover .btn__icon { background: var(--white); color: var(--rose); transform: translate(2px, -2px); }

.btn--text {
	color: var(--ink);
	gap: 16px;
	padding: 0;
	border-radius: 0;
}
/* Card CTA rows: link fills the row, arrow sits at the far right edge (per design) */
.t-card__cta .btn--text,
.problem-card__cta .btn--text,
.post-card__cta .btn--text,
.treatment-row__cta .btn--text {
	display: flex;
	width: 100%;
}
.t-card__cta .btn__label,
.problem-card__cta .btn__label,
.post-card__cta .btn__label,
.treatment-row__cta .btn__label {
	flex: 1 1 auto;
	text-align: left;
}
.btn__arrow { width: 24px; height: 24px; display: inline-flex; transition: transform 0.25s var(--ease); }
.btn__arrow svg { width: 24px; height: 24px; }
.btn--text .btn__label { transition: text-decoration 0.2s; }
.btn--text:hover .btn__label { text-decoration: underline; text-underline-offset: 3px; }
.btn--text:hover .btn__arrow { transform: translate(2px, -2px); }

/* On rose backgrounds the outline button hovers to cream with legible ink text */
.on-rose .btn--outline:hover { background: var(--cream); color: var(--ink); }
.on-rose .btn--outline:hover .btn__icon { background: var(--rose); color: var(--white); transform: translate(2px, -2px); }

/* ============================== SOCIALS ============================== */
.socials { display: flex; align-items: center; gap: 8px; }
.socials a {
	display: inline-flex; width: 24px; height: 24px;
	color: currentColor;
	transition: opacity 0.2s, transform 0.2s;
}
.socials a:hover { transform: translateY(-1px); }
.socials .icon { width: 24px; height: 24px; }

/* ============================== CARD (generic) ============================== */
.card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
}
.card__img {
	border-radius: var(--radius-img);
	overflow: hidden;
	background: var(--placeholder);
	aspect-ratio: 416 / 368;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-h4);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rose);
}

/* ============================== ACCORDION ============================== */
.accordion { width: 100%; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	padding: 20px 24px;
}
.accordion__q {
	flex: 1 1 auto;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-h4);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rose);
}
/* Toggle disc — closed: rose circle + white caret; open: cream circle + rose caret (per design) */
.accordion__icon {
	flex: 0 0 auto;
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rose);
	color: var(--white);
	border-radius: 50%;
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.accordion__icon svg { width: 24px; height: 24px; }
.accordion__item.is-open .accordion__icon {
	transform: rotate(180deg);
	background: var(--cream);
	color: var(--rose);
}

.accordion__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__body { padding: 0 24px 20px; }

/* ============================== FORMS ============================== */
.field-inline {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-input);
	padding: 24px;
	min-height: 76px;
}
.field-inline .icon { color: var(--rose); flex: 0 0 auto; }
.field-inline input[type="email"] {
	flex: 1 1 auto;
	border: 0; outline: 0; background: transparent;
	font-size: var(--fs-body); color: var(--ink); min-width: 0;
}
.field-inline input::placeholder { color: var(--sage); }
.field-inline button {
	flex: 0 0 auto;
	font-weight: 600; font-size: var(--fs-btn); color: var(--ink);
	padding: 4px 0;
}
.field-inline button:hover { color: var(--rose); }

.consent { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
	flex: 0 0 auto;
	width: 24px; height: 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--white);
	transition: background 0.15s, border-color 0.15s;
}
.consent__box svg { width: 16px; height: 16px; opacity: 0; }
.consent input:checked + .consent__box { background: var(--rose); border-color: var(--rose); }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Stacked form fields (contact) */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-control,
.form-field input,
.form-field textarea {
	width: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-input);
	padding: 14px 20px;
	font-size: var(--fs-body);
	color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--rose); }
.form-field .error-msg { color: var(--error); font-size: var(--fs-sm); }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--error); }
.form-note { font-size: var(--fs-sm); }
.form-note--ok { color: #2e7d32; }
.form-note--err { color: var(--error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================== PAGINATION DASHES ============================== */
.dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dots button {
	width: 32px; height: 4px;
	background: var(--cream);
	border-radius: 2px;
	transition: background 0.2s;
}
.dots button.is-active { background: var(--rose); }

/* ============================== MARQUEE ============================== */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
	display: inline-flex;
	align-items: center;
	gap: 80px;
	white-space: nowrap;
	will-change: transform;
	animation: jajetic-marquee 40s linear infinite;
}
.marquee__item {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--fs-giant);
	line-height: 0.85;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cream);
}
.marquee__sep { flex: 0 0 auto; width: clamp(24px, 2.9vw, 48px); color: var(--cream); }
.marquee__sep svg { width: 100%; height: auto; }
@keyframes jajetic-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
}

/* ============================== FAQ SECTION (two-column, home + kontakt) ===== */
.home-faq { padding-block: var(--section-y); }
.home-faq__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.home-faq__text { display: flex; flex-direction: column; gap: 24px; }
.home-faq__text p { font-size: var(--fs-body-lg); line-height: 1.35; }
@media (max-width: 1024px) {
	.home-faq__inner { grid-template-columns: 1fr; }
}

/* ============================== BREADCRUMBS / MISC ============================== */
.section-intro { display: flex; flex-direction: column; gap: 16px; }
