/*
Theme Name: wpbootstrap_jan
Theme URI: https://www.tummoscheit.de
Description: Custom Bootstrap-based theme (modernized / mobile-first).
Author: Jan Tummoscheit
Author URI: https://www.tummoscheit.de/
Version: 2.0
Tags: responsive, bootstrap, mobile-first

License: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
License URI: http://creativecommons.org/licenses/by-sa/3.0/
*/

/*
  Note:
  - Bootstrap is enqueued via functions.php (no @import here).
  - Keep overrides small and prefer utilities/classes in templates.
*/

:root {
	--theme-widget-bg: #e6e6e6;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

/* Fixed navbar offset (Bootstrap fixed-top). */
body {
	padding-top: 4.75rem;
}

@media (min-width: 992px) {
	body {
		padding-top: 5.25rem;
	}
}

/* -------------------------------------------------------------------------
   Widgets
   ------------------------------------------------------------------------- */

.widget_left_sidebar,
.widget_footer {
	background-color: var(--theme-widget-bg);
	border-radius: 0.5rem;
}

.widget_left_sidebar {
	padding: 0.5rem 0.75rem;
}

.widget_header {
	padding: 0.75rem 0.75rem 0;
}

.widget_footer {
	padding: 0.75rem;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

/* Slight spacing for custom menu items, without breaking Bootstrap layout. */
.navbar-nav .menu-item {
	margin-inline-start: 0.25rem;
}

/* -------------------------------------------------------------------------
   Carousel (mobile-first)
   ------------------------------------------------------------------------- */

.carousel .carousel-item > img {
	width: 100%;
	height: 40vh;
	min-height: 240px;
	max-height: 520px;
	object-fit: cover;
}

/* Caption: full-width overlay on small screens. */
.carousel-caption {
	background: rgba(0, 0, 0, 0.6);
	padding: 1rem;
	text-align: left;
}

@media (min-width: 992px) {
	/* On larger screens, make the caption a right-side panel. */
	.carousel-caption {
		right: 0;
		left: auto;
		bottom: 0;
		top: 0;
		width: min(36%, 520px);
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: left;
	}
}

.carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	border-radius: 10px;
}

/* -------------------------------------------------------------------------
   Utility helpers used in templates
   ------------------------------------------------------------------------- */

/* Equal-height columns helper (modern flex). */
.row-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.row-flex > [class*='col-'] {
	display: flex;
}

.row-flex > [class*='col-'] > * {
	width: 100%;
}


/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

footer .nav-link {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

footer .widget-title {
	font-size: 1rem;
	margin-bottom: 0.75rem;
}
