:root {
	--bg: #f5f7fa;
	--content-background: #ffffff;
	--content-text: #1f2937;
	--muted: #6b7280;
	--primary: #0030f6;
	--logo-text: var(--primary);
	--primary-dark: #1d4ed8;
	--border: #e5e7eb;
	--footer-background: #f4f4f4;
	--footer-text: #666;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--radius: 12px;
	--content-width: 1180px;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
		--bg: #656565;
		--border: #151515;
        --footer-background: #111827;
        --footer-text: #d1d5db;
		--content-background: #353535;
		--content-text: #ffffff;
		--logo-text: #ffffff;
    }
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--content-text);
	background: var(--bg);
	line-height: 1.6;
}

a {
	color: inherit;
}

a:hover {
	color: var(--primary);
}

/* HEADER */
header {
	background: var(--content-background);
	border-bottom: 1px solid var(--border);
	position: relative;
	z-index: 100;
}

header .header-inner {
	width: min(100% - 40px, var(--content-width));
	margin: 0 auto;
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

header .logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	white-space: nowrap;
	color: var(--logo-text);
}

header .logo img {
	width: 64px;
	height: 64px;
}

/* NAVIGATION */
.main-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}

.main-nav > ul > li {
	position: relative;
}

.main-nav a {
	display: block;
	padding: 27px 14px 0px 14px;
	color: var(--content-text);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav li.active > a {
	color: var(--primary);
}

.has-submenu > a::after {
	content: " ▾";
	font-size: 0.75rem;
	white-space: nowrap;
}

/* Dropdown */
.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	display: none !important;
	flex-direction: column;
	align-items: stretch !important;
	background: var(--content-background);
	border: 1px solid var(--border);
	border-radius: 0 0 10px 10px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.submenu li {
	width: 100%;
}

.submenu a {
	padding: 13px 18px;
	font-weight: 500;
	white-space: nowrap;
}

.submenu a:hover,
.submenu li.active a {
	background: #f8fafc;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
	display: flex !important;
}

/* HAUPTBEREICH */
main {
	flex: 1;
	width: 100%;
}

.content-wrapper {
	width: min(100% - 40px, var(--content-width));
	margin: 0 auto;
	padding: 48px 0 64px;
}

.content-card {
	background: var(--content-background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(24px, 4vw, 52px);
	overflow: hidden;
}

h1 {
	margin-top: 0;
	margin-bottom: 18px;
	line-height: 1.2;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
	margin-top: 32px;
	margin-bottom: 10px;
}

p {
	margin-top: 0;
}

.contact-box {
	margin-top: 25px;
	padding: 20px;
	border-left: 4px solid var(--primary);
	background: #f8fafc;
}

/* FOOTER */
footer {
	background: var(--footer-background);
	color: var(--footer-text);
	margin-top: auto;
}

.footer-inner {
	width: min(100% - 40px, var(--content-width));
	margin: 0 auto;
	min-height: 60px;
	padding: 26px 0;
	
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;

	align-items: center;
	gap: 20px;
}

.footer-links {	
    justify-self: end;

    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
	color: var(--footer-text);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--primary);
}




.hint {
    position: relative;
    text-align: center;
    color: var(--footer-text);    
}

.hint-short {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hint:hover .hint-short,
.hint:focus .hint-short {
    opacity: 1;
}


/* Vollständiger Text */
.hint-content  {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 15px);

    width: min(420px, 90vw);

    padding: 18px 20px;

    background: var(--content-background);
    color: var(--content-text);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow: var(--shadow);

    text-align: left;
    line-height: 1.5;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

.hint-content  p {
    margin: 8px 0 0;
}


/* Einblenden */
.hint:hover .hint-content ,
.hint:focus .hint-content  {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}






/* RESPONSIVE */
@media (max-width: 900px) {
	.header-inner {
		width: 100%;
		padding: 0 18px;
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.logo {
		padding-top: 18px;
		padding-bottom: 10px;
	}

	.main-nav {
		width: 100%;
		overflow-x: auto;
	}

	.main-nav > ul {
		min-width: max-content;
	}

	.main-nav a {
		padding: 16px 12px;
	}

	.submenu {
		top: auto;
	}

	.content-wrapper,
	.footer-inner {
		width: 100%;
		padding-left: 18px;
		padding-right: 18px;
	}

	.content-wrapper {
		padding-top: 26px;
		padding-bottom: 36px;
	}

	.service-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.content-wrapper,
	.footer-inner {
		padding-left: 10px;
		padding-right: 10px;
	}

	.content-card {
		border-radius: 8px;
		padding: 22px 18px;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}