/* Vorlage ffl – Layouts "karten" (Kategorie), "fahrzeug" und "ratgeber" (Beitrag). Farben aus template.css. */

.ffl-seitentitel { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.05; margin: 0 0 8px; letter-spacing: -.01em; }
.ffl-unterzeile { color: var(--grau); margin: 0 0 28px; font-size: 1.05rem; max-width: 720px; }
.ffl-unterzeile p { margin: 0; }
.ffl-marke { display: inline-flex; align-items: center; align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--rot); border-radius: 999px; padding: 5px 12px; }
.ffl-marke--klein { position: absolute; top: 14px; left: 14px; z-index: 1; }
.ffl-funk { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; font-size: .85rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 8px; padding: 3px 9px; }
.ffl-funk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 3px rgba(212, 42, 47, .3); }
.ffl-fz-lang { margin: 0; opacity: .8; }
.ffl-pfeil { margin-top: 12px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.ffl-pfeil::after { content: "→"; transition: transform .2s; }
a:hover .ffl-pfeil::after { transform: translateX(4px); }

/* ---------- Kategorie: Fahrzeuge ---------- */
.ffl-fz-top { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 20px; overflow: hidden; background: var(--nacht); color: #fff; text-decoration: none; margin-bottom: 24px; transition: transform .2s, box-shadow .2s; }
.ffl-fz-top:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 23, 28, .25); }
.ffl-fz-top__bild { min-height: 320px; background: #222 center / cover no-repeat; }
.ffl-fz-top__info { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ffl-fz-top__name { font-size: 3rem; line-height: 1; font-weight: 900; margin-top: 4px; }
.ffl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ffl-chip { display: flex; flex-direction: column; line-height: 1.15; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 12px; min-width: 92px; }
.ffl-chip small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.ffl-chip b { font-size: 1.05rem; }
.ffl-fz-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ffl-fz-karte { display: block; text-decoration: none; color: var(--tinte); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--linie); transition: transform .2s, box-shadow .2s; }
.ffl-fz-karte:hover { color: var(--tinte); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 23, 28, .12); }
.ffl-fz-karte__bild { position: relative; display: block; aspect-ratio: 815 / 430; background: #ddd center / cover no-repeat; }
.ffl-fz-karte__bild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, rgba(10, 12, 15, .85)); }
.ffl-fz-karte__titel { position: absolute; left: 20px; bottom: 14px; z-index: 1; color: #fff; }
.ffl-fz-karte__titel b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.ffl-fz-karte__titel span { font-size: .9rem; opacity: .85; }
.ffl-fz-karte__daten { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; color: var(--grau); font-size: .88rem; }
.ffl-fz-karte__daten b { display: block; color: var(--tinte); font-size: 1rem; }

/* ---------- Kategorie: Ratgeber / Buergerinfo ---------- */
.ffl-bi-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ffl-bi-hervor { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--rot); color: #fff; border-radius: 20px; padding: 26px 32px; text-decoration: none; transition: transform .2s; }
.ffl-bi-hervor:hover { color: #fff; transform: translateY(-3px); }
.ffl-bi-hervor__gross { font-size: 4.4rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ffl-bi-hervor__text b { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.ffl-bi-hervor__text span { display: block; opacity: .92; max-width: 640px; }
.ffl-bi-hervor__knopf { background: #fff; color: var(--rot); font-weight: 800; border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
.ffl-bi-karte { display: flex; flex-direction: column; text-decoration: none; color: var(--tinte); border-radius: 18px; overflow: hidden; border: 1px solid var(--linie); background: #fff; transition: transform .2s, box-shadow .2s; }
.ffl-bi-karte:hover { color: var(--tinte); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 23, 28, .12); }
.ffl-bi-karte__bild { display: block; aspect-ratio: 16 / 9; background: var(--flaeche) center / cover no-repeat; }
.ffl-bi-karte__inhalt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ffl-meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ffl-meta i { font-style: normal; color: var(--rot); }
.ffl-bi-karte__titel { font-size: 1.3rem; line-height: 1.2; }
.ffl-bi-karte__anriss { color: var(--grau); font-size: .95rem; flex: 1; }
.ffl-bi-karte .ffl-pfeil { color: var(--rot); margin-top: 6px; }

/* ---------- Beitrag: Fahrzeug ---------- */
.ffl-held { position: relative; border-radius: 22px; overflow: hidden; background: #222 center / cover no-repeat; aspect-ratio: 815 / 400; min-height: 300px; color: #fff; display: flex; align-items: flex-end; }
.ffl-held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 15, .88)); }
.ffl-held__text { position: relative; z-index: 1; padding: 28px 32px 64px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ffl-held h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .95; margin: 6px 0 4px; font-weight: 900; color: #fff; }
.ffl-held .ffl-fz-lang { font-size: 1.1rem; }
.ffl-kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -34px 24px 32px; position: relative; z-index: 2; }
.ffl-kz { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(20, 23, 28, .12); }
.ffl-kz small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grau); font-weight: 700; }
.ffl-kz b { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1.15; }
.ffl-kz span { color: var(--grau); font-size: .85rem; }
.ffl-fz-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ffl-fliess p { margin: 0 0 14px; font-size: 1.05rem; }
.ffl-fz-detail .ffl-fliess > p:first-child { font-size: 1.2rem; font-weight: 500; }
.ffl-steckbrief { background: var(--flaeche); border-radius: 18px; padding: 22px 24px; position: sticky; top: 90px; }
.ffl-steckbrief h2 { margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.ffl-steckbrief dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.ffl-steckbrief dt { color: var(--grau); }
.ffl-steckbrief dd { margin: 0; font-weight: 700; text-align: right; }
.ffl-beladung { margin-top: 34px; }
.ffl-beladung h2 { font-size: 1.3rem; margin: 0 0 14px; }
.ffl-beladung ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ffl-beladung li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.ffl-beladung li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ffl-fz-rest { margin-top: 28px; }
.ffl-blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.ffl-blaettern a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); border: 1px solid var(--linie); border-radius: 16px; padding: 10px; }
.ffl-blaettern a:hover { border-color: var(--tinte); color: var(--tinte); }
.ffl-blaettern__nach { flex-direction: row-reverse; text-align: right; }
.ffl-blaettern img { width: 110px; aspect-ratio: 815 / 430; object-fit: cover; border-radius: 10px; }
.ffl-blaettern small { display: block; color: var(--grau); font-size: .8rem; }
.ffl-blaettern b { font-size: 1.2rem; }

/* ---------- Beitrag: Ratgeber ---------- */
.ffl-lesen { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 48px; justify-content: center; }
.ffl-lesen__bild { border-radius: 20px; aspect-ratio: 16 / 7; background: var(--flaeche) center / cover no-repeat; margin-bottom: 24px; }
.ffl-meta-zeile { display: flex; gap: 10px; color: var(--grau); font-size: .9rem; margin-bottom: 6px; }
.ffl-lesen h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 18px; font-weight: 900; }
.ffl-ratgeber-text { font-size: 1.06rem; }
.ffl-ratgeber-text > p:first-child { font-size: 1.2rem; font-weight: 500; }
.ffl-ratgeber-text p { margin: 0 0 14px; }
.ffl-ratgeber-text p.ffl-zwischen > strong { display: block; font-size: 1.2rem; margin-top: 10px; }
.ffl-ratgeber-text hr { border: 0; border-top: 1px solid var(--linie); margin: 16px 0; }
.ffl-ratgeber-text img { max-width: 100%; height: auto; border-radius: 10px; }
.ffl-ratgeber-text table { width: 100% !important; height: auto !important; margin: 18px 0 !important; border-collapse: separate; border-spacing: 10px; }
.ffl-ratgeber-text td, .ffl-ratgeber-text th { width: auto !important; height: auto !important; vertical-align: top; background: var(--flaeche); border-radius: 12px; padding: 12px; border: 0; }
.ffl-ratgeber-text td:empty { background: none; }
.ffl-ratgeber-text ul:not(.ffl-tipps) { padding-left: 1.2em; }
.ffl-tipps { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 10px; }
.ffl-tipps li { position: relative; background: var(--flaeche); border-radius: 12px; padding: 12px 16px 12px 36px; }
.ffl-tipps li::before { content: ""; position: absolute; left: 16px; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--rot); }
.ffl-achtung { display: flex; gap: 14px; align-items: center; background: #fdeeee; border-left: 5px solid var(--rot); border-radius: 12px; padding: 14px 18px; margin: 20px 0; color: var(--rot-dunkel); font-size: 1.1rem; }
.ffl-achtung::before { content: "!"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ffl-lesen__seite { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; align-self: start; }
.ffl-box-notruf { background: var(--nacht); color: #fff; border-radius: 18px; padding: 22px; }
.ffl-box-notruf small { display: block; opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; }
.ffl-box-notruf a { display: block; font-size: 3rem; font-weight: 900; color: #fff; text-decoration: none; line-height: 1.1; }
.ffl-box-themen { border: 1px solid var(--linie); border-radius: 18px; padding: 18px 20px; }
.ffl-box-themen h2 { margin: 0 0 8px; font-size: 1rem; }
.ffl-box-themen a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--tinte); padding: 8px 0; border-top: 1px solid var(--linie); font-weight: 600; }
.ffl-box-themen a::after { content: "→"; color: var(--rot); }
.ffl-box-themen a:hover { color: var(--rot); }

@media (max-width: 900px) {
	.ffl-fz-top { grid-template-columns: 1fr; }
	.ffl-fz-top__bild { min-height: 220px; }
	.ffl-fz-top__name { font-size: 2.4rem; }
	.ffl-fz-raster { grid-template-columns: 1fr; }
	.ffl-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -28px 12px 24px; }
	.ffl-fz-detail, .ffl-lesen { grid-template-columns: 1fr; }
	.ffl-steckbrief, .ffl-lesen__seite { position: static; }
	.ffl-bi-raster { grid-template-columns: 1fr; }
	.ffl-bi-hervor { grid-template-columns: 1fr; gap: 10px; }
	.ffl-blaettern { grid-template-columns: 1fr; }
	.ffl-held { aspect-ratio: auto; min-height: 320px; }
	.ffl-held__text { padding: 22px 20px 56px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
	.ffl-bi-raster { grid-template-columns: repeat(2, 1fr); }
}

/* Raster: Inhalte duerfen Spalten nicht verbreitern */
.ffl-bi-raster > *, .ffl-fz-raster > *, .ffl-fz-detail > *, .ffl-lesen > * { min-width: 0; }
