/**
 * Medi-Log - Stylesheet der Landing Page
 *
 * Gestaltung von index.php (Startseite und Bedienungsanleitung).
 * Bis 26.09.2026 als <style>-Block in index.php eingebettet.
 *
 * @package    MediLog
 * @version    1.1.0
 * @erstellt   16.04.2026
 * @geaendert  26.09.2026 21:45
 */

:root {
	--primary:       #0f6fd1;
	--primary-dark:  #0a4f9e;
	--accent:        #28a745;
	--danger:        #dc3545;
	--warn:          #f59e0b;
	--bg:            #f5f7fa;
	--card:          #ffffff;
	--text:          #1a202c;
	--text-sub:      #64748b;
	--border:        #e2e8f0;
	--hero-bg:       #0a1628;
	--status-yellow: #b8960c;
	--hero-bg-end:   #0f3460;
	--highlight:     #fbbf24;
	--success-bg:    #d4edda;
	--success-text:  #155724;
	--danger-bg:     #f8d7da;
	--danger-text:   #721c24;
	--notice-bg:     #fff8e1;
	--notice-border: #ffe082;
	--notice-title:  #92400e;
	--notice-text:   #78350f;
}

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

html { scroll-behavior: smooth; }

body {
	font-family: 'DM Sans', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
	font-size: 1rem;
}

/* ── Typografie ─────────────────────────────────────── */
h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.2; }

h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-sub); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────── */
.container {
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ── Navigation ─────────────────────────────────────── */
nav {
	position: sticky;
	top: 0;
	background: rgba(10, 22, 40, 0.97);
	backdrop-filter: blur(8px);
	z-index: 100;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.5rem;
	max-width: 60rem;
	margin: 0 auto;
}

.nav-logo {
	font-family: 'DM Serif Display', serif;
	font-size: 1.4rem;
	color: #fff;
	letter-spacing: -0.5px;
}

.nav-logo span { color: #60a5fa; }

.nav-links {
	display: flex;
	gap: 1.8rem;
	list-style: none;
}

.nav-links a {
	color: rgba(255,255,255,0.75);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s;
}

.nav-links a:hover { color: #fff; text-decoration: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
	background: var(--hero-bg);
	padding: 6rem 0 5rem;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -20%;
	width: 43.75rem;
	height: 43.75rem;
	background: radial-gradient(circle, rgba(15,111,209,0.18) 0%, transparent 65%);
	pointer-events: none;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 31.25rem;
	height: 31.25rem;
	background: radial-gradient(circle, rgba(40,167,69,0.12) 0%, transparent 65%);
	pointer-events: none;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero-text { position: relative; z-index: 1; }

.hero-badge {
	display: inline-block;
	background: rgba(96,165,250,0.15);
	color: #60a5fa;
	border: 1px solid rgba(96,165,250,0.3);
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 1.2rem;
}

.hero h1 {
	color: #fff;
	margin-bottom: 1.2rem;
	letter-spacing: -1px;
}

.hero h1 em {
	font-style: italic;
	color: #60a5fa;
}

.hero-sub {
	color: rgba(255,255,255,0.65);
	font-size: 1.1rem;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.hero-cta {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	padding: 0.85rem 2rem;
	border-radius: 0.625rem;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.2s, transform 0.1s;
	box-shadow: 0 4px 20px rgba(15,111,209,0.4);
}

.hero-cta:hover {
	background: var(--primary-dark);
	text-decoration: none;
	transform: translateY(-1px);
}

/* ── Mockup ─────────────────────────────────────────── */
.mockup-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
}

.phone-frame {
	width: 220px;
	background: #1e293b;
	border-radius: 36px;
	padding: 12px;
	box-shadow:
		0 0 0 2px #334155,
		0 30px 60px rgba(0,0,0,0.5),
		0 0 80px rgba(15,111,209,0.2);
}

.phone-screen {
	background: #f5f7fa;
	border-radius: 26px;
	overflow: hidden;
	font-size: 7px;
	font-family: 'DM Sans', sans-serif;
}

.phone-header {
	background: #fff;
	padding: 8px 10px 6px;
	border-bottom: 1px solid #e2e8f0;
}

.phone-header-title {
	font-size: 8px;
	font-weight: 700;
	color: #1a202c;
}

.phone-item {
	background: #fff;
	margin: 4px 6px;
	border-radius: 7px;
	padding: 6px 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 4px solid #ccc;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.phone-item.done { border-left-color: #28a745; background: #f2fff5; }
.phone-item.once { border-left-color: #ffcc00; background: #fffdf2; }

.phone-item-name { font-size: 7px; font-weight: 700; color: #1a202c; }
.phone-item-meta { font-size: 5.5px; color: #64748b; margin-top: 1px; }

.phone-btns { display: flex; gap: 3px; align-items: center; }

.phone-btn {
	width: 16px; height: 16px;
	border-radius: 5px;
	display: flex; align-items: center; justify-content: center;
	font-size: 9px; font-weight: 900;
}

.phone-btn-add  { background: #d4edda; color: #155724; }
.phone-btn-rem  { background: #f8d7da; color: #721c24; }
.phone-count    { font-size: 6px; font-weight: 700; color: #64748b; }

.phone-nav {
	background: #fff;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-around;
	padding: 5px 0 4px;
	margin-top: 4px;
}

.phone-nav-item {
	text-align: center;
	font-size: 5px;
	color: #64748b;
}

.phone-nav-item.active { color: #0f6fd1; font-weight: 700; }
.phone-nav-icon { font-size: 9px; display: block; }

/* ── Features ───────────────────────────────────────── */
.features { background: #fff; }

.features h2 { text-align: center; }

.features-intro {
	text-align: center;
	max-width: 37.5rem;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
	gap: 1.5rem;
}

.feature-card {
	background: var(--bg);
	border-radius: 1rem;
	padding: 1.8rem;
	border: 1px solid var(--border);
	transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
	font-size: 2rem;
	margin-bottom: 0.8rem;
	display: block;
}

.feature-card h3 { color: var(--text); }
.feature-card p  { font-size: 0.92rem; }

/* ── Warum ──────────────────────────────────────────── */
.why { background: var(--bg); }

.why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.why-text h2 { margin-bottom: 1.2rem; }

.why-list {
	list-style: none;
	margin-top: 1.2rem;
}

.why-list li {
	display: flex;
	gap: 0.8rem;
	margin-bottom: 1rem;
	align-items: flex-start;
}

.why-list li .icon {
	width: 1.75rem;
	height: 1.75rem;
	background: rgba(15,111,209,0.1);
	border-radius: 0.4375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.9rem;
}

.why-list li p {
	margin: 0;
	font-size: 0.95rem;
}

.why-quote {
	background: var(--hero-bg);
	border-radius: 1.25rem;
	padding: 2rem;
	color: rgba(255,255,255,0.85);
	position: relative;
	overflow: hidden;
}

.why-quote::before {
	content: '"';
	position: absolute;
	top: -1.25rem;
	left: 0.625rem;
	font-size: 10rem;
	font-family: 'DM Serif Display', serif;
	color: rgba(255,255,255,0.05);
	line-height: 1;
}

.why-quote p {
	color: rgba(255,255,255,0.8);
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.8;
	position: relative;
	z-index: 1;
}

.why-quote-author {
	margin-top: 1.2rem;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.45) !important;
	font-style: normal !important;
}

/* ── Anleitung ──────────────────────────────────────── */
.manual { background: #fff; }

.manual h2 { text-align: center; margin-bottom: 3rem; }

.manual-step {
	display: grid;
	grid-template-columns: 3.75rem 1fr;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	align-items: start;
}

.step-num {
	width: 3.25rem;
	height: 3.25rem;
	background: var(--primary);
	color: #fff;
	border-radius: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'DM Serif Display', serif;
	font-size: 1.4rem;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(15,111,209,0.3);
}

.step-body h3 { color: var(--text); font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-body p  { font-size: 0.95rem; margin-bottom: 0.6rem; }

.step-tip {
	background: #f0f7ff;
	border-left: 3px solid var(--primary);
	border-radius: 0 0.5rem 0.5rem 0;
	padding: 0.7rem 1rem;
	font-size: 0.88rem;
	color: #0a4f9e;
	margin-top: 0.5rem;
}

.step-tip strong { display: block; margin-bottom: 0.125rem; }

/* Listen in den Anleitungsschritten (BEM) */
.manual-step__list {
	margin: 0.5rem 0 0.8rem 1.2rem;
	font-size: 0.93rem;
	color: var(--text-sub);
}

.manual-step__item { margin-bottom: 0.4rem; }
.manual-step__item:last-child { margin-bottom: 0; }

.manual-step__label { color: var(--text); }
.manual-step__label--yellow { color: var(--status-yellow); }
.manual-step__label--green  { color: var(--accent); }

.manual-step__text--spaced { margin-top: 0.8rem; }

.tag {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 0.3125rem;
	font-size: 0.78rem;
	font-weight: 700;
	vertical-align: middle;
	margin-right: 0.25rem;
}

.tag-green  { background: #d4edda; color: #155724; }
.tag-red    { background: #f8d7da; color: #721c24; }
.tag-blue   { background: #d1ecf1; color: #0c5460; }
.tag-yellow { background: #fff3cd; color: #856404; }

/* ── Vital ──────────────────────────────────────────── */
.vital-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 1rem 0;
}

.vital-card {
	background: var(--bg);
	border-radius: 0.75rem;
	padding: 1rem;
	text-align: center;
	border: 1px solid var(--border);
}

.vital-card .vital-icon { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.vital-card h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.vital-card p  { font-size: 0.8rem; margin: 0; }

/* ── Technisch ──────────────────────────────────────── */
.tech { background: var(--bg); }

.tech h2 { text-align: center; margin-bottom: 2rem; }

.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.tech-card {
	background: var(--card);
	border-radius: 0.75rem;
	padding: 1.2rem 1.5rem;
	border: 1px solid var(--border);
	text-align: center;
}

.tech-card .tech-icon { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }
.tech-card h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.3rem; }
.tech-card p  { font-size: 0.82rem; margin: 0; }

/* ── Footer ─────────────────────────────────────────── */
footer {
	background: var(--hero-bg);
	color: rgba(255,255,255,0.5);
	padding: 2.5rem 0;
	text-align: center;
	font-size: 0.88rem;
}

footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: #fff; }
footer .h-abstand { margin: 0 0.8rem; }

/* ── Handy-Mockup: Liste ────────────────────────────── */
.phone-list { padding: 4px 0 2px; }

.phone-list__category {
	padding: 3px 8px;
	font-size: 5.5px;
	color: var(--text-sub);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Für wen ────────────────────────────────────────── */
.audience { background: #fff; padding: 4rem 0; }

.audience__title { font-family: 'DM Serif Display', serif; margin-bottom: 1rem; }

.audience__intro { color: var(--text-sub); max-width: 40rem; margin-bottom: 2rem; }

.audience__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
	gap: 1.2rem;
}

.audience__card {
	background: var(--bg);
	border-radius: 0.875rem;
	padding: 1.4rem;
	border-left: 4px solid var(--primary);
}

.audience__icon { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }

.audience__text { color: var(--text); margin: 0; font-size: 0.95rem; }

/* ── Vormerkung ─────────────────────────────────────── */
.signup {
	background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-end) 100%);
	padding: 3.5rem 0;
}

.signup__box {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 1.25rem;
	padding: 2.5rem;
	max-width: 40rem;
	margin: 0 auto;
	text-align: center;
}

.signup__icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }

.signup__title {
	font-family: 'DM Serif Display', serif;
	color: #fff;
	font-size: 1.6rem;
	margin-bottom: 0.8rem;
}

.signup__text {
	color: rgba(255,255,255,0.75);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.signup__highlight { color: var(--highlight); }

.signup__message {
	border-radius: 0.625rem;
	padding: 1rem 1.5rem;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.signup__message--success {
	background: var(--success-bg);
	border: 1px solid var(--accent);
	color: var(--success-text);
}

.signup__message--error {
	background: var(--danger-bg);
	border: 1px solid var(--danger);
	color: var(--danger-text);
}

.signup__form {
	display: flex;
	gap: 0.625rem;
	justify-content: center;
	flex-wrap: wrap;
}

.signup__input {
	flex: 1;
	min-width: 13.75rem;
	padding: 0.85rem 1rem;
	border: none;
	border-radius: 0.625rem;
	font-size: 1rem;
	font-family: inherit;
	outline: none;
}

.signup__button {
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 0.85rem 1.8rem;
	border-radius: 0.625rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.signup__note { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 1rem; }

/* ── App-Button (nach Ende der Vormerkung) ──────────── */
.launch {
	background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-end) 100%);
	padding: 3rem 0;
}

.launch__inner { text-align: center; }

.launch__icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

.launch__title {
	font-family: 'DM Serif Display', serif;
	color: #fff;
	font-size: 1.8rem;
	margin-bottom: 0.8rem;
}

.launch__text {
	color: rgba(255,255,255,0.75);
	font-size: 1rem;
	max-width: 30rem;
	margin: 0 auto 2rem;
}

.launch__button,
.launch__button:hover {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 1rem 2.5rem;
	border-radius: 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(40,167,69,0.4);
}

/* ── Technik: Ergänzungen ───────────────────────────── */
.tech__intro { text-align: center; max-width: 35rem; margin: 0 auto 2rem; }

.step-tip--centered { max-width: 42.5rem; margin: 0 auto; }

/* ── Haftungsausschluss ─────────────────────────────── */
.disclaimer { background: #fff; padding: 2rem 0; border-top: 1px solid var(--border); }

.disclaimer__box {
	background: var(--notice-bg);
	border: 1px solid var(--notice-border);
	border-left: 4px solid var(--warn);
	border-radius: 0.625rem;
	padding: 1.2rem 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.disclaimer__icon { font-size: 1.5rem; flex-shrink: 0; }

.disclaimer__title { color: var(--notice-title); display: block; margin-bottom: 0.3rem; }

.disclaimer__text {
	color: var(--notice-text);
	font-size: 0.88rem;
	margin: 0;
	line-height: 1.6;
}

/* ── Footer: Ergänzungen ────────────────────────────── */
.footer__copyright { margin-top: 1.2rem; font-size: 0.8rem; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 720px) {
	.hero .container  { grid-template-columns: 1fr; }
	.mockup-wrap      { display: none; }
	.why-grid         { grid-template-columns: 1fr; }
	.vital-grid       { grid-template-columns: 1fr 1fr; }
	.nav-links        { display: none; }
}

@media (max-width: 572px) {
	section           { padding: 3rem 0; }
	.manual-step      { grid-template-columns: 2.75rem 1fr; gap: 1rem; }
	.step-num         { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; border-radius: 0.625rem; }
	.vital-grid       { grid-template-columns: 1fr; }
}
