/** 
 * main.css — DOBU Häuserbuch
 * 
 * Theme-Variablen werden aus theme-new.css oder theme-original.css geladen.
 * Zum Wechseln: In _main.php die theme-*.css-Datei tauschen.
 * 
 * 1. General
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 7. Haus-Detailseite
 * 8. Orts-Übersichtsseiteddd
 * 
 */

/*********************************************************************
 * 1. General
 *
 */

* {
	box-sizing: border-box; 
}

body {
	padding: 2% 5%;
	max-width: var(--max-width); 
	margin: 0 auto; 
	font-family: var(--font-body);
	font-size: 90%; 
	line-height: 1.7em;
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%; 
}

h1 {
	font-family: var(--font-heading);
	font-size: var(--h1-size);
	font-weight: var(--h1-weight);
	line-height: 1.15em;
	margin: 0.5em 0 0.3em 0;
	letter-spacing: -0.02em;
	color: #000;
}

h2 {
	font-family: var(--font-heading);
	font-size: var(--h2-size);
	font-weight: var(--h2-weight);
	text-transform: var(--h2-transform);
	letter-spacing: var(--h2-spacing);
	color: #000;
	border-top: var(--border-heavy);
	padding-top: 1.2em;
	margin-top: 2em;
}

h3 {
	font-family: var(--font-heading);
	font-size: var(--h3-size);
	font-weight: var(--h3-weight);
	text-transform: var(--h3-transform);
	letter-spacing: var(--h3-spacing);
	color: #333;
	border-bottom: var(--border-heavy);
	padding-bottom: 0.4em;
	margin-top: 1.8em;
}

h4 {
	font-family: var(--font-heading);
	font-weight: 500;
	color: #333;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	border-bottom: var(--link-border); 
}
	a:hover,
	.nav a:hover {
		color: #000;
		border-color: var(--link-hover-border); 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 3px solid #333; 
	font-style: italic; 
	color: var(--color-muted); 
}

pre, code {
	background: #f5f5f5; 
	border: var(--border-light); 
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 3px solid #333; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */

.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0;
}
	.topnav li {
		float: left; 
		margin-right: 1em;
		margin-bottom: 1em;
	}
	.topnav a {
		padding: 0.25em 0.5em;
		text-decoration: none; 
		display: block;
		background: #eee; 
		color: #333; 
		border: 1px solid #eee; 
	}
	.topnav a:hover {
		background: #ddd;
		border-color: #ddd; 
	}
	.topnav li.current a {
		background: #ddd; 
		border-color: #ddd; 
	}
	.topnav li.edit a {
		background: none; 
	}

.languages {
	list-style: none; 
	margin: 0;
	padding: 0; 
	float: right;
	width: 30%; 
	font-size: 80%; 
}

	.languages li {
		list-style: none; 
		display: inline-block;
		margin: 0;
		padding: 0;
	}

	.languages a {
		padding: 0 0.5em;
		border: none; 
		display: inline;
		border-left: 1px solid #ccc; 
	}
		.languages li.current a {
			font-weight: bold; 
		}
		.languages li:first-child a {
			border: none; 
			padding-left: 0;
		}



/* Top-Bar: Sprachauswahl */
.top-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 0.5em;
}

.top-bar .languages {
	float: none;
	width: auto;
	margin: 0;
}

/* Site-Header: Titel + Suche rechts */
.site-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 2em;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
}

.site-title {
	text-align: left;
}

.site-title a {
	font-family: var(--font-heading);
	font-size: var(--site-title-size);
	font-weight: bold;
	color: #000;
	text-decoration: none;
	border-bottom: none;
	line-height: 1.2em;
	display: block;
	text-transform: uppercase;
	letter-spacing: var(--site-title-spacing);
}

.site-title a span {
	font-weight: bold;
	letter-spacing: calc(var(--site-title-spacing) * 2);
	color: #000;
}

.site-title a:hover {
	color: #555;
}

/* Suchfeld im Header */
.site-header .search {
	width: 100%;
	max-width: 400px;
	margin: 0;
	display: flex;
	flex-shrink: 0;
	border-top: var(--border-heavy);
	border-bottom: var(--border-heavy);
}

.site-header .search input {
	flex: 1;
	padding: 0.5em 0.8em;
	border: none;
	background: transparent;
	font-size: 0.95em;
	outline: none;
}

.site-header .search button {
	padding: 0.5em 0.8em;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.4em;
	color: #333;
}

.site-header .search button:hover {
	color: #000;
}

form.search {
	margin: 0;
	width: 200px; 
	padding-bottom: 0;
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		width: 100%; 
	}

.breadcrumbs {
	font-size: 80%; 
	width: 70%; 
	float: left;
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
	border-top: var(--border-heavy); 
	padding-top: 1em; 
	margin-top: 1em; 
	clear: both; 
}

#content {
	width: 100%;
	max-width: 100%; 
}

#content, #sidebar {
	padding-bottom: 2em; 
}

body.has-sidebar #content {
	width: 65%; 
	float: left;
}

body.has-sidebar #sidebar {
	width: 35%;
	padding-left: 5%; 
	float: left; 
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: disc;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}

	.nav a {
		font-family: var(--font-heading);
		font-weight: 500;
	}

	.nav-tree li a {
		color: var(--color-muted); 
	}

	.nav .current > a {
		color: #000; 
	}

#sidebar img + blockquote {
	margin-top: 0; 
}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	border-top: var(--border-heavy); 
	font-size: 80%; 
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	.languages {
		width: 100%; 
		margin-bottom: 1em;
	}
	.topnav {
		float: none;
		clear: both; 
		width: 100%; 
	}
	.breadcrumbs {
		margin-bottom: 1em;
		margin-top: 0;
	}

	body, td, textarea {
		font-size: 100%; 
	}
	body.has-sidebar #content, 
	body.has-sidebar #sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
	}
	form.search {
		float: none; 
		width: 100%; 
		padding-bottom: 0;
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
/*********************************************************************
 * 7. Haus-Detailseite (Bildwechsler + Fakten-Tabelle)
 *
 */

/* H1-Titel: eingerückt wie die rechte Textspalte */
body.template-ldk_haus #content > h1 {
	margin-left: calc(45% + 0.8em);
	padding-bottom: 0;
	margin-bottom: 0;
}

.haus-detail {
	display: flex;
	gap: 2em;
	margin: 0 0 2em 0;
	border-top: var(--border-heavy);
	padding-top: 0.8em;
}

.haus-bilder {
	flex: 0 0 45%;
	max-width: 45%;
}

.haus-text {
	flex: 1;
	min-width: 0;
	font-size: 0.95em;
	line-height: 1.5em;
}

/* ==========================================================
   BILD-SLIDER – Haus-Detailseite
   ========================================================== */

.bild-wechsler {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    background: #fff;
    /* Grundverhältnis als Fallback (Landscape). Die Höhe wird per JavaScript
       dynamisch an das aktive Bild angepasst, damit Portrait-Bilder der
       Breite nach eingepasst werden und der Slider nach unten wächst. */
    aspect-ratio: 3 / 2;
    transition: aspect-ratio 0.55s ease-in-out;
}

/* Alle Bilder liegen übereinander */
.bild-wechsler img.bild-slide {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;

    opacity: 0;
    transform: translateX(100%);

    transition:
        transform 0.55s ease-in-out,
        opacity 0.55s ease-in-out;

    pointer-events: none;
    z-index: 0;
}

/* Aktives Bild */
.bild-wechsler img.bild-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

/* Bildunterschrift */
.bild-caption {
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #666;
    line-height: 1.6em;
    text-align: left;
    min-height: 1.6em;
    overflow: hidden;
}

.caption-line {
    display: block;
}

.caption-name {
    font-weight: 600;
    color: #444;
}

.caption-fotograf,
.caption-standort {
    color: #888;
}

/* Navigation 1 2 3 */
.bild-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0.4em;

    margin-bottom: -2px;
    padding-left: 0;
    padding-bottom: 0.4em;

    position: relative;
    z-index: 5;
}

.bild-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 1.6em;
    height: 1.6em;

    background: transparent;
    color: #999;

    cursor: pointer;

    font-size: 0.85em;
    font-family: var(--font-heading);

    transition:
        color 0.25s ease,
        font-weight 0.25s ease;
}

.bild-dot.active,
.bild-dot:hover {
    background: transparent;
    color: #000;
    font-weight: 700;
}

/* Bildunterschrift (wird von .bild-caption oben überschrieben, hier als Fallback) */
.bild-caption {
	margin-top: 0.5em;
	font-size: 0.85em;
	color: #666;
	text-align: left;
	line-height: 1.6em;
	min-height: 1.6em;
}
.caption-line {
	display: block;
}
.caption-name {
	font-weight: 600;
	color: #444;
}
.caption-fotograf,
.caption-standort {
	color: #888;
}

/* FAKTEN (3-Spalten-Layout: Label | Jahr | Wert) */
.fakten-tabelle {
	margin: 0.5em 0 2em 0;
	background: var(--table-bg);
}

.fakten-zeile {
	display: flex;
	align-items: baseline;
	padding: 0.2em 0;
	border-bottom: 1px solid #333;
	margin: 0 1em;
}

.fakten-zeile:last-child {
	border-bottom: none;
}

.fakten-label {
	flex: 0 0 24%;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #333;
	white-space: nowrap;
}

.fakten-col-jahr {
	flex: 0 0 20%;
	font-size: 0.85em;
	color: #666;
	padding-left: 0.5em;
}

.fakten-col-wert {
	flex: 1;
	font-size: 0.85em;
	padding-left: 0.5em;
}

/* Alte Klassen entfernen */
.fakten-wert,
.fakten-adress-eintrag,
.fakten-adress-jahr,
.fakten-adress-text,
.fakten-haus-nr,
.fakten-adress-detail {
	display: none;
}

/* HISTORISCHE STRASSENNAMEN (nicht mehr separat, in Fakten integriert) */
.hist-strassen-tabelle,
.hist-strassen-zeile,
.hist-strassen-adresse,
.hist-strassen-zeit {
	display: none;
}

/* QUELLEN-Liste (zentral) */
.quellen-liste {
	margin: 0.5em 0 2em 0;
	padding-left: 1.5em;
	font-size: 0.85em;
	line-height: 1.6em;
	color: var(--color-muted);
}

.quellen-liste li {
	margin-bottom: 0.3em;
}

/* LINKS-Liste */
.links-liste {
	margin: 1em 0 2em 0;
	padding-left: 1.5em;
	font-size: 0.85em;
	line-height: 1.6em;
	color: #666;
}

.links-liste li {
	margin-bottom: 0.3em;
}

.links-liste a {
	border-bottom: 1px solid #ccc;
}

/* HAUSBESCHREIBUNG 2: Trennstrich oberhalb (wie unter "Bewohner") */
.haus-beschreibung2 {
	border-top: var(--border-heavy);
	padding-top: 1.2em;
	margin-top: 2em;
}

/* BEWOHNER-Tabelle (Adressbuch) */
.bewohner-tabelle {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5em 0 1.5em 0;
	font-size: 0.85em;
	color: #666;
}

.bewohner-tabelle thead {
	background: #f5f5f5;
}

.bewohner-tabelle th {
	text-align: left;
	padding: 0.4em 0.6em;
	font-weight: 600;
	border-bottom: 2px solid #333;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
}

.bewohner-tabelle td {
	padding: 0.3em 0.6em;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.bewohner-tabelle tbody tr:hover {
	background: #fafafa;
}

/* Besitzer-Hervorhebung */
.bew-haus-besitzer {
	color: #c00;
	font-weight: 500;
}

.bew-haus-besitzer:hover {
	background: #fff5f5 !important;
}

/* Quellen-Legende unter Bewohner-Tabelle */
.bewohner-quellen-legende {
	margin-top: 0.5em;
	font-size: 0.85em;
	color: #666;
	line-height: 1.6em;
}

.bew-quellen-eintrag {
	padding: 0.1em 0;
}

.bew-quellen-eintrag a {
	color: var(--color-accent);
	text-decoration: none;
	border-bottom: var(--link-border);
}

/* FUSSNOTEN (in Beschreibungstexten) */
.fussnote-ref {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    top: -0.4em;
    text-decoration: none;
    color: var(--color-accent, #666);
    font-weight: 600;
}

.fussnote-ref:hover {
    color: #000;
    text-decoration: underline;
}

.fussnoten-trenner {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0 0.5em 0;
    width: 30%;
}

.fussnoten-liste {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6em;
    padding-left: 1.5em;
    margin: 0 0 2em 0;
}

.fussnoten-liste li {
    margin-bottom: 0.3em;
}

.fussnote-back {
    text-decoration: none;
    color: #999;
    margin-right: 0.2em;
    font-size: 0.9em;
}

.fussnote-back:hover {
    color: #333;
}

.links-liste a:hover {
	border-color: #666;
}

/* Responsive: unter 768px untereinander */
@media only screen and (max-width: 767px) {
	.haus-detail {
		flex-direction: column;
	}
	.haus-bilder {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.haus-text {
		font-size: 0.9em;
		line-height: 1.45em;
	}
	.fakten-tabelle th {
		width: 35%;
	}
}

/*********************************************************************
 * 8. Orts-Übersichtsseite (alphabetische Liste)
 *
 */

.ort-einleitung {
	margin-bottom: 2em;
}

.ort-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	margin-bottom: 2em;
	padding: 1em;
	background: #f5f5f5;
	border-radius: 4px;
	justify-content: center;
}

.ort-buchstabe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	text-decoration: none;
	border-radius: 3px;
	font-weight: bold;
	color: #333;
	background: #fff;
	border: 1px solid #ddd;
	transition: background 0.2s;
}

.ort-buchstabe:hover {
	background: #e0e0e0;
}

.ort-buchstabe.leer {
	color: #ccc;
	background: transparent;
	border-color: transparent;
	cursor: default;
}

.ort-gruppe {
	margin-bottom: 1.5em;
}

.ort-gruppe-titel {
	font-size: 1.5em;
	color: #555;
	border-bottom: 2px solid #ddd;
	padding-bottom: 0.3em;
	margin-bottom: 0.5em;
}

.ort-spalten {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 2em;
}

.ort-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ort-items li {
	margin-bottom: 0.4em;
	break-inside: avoid;
}

.ort-items a {
	font-weight: bold;
	border-bottom: none;
}

.ort-items a:hover {
	text-decoration: underline;
}

.ort-items a.haus-unvollstaendig {
	color: #b0b0b0;
	font-weight: normal;
}

.ort-items a.haus-unvollstaendig:hover {
	color: #888;
}

.ort-adresse {
	color: #888;
	font-size: 0.9em;
}

/* Homepage: 3 Spalten */
.home-drei-spalten {
	display: flex;
	gap: 2em;
	margin-top: 1em;
}

.home-col {
	flex: 1;
	min-width: 0;
}

.home-col h2,
.home-heading {
	font-size: 1.8em;
	font-weight: 450;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	text-transform: none;
	letter-spacing: normal;
	color: #000;
}

.home-neu-liste {
	list-style: none;
	padding: 0;
	margin: 0;
}

.home-neu-liste li {
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #eee;
}

.home-neu-liste a {
	font-weight: bold;
	border-bottom: none;
}

.home-neu-liste a:hover {
	text-decoration: underline;
}

.home-feedback p {
	line-height: 1.6em;
}

@media only screen and (max-width: 767px) {
	.home-drei-spalten {
		flex-direction: column;
	}
	
	.ort-spalten {
		grid-template-columns: 1fr;
	}
	
	.haus-detail {
		flex-direction: column;
	}
	
	.haus-bilder {
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.fakten-tabelle th {
		width: 35%;
	}
	
	.site-header {
		flex-direction: column;
		align-items: flex-end;
		gap: 0.5em;
	}
	
	.site-header .search {
		max-width: 100%;
	}
}

/* Orts-Slider: Bilder horizontal nebeneinander */
.ort-slider {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	margin-bottom: 2em;
	border: 1px solid #eee;
	padding: 0.5em;
	background: #fafafa;
}

.ort-slider-track {
	display: flex;
	gap: 0.5em;
}

/* Kontaktformular */
.kontakt-erfolg {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px 24px;
    margin-bottom: 30px;
}
.kontakt-erfolg h2 {
    border-top: none;
    padding-top: 0;
    color: #2e7d32;
    margin-bottom: 8px;
}
.kontakt-erfolg p {
    margin-bottom: 0;
}
.kontakt-fehler {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 16px 24px;
    margin-bottom: 24px;
}
.kontakt-fehler p {
    margin-bottom: 4px;
    color: #c62828;
}
.kontakt-formular {
    max-width: 600px;
}
.kontakt-feld {
    margin-bottom: 20px;
}
.kontakt-feld label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}
.kontakt-pflicht {
    color: #f44336;
}
.kontakt-feld input[type="text"],
.kontakt-feld input[type="email"],
.kontakt-feld textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Quattrocento', serif;
    font-size: 105%;
    line-height: 1.6em;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.kontakt-feld input[type="text"]:focus,
.kontakt-feld input[type="email"]:focus,
.kontakt-feld textarea:focus {
    border-color: #333;
    outline: none;
}
.kontakt-button {
    display: inline-block;
    padding: 10px 28px;
    font-family: 'Quattrocento', serif;
    font-size: 105%;
    color: #fff;
    background: #333;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.kontakt-button:hover {
    background: #000;
}
@media (max-width: 767px) {
    .kontakt-formular {
        max-width: 100%;
    }
}

.ort-slider-item {
	flex: 0 0 auto;
	width: 212px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ort-slider-item a {
	display: block;
	height: 300px;
	overflow: hidden;
	border-bottom: none;
}

.ort-slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ort-slider-titel {
	display: block;
	padding: 0.4em 0;
	font-size: 0.85em;
	line-height: 1.3em;
	color: #555;
	text-align: left;
	white-space: normal;
	word-wrap: break-word;
}

/* Orts-Übersicht */
.ort-einleitung {
	margin-bottom: 2em;
}

.ort-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	margin-bottom: 2em;
	padding: 1em;
	background: #f5f5f5;
	border-radius: 4px;
	justify-content: center;
}

.ort-buchstabe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	text-decoration: none;
	border-radius: 3px;
	font-weight: bold;
	color: #333;
	background: #fff;
	border: 1px solid #ddd;
	transition: background 0.2s;
}

.ort-buchstabe:hover {
	background: #e0e0e0;
}

.ort-buchstabe.leer {
	color: #ccc;
	background: transparent;
	border-color: transparent;
	cursor: default;
}

.ort-gruppe {
	margin-bottom: 1.5em;
}

.ort-gruppe-titel {
	font-size: 1.5em;
	color: #555;
	border-bottom: 2px solid #ddd;
	padding-bottom: 0.3em;
	margin-bottom: 0.5em;
}

.ort-spalten {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 2em;
}

.ort-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: contents;
}

.ort-items li {
	margin-bottom: 0.4em;
	break-inside: avoid;
}

.ort-items a {
	font-weight: bold;
	border-bottom: none;
}

.ort-items a:hover {
	text-decoration: underline;
}

.ort-items a.haus-unvollstaendig {
	color: #b0b0b0;
	font-weight: normal;
}

.ort-items a.haus-unvollstaendig:hover {
	color: #888;
}

.ort-adresse {
	color: #888;
	font-size: 0.9em;
}

/* Responsive */
@media (min-width: 1400px) {
	.ort-spalten {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 900px) {
	.ort-spalten {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.ort-spalten {
		grid-template-columns: 1fr;
	}
}

/*********************************************************************
 * 7. Bild-Caption Animation
 *
 */

.bild-caption {
	overflow: hidden;
}

/*********************************************************************
 * 8. Login-Seite & User-Bar
 *
 */

/* User-Bar in der Top-Leiste */
.user-bar {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9em;
}
.user-name {
	color: var(--color-text);
	opacity: 0.7;
}
.logout-link {
	color: var(--color-text);
	text-decoration: none;
	opacity: 0.7;
}
.logout-link:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Login-Formular */
.login-form {
	max-width: 400px;
	margin: 40px auto;
	padding: 32px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}
.login-form p {
	margin-bottom: 20px;
}
.login-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-family: var(--font-heading);
}
.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: var(--font-body);
}
.login-form input:focus {
	border-color: var(--color-link, #666);
	outline: none;
	box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}
.login-form button {
	width: 100%;
	padding: 12px;
	font-size: 1em;
	font-weight: 600;
	font-family: var(--font-heading);
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}
.login-form button:hover {
	background: #555;
}
.login-error {
	max-width: 400px;
	margin: 20px auto 0;
	padding: 12px 16px;
	background: #fff3f3;
	border-left: 4px solid #d32f2f;
	color: #b71c1c;
	border-radius: 4px;
}