/* Builder GEO/SEO NAP – Layout */
.geoseo-nap-grid {
	display: grid;
	gap: 1.5rem;
}

.geoseo-nap-row {
	display: grid;
	gap: 1.5rem;
}

.geoseo-nap-row-contact {
	grid-template-columns: repeat(3, 1fr);
}

.geoseo-nap-row-meta {
	grid-template-columns: 2fr 1fr;
}

.geoseo-nap-row-meta.is-single {
	grid-template-columns: 1fr;
}

.geoseo-nap-cell {
	min-width: 0;
}

/* Logo */
.geoseo-nap-row-logo {
	display: block;
}

.geoseo-nap-cell-logo {
	display: flex;
}

.geoseo-nap-row-logo[data-align="left"]   .geoseo-nap-cell-logo { justify-content: flex-start; }
.geoseo-nap-row-logo[data-align="center"] .geoseo-nap-cell-logo { justify-content: center; }
.geoseo-nap-row-logo[data-align="right"]  .geoseo-nap-cell-logo { justify-content: flex-end; }

.geoseo-nap-logo-link {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.geoseo-nap-logo {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Phone & email cells */
.geoseo-nap-cell-phone,
.geoseo-nap-cell-email {
	display: flex;
	align-items: center;
}

.geoseo-nap-cell-phone[data-align="left"],
.geoseo-nap-cell-email[data-align="left"]   { justify-content: flex-start; }
.geoseo-nap-cell-phone[data-align="center"],
.geoseo-nap-cell-email[data-align="center"] { justify-content: center; }
.geoseo-nap-cell-phone[data-align="right"],
.geoseo-nap-cell-email[data-align="right"]  { justify-content: flex-end; }

.geoseo-nap-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	text-decoration: none;
	color: inherit;
	line-height: 1.25;
}

.geoseo-nap-link[data-icon-pos="top"] {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35em;
}

.geoseo-nap-link:hover,
.geoseo-nap-link:focus {
	text-decoration: underline;
}

.geoseo-nap-icon {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 1;
}

.geoseo-nap-icon svg {
	display: block;
}

/* Address */
.geoseo-nap-address {
	font-style: normal;
	line-height: 1.5;
}

.geoseo-nap-cell-address[data-align="left"]   { text-align: left; }
.geoseo-nap-cell-address[data-align="center"] { text-align: center; }
.geoseo-nap-cell-address[data-align="right"]  { text-align: right; }

.geoseo-nap-org {
	font-weight: 600;
}

/* Map */
.geoseo-nap-cell-map {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.geoseo-nap-map {
	width: 100%;
	border: 0;
	display: block;
}

/* Interaktive Google-Karte (JS-API): neutraler Lade-Hintergrund + Tile-Fix
   gegen Theme-Regeln wie `img{max-width:100%}`, die Map-Kacheln zerschneiden. */
.geoseo-nap-gmap {
	background: #e8eaed;
}

.geoseo-nap-gmap img {
	max-width: none;
}

.geoseo-nap-map-link {
	font-size: 0.875em;
	align-self: flex-start;
}

.geoseo-nap-cell-map[data-align="left"]   .geoseo-nap-map-link { align-self: flex-start; }
.geoseo-nap-cell-map[data-align="center"] .geoseo-nap-map-link { align-self: center; }
.geoseo-nap-cell-map[data-align="right"]  .geoseo-nap-map-link { align-self: flex-end; }

/* Hours */
.geoseo-nap-hours {
	width: auto;
	max-width: 100%;
	border-collapse: collapse;
}

.geoseo-nap-hours th,
.geoseo-nap-hours td {
	padding: 0 0.5rem 0 0;
	text-align: left;
	vertical-align: top;
	font-weight: normal;
}

.geoseo-nap-hours-days {
	white-space: nowrap;
	padding-right: 1rem !important;
}

.geoseo-nap-hours-time {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.geoseo-nap-cell-hours[data-align="left"]   .geoseo-nap-hours { margin-right: auto; margin-left: 0; }
.geoseo-nap-cell-hours[data-align="center"] .geoseo-nap-hours { margin-left: auto; margin-right: auto; }
.geoseo-nap-cell-hours[data-align="right"]  .geoseo-nap-hours { margin-left: auto; margin-right: 0; }

/* Mehrere Service-Hours-Blöcke (Modus „Alle Services") */
.geoseo-nap-cell-hours .geoseo-nap-hours + .geoseo-nap-hours {
	margin-top: 0;
}

.geoseo-nap-hours-title {
	caption-side: top;
	font-weight: 600;
	padding: 0 0 0.25rem;
	text-align: left;
}

.geoseo-nap-cell-hours[data-align="left"]   .geoseo-nap-hours-title { text-align: left; }
.geoseo-nap-cell-hours[data-align="center"] .geoseo-nap-hours-title { text-align: center; }
.geoseo-nap-cell-hours[data-align="right"]  .geoseo-nap-hours-title { text-align: right; }

/* Feature-Karten-Layout (Anzeige „Karten").
   Rahmen- und Icon-Ring-Farbe als CSS-Variablen: Default folgt gedämpft der
   Textfarbe (currentColor) und passt sich jedem Theme an. Für eine zweifarbige
   Optik (z. B. goldener Ring bei farbigem Text) genügt es, die Variablen per
   Custom-CSS/ID am Modul zu setzen, etwa:
   .mein-modul .geoseo-nap-cards { --geoseo-nap-card-ring: #bda163; --geoseo-nap-card-border: #bda163; } */
.geoseo-nap-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	--geoseo-nap-card-border: rgba(128, 128, 128, 0.35);
	--geoseo-nap-card-ring: rgba(128, 128, 128, 0.5);
}

@supports (border-color: color-mix(in srgb, currentColor 40%, transparent)) {
	.geoseo-nap-cards {
		--geoseo-nap-card-border: color-mix(in srgb, currentColor 22%, transparent);
		--geoseo-nap-card-ring: color-mix(in srgb, currentColor 45%, transparent);
	}
}

.geoseo-nap-card {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.5rem;
	border: 1px solid var(--geoseo-nap-card-border);
	border-radius: 12px;
}

/* Runder Icon-Rahmen; Glyph-Farbe steuerbar über den Styling-Tab (.geoseo-nap-icon). */
.geoseo-nap-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 1.25rem;
	border: 2px solid var(--geoseo-nap-card-ring);
	border-radius: 50%;
}

/* Klickbares Icon bei Telefon/E-Mail (tel:/mailto:). Redundanter Maus-Klickpfad;
   der Wert-Link darunter bleibt die zugängliche Aktion, daher ist der Icon-Link
   für AT/Tastatur ausgeblendet (aria-hidden + tabindex="-1"). */
.geoseo-nap-card-icon-link {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
}

.geoseo-nap-card-icon-link:hover .geoseo-nap-card-icon {
	border-color: currentColor;
}

.geoseo-nap-card-icon .geoseo-nap-icon {
	line-height: 0;
}

.geoseo-nap-card-icon svg {
	display: block;
}

.geoseo-nap-card-title {
	margin: 0 0 0.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.geoseo-nap-card-value {
	line-height: 1.5;
}

.geoseo-nap-card-value.geoseo-nap-address {
	font-style: normal;
}

.geoseo-nap-card-value a {
	color: inherit;
	text-decoration: none;
}

.geoseo-nap-card-value a:hover,
.geoseo-nap-card-value a:focus {
	text-decoration: underline;
}

/* Mobile: Spalten stapeln */
@media (max-width: 768px) {
	.geoseo-nap-row-contact,
	.geoseo-nap-row-meta {
		grid-template-columns: 1fr;
	}

	.geoseo-nap-card {
		flex-basis: 100%;
	}
}
