/* ==========================================================================
   permoser.de – statische Version
   Eigenes Stylesheet, Maße und Farben vom früheren Joomla-Template übernommen.
   ========================================================================== */

:root {
	--accent: #f5ab35;
	--heading: #162737;
	--text: #959595;
	--footer-bg: #27364a;
	--site-width: 1200px;
	--gutter: 35px;
	--font-text: "Trebuchet MS", Helvetica, sans-serif;
	--font-head: Montserrat, "Trebuchet MS", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--text);
	font: 14px/28px var(--font-text);
	-webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 500;
	color: var(--heading);
	line-height: 1.1;
	margin: 0 0 20px;
}
h1, h2 { font-size: 23.8px; }
h3 { font-size: 19px; }

p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 25px; }

.wrap { width: 100%; max-width: var(--site-width); margin: 0 auto; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--accent); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* --- Kopfbereich ------------------------------------------------------- */
.site-header {
	max-width: var(--site-width);
	margin: 0 auto;
	padding-bottom: 25px;
	background: url(../img/background1.jpg) center top / cover no-repeat;
}
.header-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: 127px;
	padding: 0 var(--gutter);
	border-bottom: 2px solid rgba(255, 255, 255, .85);
}
.logo { display: block; width: 280px; height: 125px; flex: none; overflow: hidden; }
.logo img { display: block; width: 300px; max-width: none; height: 125px; }

/* --- Hauptmenü --------------------------------------------------------- */
.main-nav { margin: 45px 0; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; }
.menu > li { position: relative; }
.menu a {
	display: block;
	font: 500 12.6px/35px var(--font-head);
	text-transform: uppercase;
	color: #fff;
	padding: 0 15px;
	border-radius: 3px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s;
}
.menu > li > a:hover,
.menu > li:focus-within > a,
.menu > li.is-active > a { background: var(--accent); }
.menu .has-sub > a::after {
	content: "";
	display: inline-block;
	margin-left: 7px;
	vertical-align: middle;
	border: 3px solid transparent;
	border-top: 4px solid currentColor;
	border-bottom: 0;
}
.menu .sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	width: 220px;
	margin-top: 10px;
	padding: 5px 0;
	background: var(--accent);
	border-radius: 3px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(5px);
	transition: opacity .3s, transform .3s, visibility .3s;
}
.menu .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu > li:hover > .sub,
.menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.menu .sub a { line-height: 32px; padding: 0 15px; border-radius: 0; white-space: normal; }
.menu .sub a:hover,
.menu .sub li.is-active > a { background: rgba(0, 0, 0, .12); }

.nav-toggle {
	display: none;
	background: none;
	border: 2px solid #fff;
	border-radius: 3px;
	color: #fff;
	width: 44px;
	height: 38px;
	margin: 43px 0;
	padding: 0;
	cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 22px; height: 2px; margin: 0 auto; background: #fff; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Beim Scrollen fixierte Menüleiste (wie zuvor) */
.sticky-bar {
	position: fixed; left: 0; right: 0; top: 0; z-index: 900;
	background: url(../img/background1.jpg) center / cover no-repeat;
	transform: translateY(-100%);
	transition: transform .3s;
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar .main-nav { margin: 10px auto; display: flex; justify-content: center; }

/* --- Inhalt ------------------------------------------------------------ */
/* Footer klebt unten: Hauptinhalt füllt den freien Platz */
.site-header, .site-main, .slogan, .crumbs, .site-footer { width: 100%; }
.site-main { flex: 1 0 auto; }

.site-main {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 50px 20px;
}
.content { padding: 0 15px; }

.leading { margin-bottom: 10px; }
.leading-center { text-align: center; }

.teasers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 -15px;
}
.teaser { padding: 0 15px; margin-bottom: 45px; }
.teaser h2 { word-break: normal; }
.teaser-img { margin: 0 0 15px; }
.teaser-img img { display: block; }

.readon {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 20px;
	font: 400 14px/16px var(--font-head);
	text-transform: uppercase;
	color: #fff;
	background: var(--accent);
	border-radius: 4px;
	transition: opacity .2s;
}
.readon:hover, .readon:focus { color: #fff; text-decoration: none; opacity: .85; }

.leading-item { overflow: hidden; margin-bottom: 30px; }
.leading-item .teaser-img { float: left; margin: 0 25px 10px 0; }

.article { overflow: hidden; }
.article-img { float: left; margin: 0 20px 10px 0; }
.article-img img { display: block; }
.article ul { overflow: hidden; }

.legal-block { margin-bottom: 35px; }
.legal-block h2 { margin-top: 0; }
.legal-block h3 { margin-top: 25px; font-size: 17px; }

/* Kontakt */
.contact-head { padding-bottom: 20px; margin: 20px 0 60px; border-bottom: 1px solid #eee; }
.contact-head h2 { margin: 0; }
.panel { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 60px; }
.panel-title {
	margin: 0; padding: 10px 15px;
	background: #f5f5f5; border-bottom: 1px solid #ddd;
	font: 700 14px/20px var(--font-text); color: var(--accent);
}
.panel-body { padding: 15px; }
.panel-body address { font-style: normal; line-height: 20px; margin: 0 0 20px; }

/* Breadcrumb */
/* Breadcrumb sitzt direkt über dem Footer */
.crumbs { width: 100%; max-width: var(--site-width); margin: 0 auto; padding: 0 var(--gutter) 30px; }
.breadcrumb {
	list-style: none;
	margin: 0;
	padding: 8px 15px;
	background: #f5f5f5;
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.breadcrumb svg { width: 11px; height: 11px; fill: #aaa; }
.breadcrumb .sep { color: #666; font-weight: 700; }

/* --- Slogan ------------------------------------------------------------ */
.slogan {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 50px var(--gutter);
	background: var(--accent);
	text-align: center;
}
.slogan h2 { color: #fff; margin: 0; text-transform: uppercase; }

/* --- Fußbereich -------------------------------------------------------- */
.site-footer {
	max-width: var(--site-width);
	margin: 0 auto;
	background: var(--footer-bg);
}
.footer-main { padding: var(--gutter); }
.site-footer address { font-style: normal; line-height: 20px; margin: 0 0 20px; }
.site-footer address strong { color: #b5b5b5; }
.site-footer .icon { width: 13px; height: 13px; fill: currentColor; vertical-align: -1px; margin-right: 3px; }
.mail-link { font-weight: 700; }
.to-top { display: inline-block; margin-top: 10px; }
.copyright { margin: 0; }
.copyright a { font-weight: 700; }

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0 20px 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.footer-menu a {
	display: block;
	padding: 10px 15px;
	line-height: 25px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}
.footer-menu a:hover { background: rgba(255, 255, 255, .06); }
.footer-menu .is-active > a { background: var(--accent); color: #fff; }

/* --- Datei-Upload ------------------------------------------------------ */
.up { max-width: 640px; }
.up label { display: block; font: 500 13px/1.4 var(--font-head); color: var(--heading); margin: 0 0 6px; }
.up input[type="text"], .up textarea {
	width: 100%; font: 14px/22px var(--font-text); color: #333;
	border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; margin: 0 0 18px;
}
.up textarea { min-height: 90px; resize: vertical; }
.drop {
	display: block; border: 2px dashed #ccc; border-radius: 6px; padding: 30px 20px; margin: 0 0 18px;
	text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fffaf2; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { color: var(--heading); }
.files { list-style: none; padding: 0; margin: 0 0 18px; }
.files li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eee; line-height: 32px; }
.files li span:last-child { white-space: nowrap; color: #aaa; }
.up button {
	font: 400 14px/16px var(--font-head); text-transform: uppercase; color: #fff;
	background: var(--accent); border: 0; border-radius: 4px; padding: 12px 24px; cursor: pointer;
}
.up button[disabled] { opacity: .6; cursor: wait; }
.bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin: 18px 0 0; }
.bar[hidden] { display: none; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.msg:empty { display: none; }
.msg { margin-top: 18px; padding: 12px 15px; border-radius: 4px; }
.msg.ok { background: #eef8e6; border: 1px solid #b4d39b; color: #3c5a24; }
.msg.err { background: #fdeceb; border: 1px solid #e5a29d; color: #8a2b22; }
.hint { font-size: 13px; color: #aaa; }

/* --- Responsiv --------------------------------------------------------- */
@media (max-width: 979px) {
	:root { --gutter: 16px; }
	.header-inner { flex-wrap: wrap; position: relative; }
	.logo { width: 224px; height: 100px; }
	.logo img { width: 240px; height: 100px; }
	.nav-toggle { display: block; margin: 20px 0; }
	.site-header .main-nav { display: none; width: 100%; margin: 0 0 15px; }
	.site-header.nav-open .main-nav { display: block; }
	.menu { flex-direction: column; background: rgba(22, 39, 55, .92); border-radius: 3px; padding: 5px 0; }
	.menu .sub {
		position: static; width: auto; margin: 0; padding: 0 0 5px 15px;
		background: none; opacity: 1; visibility: visible; transform: none;
	}
	.menu .has-sub > a::after { display: none; }
	.sticky-bar { display: none; }
	.site-main { padding: 35px 0; }
	.teasers { grid-template-columns: 1fr; margin: 0; }
	.teaser { padding: 0; }
	.leading-item .teaser-img, .article-img { float: none; margin: 0 0 15px; }
}

@media (min-width: 980px) and (max-width: 1199px) {
	.menu a { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.menu .sub, .sticky-bar { transition: none; }
}
