/* ==========================================================================
   alinko.de – modernes Theme
   Wird NACH bootstrap.min.css und ownstyle.css geladen und überschreibt nur
   das Aussehen. Zum Abschalten einfach die Einbindung in
   dynamic/head.inc.php (getCSS) entfernen.
   ========================================================================== */

:root {
	--brand: #ff5a1f;
	--brand-strong: #e8470e;
	--brand-soft: #fff1ea;
	--ink: #14161f;
	--ink-2: #3d4352;
	--muted: #6b7182;
	--line: #e9eaf0;
	--bg: #f6f7fb;
	--surface: #ffffff;
	--mint: #12b886;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(20, 22, 31, .06);
	--shadow: 0 1px 2px rgba(20, 22, 31, .05), 0 8px 24px -12px rgba(20, 22, 31, .18);
	--shadow-lg: 0 2px 4px rgba(20, 22, 31, .06), 0 20px 40px -16px rgba(20, 22, 31, .28);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--nav-h: 68px;
}

/* ---------- Basis ---------- */

body {
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-2);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font);
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--ink);
	text-transform: none;
}

a { color: var(--brand-strong); transition: color .15s ease, background .15s ease; }
a:hover, a:focus { color: var(--ink); text-decoration: none; }

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ---------- Formulare & Buttons ---------- */

.form-control {
	height: 44px;
	padding: 10px 16px;
	font-family: var(--font);
	font-size: 15px;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; border-radius: var(--radius-sm); }
.form-control:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(255, 90, 31, .15);
}

.btn {
	font-family: var(--font);
	font-weight: 700;
	text-transform: none;
	border-radius: 999px;
	padding: 10px 20px;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-primary,
.btn-default#suchenbutton,
.alinko-hero .btn {
	color: #fff;
	background: var(--brand);
	border: 0;
	box-shadow: 0 6px 16px -6px rgba(255, 90, 31, .6);
}
.btn-primary:hover, .btn-primary:focus,
.btn-default#suchenbutton:hover, .btn-default#suchenbutton:focus,
.alinko-hero .btn:hover, .alinko-hero .btn:focus {
	color: #fff;
	background: var(--brand-strong);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -8px rgba(255, 90, 31, .7);
}
.btn-default {
	color: var(--ink-2);
	background: var(--surface);
	border: 1px solid var(--line);
}
.btn-default:hover { background: var(--bg); border-color: var(--line); color: var(--ink); }

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

.navbar-default {
	min-height: var(--nav-h);
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border: 0;
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}

.navbar-default .navbar-brand {
	height: var(--nav-h);
	display: flex;
	align-items: center;
	padding: 0 15px;
	font-family: var(--font);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -.04em;
	text-transform: lowercase;
	color: var(--ink);
}
.navbar-default .navbar-brand::after {
	content: "";
	width: 9px;
	height: 9px;
	margin: 10px 0 0 3px;
	border-radius: 50%;
	background: var(--brand);
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus { color: var(--ink); }

.navbar-default .navbar-nav { margin-top: 0; margin-bottom: 0; }
.navbar-default .navbar-nav > li > a {
	font-family: var(--font);
	font-size: 14.5px;
	font-weight: 600;
	text-transform: none;
	color: var(--ink-2);
	border-radius: 999px;
}
@media (min-width: 768px) {
	.navbar-default .navbar-nav > li > a {
		margin: 14px 2px;
		padding: 8px 14px;
		line-height: 24px;
	}
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .active > a {
	color: var(--brand-strong);
	background: var(--brand-soft);
}
.navbar-default .navbar-nav .caret { margin-left: 2px; opacity: .6; }

/* Dropdowns */
.navbar .dropdown-menu {
	margin-top: 4px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	max-height: 70vh;
	overflow-y: auto;
}
.navbar .dropdown-menu > li > a {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
}
.navbar .dropdown-menu > li > a:hover,
.navbar .dropdown-menu > li > a:focus {
	color: var(--brand-strong);
	background: var(--brand-soft);
}
.navbar .dropdown-menu > li:first-child > a { font-weight: 700; color: var(--ink); }
.navbar .dropdown-menu > li:first-child > a::first-letter { text-transform: uppercase; }
.navbar .dropdown-menu .divider { margin: 6px 4px; background: var(--line); }

/* Shops A–Z als Buchstaben-Raster */
#navbar-main ul.navbar-nav .shops ul { width: 320px; padding: 8px; overflow-x: hidden; }
.navbar .shops .dropdown-menu > li.col-xs-12 { padding: 0 2px; }
.navbar .shops .dropdown-menu > li.col-xs-3 { width: 16.666%; padding: 2px; }
.navbar .shops .dropdown-menu > li.col-xs-3 > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0;
	font-weight: 700;
}

/* Suche in der Navigation */
.navbar-default .navbar-form {
	margin: 12px 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	display: flex;
	gap: 6px;
}
.navbar-default .navbar-form > span { flex: 1; padding: 0; width: auto; float: none; }
.navbar-default .navbar-form .form-control { width: 100%; height: 42px; }
.navbar-default .navbar-form #suchenbutton {
	float: none;
	width: auto;
	height: 42px;
	padding: 0 18px;
}

/* Mobile Navigation */
.navbar-default .navbar-toggle {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.navbar-default .navbar-toggle .icon-bar { background: var(--ink); }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background: var(--bg); }
.navbar-default .navbar-collapse { border-color: var(--line); box-shadow: none; }

/* ---------- Seitenrahmen ---------- */

#page { margin-top: calc(var(--nav-h) + 24px); }
@media (min-width: 768px) and (max-width: 991px) {
	#page { margin-top: calc(var(--nav-h) + 72px); }
}

@media (min-width: 992px) {
	#page > #content { padding-left: 0; padding-right: 0; }
}

.page-header { margin: 0; padding: 0; border: 0; }
.page-header:empty { display: none; }

/* ---------- Hero (Startseite) ---------- */

.alinko-hero {
	position: relative;
	margin: 0 0 28px;
	padding: 56px 24px 52px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(600px 240px at 12% 0%, rgba(255, 90, 31, .22), transparent 70%),
		radial-gradient(520px 260px at 92% 100%, rgba(18, 184, 134, .20), transparent 70%),
		linear-gradient(135deg, #fff7f2 0%, #ffffff 55%, #f1fbf7 100%);
}
.alinko-hero .h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.1;
}
.alinko-hero p {
	max-width: 560px;
	margin: 0 auto;
	font-size: 16px;
	color: var(--muted);
}
.alinko-hero form {
	display: flex;
	gap: 8px;
	max-width: 620px;
	margin: 28px auto 20px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow-lg);
}
.alinko-hero form .form-control {
	flex: 1;
	height: 48px;
	border: 0;
	font-size: 17px;
	font-weight: 500;
	background: transparent;
}
.alinko-hero form .form-control:focus { box-shadow: none; }
.alinko-hero form .btn { height: 48px; padding: 0 28px; font-size: 16px; }
.alinko-hero-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.alinko-hero-links a {
	padding: 6px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-2);
	background: rgba(255, 255, 255, .8);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.alinko-hero-links a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

@media (max-width: 600px) {
	.alinko-hero { padding: 36px 16px 32px; border-radius: 20px; }
	.alinko-hero form { flex-direction: column; border-radius: 20px; }
	.alinko-hero form .btn { width: 100%; }
}

/* ---------- Gutschein-Karten ---------- */

.voucherbox.panel {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 248px;
	margin-bottom: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.voucherbox.panel:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}
.voucherbox.panel::before {           /* Ticket-Akzent */
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	width: 4px;
	height: 26px;
	border-radius: 0 4px 4px 0;
	background: var(--brand);
}

.voucherbox > .panel-heading,
.panel-info > .panel-heading {
	padding: 18px 20px 6px;
	color: var(--ink);
	background: transparent;
	border: 0;
}
.voucherbox .panel-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.voucherbox > .panel-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 4px 20px 18px;
	font-size: 14px;
	color: var(--muted);
}
.voucherbox .fadeOutBox {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.voucherbox .innerFadeOutBox {
	flex: 1;
	min-height: 0;
	height: auto;
	-webkit-mask-image: linear-gradient(#000 70%, transparent);
	mask-image: linear-gradient(#000 70%, transparent);
}
.voucherbox .innerFadeOutBox img { border-radius: 8px; }
.fadeOutBox .fadeOut { display: none; }

.voucherbox .bottomLink {
	position: static;
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	margin-top: 12px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--brand-strong);
	background: var(--brand-soft);
	border: 1px dashed rgba(255, 90, 31, .45);
	border-radius: 12px;
}
.voucherbox .bottomLink::after {
	content: "\2192";
	margin-left: auto;
	font-size: 16px;
	transition: transform .15s ease;
}
.voucherbox:hover .bottomLink {
	color: #fff;
	background: var(--brand);
	border-color: var(--brand);
}
.voucherbox:hover .bottomLink::after { transform: translateX(3px); }

/* Listen ohne feste Höhe (Shop-/Detailseiten) */
.vouchers .voucherbox.panel { height: auto; }
.vouchers .voucherbox .innerFadeOutBox { -webkit-mask-image: none; mask-image: none; }

/* ---------- Gutschein-Unterseiten ---------- */

#content h1.title, #content h1 {
	margin: 0 0 18px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.03em;
}
#content h2.title { font-size: 22px; }

.voucherCategoryIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	margin-bottom: 16px;
	padding: 16px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	background: linear-gradient(140deg, #fff7f2, #ffffff 60%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .18s ease, box-shadow .18s ease;
}
.voucherCategoryIcon:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vouchers:has(> .voucherCategoryIcon) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.vouchers:has(> .voucherCategoryIcon) > :not(.voucherCategoryIcon) { grid-column: 1 / -1; }
.vouchers > .voucherCategoryIcon { margin: 0; }
.voucherCategoryIcon p { margin: 0; }
.voucherCategoryIcon a { color: var(--ink); }
.voucherCategoryIcon a:hover { color: var(--brand-strong); }

.letterHeadline {
	display: inline-block;
	margin: 4px 0 18px;
	padding: 8px 16px;
	font-weight: 700;
	color: #fff;
	background: var(--ink);
	border-radius: 999px;
}

/* Inhaltsseiten (Kontakt, Impressum, Suche, Tags) als Karte */
#page > .col-xs-12.col-lg-11,
#page > .col-xs-12.col-md-12.col-lg-11 {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.control-label { font-weight: 600; color: var(--ink); }

span.tags a {
	display: inline-block;
	margin: 6px 6px 0 0;
	padding: 3px 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brand-strong);
	background: var(--brand-soft);
	border-radius: 999px;
}
span.tags a:hover { color: #fff; background: var(--brand); }

.pagination > li > a,
.pagination > li > span {
	margin: 0 3px;
	min-width: 38px;
	text-align: center;
	color: var(--ink-2);
	font-weight: 600;
	border: 1px solid var(--line);
	border-radius: 10px !important;
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

/* ---------- Sidebar ---------- */

#page > .col-md-3 { padding-top: 0; }
#page > .col-md-3 .fa-rss-square { color: var(--brand); }
.btn-social-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 0;
}
.btn-social-icon > :first-child { line-height: 40px; font-size: 1.3em; }

/* ---------- Widebar: SEO-Text & Kategorie-Links ---------- */

#widebar {
	margin: 24px 15px 40px;
	padding: 40px;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 24px;
}
#widebar > div[style*="center"] { text-align: left !important; }
#widebar > div[style*="clear"] { display: none; }
#widebar h1 {
	font-size: 24px !important;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-top: 0;
}
#widebar h2 { font-size: 17px !important; margin-top: 22px; }
#widebar div[style*="justify"] {
	text-align: left !important;
	max-width: 860px;
	font-size: 15px;
	line-height: 1.75;
}
#widebar div[style*="justify"] a { color: var(--brand-strong) !important; font-weight: 600; }
#widebar div[style*="justify"] strong { color: var(--ink-2); font-weight: 600; }

#widebar .footerLinks {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 7px 14px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink-2);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 999px;
}
#widebar .footerLinks:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
#widebar strong > a, #widebar b > a { color: var(--ink); }
#widebar strong > a:hover, #widebar b > a:hover { color: var(--brand-strong); }

@media (max-width: 767px) {
	#widebar { padding: 24px; border-radius: 20px; }
	#widebar .footerLinks { display: inline-block; font-size: 13.5px; line-height: 1.4; }
}

/* ---------- Werbeflächen ---------- */

#page ins.adsbygoogle { max-width: 100%; }

/* ---------- Shop- und Gutscheinseiten (SEO-Inhalte) ---------- */

.alinko-breadcrumb {
	margin: 0 0 16px;
	padding: 0;
	font-size: 13px;
	background: none;
}
.alinko-breadcrumb > li + li:before { color: var(--muted); }
.alinko-breadcrumb a { color: var(--muted); }
.alinko-breadcrumb a:hover { color: var(--brand-strong); }
.alinko-breadcrumb > .active { color: var(--ink-2); }

.alinko-shop-head { overflow: hidden; margin-bottom: 8px; }
.alinko-shop-logo {
	float: right;
	max-width: 140px;
	max-height: 70px;
	margin: 0 0 12px 16px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}
.alinko-shop-meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.alinko-shop-intro { margin: 12px 0 24px; font-size: 15.5px; color: var(--ink-2); }

.alinko-voucher-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; }
.alinko-voucher-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.alinko-voucher-text { flex: 1; min-width: 0; }
.alinko-voucher-text a { display: block; font-weight: 600; color: var(--ink); }
.alinko-voucher-text a:hover { color: var(--brand-strong); text-decoration: none; }
.alinko-voucher-text small { display: block; margin-top: 2px; color: var(--muted); }
.alinko-badge {
	flex: none;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ink-2);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.alinko-badge-code { color: var(--brand-strong); background: var(--brand-soft); border-color: transparent; }
.alinko-voucher-btn {
	flex: none;
	color: #fff !important;
	font-weight: 600;
	background: var(--brand);
	border: 0;
	border-radius: 999px;
	padding: 8px 18px;
}
.alinko-voucher-btn:hover, .alinko-voucher-btn:focus { background: var(--brand-strong); }

.alinko-voucher-facts { list-style: none; margin: 18px 0; padding: 0; }
.alinko-voucher-facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.alinko-voucher-facts li span { display: inline-block; min-width: 170px; color: var(--muted); }
.alinko-code {
	padding: 4px 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--brand-strong);
	background: var(--brand-soft);
	border: 1px dashed var(--brand);
	border-radius: 8px;
}

.alinko-howto, .alinko-faq { margin: 28px 0; }
.alinko-howto h2, .alinko-faq h2 { font-size: 20px; margin: 0 0 12px; }
.alinko-howto ol { padding-left: 20px; }
.alinko-howto li { margin-bottom: 6px; }
.alinko-faq details {
	margin-bottom: 8px;
	padding: 12px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}
.alinko-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.alinko-faq details p { margin: 10px 0 0; }

@media (max-width: 600px) {
	.alinko-voucher-item { flex-wrap: wrap; }
	.alinko-voucher-btn { width: 100%; text-align: center; }
	.alinko-voucher-facts li span { display: block; min-width: 0; }
}
