/* SWN Downloadcenter – Gestaltung (Child-Theme-Modul). Farben wie stadtwerke-neuburg.de, Schrift vom Theme. */
.swn-dc { --dc-navy: #003770; --dc-blue: #007ae5; --dc-orange: #f39200; --dc-text: #1d2733; --dc-muted: #5b6573; --dc-line: #e3e8ef; --dc-soft: #f3f6fa; color: var(--dc-text); }
.swn-dc button { font: inherit; }
.swn-dc .swn-dc__h2 { font-size: 24px; color: var(--dc-navy); margin: 36px 0 16px; }
.swn-dc__suche { position: relative; max-width: 760px; }
.swn-dc .swn-dc__suche input[type="search"] { width: 100%; height: auto !important; padding: 16px 20px 16px 54px !important; border-radius: 999px !important; border: 1px solid var(--dc-line) !important; font: inherit; font-size: 18px !important; color: var(--dc-text); background: #fff !important; box-shadow: 0 6px 20px rgba(0, 30, 70, .12); }
.swn-dc .swn-dc__suche input[type="search"]:focus { outline: 3px solid var(--dc-orange); outline-offset: 0; border-color: transparent !important; }
.swn-dc__suche svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--dc-muted); }
.swn-dc__beliebt { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--dc-muted); }
.swn-dc__beliebt button { background: var(--dc-soft); color: var(--dc-navy); border: 1px solid var(--dc-line); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 14px; }
.swn-dc__beliebt button:hover, .swn-dc__beliebt button:focus-visible { background: var(--dc-navy); color: #fff; outline: none; }
.swn-dc__kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swn-dc__kachel { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--dc-line); border-radius: 12px; text-decoration: none !important; background: #fff; transition: box-shadow .15s, border-color .15s; }
.swn-dc__kachel:hover, .swn-dc__kachel:focus-visible { border-color: var(--dc-blue); box-shadow: 0 6px 18px rgba(0, 55, 112, .12); outline: none; }
.swn-dc__kachel b { display: block; color: var(--dc-navy); font-size: 16px; line-height: 1.3; }
.swn-dc__kachel small { color: var(--dc-muted); font-size: 13px; }
.swn-dc__ico { flex: none; width: 38px; height: 46px; border-radius: 6px; background: #e8eef7; color: var(--dc-navy); font-size: 11px; font-weight: 700; display: grid; place-items: center; position: relative; }
.swn-dc__ico::after { content: ''; position: absolute; right: 0; top: 0; border-left: 10px solid #c9d6e8; border-bottom: 10px solid #fff; border-top-right-radius: 6px; }
.swn-dc__ico--docx, .swn-dc__ico--doc { background: #e7f0fd; color: #1d5fbf; }
.swn-dc__ico--xlsx, .swn-dc__ico--xls { background: #e6f5ec; color: #18794e; }
/* Reiter: volle Breite, umbrechen statt scrollen (kein overflow – der erzeugte sonst einen Scrollbalken) */
/* Desktop: eine Zeile über die volle Breite; lange Bezeichnungen brechen innerhalb des Reiters um */
.swn-dc__reiter { display: flex; gap: 0 4px; border-bottom: 2px solid var(--dc-line); margin-top: 40px; }
.swn-dc__reiter button { flex: 1 1 auto; min-width: 0; background: none; border: 0; padding: 12px 8px; font-size: 15.5px; line-height: 1.3; color: var(--dc-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: normal; text-align: center; }
.swn-dc__reiter button span { white-space: nowrap; }
.swn-dc__reiter button span { display: inline-block; min-width: 24px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--dc-soft); font-size: 13px; color: var(--dc-muted); }
.swn-dc__reiter button[aria-selected="true"] { color: var(--dc-navy); font-weight: 600; border-bottom-color: var(--dc-orange); }
.swn-dc__reiter button:focus-visible { outline: 2px solid var(--dc-blue); }
.swn-dc__intro { color: var(--dc-muted); margin: 16px 0 6px; }
.swn-dc__werkzeuge { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 8px; }
.swn-dc__filter { display: flex; gap: 8px; flex-wrap: wrap; }
.swn-dc__filter button { border: 1px solid var(--dc-line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; color: var(--dc-navy); }
.swn-dc__filter button[aria-pressed="true"] { background: var(--dc-navy); color: #fff; border-color: var(--dc-navy); }
.swn-dc__sort { display: inline-flex; align-items: center; border: 1px solid var(--dc-line); border-radius: 999px; overflow: hidden; font-size: 14px; margin-left: auto; }
.swn-dc__sort span { padding: 6px 10px 6px 14px; color: var(--dc-muted); }
.swn-dc__sort button { border: 0; border-left: 1px solid var(--dc-line); background: #fff; padding: 6px 12px; cursor: pointer; color: var(--dc-navy); font-size: 14px; }
.swn-dc__sort button[aria-pressed="true"] { background: var(--dc-navy); color: #fff; }
.swn-dc__sort button:focus-visible, .swn-dc__filter button:focus-visible { outline: 2px solid var(--dc-blue); outline-offset: -2px; }
.swn-dc__sortwahl { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--dc-muted); margin: 0 0 0 auto; }
.swn-dc .swn-dc__sortwahl select { height: auto !important; padding: 7px 30px 7px 12px !important; border: 1px solid var(--dc-line) !important; border-radius: 999px !important; background-color: #fff !important; color: var(--dc-navy); font-size: 14px !important; width: auto !important; }
.swn-dc__liste { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.swn-dc__eintrag { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--dc-line); margin: 0 !important; }
.swn-dc__eintrag::before { display: none !important; }
.swn-dc .swn-dc__titel { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.swn-dc__titel a { color: var(--dc-text); text-decoration: none; }
.swn-dc__titel a:hover { color: var(--dc-blue); text-decoration: underline; }
.swn-dc__text { margin: 4px 0 0 !important; color: var(--dc-muted); font-size: 15px; }
.swn-dc__meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--dc-muted); }
.swn-dc__tag { border: 0; background: var(--dc-soft); color: var(--dc-navy); border-radius: 6px; padding: 3px 8px; font-size: 13px; cursor: pointer; }
.swn-dc__tag:hover, .swn-dc__tag:focus-visible { background: #dde7f4; outline: none; }
.swn-dc__badge { border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; }
.swn-dc__badge--form { background: #fff1dc; color: #8a4b00; }
.swn-dc__badge--neu { background: #e3f6ea; color: #18794e; }
.swn-dc__badge--alt { background: #eceff3; color: #4a5361; }
.swn-dc__tag--fest { cursor: default; }
.swn-dc__tag--fest:hover { background: var(--dc-soft); }
.swn-dc__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.swn-dc__leer p { margin: 0 0 10px; }
.swn-dc__leer p:last-child { margin: 12px 0 0; }
.swn-dc__laden { display: inline-flex; align-items: center; gap: 8px; background: var(--dc-blue); color: #fff !important; text-decoration: none !important; border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.swn-dc__laden:hover, .swn-dc__laden:focus-visible { background: var(--dc-navy); outline: none; }
.swn-dc__laden svg { width: 16px; height: 16px; }
.swn-dc__mehr { margin: 16px 0 0; background: none; border: 1px solid var(--dc-line); border-radius: 999px; padding: 9px 18px; color: var(--dc-navy); cursor: pointer; }
.swn-dc__archiv { margin-top: 26px; border: 1px solid var(--dc-line); border-radius: 12px; background: var(--dc-soft); }
.swn-dc__archiv summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--dc-navy); }
.swn-dc__archiv .swn-dc__liste { padding: 0 20px 10px !important; background: #fff; border-radius: 0 0 12px 12px; }
.swn-dc__gesetze { margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--dc-orange); background: #fffaf2; border-radius: 0 12px 12px 0; }
.swn-dc__gesetze h3 { margin: 0 0 6px; color: var(--dc-navy); font-size: 17px; }
.swn-dc__gesetze p { margin: 0 0 8px; color: var(--dc-muted); }
.swn-dc__gesetze ul { margin: 0; padding-left: 18px; columns: 2; }
.swn-dc__gesetze a::after { content: ' ↗'; color: var(--dc-muted); }
.swn-dc__trefferkopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.swn-dc .swn-dc__trefferkopf h2 { font-size: 24px !important; line-height: 1.3 !important; color: var(--dc-navy); margin: 0; } /* Avada-Überschriftengröße überschreiben */
.swn-dc__trefferkopf button { background: none; border: 0; color: var(--dc-blue); cursor: pointer; font-size: 15px; }
.swn-dc__gruppe { margin: 22px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--dc-muted); }
.swn-dc__leer { padding: 22px; border: 1px dashed var(--dc-line); border-radius: 12px; color: var(--dc-muted); }
.swn-dc mark { background: #ffe8b3; color: inherit; border-radius: 2px; padding: 0; }
.swn-dc__portal { margin: 18px 0 22px; }
/* Original-Kasten (CSS-Klasse swn-dc-portal) ausblenden, sobald das Downloadcenter ihn im Reiter zeigt – ohne Springen beim Laden.
   Avada-Elemente setzen ein eigenes display, daher !important. Bei einem Skriptfehler bleibt der Kasten sichtbar. */
.swn-dc-portal[hidden], body:has(.swn-dc--center:not(.swn-dc--fehler)) .swn-dc-portal:not(.swn-dc__portal .swn-dc-portal) { display: none !important; }
@media (max-width: 900px) {
	.swn-dc__kacheln { grid-template-columns: repeat(2, 1fr); }
	.swn-dc__gesetze ul { columns: 1; }
	.swn-dc__sort { display: none; }
	.swn-dc__sortwahl { display: inline-flex; }
	/* Tablet: Reiter als umbrechende Kacheln */
	.swn-dc__reiter { flex-wrap: wrap; gap: 6px; border-bottom: 0; }
	.swn-dc__reiter button { flex: 1 1 auto; padding: 9px 12px; font-size: 14.5px; border: 1px solid var(--dc-line); border-radius: 10px; margin: 0; }
	.swn-dc__reiter button[aria-selected="true"] { background: var(--dc-navy); color: #fff; border-color: var(--dc-navy); }
	.swn-dc__reiter button[aria-selected="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
}
/* Handy */
@media (max-width: 600px) {
	.swn-dc .swn-dc__suche input[type="search"] { font-size: 16px !important; padding: 13px 16px 13px 46px !important; }
	.swn-dc__suche svg { left: 17px; }
	.swn-dc__beliebt { gap: 6px; font-size: 13px; }
	.swn-dc__beliebt > span { flex-basis: 100%; }
	.swn-dc__beliebt button { padding: 4px 10px; font-size: 13px; }
	.swn-dc .swn-dc__h2 { font-size: 20px; margin: 26px 0 12px; }
	/* Schnell gefunden: kompakte Liste statt Karten */
	.swn-dc__kacheln { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; }
	.swn-dc__kachel { padding: 11px 14px; gap: 10px; border: 0; border-radius: 0; border-bottom: 1px solid var(--dc-line); align-items: center; }
	.swn-dc__kachel:last-child { border-bottom: 0; }
	.swn-dc__kachel .swn-dc__ico { width: 28px; height: 34px; font-size: 9px; border-radius: 4px; }
	.swn-dc__kachel .swn-dc__ico::after { border-left-width: 7px; border-bottom-width: 7px; }
	.swn-dc__kachel b { font-size: 14.5px; }
	.swn-dc__kachel small { font-size: 12.5px; }
	/* Reiter als Kacheln in zwei Spalten */
	.swn-dc__reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; margin-top: 26px; }
	.swn-dc__reiter button { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 12px; font-size: 14px; white-space: normal; text-align: left; line-height: 1.25; border: 1px solid var(--dc-line); border-radius: 10px; margin: 0; }
	.swn-dc__reiter button[aria-selected="true"] { background: var(--dc-navy); color: #fff; border-color: var(--dc-navy); }
	.swn-dc__reiter button[aria-selected="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
	.swn-dc__intro { font-size: 14px; }
	.swn-dc__werkzeuge { gap: 8px; }
	.swn-dc__filter button { padding: 5px 11px; font-size: 13px; }
	.swn-dc__sortwahl { margin-left: 0; }
	.swn-dc__eintrag { grid-template-columns: 34px 1fr; gap: 6px 12px; padding: 14px 0; }
	.swn-dc__ico { width: 34px; height: 42px; }
	.swn-dc .swn-dc__titel { font-size: 15.5px; }
	.swn-dc__text { font-size: 14px; }
	.swn-dc__meta { gap: 4px; }
	.swn-dc__meta .swn-dc__tag:nth-of-type(n+4) { display: none; } /* auf dem Handy höchstens drei Tags */
	.swn-dc__laden { grid-column: 2; justify-self: start; padding: 8px 14px; font-size: 14px; }
	.swn-dc__archiv summary { padding: 14px 16px; }
	.swn-dc__archiv .swn-dc__liste { padding: 0 12px 6px !important; }
	.swn-dc .swn-dc__trefferkopf h2 { font-size: 20px !important; }
	.swn-dc__eintrag { align-items: start; }
	.swn-dc__reiter button[data-k="alle"] { grid-column: 1 / -1; } /* „Alle“ über die volle Breite, dann 3 Paare */
	.swn-dc__reiter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swn-dc .swn-dc__reiter button { flex-wrap: wrap; padding: 9px 10px; font-size: 14px; min-width: 0; } /* Zahl rutscht bei langen Wörtern unter den Text */
	.swn-dc .swn-dc__reiter button span { margin-left: 0; min-width: 0; padding: 1px 6px; font-size: 12px; flex: none; }
}
