/* Sossenheim Gewerbe – passend zum Sossenheim-Online-Design. Farbe über --sog-accent (Einstellungen). */
.sog {
	--sog-accent: #012B56;
	--sog-green: #4A8212;
	--sog-ink: #0B2342;
	--sog-muted: #4A5561;
	--sog-line: #A9B3BD;
	--sog-soft: #EEF3F9;
	color: var(--sog-ink);
	box-sizing: border-box;
}
.sog *, .sog *::before, .sog *::after { box-sizing: inherit; }

/* ---------- Verzeichnis ---------- */
.sog-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.sog-search { display: flex; gap: 10px; max-width: 560px; }
.sog-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; min-height: 48px; border: 1px solid var(--sog-line); border-radius: 24px;
	padding: 10px 18px; font: inherit; font-size: 16px; color: var(--sog-ink); background: #fff;
}
.sog-search input:focus { outline: 2px solid var(--sog-accent); outline-offset: 1px; border-color: var(--sog-accent); }
.sog-search .sog-button { min-height: 48px; padding: 0 22px; }
.sog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sog-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px;
	border: 1px solid var(--sog-line); background: #fff; color: var(--sog-ink);
	font-size: 15px; font-weight: 700; text-decoration: none;
}
.sog-chip:hover, .sog-chip:focus-visible { border-color: var(--sog-accent); color: var(--sog-accent); text-decoration: none; }
.sog-chip.is-active { background: var(--sog-accent); border-color: var(--sog-accent); color: #fff; }

.sog-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.sog-card {
	margin: 0; background: #fff; border-radius: 16px; padding: 20px;
	box-shadow: 0 0 0 1px rgba(21, 32, 43, .08);
	display: flex; flex-direction: column; gap: 12px;
}
.sog-card-head { display: flex; gap: 14px; align-items: center; color: var(--sog-ink); text-decoration: none; }
.sog-card-head:hover .sog-card-title, .sog-card-head:focus-visible .sog-card-title { color: var(--sog-accent); text-decoration: underline; }
.sog-card-head:focus-visible { outline: 2px solid var(--sog-accent); outline-offset: 4px; border-radius: 8px; }
.sog-logo {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
	background: var(--sog-soft); display: flex; align-items: center; justify-content: center;
}
.sog-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sog-initials { font-weight: 900; font-size: 22px; color: var(--sog-accent); letter-spacing: .02em; }
.sog-card-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sog-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sog-green); }
.sog-card-title { font-weight: 800; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.sog-card-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sog-muted); }
.sog-card-meta { margin: 0; font-size: 14px; color: var(--sog-ink); }
.sog-card-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sog-pill {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 17px;
	background: var(--sog-soft); color: var(--sog-accent); font-size: 14px; font-weight: 700; text-decoration: none;
}
.sog-pill:hover, .sog-pill:focus-visible { background: var(--sog-accent); color: #fff; text-decoration: none; }
.sog-empty { color: var(--sog-muted); }

.sog-cta {
	margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--sog-accent); color: #fff;
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.sog-cta div { display: flex; flex-direction: column; gap: 4px; }
.sog-cta strong { font-size: 20px; }
.sog-cta .sog-button { background: var(--sog-green); }

/* ---------- Formular ---------- */
.sog-form-wrap { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.sog-pick { background: var(--sog-soft); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.sog-pick label { font-weight: 700; font-size: 15px; }
.sog-pick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sog-pick select { flex: 1 1 240px; }
.sog-form { display: flex; flex-direction: column; gap: 24px; }
.sog-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sog-form legend { font-weight: 800; font-size: 20px; padding: 0; margin-bottom: 4px; }
.sog-muted { font-weight: 400; font-size: 15px; color: var(--sog-muted); }
.sog-row { display: flex; flex-wrap: wrap; gap: 16px; }
.sog-row > .sog-field { flex: 1 1 200px; min-width: 0; }
.sog-field { display: flex; flex-direction: column; gap: 6px; }
.sog-field label { font-size: 14px; font-weight: 700; }
.sog-form input[type="text"], .sog-form input[type="email"], .sog-form input[type="url"], .sog-form input[type="tel"],
.sog-form select, .sog-form textarea, .sog-pick select {
	width: 100%; min-height: 48px; border: 1px solid var(--sog-line); border-radius: 10px;
	padding: 10px 14px; font: inherit; font-size: 16px; color: var(--sog-ink); background: #fff;
}
.sog-form textarea { min-height: 100px; resize: vertical; }
.sog-form input[type="file"] {
	width: 100%; min-height: 48px; border: 1px dashed var(--sog-line); border-radius: 10px;
	padding: 12px 14px; font: inherit; font-size: 15px; background: #F7F8F9;
}
.sog-form input:focus, .sog-form select:focus, .sog-form textarea:focus, .sog-pick select:focus {
	outline: 2px solid var(--sog-accent); outline-offset: 1px; border-color: var(--sog-accent);
}
.sog-form [aria-invalid="true"] { border-color: #B4362B; }
.sog-error { color: #B4362B; font-size: 14px; font-weight: 600; }
.sog-check { display: flex; gap: 10px; align-items: flex-start; }
.sog-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sog-accent); }
.sog-check label { font-size: 14px; font-weight: 400; }
.sog-check a, .sog-link { color: var(--sog-accent); text-decoration: underline; font-weight: 600; }
.sog-alert { background: #FBEDEB; border-radius: 12px; padding: 16px 20px; color: #7A2018; }
.sog-alert ul { margin: 8px 0 0; padding-left: 20px; }
.sog-info { background: #EEF6E6; border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.sog-note { margin: 0; font-size: 14px; color: var(--sog-muted); }
.sog-button {
	align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px; border: 0; border-radius: 26px;
	background: var(--sog-accent); color: #fff; font: inherit; font-weight: 800; font-size: 16px;
	cursor: pointer; text-decoration: none; white-space: nowrap;
}
.sog-button:hover, .sog-button:focus-visible { filter: brightness(1.12); color: #fff; text-decoration: none; }
.sog-button:focus-visible { outline: 2px solid var(--sog-ink); outline-offset: 2px; }
.sog-button-ghost { background: #fff; color: var(--sog-accent); box-shadow: inset 0 0 0 2px var(--sog-accent); min-height: 48px; }
.sog-button-ghost:hover, .sog-button-ghost:focus-visible { background: var(--sog-accent); color: #fff; filter: none; }
.sog-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sog-success { background: var(--sog-soft); border-radius: 16px; padding: 28px; }
.sog-success h3 { margin-top: 0; }

/* ---------- Einzelseite ---------- */
.sog-single-logo { margin: 0 0 20px; }
.sog-single-logo img { max-width: 180px; max-height: 180px; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.sog-details { background: var(--sog-soft); border-radius: 16px; padding: 24px; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.sog-details dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 24px; }
.sog-details dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sog-accent); }
.sog-details dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sog-update { margin: 0; font-size: 14px; color: var(--sog-muted); }

.sog .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (max-width: 480px) {
	.sog-search { flex-direction: column; }
	.sog-search .sog-button { align-self: stretch; }
	.sog-card { padding: 16px; }
	.sog-logo { flex-basis: 56px; width: 56px; height: 56px; }
}

/* ---------- Änderungs-Link anfordern ---------- */
.sog-link-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sog-link-form label { font-weight: 400; font-size: 15px; }
.sog-pick-row input[type="email"] {
	flex: 1 1 240px; min-width: 0; min-height: 48px; border: 1px solid var(--sog-line); border-radius: 10px;
	padding: 10px 14px; font: inherit; font-size: 16px; color: var(--sog-ink); background: #fff;
}
.sog-pick-row input[type="email"]:focus { outline: 2px solid var(--sog-accent); outline-offset: 1px; border-color: var(--sog-accent); }
.sog-link-ok { margin: 0; background: #EEF6E6; border-radius: 10px; padding: 14px 16px; }
