/* ==========================================================
   Röntgen Ottakring — Feedback-Tool (v1.0)
   Design nach Website-CI (roentgenottakring.at):
   Blaugrau #618b9d + Dunkelgrau #54585a aus dem Logo,
   Montserrat (Headlines) + Open Sans (Text), Pill-Buttons,
   flache weiße Karte auf hellem Blaugrau, r20, kein Schatten.
   ========================================================== */

:root {
	--ro-prime:      #618b9d;
	--ro-prime-dark: #4f7585;
	--ro-secondary:  #99b3bf;
	--ro-dark:       #54585a;

	--tint:          #eef3f5;
	--tint-2:        #c8d6dd;
	--line:          #dde6ea;

	--ink:           #333638;
	--ink-soft:      #6b7378;
	--ink-faint:     #9aa4aa;

	--radius-sm:     8px;
	--radius-md:     15px;
	--radius:        20px;
	--radius-pill:   30px;

	--font-sans:     'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
	--font-display:  'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;

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

/* ==========================================================
   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: var(--tint);
	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: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	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(250px, 78%);
	margin: 0 auto;
	display: block;
}

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

h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(19px, 3.2vw, 24px);
	line-height: 1.25;
	color: var(--ro-prime);
	margin: 28px 0 8px;
	text-wrap: balance;
}

h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(16px, 2.6vw, 18px);
	line-height: 1.35;
	color: var(--ro-prime);
	margin: 36px 0 12px;
	text-wrap: balance;
}

p {
	font-size: 16.5px;
	color: var(--ink);
	margin: 0 auto 18px;
	max-width: 58ch;
	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 (Step 0)
   ========================================================== */
.thumbs {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(20px, 6vw, 48px);
	margin: 28px 0 6px;
}

.thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	padding: 6px;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
	-webkit-appearance: none;
	appearance: none;
	transition: color var(--t-base) var(--ease);
}

.thumb img {
	width: clamp(96px, 24vw, 128px);
	display: block;
	transition: transform var(--t-base) var(--ease);
}

.no-touch .thumb:hover { color: var(--ro-prime); }
.no-touch .thumb:hover img { transform: translateY(-4px) scale(1.03); }
.thumb:active img { transform: scale(0.96); }
.thumb:focus-visible { outline: 2px solid var(--ro-prime); outline-offset: 2px; }

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

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

.no-touch .google-cta a:hover img {
	opacity: 0.85;
	transform: translateY(-2px);
}

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

.ideas h3 {
	margin: 0 0 14px;
	font-size: 16px;
	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;
	line-height: 1.5;
	color: var(--ink);
}

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

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

/* ==========================================================
   Datum & Zeitpunkt (Step 1)
   ========================================================== */
.meta-row {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
	max-width: 520px;
	margin: 30px auto 0;
}

.meta-field {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.meta-label {
	display: block;
	font-family: var(--font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ro-prime);
	margin: 0 0 8px 2px;
}

input[type=date] {
	font-family: var(--font-sans);
	font-size: 16px;
	color: var(--ink);
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color var(--t-fast) var(--ease);
}

input[type=date]:focus { border-color: var(--ro-prime); }

.zeit-pills {
	display: flex;
	gap: 8px;
}

.zeit-pills label {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 7px 6px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	text-align: center;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.zeit-pills label small {
	font-size: 12px;
	font-weight: 400;
	color: var(--ink-soft);
}

.no-touch .zeit-pills label:hover { border-color: var(--ro-secondary); }

.zeit-pills label.checked,
.zeit-pills label:has(input:checked) {
	border-color: var(--ro-prime);
	background: var(--tint);
}

.zeit-pills input[type=radio] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

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

.review-form-star {
	display: inline-block;
	vertical-align: top;
	width: clamp(38px, 9vw, 48px);
	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: 24px;
	padding: 8px 0 0;
	font-weight: 600;
	color: var(--ro-prime);
	font-size: 15px;
	margin-bottom: 0;
}

/* ==========================================================
   Gründe als Pills (Step 1)
   ========================================================== */
.reasons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 540px;
	margin: 14px auto 10px;
}

.reasons label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px 10px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.reasons label::before {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 100%;
	border: 2px solid var(--line);
	background: #fff;
	transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.no-touch .reasons label:hover { border-color: var(--ro-secondary); }

.reasons label.checked,
.reasons label:has(input:checked) {
	border-color: var(--ro-prime);
	background: var(--tint);
	color: var(--ro-prime);
}

.reasons label.checked::before,
.reasons label:has(input:checked)::before {
	border-color: var(--ro-prime);
	background: var(--ro-prime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.5l2.5 2.5L9.5 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 11px no-repeat;
}

.reasons input[type=checkbox] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.reasons label:has(input:focus-visible),
.zeit-pills label:has(input:focus-visible) { outline: 2px solid var(--ro-prime); outline-offset: 2px; }

/* ==========================================================
   Formular (Step 1)
   ========================================================== */
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: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	outline: none;
	resize: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 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(--ro-prime);
}

.reason-other {
	max-width: 460px;
	display: block;
	margin: 0 auto;
	text-align: center;
}

textarea {
	max-width: 460px;
	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: 600;
	color: #fff;
	background: var(--ro-prime);
	border: 1px solid var(--ro-prime);
	border-radius: var(--radius-pill);
	padding: 14px 40px;
	margin: 30px auto 0;
	display: block;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.no-touch input[type=submit]:hover {
	background: var(--ro-prime-dark);
	border-color: var(--ro-prime-dark);
}

input[type=submit]:disabled { opacity: 0.6; cursor: default; }

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

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

.form-response b {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--ro-prime);
}

.form-response a { color: var(--ro-prime); }

/* Zurück-Link (Step 1 & 2) */
.back-link {
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--ink-soft);
	background: none;
	border: 0;
	padding: 4px 8px;
	margin: 28px auto 0;
	display: block;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--t-fast) var(--ease);
}

.no-touch .back-link:hover { color: var(--ro-prime); }

/* ==========================================================
   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: opacity var(--t-fast) var(--ease);
}

.foot a:hover { opacity: 0.5; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 560px) {
	h2 { margin-top: 22px; }
	h3 { margin-top: 28px; }
	.thumbs { margin-top: 24px; }
	.meta-row { flex-direction: column; gap: 20px; }
	.reasons label { font-size: 14px; padding: 9px 15px 9px 12px; }
}

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