/*
 * Design "Sachsen Roleplay" fuer MatPo Image Hosting Script
 * Farbwelt und Schriften aus dem Banner der Community, gleich gehalten
 * mit der Startseite sachsen-roleplay.de.
 *
 * ACHTUNG: Diese Datei liegt im Paket de.matpo.mihs (_design/style/style.css)
 * und ueberschreibt bei der Installation die gleichnamige aus de.matpo.mfw.page.
 * Nach jeder Aenderung pack-paket.sh laufen lassen.
 */

/* ------------------------------------------------------------------ *
 * 1. Farben, Schriften, Masse -- die einzige Stelle fuer Farbwerte
 * ------------------------------------------------------------------ */
:root {
	--gold:        #f2c200;
	--gold-hell:   #ffe066;
	--gold-tief:   #7a6200;
	--gruen:       #3c8a3f;

	--bg:          #07080a;
	--bg-2:        #0c0e12;
	--flaeche:     #11141a;
	--flaeche-2:   #171b23;
	--flaeche-3:   #1d2230;

	--linie:       rgba(242, 194, 0, 0.16);
	--linie-weich: rgba(255, 255, 255, 0.07);
	--linie-stark: rgba(242, 194, 0, 0.38);

	--text:        #ece9e1;
	--gedaempft:   #8d8b84;
	--gedaempft-2: #63615c;

	--rot:         #d9503f;
	--rot-bg:      rgba(217, 80, 63, 0.12);
	--gruen-bg:    rgba(60, 138, 63, 0.14);

	--kopf:  'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
	--eng:   'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body:  'Barlow', 'Segoe UI', system-ui, sans-serif;

	--breite: 1180px;
	--radius: 10px;
	--radius-klein: 6px;
}

/* ------------------------------------------------------------------ *
 * 2. Grundlagen
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
	width: 100%;
	margin: 0;
	padding: 0;
}
html { height: 100%; }

body {
	min-height: 100%;
	color: var(--text);
	text-align: left;
	background-color: var(--bg);
	/* dezente Lichter in Gold, wie auf der Startseite */
	background-image:
		radial-gradient(1100px 520px at 12% -8%,  rgba(242, 194, 0, 0.10), transparent 62%),
		radial-gradient(900px  460px at 92% 4%,   rgba(242, 194, 0, 0.06), transparent 60%);
	background-attachment: fixed;
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
	font-family: var(--kopf);
	font-weight: 400;
	letter-spacing: .04em;
	color: var(--text);
	margin: 0 0 .4em 0;
	padding: 0;
	line-height: 1.1;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; color: var(--gold); }
h3 { font-size: 21px; }

p { margin: 0 0 1em 0; }

hr {
	height: 1px;
	border: 0;
	background: var(--linie-weich);
	margin: 18px 0;
}

form { margin: 0; padding: 0; }

img { border: 0; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }

strong, b { font-weight: 600; }

/* Das Bildhosting zeigt viele Zahlen und Adressen -- die brauchen Laufweite */
code, kbd, tt, pre {
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: .92em;
}

/* ------------------------------------------------------------------ *
 * 3. Kopfleiste (Willkommen + Schnellzugriffe)
 * ------------------------------------------------------------------ */
div.header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	min-height: 38px;
	padding: 6px 22px;
	color: var(--gedaempft);
	background: rgba(0, 0, 0, 0.55);
	border-bottom: 1px solid var(--linie);
	font-family: var(--eng);
	font-size: 15px;
	letter-spacing: .02em;
	text-align: left;
	background-image: none;
}
div.header_info {
	position: static;
	width: auto;
	top: auto;
	left: auto;
	color: var(--gedaempft);
}
div.header_info strong { color: var(--text); font-weight: 600; }
div.header_info a { color: var(--gold); }

div.usercp_header {
	position: static;
	width: auto;
	min-width: 0;
	padding: 0;
	color: var(--gedaempft);
	text-align: right;
	font-weight: 400;
}
div.usercp_header a {
	color: var(--gedaempft);
	white-space: nowrap;
	padding: 2px 0;
}
div.usercp_header a:hover { color: var(--gold); }
div.usercp_header img, div.header img { opacity: .85; }

/* ------------------------------------------------------------------ *
 * 4. Logo mit Schriftzug
 *    Das Wappen kommt als Bild, der Schriftzug als Text -- so bleibt er
 *    auf jedem Bildschirm scharf und laesst sich uebersetzen.
 * ------------------------------------------------------------------ */
div.logo {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: var(--breite);
	margin: 0 auto;
	padding: 20px 20px 16px 20px;
	position: relative;
}
/* Skyline aus dem Banner als leise Textur hinter dem Logo */
div.logo::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 92px;
	/* links ausgerichtet: dort liegt die Silhouette, rechts nur Pinselstriche */
	background: url(../images/skyline.jpg) left bottom / cover no-repeat;
	opacity: .38;
	/* nach rechts auslaufen lassen, damit der Schriftzug frei steht */
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
	pointer-events: none;
	z-index: 0;
}
div.logo > * { position: relative; z-index: 1; }

div.logo img {
	height: 78px;
	width: auto;
	flex: none;
	filter: drop-shadow(0 0 14px rgba(242, 194, 0, 0.28));
}
/* Schriftzug -- wird vom Template als Geschwister-Element geliefert */
div.logo .schriftzug {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
}
div.logo .schriftzug .marke {
	font-family: var(--kopf);
	font-size: 40px;
	letter-spacing: .07em;
	color: var(--gold);
	text-shadow: 0 0 22px rgba(242, 194, 0, 0.35);
}
div.logo .schriftzug .marke a { color: inherit; }
div.logo .schriftzug .dienst {
	font-family: var(--eng);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--gedaempft);
	margin-top: 4px;
}

/* ------------------------------------------------------------------ *
 * 5. Aussenrahmen und Navigation
 * ------------------------------------------------------------------ */
div.ausenrahmen {
	width: 100%;
	max-width: var(--breite);
	margin: 0 auto;
	padding: 0 20px 28px 20px;
	text-align: left;
	vertical-align: top;
}

div.ausenrahmen div.navigatsion_top_leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 4px;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 6px;
	text-align: left;
	background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
	background-image: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
	border: 1px solid var(--linie);
	border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
}
/* Die Abstandshalter aus dem Template braucht das Flex-Layout nicht mehr */
div.navigatsion_top_leiste > div[style] { display: none !important; }
div.navigatsion_top_leiste > div.button,
div.navigatsion_top_leiste > div.last_button { display: block !important; }

div.button, div.last_button {
	position: relative;
	width: auto;
	height: auto;
	min-height: 36px;
	margin: 0;
	padding: 8px 14px;
	float: none;
	clear: none;
	display: flex;
	align-items: center;
	background-image: none;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-klein);
	color: var(--text);
	font-family: var(--eng);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .03em;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
div.button:hover, div.last_button:hover,
div.button:focus-within, div.last_button:focus-within {
	background-image: none;
	background-color: rgba(242, 194, 0, 0.10);
	border-color: var(--linie-stark);
}
div.button a, div.last_button a {
	color: var(--text);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 7px;
}
div.button:hover a, div.last_button:hover a,
div.button a:hover, div.last_button a:hover { color: var(--gold); }
div.button img, div.last_button img { opacity: .9; }

/* Aufklapper der Navigation */
.button_ac, .butt_ac {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 888;
	min-width: 190px;
	width: auto;
	padding: 6px;
	text-align: left;
	background-color: var(--flaeche-2);
	border: 1px solid var(--linie);
	border-radius: var(--radius-klein);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
	font-size: 15px;
	font-weight: 500;
	display: none;
}
.button_ac a, .butt_ac a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 4px;
	color: var(--text);
}
.button_ac a:hover, .butt_ac a:hover {
	background-color: rgba(242, 194, 0, 0.12);
	color: var(--gold);
}
/* Das Template setzt hinter jeden Aufklapp-Link ein <br /> -- im Flex-Fluss stoert es */
.button_ac br, .butt_ac br { display: none; }

/* Das Aufklappen haengt im Template an jQuery-hover, also allein an der Maus.
   Mit der Tastatur kommt man so nie in ein Untermenue -- diese Regel oeffnet
   es zusaetzlich, sobald ein Link darin den Fokus hat. */
div.button:focus-within .button_ac,
div.last_button:focus-within .butt_ac { display: block; }

a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * 6. Inhaltsflaeche
 * ------------------------------------------------------------------ */
div.ausenrahmen div.inhalt {
	width: 100%;
	margin: 0;
	padding: 24px 26px 8px 26px;
	text-align: left;
	vertical-align: top;
	background-color: var(--bg-2);
	border: 1px solid var(--linie);
	border-bottom: 0;
}

table.table_inhalt { width: 100%; border-collapse: collapse; }
table.table_inhalt td { padding: 8px; }

div.seiten_box {
	width: 100%;
	margin: 14px 0;
	font-family: var(--eng);
	font-size: 16px;
}
div.seiten_box a {
	display: inline-block;
	min-width: 32px;
	padding: 4px 9px;
	margin-right: 4px;
	text-align: center;
	background-color: var(--flaeche);
	border: 1px solid var(--linie-weich);
	border-radius: var(--radius-klein);
}
div.seiten_box a:hover {
	background-color: rgba(242, 194, 0, 0.12);
	border-color: var(--linie-stark);
}

/* ------------------------------------------------------------------ *
 * 7. Boxen
 * ------------------------------------------------------------------ */
div.box_1_titel, div.box_2_titel {
	display: flex;
	align-items: center;
	gap: 9px;
	width: auto;
	height: auto;
	margin: 0 0 12px 0;
	padding: 0;
	color: var(--gold);
	background-image: none;
	font-family: var(--kopf);
	font-size: 25px;
	font-weight: 400;
	letter-spacing: .05em;
	text-align: left;
}
div.box_2_titel { font-size: 20px; color: var(--text); }

div.box_1_body, div.box_2_body {
	width: 100%;
	margin: 0 0 18px 0;
	padding: 20px;
	text-align: left;
	background-color: var(--flaeche);
	border: 1px solid var(--linie-weich);
	border-radius: var(--radius);
}
div.box_1_body ul, div.box_2_body ul { margin-bottom: 0; }

/* Reiter */
div.box_tabs { display: flex; flex-wrap: wrap; gap: 4px; }
div.box_tabs .box_tabs_l, div.box_tabs .box_tabs_r {
	width: auto;
	min-width: 110px;
	margin: 0;
	padding: 8px 14px;
	float: none;
	position: relative;
	text-align: center;
	background-color: var(--flaeche);
	border: 1px solid var(--linie-weich);
	border-bottom: 1px solid var(--linie-weich);
	border-radius: var(--radius-klein) var(--radius-klein) 0 0;
	font-family: var(--eng);
	font-weight: 600;
}
div.box_tabs .box_tabs_l:hover, div.box_tabs .box_tabs_r:hover {
	background-color: var(--flaeche-2);
	border-color: var(--linie-stark);
}
div.box_tabs .box_tabs_e { clear: both; width: 100%; }

/* ------------------------------------------------------------------ *
 * 8. Meldungen
 * ------------------------------------------------------------------ */
div.errors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px 0;
	padding: 14px 16px;
	color: var(--text);
	background-color: var(--rot-bg);
	border: 1px solid rgba(217, 80, 63, 0.45);
	border-top: 1px solid rgba(217, 80, 63, 0.45);
	border-bottom: 1px solid rgba(217, 80, 63, 0.45);
	border-left: 3px solid var(--rot);
	border-radius: var(--radius-klein);
}
div.errors div {
	width: 100%;
	color: var(--rot);
	font-size: 16px;
	font-weight: 600;
}
div.errors img { vertical-align: middle; }

div.infotext {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px 0;
	padding: 14px 16px;
	color: var(--text);
	background-color: var(--gruen-bg);
	border: 1px solid rgba(60, 138, 63, 0.45);
	border-top: 1px solid rgba(60, 138, 63, 0.45);
	border-bottom: 1px solid rgba(60, 138, 63, 0.45);
	border-left: 3px solid var(--gruen);
	border-radius: var(--radius-klein);
	font-size: 15px;
	font-weight: 500;
}
div.infotext img { vertical-align: middle; }

/* ------------------------------------------------------------------ *
 * 9. Formulare
 * ------------------------------------------------------------------ */
table.form {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--flaeche);
	border: 1px solid var(--linie-weich);
	border-radius: var(--radius);
	overflow: hidden;
}
table.form td.titel {
	width: 240px;
	padding: 13px 16px;
	text-align: left;
	vertical-align: top;
	background-color: var(--flaeche-2);
	border-right: 1px solid var(--linie-weich);
	border-bottom: 1px solid var(--linie-weich);
	font-family: var(--eng);
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}
table.form td.inhalt {
	padding: 13px 16px;
	border-bottom: 1px solid var(--linie-weich);
	vertical-align: top;
}
table.form .beschreibung {
	padding-top: 6px;
	color: var(--gedaempft);
	font-size: 13.5px;
	font-style: normal;
}

div.form_hinweis {
	margin-bottom: 16px;
	padding: 16px;
	background-color: var(--flaeche);
	border: 1px solid var(--linie-weich);
	border-radius: var(--radius);
	color: var(--gedaempft);
}

input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], input[type=search], textarea, select {
	max-width: 100%;
	margin: 2px 0;
	padding: 9px 11px;
	color: var(--text);
	background-color: var(--bg-2);
	border: 1px solid var(--linie-weich);
	border-radius: var(--radius-klein);
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.35;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { width: 100%; min-height: 140px; }
select {
	/* Auf dunklem Grund zeichnet der Browser die Liste sonst hellgrau */
	color: var(--text);
	background-color: var(--bg-2);
}
select option { color: var(--text); background-color: var(--flaeche-2); }

input[type=file] {
	max-width: 100%;
	margin: 2px 0;
	padding: 8px 10px;
	color: var(--text);
	background-color: var(--bg-2);
	border: 1px dashed var(--linie);
	border-radius: var(--radius-klein);
	font-family: var(--body);
	font-size: 14px;
	cursor: pointer;
}
input[type=file]::file-selector-button {
	margin-right: 10px;
	padding: 6px 12px;
	color: var(--bg);
	background: var(--gold);
	border: 0;
	border-radius: 4px;
	font-family: var(--eng);
	font-weight: 600;
	cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--gold-hell); }

input[type=text]:hover, input[type=password]:hover, input[type=email]:hover,
input[type=url]:hover, select:hover, textarea:hover, input[type=file]:hover {
	border-color: var(--linie-stark);
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input[type=url]:focus, select:focus, textarea:focus, input[type=file]:focus {
	outline: 0;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(242, 194, 0, 0.16);
}

input[type=checkbox], input[type=radio] {
	width: 16px;
	height: 16px;
	margin-right: 5px;
	vertical-align: -3px;
	accent-color: var(--gold);
	cursor: pointer;
}

input[type=submit], input[type=button], input[type=reset], button {
	padding: 10px 20px;
	color: var(--bg);
	background: var(--gold);
	border: 1px solid var(--gold);
	border-radius: var(--radius-klein);
	font-family: var(--eng);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease, transform .05s ease;
}
input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, button:hover {
	background: var(--gold-hell);
	border-color: var(--gold-hell);
}
input[type=submit]:active, input[type=button]:active, button:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ *
 * 10. Fussbereich
 * ------------------------------------------------------------------ */
div.footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	width: 100%;
	margin: 0;
	padding: 20px 26px 16px 26px;
	color: var(--gedaempft);
	background-color: var(--bg-2);
	border: 1px solid var(--linie);
	border-top: 1px solid var(--linie-weich);
	border-bottom: 0;
	font-family: var(--eng);
	font-size: 15px;
}
div.footer a { color: var(--gedaempft); }
div.footer a:hover { color: var(--gold); }
div.footer img { opacity: .8; }

div.footer_zeit { text-align: left; white-space: nowrap; }
div.footer_links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	text-align: right;
}
div.footer_links a { display: inline-flex; align-items: center; gap: 6px; }
/* Copyright und Herstellerhinweis stehen quer ueber die ganze Fussbreite */
#copyright, #poweredby, #language { flex: 0 0 100%; }

div.footerend {
	width: 100%;
	height: 4px;
	margin: 0 0 18px 0;
	background-image: none;
	background: linear-gradient(90deg, var(--gold-tief), var(--gold), var(--gold-tief));
	border-radius: 0 0 var(--radius) var(--radius);
}

#language {
	position: static;
	padding-top: 10px;
	text-align: left;
}
#copyright {
	padding-top: 14px;
	text-align: center;
	font-size: 13px;
	color: var(--gedaempft-2);
}
#poweredby {
	text-align: center;
	font-size: 12px;
	font-weight: 400;
	color: var(--gedaempft-2);
}
#copyright a, #poweredby a { color: var(--gedaempft); }

/* ------------------------------------------------------------------ *
 * 11. Aufraeumen: harte Vorgaben aus den Vorlagen von 2011
 *     Die Templates tragen feste Pixelbreiten und helle Rahmenfarben
 *     im style-Attribut. Auf dunklem Grund faellt beides auf.
 * ------------------------------------------------------------------ */
/* Die Vorlagen des Mitgliederbereichs tragen width:900px im style-Attribut
   (die Brotkrume ueber Formular, Avatar und Signatur). Auf allem, was
   schmaler ist als 900 px, schiebt das die Seite nach rechts hinaus. */
div.inhalt div[style*="width: 900px"] { width: auto !important; max-width: 100%; }

div.inhalt table { max-width: 100%; }
div.inhalt img { max-width: 100%; height: auto; }
/* Ausnahme: Symbole behalten ihre Groesse aus dem width/height-Attribut */
div.inhalt img[width] { max-width: none; }

/* ------------------------------------------------------------------ *
 * 12. Schmale Bildschirme
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
	div.logo { padding: 16px 16px 12px 16px; gap: 14px; }
	div.logo img { height: 60px; }
	div.logo .schriftzug .marke { font-size: 30px; }
	div.logo .schriftzug .dienst { font-size: 13px; letter-spacing: .26em; }
	div.ausenrahmen { padding: 0 12px 22px 12px; }
	div.ausenrahmen div.inhalt { padding: 18px 14px 6px 14px; }
	div.footer { padding: 16px 14px 14px 14px; }
	div.header { padding: 6px 14px; }
	div.usercp_header { text-align: left; }
	table.form td.titel { width: auto; }
}

@media (max-width: 620px) {
	body { font-size: 14.5px; }
	div.logo { flex-direction: row; }
	div.logo img { height: 48px; }
	div.logo .schriftzug .marke { font-size: 25px; }
	div.navigatsion_top_leiste { gap: 2px; padding: 5px; }
	div.button, div.last_button { padding: 7px 10px; font-size: 15px; }
	/* Die Vorlagen tragen width="200" an den Beschriftungsspalten -- das
	   sprengt schmale Geraete. Hier zaehlt der verfuegbare Platz. */
	div.inhalt td[width] { width: auto !important; }
	/* Formulartabellen brechen auf schmalen Geraeten in Zeilen um */
	table.form, table.form tbody, table.form tr, table.form td { display: block; width: 100%; }
	table.form td.titel {
		width: 100%;
		border-right: 0;
		border-bottom: 0;
		padding-bottom: 4px;
	}
	table.form td.inhalt { padding-top: 4px; }
	.button_ac, .butt_ac { min-width: 160px; }
}
