/* =====================================================================
   fvlage.css – eigene Styles für FV Ziegelei Lage (ohne Tailwind)
   Einbinden:  <link rel="stylesheet" href="/fvlage.css">
   Alle Regeln sind über Wrapper-Klassen/IDs gescoped, damit sie nicht
   mit dem RapidWeaver-Elements-CSS kollidieren.
   ===================================================================== */


/* =====================================================================
   0) SCHRIFTEN  (aus input.css übernommen)
   ===================================================================== */

/* Exo-MKB Font-Face - manuell ergaenzt (vollstaendiger Schnitt-Satz),
   damit die Schrift auch in dynamisch aus der Datenbank geladenen
   Inhalten (z.B. CKEditor-Texte auf der Ausgabeseite) korrekt
   dargestellt wird. RW-Elements erzeugt das @font-face sonst nur fuer
   statisch im Theme Studio zugewiesene Elemente, nicht fuer DB-Inhalte. */

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-thin-italic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-extralight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-extralight-italic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-light-italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-regular-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-medium-italic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-demibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-demibold-italic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-bold-italic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-extrabold-italic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo-MKB';
  src: url('/resources/schriften/exo-black-italic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Gleiche Schnitte unter dem Namen 'Jochen_exo' - so heisst die Schrift im
   CKEditor (Aktuelles/Projekte). Damit erscheinen die DB-Texte auch auf der
   Webseite in Exo und nicht in einer Ersatzschrift. */

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-thin-italic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-extralight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-extralight-italic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-light-italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-regular-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-medium-italic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-demibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-demibold-italic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-bold-italic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-extrabold-italic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jochen_exo';
  src: url('/resources/schriften/exo-black-italic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


/* =====================================================================
   1) FORMULARE KENNWORTMAIL / LOGIN / NEUES KENNWORT
      (kennwortmail/kwmail.php, login_1.php, nkw_neu.php)
   ===================================================================== */

.fv-kw-wrap,
.fv-kw-wrap * {
	box-sizing: border-box;
}

.fv-kw-wrap {
	padding: 1rem 0;
	text-align: center;
}

.fv-kw-card {
	width: 100%;
	max-width: 24rem;
	margin: 0 auto;
	padding: 2rem;
	background: #fefce8;
	border-radius: 0.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.fv-kw-title {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	text-align: center;
	color: #1f2937;
}

.fv-kw-field {
	margin-bottom: 1rem;
}

.fv-kw-field-lg {
	margin-bottom: 1.5rem;
}

.fv-kw-card-mb {
	margin-bottom: 2rem;
}

.fv-kw-subtitle {
	margin: 0 0 1.5rem 0;
	font-weight: 700;
	color: #1f2937;
}

.fv-kw-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 700;
	color: #374151;
}

.fv-kw-input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	line-height: 1.25;
	color: #374151;
	background: #ffffff;
	border: 1px solid #374151;
	border-radius: 0.25rem;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.fv-kw-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.fv-kw-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 10rem;
	margin: 0 auto;
	padding: 0.5rem;
	font-family: Exo, 'Exo-MKB', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background-image: linear-gradient(to bottom, #1d4ed8, #3b82f6);
	border: none;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.fv-kw-btn:hover {
	background-image: linear-gradient(to bottom, #3b82f6, #1d4ed8);
	color: #fef9c3;
}

.fv-kw-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.75);
}

.fv-kw-btn-icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 0.5rem;
}

.fv-kw-error {
	margin: 1rem 0 0 0;
	font-size: 0.75rem;
	line-height: 1rem;
	font-style: italic;
	color: #ef4444;
}


/* =====================================================================
   2) MEDIENMANAGER  (medien/medienmanager.php)
   ===================================================================== */

#mmRoot,
#mmRoot *,
#mmModal,
#mmModal * {
	box-sizing: border-box;
}

#mmRoot {
	background: #e3e6ea;
	color: #92400e;
	font-family: system-ui, sans-serif;
	padding: 1rem;
}

#mmRoot .mm-card {
	border: 1px solid #fcd34d;
	border-radius: 16px;
	background: #fef3c7;
}

#mmRoot .mm-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
}

#mmRoot h2 {
	margin: 0;
}

#mmRoot input {
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
	border: 1px solid #fcd34d;
	background: #fffbeb;
}

#mmRoot table {
	width: 100%;
	border-collapse: collapse;
}

#mmRoot th,
#mmRoot td {
	padding: 0.6rem;
	border-bottom: 1px solid #fde68a;
	text-align: left;
}

#mmRoot tr:hover {
	background: rgba(253, 230, 138, 0.5);
}

/* Buttons (gelten im Root und im Modal) */
#mmRoot .mm-btn,
#mmModal .mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
	text-decoration: none;
	background: #92400e;
	color: #fef3c7;
	border: none;
	border-radius: 10px;
	padding: 0.4rem 0.8rem;
	cursor: pointer;
	transition: 0.15s;
}

#mmRoot .mm-btn:hover,
#mmModal .mm-btn:hover {
	background: #fef3c7;
	color: #92400e;
}

#mmModal .mm-btn-close {
	font-weight: bold;
	padding: 0.4rem 0.7rem;
}

/* Modal */
#mmModal {
	position: fixed;
	inset: 0;
	display: none;            /* per JS auf flex gesetzt */
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2147483000; /* ueber allen RW-Ebenen */
}

#mmModal .panel {
	background: #fef3c7;
	color: #92400e;
	width: min(1600px, 95vw);
	height: 90vh;
	min-height: 600px;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
}

#mmModal .mm-modal-head {
	padding: 0.6rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#mmModal .mm-modal-actions {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

#mmModal iframe {
	flex: 1;
	border: 1px solid #fcd34d;
	border-radius: 12px;
}

#mmModal .mm-modal-foot {
	font-weight: bold;
	padding: 0.6rem;
	text-align: center;
}

/* Mobile: Aktionen unter den Dateinamen stapeln */
@media (max-width: 900px) {
	#mmRoot table,
	#mmRoot thead,
	#mmRoot tbody,
	#mmRoot tr,
	#mmRoot th,
	#mmRoot td {
		display: block;
		width: 100%;
	}
	#mmRoot thead {
		display: none;
	}
	#mmRoot tr {
		border-bottom: 1px solid #fde68a;
		padding: 0.4rem 0;
	}
	#mmRoot td {
		border-bottom: none;
		padding: 0.3rem 0.2rem;
	}
	#mmRoot td:first-child {
		font-weight: 600;
	}
	#mmRoot td:last-child {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		padding-top: 0.4rem;
	}
	#mmRoot td:last-child .mm-btn {
		flex: 1 1 auto;
		text-align: center;
		white-space: nowrap;
	}
}


/* =====================================================================
   3) AKTUELLES-/PROJEKTE-EDITOR  (orga/aktuelles.php + orga_projekte/projekte.php)
   ===================================================================== */

.fvakt-wrap {
	--fv-bg-100: #fef9c3;
	--fv-bg-200: #fef08a;
	--fv-text: #92400e;
	--fv-border: #fcd34d;
	--fv-border-strong: #f59e0b;
	--fv-surface: #fffef8;
	--fv-white: #ffffff;
	--fv-radius: 14px;
	--fv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fv-shadow: 0 10px 20px rgba(146, 64, 14, 0.08);
}

.fvakt-wrap,
.fvakt-wrap * {
	box-sizing: border-box;
}

.fvakt-wrap .fvakt-card {
	background: var(--fv-bg-100);
	color: var(--fv-text);
	border: 1px solid var(--fv-border);
	border-radius: var(--fv-radius);
	padding: 18px;
	font-family: var(--fv-font);
	box-shadow: var(--fv-shadow);
}

.fvakt-wrap .fvakt-intro {
	display: block;
	text-align: center;
}

.fvakt-wrap .fvakt-head {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.fvakt-wrap .fvakt-label {
	font-size: 14px;
	font-weight: 700;
}

.fvakt-wrap .fvakt-select,
.fvakt-wrap .fvakt-input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--fv-border-strong);
	background: #fffef5;
	color: var(--fv-text);
	font-size: 15px;
	outline: none;
}

.fvakt-wrap .fvakt-select:focus,
.fvakt-wrap .fvakt-input:focus {
	border-color: #d97706;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.fvakt-wrap .fvakt-meta-block,
.fvakt-wrap .fvakt-editor-block {
	margin-top: 18px;
	border: 1px solid var(--fv-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--fv-surface);
}

.fvakt-wrap .fvakt-meta-header,
.fvakt-wrap .fvakt-meta-footer,
.fvakt-wrap .fvakt-editor-header,
.fvakt-wrap .fvakt-editor-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: var(--fv-bg-200);
	color: var(--fv-text);
}

.fvakt-wrap .fvakt-meta-grid {
	display: grid;
	grid-template-columns: 1.6fr 0.5fr 0.7fr;
	gap: 14px;
	padding: 14px;
	background: #fffefb;
}

.fvakt-wrap .fvakt-field {
	display: grid;
	gap: 6px;
}

.fvakt-wrap .fvakt-editor-title {
	font-weight: 700;
	font-size: 15px;
}

.fvakt-wrap .fvakt-editor-body {
	padding: 0;
	background: var(--fv-white);
}

.fvakt-wrap .fvakt-titel {
	font-size: 20px;
	font-weight: 700;
	margin: 12px 0 16px 0;
	color: var(--fv-text);
	text-align: center;
}

.fvakt-wrap .fvakt-save-btn {
	appearance: none;
	border: 1px solid #d97706;
	background: #fffbeb;
	color: var(--fv-text);
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fvakt-wrap .fvakt-save-btn:hover {
	background: #fef3c7;
}

.fvakt-wrap .fvakt-save-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.fvakt-wrap .fvakt-status {
	font-size: 13px;
	font-weight: 600;
	min-height: 18px;
}

.fvakt-wrap .fvakt-textarea {
	width: 100%;
	min-height: 260px;
	visibility: hidden;
}

.fvakt-wrap .fvakt-empty {
	padding: 14px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid var(--fv-border);
	font-weight: 600;
}

.fvakt-wrap .fvakt-checkwrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--fv-border-strong);
	background: #fffef5;
	color: var(--fv-text);
	font-size: 15px;
}

.fvakt-wrap .fvakt-checkbox {
	width: 18px;
	height: 18px;
	accent-color: #d97706;
	flex: 0 0 auto;
}

/* CKEditor-Anpassungen */
.fvakt-wrap .cke {
	border: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
}

.fvakt-wrap .cke_top {
	background: var(--fv-bg-200) !important;
	border-bottom: 1px solid var(--fv-border) !important;
}

.fvakt-wrap .cke_bottom {
	background: var(--fv-bg-200) !important;
	border-top: 1px solid var(--fv-border) !important;
}

.fvakt-wrap .cke_contents {
	background: #fffefb !important;
}

@media (max-width: 800px) {
	.fvakt-wrap .fvakt-meta-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.fvakt-wrap .fvakt-meta-header,
	.fvakt-wrap .fvakt-meta-footer,
	.fvakt-wrap .fvakt-editor-header,
	.fvakt-wrap .fvakt-editor-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* =====================================================================
   4) MAILADRESSEN  (orga_mailadressen/mailadressen.php)
   ===================================================================== */

.mailadressen-wrapper,
.mailadressen-wrapper * {
	box-sizing: border-box;
	color: #92400e;
	font-family: inherit;
}

.mailadressen-wrapper {
	width: 100%;
	max-width: 56rem;
	margin: 0 auto;
	padding: 1rem;
}

.mailadressen-stack {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mailadressen-top-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.mailadressen-top-col {
	width: 100%;
}

.mailadressen-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #92400e;
}

.mailadressen-select,
.mailadressen-input {
	width: 100%;
	border: 1px solid #b45309;
	border-radius: 0.375rem;
	background: #fefce8;
	color: #92400e;
	padding: 0.625rem 0.75rem;
	outline: none;
	font-size: 1rem;
}

.mailadressen-select:focus,
.mailadressen-input:focus {
	border-color: #92400e;
	box-shadow: 0 0 0 2px rgba(146, 64, 14, 0.18);
}

.mailadressen-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mailadressen-button {
	border: 1px solid #92400e;
	border-radius: 0.375rem;
	background: #92400e;
	color: #fef08a;
	padding: 0.625rem 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 1rem;
	line-height: 1.2;
}

.mailadressen-button:hover {
	background: #fef08a;
	color: #92400e;
}

.mailadressen-message {
	display: none;
	border-radius: 0.375rem;
	border: 1px solid #15803d;
	background: #dcfce7;
	color: #166534;
	padding: 0.75rem;
}

.mailadressen-message.show {
	display: block;
}

.mailadressen-message.error {
	border-color: #b91c1c;
	background: #fee2e2;
	color: #991b1b;
}

.mailadressen-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.mailadressen-field {
	width: 100%;
}

.mailadressen-error-box {
	border: 1px solid #b91c1c;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 0.375rem;
	padding: 0.75rem;
}

@media (min-width: 768px) {
	.mailadressen-top-row {
		grid-template-columns: 1fr 1fr;
	}

	.mailadressen-form {
		grid-template-columns: 1fr 1fr;
	}
}


/* =====================================================================
   5) INFOMAIL / MAILVERSAND  (orga_mailversand/infomail.php + fetch_members.php)
   ===================================================================== */

#infomailScope {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 14px 24px 14px;
	color: #1f2937;
	box-sizing: border-box;
}

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

#infomailScope .mail-info-box {
	background: #fef9c3;
	color: #92400e;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.65;
	text-align: center;
	padding: 18px 20px;
	border-radius: 12px;
	margin-bottom: 18px;
	border: 1px solid #fde68a;
}

#infomailScope .mail-center {
	text-align: center;
}

#infomailScope .mail-attach-link {
	display: inline-block;
	margin-top: 14px;
}

#infomailScope .mail-attach-link img {
	width: 130px;
	height: 35px;
	border: 0;
	display: inline-block;
}

#infomailScope .mail-panel {
	margin-top: 16px;
	border-radius: 12px;
	padding: 12px;
	background: rgba(255,255,255,0.92);
}

#infomailScope .mail-alert {
	max-width: 900px;
	margin: 0 auto 16px auto;
	padding: 12px 16px;
	border-radius: 10px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
}

#infomailScope .mail-alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

#infomailScope .mail-alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

#infomailScope .mail-failed-list-wrap {
	max-width: 900px;
	margin: 10px auto 18px auto;
	padding: 12px 16px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 10px;
}

#infomailScope .mail-failed-list-wrap b {
	display: block;
	text-align: center;
	margin-bottom: 10px;
}

#infomailScope .mail-failed-list {
	margin: 0;
	padding-left: 18px;
}

#infomailScope .mail-failed-list li {
	margin-bottom: 6px;
	word-break: break-word;
}

#infomailScope .mail-filter-bar {
	text-align: center;
	margin: 12px 0 18px 0;
}

#infomailScope .mail-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
	margin: 4px;
}

#infomailScope .mail-btn:hover {
	filter: brightness(0.98);
}

#infomailScope .mail-btn-primary {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

#infomailScope .mail-btn-secondary {
	background: #fefce8;
	color: #1f2937;
	border-color: #d1d5db;
}

#infomailScope .mail-btn-green {
	background: #15803d;
	color: #ffffff;
	border-color: #15803d;
}

#infomailScope .mail-btn-red {
	background: #dc2626;
	color: #ffffff;
	border-color: #dc2626;
}

#infomailScope .mail-btn-send {
	background: #16a34a;
	color: #ffffff;
	border-color: #16a34a;
	min-width: 140px;
}

#infomailScope .mail-btn-save-draft {
	background: #92400e;
	color: #fef08a;
	border-color: #92400e;
}

#infomailScope .mail-btn-save-draft:hover {
	background: #fef08a;
	color: #92400e;
	border-color: #92400e;
}

#infomailScope .mail-form-section {
	margin-bottom: 22px;
}

#infomailScope .mail-form-title {
	text-align: center;
	font-weight: 700;
	margin-bottom: 12px;
	font-size: 18px;
	color: #111827;
}

#infomailScope .mail-action-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

#infomailScope .mail-editor-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

#infomailScope .mail-draft-status {
	font-size: 14px;
	font-weight: 700;
	color: #166534;
	min-height: 20px;
}

#infomailScope .mail-recipient-scroll {
	max-height: 600px;
	overflow-y: auto;
	padding-right: 6px;
}

#infomailScope .mail-recipient-scroll::-webkit-scrollbar {
	width: 10px;
}

#infomailScope .mail-recipient-scroll::-webkit-scrollbar-thumb {
	background: #92400e;
	border-radius: 999px;
}

#infomailScope .mail-recipient-scroll::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.08);
	border-radius: 999px;
}

#infomailScope #membersList {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

#infomailScope #membersList > * {
	min-width: 0;
}

#infomailScope .mail-recipient-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #92400e;
	border-radius: 10px;
	background: #92400e;
	color: #fef08a;
	cursor: pointer;
	min-height: 72px;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

#infomailScope .mail-recipient-card:hover {
	background: #fef08a;
	color: #92400e;
	border-color: #92400e;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#infomailScope .mail-recipient-checkbox {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #fef08a;
}

#infomailScope .mail-recipient-card:hover .mail-recipient-checkbox {
	accent-color: #92400e;
}

#infomailScope .mail-recipient-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

#infomailScope .mail-recipient-name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	color: inherit;
	word-break: break-word;
}

#infomailScope .mail-recipient-card-selected {
	background: #fef08a;
	color: #92400e;
	border-color: #92400e;
	box-shadow: 0 0 0 2px rgba(146, 64, 14, 0.25) inset;
}

#infomailScope .mail-recipient-card-selected .mail-recipient-checkbox {
	accent-color: #92400e;
}

#infomailScope .mail-editor-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #111827;
}

#infomailScope textarea[name="message"] {
	width: 100%;
	min-height: 180px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fefce8;
	font-size: 15px;
}

#infomailScope .mail-submit-wrap {
	text-align: center;
	margin-top: 8px;
}

@media (max-width: 1024px) {
	#infomailScope #membersList {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	#infomailScope {
		padding: 8px 10px 20px 10px;
	}

	#infomailScope #membersList {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#infomailScope .mail-recipient-scroll {
		max-height: 500px;
	}

	#infomailScope .mail-editor-topbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 520px) {
	#infomailScope #membersList {
		grid-template-columns: 1fr;
	}

	#infomailScope .mail-btn {
		width: 100%;
		max-width: 320px;
	}

	#infomailScope .mail-recipient-scroll {
		max-height: 420px;
	}
}


/* =====================================================================
   6) TAGESTOUR  (orga_tagestour/tagestour.php)
   ===================================================================== */

#tagestour-app{
	background:#FEF9C3;
	color:#92400E;
	padding:20px;
	border-radius:8px;
	font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	max-width:760px;
	margin:0 auto;
	box-sizing:border-box;
}
#tagestour-app *{
	box-sizing:border-box;
}
#tagestour-app .tt-statistik{
	font-weight:700;
	margin-bottom:14px;
	text-align:center;
}
#tagestour-app .tt-select,
#tagestour-app .tt-search,
#tagestour-app input,
#tagestour-app textarea{
	width:100%;
	padding:8px 10px;
	margin-bottom:10px;
	border:1px solid #FDE68A;
	border-radius:4px;
	background:#FFFBEB;
	color:#92400E;
	font:inherit;
}
#tagestour-app textarea{
	min-height:90px;
	resize:vertical;
}
#tagestour-app .tt-button-row{
	margin-bottom:18px;
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	justify-content:center;
}
#tagestour-app button{
	background:#FDE68A;
	color:#92400E;
	border:none;
	padding:9px 14px;
	border-radius:6px;
	cursor:pointer;
	font:inherit;
	font-weight:600;
}
#tagestour-app button:hover{
	background:#92400E;
	color:#FDE68A;
}
#tagestour-app .tt-form-wrap{
	display:flex;
	justify-content:center;
}
#tagestour-app .tt-form{
	width:100%;
	max-width:560px;
}
#tagestour-app .tt-field{
	margin-bottom:8px;
}
#tagestour-app .tt-field label{
	display:block;
	margin-bottom:4px;
	font-weight:600;
}
#tagestour-app .tt-message{
	margin-top:10px;
	text-align:center;
	min-height:20px;
	font-weight:600;
}
#ttTourModal{
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,0.45);
	z-index:9999;
	align-items:center;
	justify-content:center;
	padding:16px;
}
#ttTourModal.tt-open{
	display:flex;
}
#ttTourModal .tt-modal-box{
	width:100%;
	max-width:760px;
	background:#FEFCE8;
	border:1px solid #FDE68A;
	border-radius:10px;
	padding:18px;
	color:#92400E;
	box-shadow:0 10px 30px rgba(0,0,0,0.15);
}
#ttTourModal .tt-modal-title{
	margin:0 0 12px 0;
	font-size:20px;
	font-weight:700;
	text-align:center;
}
#ttTourModal .tt-field{
	margin-bottom:12px;
}
#ttTourModal .tt-field label{
	display:block;
	margin-bottom:6px;
	font-weight:600;
	color:#92400E;
}
#ttTourModal .tt-field-date{
	max-width:240px;
}
#ttTourModal .tt-field-bezeichnung{
	max-width:100%;
}
#ttTourModal #tt_tour_bezeichnung{
	width:100%;
	max-width:100%;
	min-width:0;
}
#ttTourModal .tt-modal-actions{
	display:flex;
	gap:8px;
	justify-content:center;
	margin-top:8px;
}
#ttTourModal .tt-modal-message{
	margin-top:10px;
	min-height:20px;
	text-align:center;
	font-weight:600;
}
#ttTourModal button{
	background:#FDE68A;
	color:#92400E;
	border:none;
	border-radius:6px;
	padding:9px 14px;
	cursor:pointer;
	font:inherit;
	font-weight:600;
}
#ttTourModal button:hover{
	background:#92400E;
	color:#FDE68A;
}
@media (max-width:640px){
	#tagestour-app{
		padding:14px;
	}
	#tagestour-app .tt-button-row button,
	#ttTourModal .tt-modal-actions button{
		flex:1 1 100%;
	}
	#ttTourModal .tt-modal-actions{
		flex-wrap:wrap;
	}
	#ttTourModal .tt-field-date{
		max-width:100%;
	}
}


/* =====================================================================
   7) DATEIMANAGER  (orga_datmanage/filemanager.php + orga_mailmanager/filemanager_mail.php (im iframe, <body class="fm-page">))
   ===================================================================== */

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

body.fm-page {
  margin: 0;
  padding: 0;
  background: #fff8eb;
  color: #92400e;
  font-family: Arial, Helvetica, sans-serif;
}

body.fm-page {
  padding: 1rem;
}

.fm-page .fm-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.fm-page .fm-intro {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #92400e;
}

.fm-page .fm-shell {
  width: 100%;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #fef3c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #92400e;
}

.fm-page .fm-topbar,
.fm-page .fm-row,
.fm-page .fm-item,
.fm-page .fm-upload-row,
.fm-page .fm-list-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fm-page .fm-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.fm-page .fm-root-note,
.fm-page .fm-muted,
.fm-page .fm-meta {
  color: #475569;
}

.fm-page .fm-root-note,
.fm-page .fm-list-note,
.fm-page .fm-meta {
  font-size: 0.75rem;
}

.fm-page .fm-status {
  margin-left: auto;
  font-size: 0.9rem;
  color: #64748b;
}

.fm-page .fm-status.is-error {
  color: #dc2626;
}

.fm-page .fm-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr 1fr;
}

.fm-page .fm-panel {
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
}

.fm-page .fm-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.fm-page .fm-row {
  margin-bottom: 0.75rem;
}

.fm-page .fm-path {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  word-break: break-word;
}

.fm-page .fm-input,
.fm-page .fm-select,
.fm-page .fm-file {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
}

.fm-page .fm-input:focus,
.fm-page .fm-select:focus,
.fm-page .fm-file:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.fm-page .fm-grow {
  flex: 1 1 12rem;
  min-width: 12rem;
}

.fm-page .fm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fm-page .fm-button:hover {
  background: #f8fafc;
}

.fm-page .fm-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fm-page .fm-button-primary {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fef3c7;
}

.fm-page .fm-button-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.fm-page .fm-button-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fef3c7;
}

.fm-page .fm-button-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.fm-page .fm-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.fm-page .fm-item {
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
}

.fm-page .fm-item-empty {
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.95rem;
}

.fm-page .fm-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fm-page .fm-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-page .fm-folder-button {
  flex: 1 1 auto;
  text-align: left;
}

.fm-page .fm-list-head {
  justify-content: space-between;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .fm-page .fm-grid {
    grid-template-columns: 1fr;
  }

  .fm-page .fm-status {
    margin-left: 0;
    width: 100%;
  }

  body.fm-page {
    padding: 0.75rem;
  }
}

.fm-page .fm-section-title-flat {
  margin: 0;
}


/* =====================================================================
   8) COOKIE-BANNER  (cookie.php – auf allen Orga-Seiten per require)
   ===================================================================== */

.fv-ck-banner,
.fv-ck-banner *,
.fv-ck-modal,
.fv-ck-modal * {
	box-sizing: border-box;
}

.fv-ck-hidden {
	display: none !important;
}

.fv-ck-banner {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 50;
	max-width: 36rem;
	margin: 0 auto;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.fv-ck-text {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #374151;
}

.fv-ck-text p {
	margin: 0;
}

.fv-ck-link {
	color: #2563eb;
	text-decoration: underline;
}

.fv-ck-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}

@media (min-width: 640px) {
	.fv-ck-actions {
		flex-direction: row;
		justify-content: flex-end;
	}
}

.fv-ck-btn {
	padding: 0.5rem 1rem;
	font: inherit;
	color: #374151;
	background: transparent;
	border: 1px solid #9ca3af;
	border-radius: 0.5rem;
	cursor: pointer;
}

.fv-ck-btn:hover {
	background: #f3f4f6;
}

.fv-ck-btn-primary {
	color: #ffffff;
	background: #2563eb;
	border-color: transparent;
}

.fv-ck-btn-primary:hover {
	background: #1d4ed8;
}

.fv-ck-btn-cancel {
	color: #000000;
}

.fv-ck-btn-cancel:hover {
	background: #fef9c3;
}

.fv-ck-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
}

.fv-ck-modal-box {
	width: 100%;
	max-width: 28rem;
	padding: 1.5rem;
	background: #ffffff;
	border-radius: 0.75rem;
}

.fv-ck-modal-title {
	margin: 0 0 1rem 0;
	font-size: 1.125rem;
	line-height: 1.75rem;
	font-weight: 600;
}

.fv-ck-option {
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.fv-ck-option-last {
	margin-bottom: 1rem;
}

.fv-ck-option input {
	margin: 0 0.5rem 0 0;
}

.fv-ck-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}


/* =====================================================================
   9) DRUCKANSICHT  (drucken/mailadressen_PDF.php, drucken/tnListe_PDF.php)
   Eigenstaendige Seiten ausserhalb von RW, <body class="fv-druck-page">
   ===================================================================== */

body.fv-druck-page {
	margin: 0;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fef3c7;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

.fv-druck-page *,
.fv-druck-page *::before,
.fv-druck-page *::after {
	box-sizing: border-box;
}

.fv-druck-page .fv-druck-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.fv-druck-page .fv-druck-btn {
	padding: 0.5rem 1.5rem;
	font: inherit;
	color: #ffffff;
	border: 0;
	border-radius: 0.25rem;
	cursor: pointer;
}

.fv-druck-page .fv-druck-btn-print        { background: #92400e; }
.fv-druck-page .fv-druck-btn-print:hover  { background: #fbbf24; }
.fv-druck-page .fv-druck-btn-back         { background: #1d4ed8; }
.fv-druck-page .fv-druck-btn-back:hover   { background: #3b82f6; }
.fv-druck-page .fv-druck-btn-file         { background: #047857; }
.fv-druck-page .fv-druck-btn-file:hover   { background: #10b981; }

.fv-druck-page .fv-druck-frame {
	display: block;
	border: none;
}


/* =====================================================================
   10) INTERN-BUTTON  (zurueck_intern2.php)
   ===================================================================== */

.fv-intern-wrap {
	display: flex;
	justify-content: center;
}

.fv-intern-wrap a.fv-intern-link {
	display: block;
	box-sizing: border-box;
	width: 300px;
	max-width: 100%;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-align: center;
	text-decoration: none;
	color: #fef08a;
	background: #92400e;
	border-radius: 0.25rem;
}

.fv-intern-wrap a.fv-intern-link:hover {
	color: #fef08a;
	background: #16a34a;
}


/* =====================================================================
   11) AKKORDEON  (PHP-Code-Element in RW: Aktuelles / Projekte)
   Natives <details>/<summary> - kein JavaScript, kein Alpine noetig.
   ===================================================================== */

.fv-akk {
	margin: 0.5rem;
}

.fv-akk-titel {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem;
	list-style: none;
	font-weight: 600;
	text-align: left;
	color: #1f2937;
	cursor: pointer;
}

.fv-akk-titel::-webkit-details-marker {
	display: none;
}

.fv-akk-titel::marker {
	content: '';
}

.fv-akk-titel:focus {
	outline: none;
}

.fv-akk-titel:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.fv-akk-titeltext {
	flex: 1 1 auto;
	min-width: 0;
}

.fv-akk-pfeil {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	transform: rotate(180deg);
	transition: transform 0.3s ease-in-out;
}

.fv-akk[open] .fv-akk-pfeil {
	transform: rotate(90deg);
}

.fv-akk-trenner {
	height: 2px;
	margin: 0.5rem 0;
	background: #78350f;
}

/* Bilder aus dem CKEditor: Floats einschliessen und auf schmalen
   Bildschirmen nicht breiter als der Inhalt werden lassen */
.fv-akk-titeltext,
.fv-akk-inhalt {
	display: flow-root;
}

.fv-akk-titeltext img,
.fv-akk-inhalt img {
	display: inline;
	max-width: calc(100% - 20px);
	height: auto !important;
}
