/**
 * Frontend styles – Mobile First, Kadence-compatible.
 * No Bootstrap, no external frameworks.
 *
 * @package RedaktionHannoverUnternehmen
 */

/* -------------------------------------------------------------------------
   Base / Container
   ------------------------------------------------------------------------- */

.rhu-container {
	width: 100%;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.rhu-single,
.rhu-archive {
	padding-bottom: 3rem;
}

/* -------------------------------------------------------------------------
   Hero / Titelbild
   Height controlled via CSS variable --rhu-hero-height (from plugin settings).
   ------------------------------------------------------------------------- */

.rhu-hero {
	width: 100%;
	height: var(--rhu-hero-height, 560px);
	overflow: hidden;
	border-radius: 16px;
	position: relative;
	line-height: 0;
}

.rhu-hero__image {
	width: 100%;
	height: 100%;
	max-height: none;
	display: block;
	object-fit: cover;
	object-position: center center;
}

/* Hide Kadence entry hero on our CPT single pages */
body.rhu-unternehmen-single .entry-hero,
body.rhu-unternehmen-single .entry-hero-container,
body.rhu-unternehmen-single .hero-container,
body.rhu-unternehmen-single .entry-header .post-thumbnail {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Header (Logo, Title, Slogan)
   ------------------------------------------------------------------------- */

.rhu-header {
	text-align: center;
	padding: 2rem 0 1.5rem;
}

.rhu-logo {
	margin-bottom: 1.25rem;
}

.rhu-logo__img {
	max-width: 160px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rhu-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.25;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.rhu-premium-star {
	color: #e6a800;
	font-size: 1.2em;
	line-height: 1;
}

/* -------------------------------------------------------------------------
   Star rating (partial stars via width fill)
   ------------------------------------------------------------------------- */

.rhu-stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0.75rem;
	flex-wrap: wrap;
}

.rhu-stars__list {
	display: inline-flex;
	gap: 0.15rem;
}

.rhu-stars__star {
	position: relative;
	display: inline-block;
	font-size: 1.35rem;
	line-height: 1;
	width: 1.2em;
	height: 1.2em;
}

.rhu-stars__star-bg {
	color: #d1d5db;
}

.rhu-stars__star-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #e6a800;
	height: 100%;
}

.rhu-stars__value {
	font-weight: 700;
	font-size: 1rem;
	color: #333;
}

.rhu-stars__count {
	font-size: 0.9rem;
	color: #666;
}


.rhu-slogan {
	font-size: 1.1rem;
	color: #555;
	margin: 0 0 0.75rem;
	font-style: italic;
}

.rhu-kurzbeschreibung {
	font-size: 1rem;
	color: #444;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Buttons – large, modern, Kadence-like
   ------------------------------------------------------------------------- */

.rhu-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.5rem 0 2rem;
	align-items: stretch;
}

.rhu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	color: #fff;
	background: #2b6cb0;
	text-align: center;
}

.rhu-btn:hover,
.rhu-btn:focus {
	background: #1a4f8b;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	text-decoration: none;
}

.rhu-btn--phone {
	background: #2b6cb0;
}

.rhu-btn--whatsapp {
	background: #25d366;
}

.rhu-btn--whatsapp:hover {
	background: #1da851;
}

.rhu-btn--email {
	background: #718096;
}

.rhu-btn--email:hover {
	background: #4a5568;
}

.rhu-btn--web {
	background: #38a169;
}

.rhu-btn--web:hover {
	background: #2f855a;
}

.rhu-btn--small {
	padding: 0.55rem 1.1rem;
	font-size: 0.9rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.rhu-btn__icon {
	font-size: 1.15em;
	line-height: 1;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.rhu-section {
	margin: 2.5rem 0;
	padding: 1.75rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.rhu-section__title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid #e2e8f0;
}

.rhu-content {
	line-height: 1.7;
	color: #333;
}

.rhu-content p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Leistungen
   ------------------------------------------------------------------------- */

.rhu-leistungen__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rhu-leistungen__list li {
	background: #edf2f7;
	padding: 0.4rem 0.9rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
}

/* -------------------------------------------------------------------------
   Öffnungszeiten
   ------------------------------------------------------------------------- */

.rhu-hours__table {
	width: 100%;
	border-collapse: collapse;
}

.rhu-hours__table th,
.rhu-hours__table td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid #edf2f7;
}

.rhu-hours__table th {
	font-weight: 600;
	width: 40%;
	color: #4a5568;
}

.rhu-hours__table tr:last-child th,
.rhu-hours__table tr:last-child td {
	border-bottom: none;
}

/* -------------------------------------------------------------------------
   Google Maps – responsive
   ------------------------------------------------------------------------- */

.rhu-maps__embed {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}

.rhu-maps__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------------------------------------------------------------------------
   Social
   ------------------------------------------------------------------------- */

.rhu-social__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rhu-social__link {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	background: #edf2f7;
	color: #2d3748;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: background 0.15s ease;
}

.rhu-social__link:hover {
	background: #e2e8f0;
	color: #1a202c;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Cards / Grid
   ------------------------------------------------------------------------- */

.rhu-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.rhu-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rhu-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

.rhu-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.rhu-card__link:hover {
	text-decoration: none;
	color: inherit;
}

.rhu-card__image {
	overflow: hidden;
	line-height: 0;
}

.rhu-card__img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.rhu-card:hover .rhu-card__img {
	transform: scale(1.04);
}

.rhu-card__body {
	padding: 1.25rem;
}

.rhu-card__logo {
	margin-bottom: 0.75rem;
}

.rhu-card__logo-img {
	max-width: 64px;
	height: auto;
	border-radius: 6px;
}

.rhu-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.rhu-card__excerpt {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 1rem;
	line-height: 1.5;
}

.rhu-card__btn {
	display: inline-flex;
}

/* -------------------------------------------------------------------------
   Archive header
   ------------------------------------------------------------------------- */

.rhu-archive__header {
	text-align: center;
	padding: 2rem 0 1.5rem;
}

.rhu-archive__title {
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}

.rhu-archive__description {
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.rhu-no-results {
	text-align: center;
	padding: 2rem;
	color: #666;
}

/* -------------------------------------------------------------------------
   Tablet+
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Responsive hero heights (independent of desktop setting)
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.rhu-hero {
		height: min(var(--rhu-hero-height, 560px), 460px);
		max-height: 460px;
	}
}

@media (max-width: 767px) {
	.rhu-hero {
		height: 280px;
		max-height: 280px;
		border-radius: 0;
	}
}

/* -------------------------------------------------------------------------
   Tablet+ layout
   ------------------------------------------------------------------------- */

@media (min-width: 600px) {
	.rhu-buttons {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.rhu-btn {
		flex: 0 1 auto;
		min-width: 160px;
	}

	.rhu-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rhu-title {
		font-size: 2rem;
	}
}

/* -------------------------------------------------------------------------
   Desktop layout
   ------------------------------------------------------------------------- */

@media (min-width: 900px) {
	.rhu-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.rhu-section {
		padding: 2rem;
	}
}
