/* ==========================================================
   Autohaus Königsbrunn — Redesign 2026
   Behält Original-Struktur (Sidebar links, Inhalt rechts),
   aber clean & modern: keine Hintergrund-Texturen,
   großzügiger Weißraum, klare Typografie.
   ========================================================== */

:root {
	--bg: #f4f5f7;
	--card: #ffffff;
	--card-alt: #fafafa;
	--border: #e5e7eb;
	--border-strong: #d1d5db;
	--text: #111827;
	--text-muted: #4b5563;
	--text-dim: #6b7280;
	--accent: #c8323c;
	--accent-hover: #a91e29;
	--accent-soft: rgba(200, 50, 60, 0.08);
	--nav-bg: #1a1a1a;
	--nav-hover: #2a2a2a;
	--nav-active: #2a2a2a;
	--nav-text: #d1d5db;
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
	--shadow: 0 4px 16px rgba(0,0,0,0.06);
	--shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
	--radius: 10px;
	--radius-lg: 14px;
}

/* ---- Reset / Basis ---- */
html, body, h1, h2, h3, h4, ul, li {
	margin: 0;
	padding: 0;
}

* { box-sizing: border-box; }

h1 img { display: block; }

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover {
	color: var(--accent-hover);
}

.left { float: left; }
.right { float: right; }
.more { text-align: right; }
.clear { clear: both; }

body {
	background: var(--bg);
	text-align: center;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text);
	padding: 24px 16px;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---- Wrapper ---- */
#wrapper {
	text-align: left;
	margin: 0 auto;
	width: 1100px;
	max-width: 100%;
	position: relative;
	background: var(--card);
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* ---- Header (Foto-Bereich oben rechts) ---- */
#header {
	position: absolute;
	top: 0;
	left: 280px;
	right: 0;
	height: 320px;
	background: url(images/autoforum_augsburg.jpg) no-repeat center / cover;
	border-bottom: 1px solid var(--border);
}
#header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18));
	pointer-events: none;
}

/* ---- Linke Sidebar ---- */
#left {
	float: left;
	width: 280px;
	background: var(--card);
	border-right: 1px solid var(--border);
}

/* ---- Logo-Bereich oben links ---- */
#logo {
	width: 100%;
	height: 320px;
	background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
	text-align: center;
	color: var(--text);
	padding: 40px 24px 24px;
	border-bottom: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
}
#logo img.site-logo {
	width: 180px;
	height: auto;
	margin-bottom: 14px;
	display: block;
}
#logo h1 {
	font: 700 19px 'Inter', arial, sans-serif;
	letter-spacing: -0.01em;
	color: var(--text);
	margin: 0;
	padding: 0;
}
#logo p {
	margin: 10px 0 0 0;
	border: none;
	padding: 0;
	letter-spacing: 0.14em;
	font-weight: 600;
	font-size: 10.5px;
	color: var(--text-dim);
	text-transform: uppercase;
}

/* ---- Navigation ---- */
#nav {
	background: transparent;
	padding: 16px 16px 12px;
	border-bottom: 1px solid var(--border);
}
#nav ul {
	margin: 0;
	padding: 0;
	background: transparent;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#nav li {
	list-style: none;
	font: 500 14px 'Inter', arial, sans-serif;
	border: none;
	background: none;
	padding: 0;
	border-radius: 8px;
	transition: background-color .15s ease;
}
#nav li:hover {
	background: var(--accent-soft);
}
#nav a {
	color: var(--text-muted);
	text-decoration: none;
	border: none;
	display: block;
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	transition: color .15s ease;
}
#nav a:hover {
	color: var(--accent);
	text-decoration: none;
}
#nav .important {
	background: var(--accent-soft);
	border: none;
}
#nav .important a {
	color: var(--accent);
	font-weight: 600;
}

/* ---- News / Mitgliedschaft ---- */
#news {
	background: transparent;
	padding: 24px 20px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
#news h2 {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-dim);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
#news h3 {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-dim);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 22px 0 12px 0;
}
#news p {
	font-size: 12.5px;
	margin: 0 0 12px 0;
	line-height: 1.6;
	color: var(--text-muted);
	text-align: center;
}
#news a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}
#news a:hover {
	color: var(--accent);
}
#news center {
	display: block;
	text-align: center;
}
#news img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
#news .more {
	font-size: 11px;
	text-align: center;
	margin-top: 14px;
}
#news .more a {
	display: inline-block;
	padding: 6px 16px;
	background: var(--text);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 11px;
	transition: background-color .15s ease;
}
#news .more a:hover {
	background: var(--accent);
	color: #fff;
}
#news .hr-dots {
	background: none;
	border-top: 1px solid var(--border);
	height: 1px;
	margin: 18px 0;
}

/* ---- Support / Telefon-Box ---- */
#support {
	background: var(--card-alt);
	padding: 20px;
	min-height: auto;
	color: var(--text);
}
#support p {
	margin: 0 0 8px 0;
	font-size: 13px;
	line-height: 1.65;
}
#support p:last-child { margin-bottom: 0; }
#support a {
	color: var(--text);
	font-weight: 600;
}
#support a:hover {
	color: var(--accent);
}

/* ---- Hauptinhalt rechts ---- */
#right {
	float: right;
	width: calc(100% - 280px);
	padding: 360px 48px 40px 48px;
}
#right h2 {
	font: 700 28px 'Inter', arial, sans-serif;
	letter-spacing: -0.02em;
	color: var(--text);
	border: none;
	padding: 0 0 16px 0;
	margin: 0 0 24px 0;
	position: relative;
}
#right h2::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
	margin-top: 12px;
}
#right h3 {
	font: 600 17px 'Inter', arial, sans-serif;
	color: var(--text);
	border: none;
	padding-bottom: 8px;
	margin-bottom: 14px;
	margin-top: 32px;
	border-bottom: 1px solid var(--border);
}

#welcome {
	margin-right: 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--text-muted);
}
#welcome strong {
	color: var(--text);
	font-weight: 600;
}
#welcome img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin: 12px 0;
}
/* Logos ohne Schatten/Radius */
#welcome img[src*="logo"],
#welcome img[src*="autoforum_logo"] {
	box-shadow: none;
	border-radius: 0;
	background: transparent;
	max-width: 240px;
}
#welcome table {
	width: 100% !important;
	border-collapse: separate;
	border-spacing: 0;
	max-width: 100%;
	margin: 16px 0;
}
#welcome td {
	vertical-align: top;
	padding: 16px;
	background: var(--card-alt);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}
#welcome td + td {
	margin-left: 12px;
}
#welcome tr td:first-child {
	margin-right: 12px;
}
#welcome a {
	color: var(--accent);
	font-weight: 500;
}
#welcome a:hover {
	color: var(--accent-hover);
}
/* Spacing zwischen Tabellenzellen über Border-Spacing */
#welcome table {
	border-spacing: 12px;
	margin-left: -12px;
	margin-right: -12px;
}

#welcome center {
	display: block;
	text-align: center;
	margin: 16px 0;
}

/* "Knopf"-artige Links für javascript:Formular-öffnen */
#welcome a[href*="javascript"] {
	display: inline-block;
	padding: 10px 20px;
	background: var(--accent);
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	margin-top: 8px;
	transition: all .15s ease;
}
#welcome a[href*="javascript"]:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(200, 50, 60, 0.25);
}
#welcome a[href*="javascript"] strong {
	color: #fff !important;
}

#welcome textarea {
	max-width: 100%;
	width: 100%;
	font-family: 'Inter', monospace;
	font-size: 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px;
	background: var(--card-alt);
	resize: vertical;
	color: var(--text-muted);
	line-height: 1.6;
}

#profile { margin-right: 0; }
#right .left { margin-right: 18px; }
#right .more { font-weight: 600; font-size: 11px; }

#corp, #indu { float: left; width: 49%; }
#corp { margin-right: 1%; }

#spacer { height: 1.5em; }

/* ---- Footer ---- */
#footer {
	background: var(--text);
	clear: both;
}
#copyright {
	text-align: center;
	padding: 28px 24px;
	font-size: 12px;
	color: rgba(255,255,255,0.7);
	font-weight: 500;
	line-height: 1.7;
}
#copyright a {
	color: rgba(255,255,255,0.85);
	text-decoration: underline;
	text-underline-offset: 2px;
}
#copyright a:hover {
	color: var(--accent);
}
#footerline {
	display: none;
}

/* Iframes (z.B. AutoScout24) */
iframe {
	max-width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
	body {
		padding: 12px;
	}

	#wrapper {
		width: 100%;
		display: flex;
		flex-direction: column;
		border-radius: var(--radius);
	}

	#header {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		width: 100%;
		height: 0;
		padding-bottom: 50%;
		order: 1;
		border-bottom: 1px solid var(--border);
	}

	#left {
		float: none;
		width: 100%;
		display: contents;
	}

	#logo {
		display: none;
	}

	#nav {
		order: 2;
		width: 100%;
		padding: 0;
		background: var(--text);
		border-bottom: none;
	}
	#nav ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0;
	}
	#nav li {
		flex: 0 0 50%;
		text-align: center;
		border-radius: 0;
		border-right: 1px solid rgba(255,255,255,0.06);
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
	#nav li:nth-child(2n) {
		border-right: none;
	}
	#nav li:hover {
		background: rgba(255,255,255,0.05);
	}
	#nav a {
		color: rgba(255,255,255,0.8);
		padding: 14px 12px;
		font-size: 13px;
		border-radius: 0;
	}
	#nav a:hover {
		color: #fff;
	}
	#nav .important {
		background: rgba(200,50,60,0.18);
		border-bottom: 2px solid var(--accent);
	}
	#nav .important a {
		color: #fff;
		font-weight: 600;
	}

	#right {
		float: none;
		width: 100%;
		padding: 32px 28px;
		order: 3;
	}

	#news {
		order: 4;
		width: 100%;
		padding: 24px 28px;
		border-bottom: 1px solid var(--border);
		border-top: 1px solid var(--border);
	}

	#support {
		order: 5;
		width: 100%;
		padding: 20px 28px;
	}

	#footer {
		order: 6;
		width: 100%;
	}

	#welcome table,
	#welcome tbody,
	#welcome tr {
		display: block;
		width: 100% !important;
	}
	#welcome td {
		display: block;
		width: 100% !important;
		margin-bottom: 12px;
	}
	#welcome table {
		border-spacing: 0;
		margin: 0;
	}

	.clear { display: none; }
	#spacer { display: none; }
}

@media (max-width: 480px) {
	body {
		padding: 0;
	}
	#wrapper {
		border-radius: 0;
	}
	#right {
		padding: 28px 20px;
	}
	#right h2 {
		font-size: 23px;
	}
	#nav li {
		flex: 0 0 50%;
	}
	#nav a {
		padding: 12px 8px;
		font-size: 12.5px;
	}
	#news, #support {
		padding: 20px;
	}
	#welcome {
		font-size: 14.5px;
	}
	#copyright {
		font-size: 11px;
		padding: 22px 16px;
	}
}
