/* PH Height Checker — park-hirsch.de (Design wie Ratgeber-Templates) */

.ph-hc {
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1A1A1A;
	margin: 1.5em 0;
}

.ph-hc *, .ph-hc *::before, .ph-hc *::after { box-sizing: border-box; }
.ph-hc [hidden] { display: none !important; }

.ph-hc-title { font-size: 20px; font-weight: 700; color: #1A3A6B; margin: 0 0 6px; }
.ph-hc-intro { font-size: 15px; color: #444444; line-height: 1.6; margin: 0 0 18px; }

/* ── Eingabe ───────────────────────────────────────── */
.ph-hc-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 20px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.ph-hc-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; }

.ph-hc-field label { font-size: 13px; font-weight: 700; color: #1A3A6B; }

.ph-hc-field input {
	border: 1px solid #c5d8f5;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	width: 100%;
	min-height: 44px;
}

.ph-hc-btn {
	background: #E87C2A;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	min-height: 44px;
	flex: 1 1 100%;
	transition: background 0.15s;
}

.ph-hc-btn:hover { background: #D4691A; }

@media (min-width: 480px) { .ph-hc-btn { flex: 0 0 auto; } }

.ph-hc-error {
	background: #fff0f0;
	border: 1px solid #f0c4c4;
	border-left: 4px solid #c0392b;
	border-radius: 6px;
	padding: 11px 15px;
	font-size: 14px;
	margin-bottom: 16px;
}

/* ── Zusammenfassung ───────────────────────────────── */
.ph-hc-summary {
	background: #f0f9f1;
	border: 1px solid #bfe3c4;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 18px;
}

.ph-hc-summary strong { color: #1A3A6B; }

/* ── Gruppen ───────────────────────────────────────── */
.ph-hc-group {
	background: #fff;
	border: 1px solid #dde3ea;
	border-radius: 8px;
	margin-bottom: 14px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.ph-hc-group-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	padding: 11px 16px;
	color: #fff;
}

.ph-hc-group--alone  .ph-hc-group-head { background: #2e7d32; }
.ph-hc-group--parent .ph-hc-group-head { background: #E8A33D; }
.ph-hc-group--notyet .ph-hc-group-head { background: #c0392b; }
.ph-hc-group--toobig .ph-hc-group-head { background: #757575; }
.ph-hc-group--free   .ph-hc-group-head { background: #2C5AA0; }

.ph-hc-list { list-style: none; margin: 0; padding: 0; }

.ph-hc-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid #e8ecf0;
	font-size: 14px;
}

.ph-hc-list li:last-child { border-bottom: none; }
.ph-hc-list li:nth-child(even) { background: #F5F7FA; }

.ph-hc-meta {
	font-size: 12px;
	color: #444444;
	white-space: nowrap;
	flex-shrink: 0;
}

.ph-hc-meta--soon { color: #D4691A; font-weight: 700; }

/* Zugeklappte Gruppe (ohne Beschränkung) */
.ph-hc details.ph-hc-group summary {
	cursor: pointer;
	list-style: none;
}

.ph-hc details.ph-hc-group summary::-webkit-details-marker { display: none; }

.ph-hc details.ph-hc-group summary .arrow { margin-left: auto; transition: transform 0.2s; }
.ph-hc details[open].ph-hc-group summary .arrow { transform: rotate(180deg); }

.ph-hc-source { font-size: 12px; color: #444444; margin: 12px 0 0; }
.ph-hc-source a { color: #2C5AA0; }
