/* ============================================================
   Stillness Heals – Anna Klingler
   Vanilla CSS, no frameworks
   Fonts: Playfair Display (headings) + Open Sans (body)
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/open-sans/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2")
		format("woff2");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
		U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/playfair-display/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvXDXbtM.woff2")
		format("woff2");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
		U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/playfair-display/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvXDTbtPY_Q.woff2")
		format("woff2");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
		U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens ----------------------------------------- */
:root {
	--c-primary-lt: #e3daf8; /* lila */
	--c-primary: #af89f3; /* lila */
	--c-primary-dk: #7a3acb;
	--c-accent: #c8b2f6; /* warm sand  #c4a882 */
	--c-dark: #02410b; /* dark forest */
	--c-light: #f8f6f2; /* warm cream */
	--c-night: #190b2f; /* night sky */
	--c-surface: #ffffff;
	--c-text: #1f053c;
	--c-text-light: #523d77;
	--c-border: #c4badc;
	--c-error: #e74c3c;
	--c-hero-overlay: rgba(30, 42, 35, 0.52);

	--ff-heading: "Playfair Display", Georgia, serif;
	--ff-body: "Open Sans", system-ui, sans-serif;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: 1.25rem;
	--fs-2xl: 1.5rem;
	--fs-3xl: 2rem;
	--fs-4xl: 2.5rem;
	--fs-5xl: 3.25rem;
	--fs-xxs: 0.625rem;

	--space-xxs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 2rem;
	--space-lg: 4rem;
	--space-xl: 6rem;
	--space-2xl: 8rem;

	--radius-sm: 4px;
	--radius: 4px;
	--radius-lg: 12px;
	--radius-full: 9999px;
	--shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

	--nav-h: 70px;
	--max-w: 1100px;
	--transition: 0.25s ease;
	--transition-shorter: 0.15s ease;
	--easing-inout: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset / base ------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-h);
}

body {
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	color: var(--c-text);
	background: var(--c-surface);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
ul {
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--ff-heading);
	font-weight: 400;
	line-height: 1.25;
	color: var(--c-text);
}

section {
	padding-block: var(--space-xl);
}

/* --- Utilities --------------------------------------------- */
.container {
	max-width: var(--max-w);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.section-header {
	text-align: center;
	margin-bottom: var(--space-md);

	& h2 {
		font-size: var(--fs-4xl);
		margin-bottom: var(--space-sm);
	}

	.avatar {
		display: inline-flex;
		align-items: start;
		gap: var(--space-md);
		margin: 0 auto;

		& img {
			max-width: min(128px, 20vw);
			object-fit: cover;
			object-position: top center;
			box-shadow: var(--shadow-lg);
			image-rendering: -webkit-optimize-contrast; /* crisp upscale */
		}

		.profile {
			text-align: left;
		}
	}

	.tagline {
		font-style: italic;
		font-family: var(--ff-heading);
		font-size: var(--fs-lg);
		color: var(--c-text);
		margin: 0 auto;
		max-width: 30rem;
	}
}

.section-divider {
	width: 48px;
	height: 3px;
	background: var(--c-accent);
	margin: 1rem auto 1.5rem;
	border: none;
}

.subtitle {
	text-align: center;
	font-size: var(--fs-2xl);
	margin: var(--space-lg) 0 1.5rem;
}

.btn {
	padding: var(--space-xs) var(--space-sm);
	border: 1px solid var(--c-primary-lt);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--c-primary-lt) 20%, transparent);

	&:hover {
		background: color-mix(in srgb, var(--c-primary-dk) 40%, transparent);
	}
}

/* --- Angebot / Leistungen ---------------------------------- */
#offer {
	background: var(--c-light);
}

/* --- Services note / CTA ----------------------------------- */
.services-note {
	text-align: center;
	margin-top: var(--space-md);
	color: var(--c-text-light);
}
.pricing-table {
	max-width: 20rem;
	margin: 0 auto;
	display: grid;
	align-items: baseline;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xs);

	& dt {
		font-size: var(--fs-lg);
		font-family: var(--ff-heading);
		font-weight: 400;
		text-align: right;
	}
	& dd {
		color: var(--c-text-light);
	}
}

/* --- Über mich --------------------------------------------- */
#about {
	background: var(--c-surface);
}

.about-text {
	max-width: 40rem;
	margin: 0 auto;

	& p {
		color: var(--c-text-light);
		margin-bottom: 1rem;
	}
}

dl.timeline {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: var(--space-xs) var(--space-sm);
	max-width: 30rem;
	margin: 0 auto;

	& dt {
		position: relative;
		font-size: var(--fs-lg);
		font-family: var(--ff-heading);
		font-weight: 400;
	}
	& dd {
		color: var(--c-text-light);
	}

	& strong {
		font-weight: 700;
		color: var(--c-text);
	}
}

/* --- Kontakt ----------------------------------------------- */
#contact {
	background: var(--c-light);
}


/* Component: form-textbox.css */
form-textbox {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);

	& label {
		display: block;
		font-family: var(--ff-body);
		font-size: var(--fs-sm);
		font-weight: 500;
		color: var(--c-text);
	}

	& input,
	& textarea {
		width: 100%;
		padding: var(--space-xs) var(--space-xs);
		border: 1px solid var(--c-border);
		border-radius: var(--radius-sm);
		font-family: var(--ff-body);
		font-size: var(--fs-base);
		color: var(--c-text);
		background: var(--c-surface);
		transition:
			border-color var(--transition-shorter),
			box-shadow var(--transition-shorter);
		resize: vertical;

		&:focus {
			outline: none;
			border-color: var(--c-primary-dk);
			box-shadow: 0 0 0 3px var(--c-primary-lt);
		}

		&:hover {
			border-color: var(--c-primary);
		}

		&:disabled {
			cursor: not-allowed;
			opacity: 0.5;
			background-color: var(--c-light);
		}

		&::placeholder {
			color: var(--c-text-light);
		}
	}

	& textarea {
		min-height: 100px;
		resize: vertical;
	}

	& .error {
		font-family: var(--ff-body);
		font-size: var(--fs-xs);
		color: var(--c-error);
	}
}


/* Component: section-footer.css */
section-footer {
	padding: var(--space-sm) 0;
	background: var(--c-night);
	color: var(--c-surface);
	text-align: center;
	display: block;

	.container {
		max-width: var(--max-w);
		margin: 0 auto;
		padding: 0 1.5rem;
	}

	& p {
		font-size: var(--fs-sm);
		line-height: 1.6;
		color: rgba(255, 255, 255, 0.7);
	}

	& a {
		color: var(--c-accent);
		text-decoration: underline;
	}

	& a:hover {
		color: var(--c-primary);
	}

	& strong {
		color: var(--c-surface);
		font-weight: 400;
	}
}


/* Component: section-menu.css */
section-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-h);
	z-index: 1000;
	transition: box-shadow var(--transition);
	background: var(--c-night);

	.nav-logo {
		display: flex;
		align-items: center;
		gap: var(--space-sm);
		text-decoration: none;
		color: var(--c-surface);

		& img {
			width: 48px;
			height: 48px;
			object-fit: contain;
			border-radius: 50%;
		}

		& span {
			font-family: var(--ff-heading);
			font-size: var(--fs-xl);
			letter-spacing: 0.02em;
		}
	}

	.nav-inner {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 44px;
		height: 44px;
		background: transparent;
		border: none;
		cursor: pointer;
		padding: 0;
		z-index: 1001;

		& span {
			display: block;
			width: 24px;
			height: 2px;
			background: var(--c-surface);
			margin: 4px 0;
			transition:
				transform var(--transition),
				opacity var(--transition);
		}

		&[aria-expanded="true"] {
			span:nth-child(1) {
				transform: rotate(45deg) translate(9px, 5px);
			}

			span:nth-child(2) {
				opacity: 0;
			}

			span:nth-child(3) {
				transform: rotate(-45deg) translate(9px, -5px);
			}
		}
	}

	.nav-links {
		display: flex;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--c-dark);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: var(--space-md);
		padding: var(--space-l);
		list-style: none;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-100%);
		transition: all var(--transition);
		z-index: 1000;

		& li {
			margin: 0;
		}

		& a {
			font-family: var(--ff-body);
			font-weight: 500;
			color: var(--c-surface);
			transition: color var(--transition-shorter);

			&:hover {
				color: var(--c-accent);
			}
		}

		&.open {
			opacity: 1;
			visibility: visible;
			transform: translateY(0);
		}
	}

	& a.nav-lang {
		font-size: var(--fs-base);
		padding: var(--space-xs) var(--space-sm);
		border: 1px solid var(--c-border);
		border-radius: var(--radius-sm);

		&:hover {
			color: var(--c-surface);
			background: var(--c-primary);
			border-color: var(--c-primary);
		}
	}

	&.scrolled {
		box-shadow: var(--shadow-md);

		.nav-logo {
			color: var(--c-surface);
		}

		.nav-toggle span {
			background: var(--c-surface);
		}
	}
}

@media screen and (min-width: 768px) {
	section-menu {
		.nav-toggle {
			display: none;
		}

		.nav-links {
			position: static;
			flex-direction: row;
			gap: var(--space-md);
			padding: 0;
			background: transparent;
			opacity: 1;
			visibility: visible;
			transform: none;
			pointer-events: auto;

			& a.nav-lang {
				border-color: rgba(255, 255, 255, 0.3);
				color: var(--c-surface);

				&:hover {
					color: var(--c-text);
					background: var(--c-surface);
					border-color: var(--c-surface);
				}
			}
		}

		&.scrolled .nav-links a {
			color: var(--c-surface);
		}

		&:not(.scrolled) .nav-links a {
			color: var(--c-surface);

			&.nav-lang {
				border-color: rgba(255, 255, 255, 0.3);
			}
		}
	}
}


/* Component: section-hero.css */
section-hero {
	position: relative;
	padding: var(--space-2xl) 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(
		180deg,
		var(--c-night) 50%,
		var(--c-primary) 100%
	);
	color: var(--c-surface);
	overflow: hidden;

	& img {
		border-radius: var(--radius-full);
	}

	.hero-content {
		position: relative;
		z-index: 1;
		text-align: center;
		max-width: 800px;
		margin: 0 auto;
	}

	.hero-eyebrow {
		font-family: var(--ff-body);
		font-size: var(--fs-sm);
		font-weight: 600;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.8);
		margin-bottom: var(--space-md);
	}

	.hero-title {
		font-size: clamp(var(--fs-4xl), 8vw, var(--fs-5xl));
		font-weight: 400;
		line-height: 1.1;
		margin-bottom: var(--space-md);
		color: var(--c-surface);
	}

	.hero-subtitle {
		font-size: var(--fs-xl);
		font-family: var(--ff-body);
		color: rgba(255, 255, 255, 0.9);
		margin-bottom: var(--space-lg);
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}

	.hero-actions {
		display: flex;
		justify-content: center;
		gap: var(--space-md);
		margin-bottom: var(--space-lg);
	}

	.hero-scroll {
		position: absolute;
		bottom: var(--space-xl);
		left: 50%;
		transform: translateX(-50%);
		font-size: var(--fs-xs);
		color: rgba(255, 255, 255, 0.6);
		letter-spacing: 0.1em;
		text-transform: uppercase;
		animation: bounce 2s infinite;
	}
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	40% {
		transform: translateX(-50%) translateY(-10px);
	}
	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}


/* Component: card-contact.css */
card-contact {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;

	.contact-icon {
		width: 40px;
		height: 40px;
		background: var(--c-surface);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		box-shadow: var(--shadow-sm);
		font-size: 1.1rem;
	}

	.contact-text {
		& strong {
			display: block;
			font-size: var(--fs-sm);
			color: var(--c-text);
		}

		& span {
			font-size: var(--fs-sm);
			color: var(--c-text-light);
		}

		& a {
			color: var(--c-primary-dk);

			&:hover {
				text-decoration: underline;
			}
		}
	}
}


/* Component: module-contact.css */
module-contact {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);

	.contact-info {
		> h3 {
			font-size: var(--fs-2xl);
			margin-bottom: 1rem;
		}
		> p {
			color: var(--c-text-light);
			margin-bottom: 2rem;
		}
	}
	.contact-details {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.contact-form {
		background: var(--c-surface);
		border-radius: var(--radius-lg);
		padding: var(--space-md);
		box-shadow: var(--shadow-md);
		min-width: 50vw;
	}
	.form-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
	.form-submit {
		margin-top: 0.5rem;
	}
	.form-note {
		font-size: var(--fs-xs);
		color: var(--c-text-light);
		text-align: right;
		margin-bottom: 1rem;
	}
}

@media (min-width: 768px) {
	module-contact {
		flex-direction: row;
		align-items: start;
	}
}


/* Component: module-accordion.css */
module-accordion {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	max-width: 30rem;
	margin: 0 auto;

	& details {
		& summary {
			cursor: pointer;
			font-size: var(--fs-xl);
			font-family: var(--ff-heading);
			font-weight: 400;
			line-height: 1.25;
			color: var(--c-text);
			text-align: center;

			&::marker {
				color: var(--c-accent);
			}

			&:hover {
				color: var(--c-night);

				&::marker {
					content: inherit;
					color: var(--c-primary-dk);
				}
			}
		}

		& p {
			margin-top: var(--space-xs);
			font-size: var(--fs-sm);
			color: var(--c-text-light);
			text-align: center;
		}
	}
}


/* Component: basic-button.css */
basic-button {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;

	& button {
		--btn-height: var(--space-l);
		--btn-bg: var(--c-primary);
		--btn-text: var(--c-surface);
		--btn-border: var(--c-primary);
		--btn-hover-bg: var(--c-primary-dk);
		--btn-hover-border: var(--c-primary-dk);

		height: var(--btn-height);
		min-inline-size: var(--btn-height);
		border-radius: var(--radius-sm);
		background-color: var(--btn-bg);
		border: 2px solid var(--btn-border);
		color: var(--btn-text);
		padding: var(--space-xs) var(--space-sm);
		font-family: var(--ff-body);
		font-size: var(--fs-sm);
		font-weight: 600;
		line-height: var(--btn-height);
		white-space: nowrap;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
		text-decoration: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--space-xs);

		&:disabled {
			opacity: 0.5;
			cursor: not-allowed;
		}

		&:not(:disabled) {
			&:hover {
				background-color: var(--btn-hover-bg);
				border-color: var(--btn-hover-border);
			}

			&:active {
				transform: translateY(1px);
			}
		}

		&.primary {
			--btn-bg: var(--c-primary-dk);
			--btn-text: var(--c-surface);
			--btn-border: var(--c-primary-dk);
			--btn-hover-bg: var(--c-primary);
			--btn-hover-border: var(--c-primary);
		}

		&.outline {
			--btn-bg: transparent;
			--btn-text: var(--c-primary);
			--btn-border: var(--c-primary);
			--btn-hover-bg: var(--c-primary);
			--btn-hover-text: var(--c-surface);
			--btn-hover-border: var(--c-primary);

			&:not(:disabled) {
				&:hover {
					background-color: var(--btn-hover-bg);
					color: var(--btn-hover-text);
					border-color: var(--btn-hover-border);
				}
			}
		}

		&.ghost {
			--btn-bg: transparent;
			--btn-text: var(--c-text);
			--btn-border: transparent;
			--btn-hover-bg: var(--c-border);

			&:not(:disabled) {
				&:hover {
					background-color: var(--btn-hover-bg);
				}
			}
		}

		&.small {
			--btn-height: var(--space-m);
			font-size: var(--fs-xs);
			padding: 0 var(--space-sm);
		}

		&.large {
			--btn-height: var(--space-xl);
			font-size: var(--fs-base);
			padding: 0 var(--space-l);
		}
	}
}


