/**
 * HPF-Recht.de - Custom Styles
 * Mobile-first, Bootstrap 5 based
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
	/* Primary Colors */
	--hpf-red: #990200;
	--hpf-red-dark: #8C0600;
	--hpf-red-light: #AF0205;

	/* Secondary Colors */
	--hpf-gray-dark: #111111;
	--hpf-gray: #333333;
	--hpf-gray-medium: #585858;
	--hpf-gray-light: #F5F5F5;

	/* Accent Colors */
	--hpf-orange: rgba(232, 129, 10, 0.95);
	--hpf-green: rgba(57, 130, 21, 0.85);
	--hpf-blue: rgba(79, 112, 148, 0.9);

	/* Text Colors */
	--hpf-text-primary: #323232;
	--hpf-text-secondary: #6c757d;
	--hpf-text-light: #767676;

	/* Typography */
	--font-primary: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;

	/* Spacing */
	--section-padding: 2rem;
	--container-max-width: 920px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
	font-size: 16px;
}

body {
	font-family: var(--font-primary);
	font-weight: 400;
	color: var(--hpf-text-primary);
	line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	color: var(--hpf-text-primary);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; }

p { font-size: 1rem; }

b, strong {
	font-weight: 700 !important;
}

a {
	color: var(--hpf-red);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--hpf-gray-dark);
	text-decoration: underline;
}

/* Container */
.container {
	max-width: var(--container-max-width);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
	background-color: var(--hpf-gray-dark);
	border-color: transparent;
	color: #fff;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--hpf-red);
	border-color: transparent;
	color: #fff;
}

.btn-danger {
	background-color: var(--hpf-red);
	border-color: transparent;
}

.btn-danger:hover {
	background-color: var(--hpf-red-dark);
	border-color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-navigation {
	padding: 0 !important;
	background: transparent;
	position: absolute;
	width: 100%;
	z-index: 1000;
}

.navbar-brand {
	width: 200px;
	position: relative;
	padding: 0;
}

.navbar-brand img {
	padding: 0.5rem 0;
	max-height: 80px;
	width: auto;
}

.site-navigation .navbar-nav {
	flex-direction: row;
	gap: 0;
}

.site-navigation .nav-item .nav-link {
	text-transform: uppercase;
	padding: 1rem !important;
	font-size: 0.9rem;
	color: #FFFFFF;
	transition: background-size 0.2s ease-out;
	background-size: 100% 0;
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
}

.site-navigation .nav-item .nav-link:hover,
.site-navigation .nav-item .nav-link.active {
	background-size: 100% 100%;
}

/* Mobile Navigation */
.navbar-toggler {
	border: 0 !important;
	box-shadow: none !important;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 768px) {
	.navbar-brand {
		width: 300px;
	}

	.navbar-brand img {
		padding: 0.5rem;
		max-height: 100px;
	}

	.site-navigation .nav-item .nav-link {
		padding: 1.25rem 1rem !important;
		font-size: 1.1rem;
	}
}

@media (min-width: 992px) {
	.navbar-brand {
		width: 380px;
	}

	.navbar-brand img {
		max-height: 120px;
	}

	.site-navigation .nav-item .nav-link {
		padding: 1.75rem 1rem 1rem 1rem !important;
		font-size: 1.2rem;
	}
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.site-hero {
	position: relative;
	padding: 0;
	min-height: 280px;
	background: url(../img/background.jpg) center bottom no-repeat;
	background-size: cover;
	box-shadow: inset 0px -20px 10px -20px #000000;
}

.site-hero .container {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
}

.site-hero-content {
	display: block;
	margin-top: auto;
}

.site-hero-content .row {
	align-items: flex-end;
}

/* Mobile: Hero-Blocks kompakter */
.site-hero-block {
	height: auto;
	min-height: 120px;
	padding: 0.5rem;
}

.site-hero-block .icon {
	font-size: 1.5rem;
	margin-bottom: 0.25rem;
}

.site-hero-block .caption {
	font-size: 0.9rem;
	padding: 0.15rem 0;
}

.site-hero-block .text {
	font-size: 0.75rem;
	line-height: 1.3;
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.site-hero {
		background-position: center center;
		height: 35rem;
	}

	.site-hero-block {
		height: 220px;
	}

	.site-hero-block .icon {
		font-size: 3rem;
		margin-bottom: 0.5rem;
	}

	.site-hero-block .caption {
		font-size: 1.15rem;
		padding: 0.25rem 0;
	}

	.site-hero-block .text {
		font-size: 0.95rem;
		line-height: 1.6;
		margin-bottom: 1rem;
	}
}

/* Hero Cards - Base Styles */
.site-hero-block {
	display: block;
	background: rgba(0, 0, 0, 0.5);
	color: #FFFFFF;
	opacity: 0.65;
	transition: all 0.2s ease;
	box-shadow: inset 0px -20px 10px -20px #000000;
	text-decoration: none;
	border-radius: 8px 8px 0 0;
}

.site-hero-block:hover {
	color: #FFFFFF;
	opacity: 1;
	text-decoration: none;
	cursor: pointer;
}

.site-hero-block .icon {
	text-align: center;
}

.site-hero-block .caption {
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
}

.site-hero-block .text {
	text-align: center;
}

/* Hero Card Colors */
.site-hero-content .row > div:nth-child(1) .site-hero-block {
	background: rgba(140, 6, 0, 0.9);
}

.site-hero-content .row > div:nth-child(2) .site-hero-block {
	background: var(--hpf-orange);
}

.site-hero-content .row > div:nth-child(3) .site-hero-block {
	background: var(--hpf-green);
}

/* Hero Block Expand Animation */
.site-hero-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 999;
}

.site-hero-overlay.active {
	opacity: 1;
	visibility: visible;
}

.site-hero-block {
	cursor: pointer;
}

.site-hero-block.expanded {
	cursor: default;
}

.site-hero-block-expanded {
	display: none;
}

.site-hero-block.expanded {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 90vw;
	max-width: 500px;
	height: auto;
	min-height: auto;
	z-index: 1000;
	border-radius: 8px;
	will-change: transform, opacity;
}

.site-hero-block.expanded .site-hero-block-front {
	display: none;
}

.site-hero-block.expanded .site-hero-block-expanded {
	display: block;
	padding: 1.5rem;
}

.site-hero-block-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.site-hero-block-close:hover {
	opacity: 1;
}


.site-hero-block-expanded .icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.site-hero-block-expanded .caption {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.site-hero-block-expanded .expanded-content {
	font-size: 1rem;
	line-height: 1.6;
	text-align: left;
}

.site-hero-block-expanded .expanded-content p {
	margin-bottom: 1rem;
}

.site-hero-block-expanded .expanded-content ul {
	margin-bottom: 1rem;
	padding-left: 1.25rem;
}

.site-hero-block-expanded .btn {
	margin-top: 0.5rem;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
section, footer {
	padding: var(--section-padding) 0;
}

.site-block {
	padding: 2rem 0;
}

.site-block-bg {
	background: var(--hpf-gray-light);
}

.site-block h1 {
	border-left: rgba(0, 0, 0, 0.5) 10px solid;
	padding: 1rem 0 0 0.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.site-block h1 {
		font-size: 1.75rem;
		border-left-width: 15px;
		padding: 2rem 0 0 1rem;
	}
}

/* ==========================================================================
   Info Entry Component
   ========================================================================== */
.site-block-info-entry {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.site-block-info-entry:last-child {
	margin-bottom: 0;
}

.site-block-info-entry > i {
	font-size: 1rem;
	margin-right: 0.5rem;
	margin-top: 0.15rem;
	color: var(--hpf-red);
}

.site-block-info-entry > div b {
	font-weight: 700;
}

/* ==========================================================================
   Accordion Theme Variants
   ========================================================================== */
.accordion-orange .accordion-button:not(.collapsed) {
	background-color: var(--hpf-orange);
	color: #fff;
}

.accordion-orange .accordion-button:not(.collapsed)::after {
	filter: brightness(0) invert(1);
}

.accordion-orange .accordion-button:focus {
	box-shadow: 0 0 0 0.25rem rgba(241, 149, 29, 0.25);
}

/* ==========================================================================
   Contact Form Compact Variant
   ========================================================================== */
.contact-form-compact .form-label {
	display: none;
}

.contact-form-compact .contact-form-message {
	display: none;
}

.contact-form-compact .mb-3 {
	margin-bottom: 0.5rem !important;
}

.contact-form-compact .btn-lg {
	padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
	font-size: var(--bs-btn-font-size);
}

/* ==========================================================================
   News/Blog Component
   ========================================================================== */
.site-block-news-entry {
	padding: 0 1rem 0.5rem 1rem;
	border: 1px solid #DDDDDD;
	background-color: #FFFFFF;
	transition: box-shadow 0.15s ease;
	display: block;
	color: var(--hpf-text-secondary);
	margin-bottom: 1rem;
	border-radius: 6px;
}

a.site-block-news-entry:hover {
	box-shadow: 0px 0px 5px 2px #D0D0D0;
	cursor: pointer;
	color: var(--hpf-text-secondary);
	text-decoration: none;
}

.site-block-news-entry h2 {
	font-size: 1rem;
	border-left: rgba(0, 0, 0, 0.5) 10px solid;
	padding: 1.5rem 0 0 0.5rem;
	color: var(--hpf-text-primary);
}

.site-block-news-entry h2 span {
	display: block;
	font-size: 0.9rem;
	color: var(--hpf-text-light);
	font-weight: 400;
}

@media (min-width: 768px) {
	.site-block-news-entry {
		padding: 0 2rem 1rem 2rem;
	}

	.site-block-news-entry h2 {
		font-size: 1.25rem;
		border-left-width: 15px;
		padding: 2rem 0 0 1rem;
	}
}

/* Border Colors for News Categories */
.site-border-red {
	border-color: rgba(140, 6, 0, 0.9) !important;
}

.site-border-blue {
	border-color: rgba(79, 112, 148, 0.9) !important;
}

.site-border-green {
	border-color: rgba(57, 130, 21, 0.85) !important;
}

.site-border-black {
	border-color: rgba(0, 0, 0, 0.8) !important;
}

.site-border-orange {
	border-color: var(--hpf-orange) !important;
}

/* Pagination */
.pagination .page-link {
	color: rgba(79, 112, 148, 0.9);
	border-color: rgba(79, 112, 148, 0.3);
}

.pagination .page-link:hover {
	color: #fff;
	background-color: rgba(79, 112, 148, 0.9);
	border-color: rgba(79, 112, 148, 0.9);
}

.pagination .page-item.active .page-link {
	color: #fff;
	background-color: rgba(79, 112, 148, 0.9);
	border-color: rgba(79, 112, 148, 0.9);
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.site-block-team-vitae {
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
	position: relative;
}

.site-block-team-vitae:not(:last-child):after {
	content: "";
	background: #CDCDCD;
	position: absolute;
	bottom: 0;
	left: 25%;
	height: 1px;
	width: 50%;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.site-block-testimonials-entry .text {
	position: relative;
}

.site-block-testimonials-entry .text:before {
	content: "\f10e";
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	position: absolute;
	top: -2rem;
	right: 1rem;
	color: #EFEFEF;
	font-size: 5rem;
	z-index: -1;
}

.site-block-testimonials-entry .name {
	background: #E0E0E0;
	border-radius: 6px;
	padding: 0.5rem 1rem;
	margin-top: 1rem;
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */
.site-block-cta .content {
	background: linear-gradient(135deg, var(--hpf-red-dark), var(--hpf-red));
	color: #FFFFFF;
	padding: 1.5rem;
	border-radius: 8px;
}

.site-block-cta .caption {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #FFFFFF;
}

/* Bulli Section */
.site-block-bulli .content {
	background-color: #E5E5E5;
	padding: 1.5rem;
	border-radius: 8px;
}

.site-block-bulli ul {
	margin: 0;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form .form-control {
	border-radius: 6px;
	padding: 0.75rem 1rem;
	border: 1px solid #D0D0D0;
}

.contact-form .form-control:focus {
	border-color: var(--hpf-red);
	box-shadow: 0 0 0 0.2rem rgba(153, 2, 0, 0.15);
}

.contact-form label {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.contact-form .form-check-label {
	font-weight: 400;
}

/* Form Messages */
.alert-success {
	background-color: rgba(57, 130, 21, 0.15);
	border-color: var(--hpf-green);
	color: #2d6a11;
}

.alert-danger {
	background-color: rgba(153, 2, 0, 0.1);
	border-color: var(--hpf-red);
	color: var(--hpf-red-dark);
}

.contact-form .form-submit {
	display: flex;
	align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
	color: #EFEFEF;
	background-color: var(--hpf-gray-medium);
}

footer a {
	color: #FFFFFF;
}

footer a:hover {
	color: var(--hpf-red-light);
}

footer img {
	margin-bottom: 1rem;
	max-height: 60px;
}

footer h4, footer h5 {
	color: #FFFFFF;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	display: inline-block;
	margin-right: 1rem;
}

/* ==========================================================================
   Landing Page Specific
   ========================================================================== */
.landing-hero {
	background: linear-gradient(135deg, var(--hpf-red-dark), var(--hpf-red));
	color: #FFFFFF;
	padding: 4rem 0;
}

.landing-hero h1 {
	border-left: none;
	color: #FFFFFF;
	font-size: 2.5rem;
}

.landing-form {
	background: #FFFFFF;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.landing-benefits {
	background: var(--hpf-gray-light);
	padding: 3rem 0;
}

.landing-benefit-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.landing-benefit-item i {
	color: var(--hpf-green);
	font-size: 1.5rem;
	margin-right: 1rem;
	margin-top: 0.25rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hover-lift {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-hpf-red {
	color: var(--hpf-red);
}

.bg-hpf-red {
	background-color: var(--hpf-red);
}

.bg-hpf-gray {
	background-color: var(--hpf-gray-light);
}

/* Icon Color */
.icon-red path,
.text-hpf-red i {
	fill: var(--hpf-red);
	color: var(--hpf-red);
}

/* ==========================================================================
   Google Fonts Import (PT Sans Narrow)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&display=swap');

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
	.site-navigation {
		background: rgba(0, 0, 0, 0.75);
	}

	.site-hero {
		padding-top: 100px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.landing-hero h1 {
		font-size: 1.8rem;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--hpf-gray);
	padding: 2rem 0;
	color: #CCCCCC;
}

.site-footer a {
	color: #CCCCCC;
}

.site-footer a:hover {
	color: var(--hpf-red);
}

.list-pipe-separator {
	gap: 0;
}

.list-pipe-separator li:not(:last-child)::after {
	content: " | ";
	margin: 0 0.5rem;
}

/* Footer Social Icons */
.site-footer-social {
	display: flex;
	gap: 1rem;
}

.site-footer-social a {
	color: #CCCCCC;
	font-size: 1.25rem;
	transition: color 0.2s;
}

.site-footer-social a:hover {
	color: var(--hpf-red);
}

/* Social Media Links (Startseite) */
.site-social-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: #FFFFFF;
	border-radius: 8px;
	color: var(--hpf-gray);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	transition: transform 0.2s, box-shadow 0.2s;
}

.site-social-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	color: var(--hpf-red);
}

.site-social-link i {
	font-size: 1.5rem;
}