/* ==========================================================
   Woman & Health — Feedback-Tool
   Purple-led design system (siehe CI), Gold als Akzent.
   ========================================================== */

:root {
	--purple:        #AE63A4;
	--purple-dark:   #7F3F77;
	--purple-deep:   #5E2858;
	--purple-soft:   rgba(215, 177, 210, 0.95);
	--purple-pale:   rgba(239, 224, 237, 0.6);
	--purple-tint:   #F7EDF4;

	--gold:          #BFA26E;
	--gold-dark:     #8B6E2E;
	--gold-tint:     #FBF6EC;

	--ink:           #2A1D2D;
	--ink-mid:       #5E4F62;
	--ink-soft:      #89808D;
	--ink-faint:     #B5ADB8;

	--bg:            #FDFBFA;
	--white:         #FFFFFF;
	--border:        #EFE8EE;
	--border-soft:   #F4EFF3;

	--shadow-sm:     0 8px 20px rgba(42, 29, 45, 0.06);
	--shadow-md:     0 14px 32px rgba(42, 29, 45, 0.08);
	--shadow-lg:     0 24px 50px rgba(42, 29, 45, 0.12);
	--shadow-purple: 0 14px 30px rgba(174, 99, 164, 0.25);

	--radius-sm:     10px;
	--radius:        18px;
	--radius-lg:     28px;
	--radius-pill:   999px;

	--font-sans:     "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display:  "Fraunces", "Inter", ui-serif, Georgia, serif;

	--ease:          cubic-bezier(0.4, 0.0, 0.2, 1);
	--ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
	--t-fast:        0.2s;
	--t-base:        0.32s;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-sans);
	background:
		radial-gradient(circle at 8% 0%, rgba(174, 99, 164, 0.14), transparent 42%),
		radial-gradient(circle at 95% 30%, rgba(191, 162, 110, 0.13), transparent 38%),
		linear-gradient(180deg, #FDFBFA 0%, #F6EEF4 100%);
	min-height: 100vh;
	color: var(--ink);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }

/* ==========================================================
   Layout
   ========================================================== */
.page {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px) 16px 24px;
}

.card {
	width: 100%;
	max-width: 720px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(32px, 5vw, 48px);
	text-align: center;
}

.card-head { margin-bottom: clamp(24px, 4vw, 36px); }

.logo {
	width: min(150px, 78%);
	margin: 0 auto;
	display: block;
}

/* ==========================================================
   Typografie
   ========================================================== */
h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(26px, 4.5vw, 36px);
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 16px;
	text-wrap: balance;
}

h2 {
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: clamp(20px, 3.2vw, 26px);
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--purple-dark);
	margin: 28px 0 8px;
	text-wrap: balance;
}

h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(18px, 2.6vw, 22px);
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--ink);
	margin: 36px 0 14px;
	text-wrap: balance;
}

p {
	font-size: 16px;
	color: var(--ink-mid);
	margin: 0 auto 18px;
	max-width: 56ch;
	text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

.small-note {
	font-size: 14px;
	color: var(--ink-soft);
	margin-top: 18px;
}

/* ==========================================================
   Schritt-Steuerung (JS blendet um)
   ========================================================== */
.step-1, .step-2 { display: none; }

/* ==========================================================
   Daumen
   ========================================================== */
.thumbs {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(24px, 6vw, 48px);
	margin: 30px 0 10px;
}

.thumb {
	width: clamp(96px, 24vw, 128px);
	cursor: pointer;
	transition: transform var(--t-base) var(--ease-out), filter var(--t-base) var(--ease-out);
}

.no-touch .thumb:hover {
	transform: translateY(-5px) scale(1.04);
	filter: drop-shadow(0 14px 20px rgba(94, 40, 88, 0.22));
}

.thumb:active { transform: scale(0.96); }

/* ==========================================================
   Google-CTA & Ideen (Step 2)
   ========================================================== */
.google-cta { margin: 26px auto 22px; }

.google-cta img {
	width: 320px;
	max-width: 100%;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.no-touch .google-cta a:hover img {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.ideas {
	margin: 34px auto 0;
	padding: 26px clamp(20px, 4vw, 32px) 24px;
	background: var(--purple-tint);
	border: 1px solid var(--purple-pale);
	border-radius: var(--radius);
	text-align: left;
}

.ideas h3 {
	margin: 0 0 14px;
	font-size: 18px;
	text-align: center;
}

.ideas ul {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ideas li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	color: var(--ink-mid);
}

.ideas li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--purple);
	font-weight: 700;
}

.ideas p {
	font-size: 15px;
	text-align: center;
	margin-bottom: 0;
}

/* ==========================================================
   Sterne (Step 1)
   ========================================================== */
.stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 18px 0 0;
}

.review-form-star {
	display: inline-block;
	vertical-align: top;
	width: clamp(40px, 10vw, 52px);
	position: relative;
	cursor: pointer;
}

.review-form-star img:nth-child(2) {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity var(--t-fast) var(--ease);
}

.review-form-star.active img:nth-child(2) { opacity: 1 !important; }

.no-touch .review-form-star:hover img:nth-child(2) { opacity: 0.35; }

.review-form-star-text {
	min-height: 26px;
	padding: 10px 0 0;
	font-weight: 600;
	color: var(--purple-dark);
	font-size: 16px;
}

/* ==========================================================
   Formular (Step 1)
   ========================================================== */
.choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 440px;
	margin: 0 auto;
}

.choices label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.no-touch .choices label:hover {
	border-color: var(--purple-soft);
	background: var(--purple-tint);
}

.choices label:has(input:checked) {
	border-color: var(--purple);
	background: var(--purple-tint);
}

.choices input[type=checkbox] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--purple);
	cursor: pointer;
}

input[type=text], input[type=tel], textarea {
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	color: var(--ink);
	width: 100%;
	padding: 13px 16px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	resize: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

input[type=text]::placeholder, input[type=tel]::placeholder, textarea::placeholder { color: var(--ink-faint); }

input[type=text]:focus, input[type=tel]:focus, textarea:focus {
	border-color: var(--purple);
	box-shadow: 0 0 0 3px rgba(174, 99, 164, 0.15);
}

textarea {
	max-width: 440px;
	height: 110px;
	display: block;
	margin: 0 auto;
}

/* Honeypot — für Menschen unsichtbar */
.oh-sec {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

input[type=submit] {
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.005em;
	color: var(--white);
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
	border: 0;
	border-radius: var(--radius-pill);
	padding: 16px 40px;
	margin: 30px auto 0;
	display: block;
	cursor: pointer;
	box-shadow: var(--shadow-purple);
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.no-touch input[type=submit]:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(174, 99, 164, 0.35);
}

input[type=submit]:active { transform: translateY(0); }

.form-response { margin-top: 24px; }

.form-response p {
	font-size: 16px;
	color: var(--ink-mid);
}

.form-response b {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--purple-dark);
}

/* ==========================================================
   SMS-Abmeldung (Step 0)
   ========================================================== */
.optout { margin-top: 34px; }

.optout-link {
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--ink-soft);
	background: none;
	border: 0;
	padding: 4px 8px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--t-fast) var(--ease);
}

.no-touch .optout-link:hover { color: var(--purple-dark); }

.optout-form { display: none; padding-top: 16px; }

.optout-form p {
	font-size: 14px;
	color: var(--ink-mid);
	max-width: 44ch;
	margin-bottom: 14px;
}

.optout-row {
	display: flex;
	justify-content: center;
	gap: 10px;
	max-width: 400px;
	margin: 0 auto;
}

.optout-row input[type=tel] {
	flex: 1;
	min-width: 0;
	border-radius: var(--radius-pill);
	padding: 11px 18px;
}

.optout-send, .modal-close {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.005em;
	color: var(--white);
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
	border: 0;
	border-radius: var(--radius-pill);
	padding: 11px 24px;
	cursor: pointer;
	box-shadow: var(--shadow-purple);
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
	flex-shrink: 0;
}

.no-touch .optout-send:hover, .no-touch .modal-close:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(174, 99, 164, 0.35);
}

.optout-error {
	margin-top: 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #B3261E;
}

.optout-error:empty { display: none; }

/* ==========================================================
   Bestätigungs-Popup
   ========================================================== */
.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(42, 29, 45, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal-card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 34px 30px 30px;
	max-width: 380px;
	width: 100%;
	text-align: center;
}

.modal-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
	color: var(--white);
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-purple);
}

.modal-card h3 { margin: 0 0 8px; }

.modal-card p {
	font-size: 15px;
	margin-bottom: 22px;
}

/* ==========================================================
   Footer
   ========================================================== */
.foot {
	margin-top: 22px;
	text-align: center;
}

.foot p {
	font-size: 13px;
	color: var(--ink-soft);
}

.foot a {
	color: var(--ink-soft);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--t-fast) var(--ease);
}

.foot a:hover { color: var(--purple-dark); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 480px) {
	.card { border-radius: var(--radius); }
	h2 { margin-top: 22px; }
	h3 { margin-top: 28px; }
	.thumbs { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
