/*
Theme Name: CN Web
Description: Nachbau des Creative-Networks-Themes „cntemplate2" (2014) — gleiches Aussehen, aber fürs Handy tauglich, ohne jQuery und ohne Fremd-Server.
Author: CNAD
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: cnweb
*/

:root {
  --akzent: #0059a1;
  --akzent-dunkel: #00437a;
  --text: #333;
  --grau: #606060;
  --linie: #cecece;
  --breite: 1100px;
  --schrift: Verdana, "Lucida Sans Unicode", "DejaVu Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  background: #2b3a4a;
}
img { max-width: 100%; height: auto; }
a { color: var(--akzent-dunkel); }
a:hover { color: var(--akzent); }

/* ---------- Hintergrund (Vollbild, wie Backstretch) ---------- */
.cn-hintergrund {
  position: fixed; inset: 0; z-index: -1;
  background: #2b3a4a center / cover no-repeat;
  transform: translateZ(0); will-change: transform;   /* eigene Ebene: zittert beim Scrollen nicht (2026-11-25) */
}
.cn-hintergrund > div {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transition: opacity .8s ease;
}
.cn-hintergrund > div.ist-aktiv { opacity: 1; }
.cn-hintergrund video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cn-rahmen {
  max-width: var(--breite); margin: 0 auto; padding: 0 0 24px;
  /* Fuß immer unten am Bildschirmrand, auch bei kurzen Seiten */
  display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
.cn-rahmen > main { flex: 1 0 auto; }

/* Inhaltsblock reicht immer bis kurz vor den Fuß; der Fuß steht fest unten, der Kopf fest oben.
   Erst wenn der Inhalt länger ist, scrollt die Seite (2026-11-11). Nicht auf dem Handy. */
@media (min-width: 681px) {
  .cn-rahmen { padding-bottom: 0; }
  .cn-haupt { display: flex; flex-direction: column; }
  .cn-haupt > .cn-inhalt, .cn-haupt > .cn-inhalt-rubrik { flex: 1 0 auto; }
  .cn-inhalt-rubrik { display: flex; flex-direction: column; }
  .cn-inhalt-rubrik > .cn-rubrik { flex: 1 0 auto; }
  .cn-rubrik > .cn-rubrik-inhalt { align-self: stretch; }
  .cn-rahmen > .cn-fuss, .cn-rahmen > .cn-fuss-auf { position: sticky; bottom: 0; z-index: 40; }
  .cn-rahmen > .cn-fuss, .cn-rahmen > .cn-fuss-auf { background: #1f1f1f; box-shadow: 0 -2px 6px rgba(0,0,0,.25); }
}

/* ---------- Kopfzeile über dem Kopf (wie altes Theme: Titel links, Suche rechts) ---------- */
.cn-kopfzeile {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 14px 0 6px;
}
.cn-kopfzeile-titel {
  margin: 0; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .01em;
  text-shadow: 0 0 1px #000, 0 0 2px #000, 1px 1px 3px rgba(0,0,0,.6);
}
.cn-kopfzeile-titel a { color: inherit; text-decoration: none; white-space: nowrap; }
.cn-kopfzeile-titel a:hover { text-decoration: underline; }
.cn-suche {
  display: flex; align-items: center; width: 220px; flex: none;
  background: rgba(40,40,40,.75); border: 1px solid #444;
}
.cn-suche input[type=search] {
  flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; padding: 6px 8px;
}
.cn-suche input[type=search]::placeholder { color: #ccc; }
.cn-suche input[type=search]:focus { outline: 2px solid var(--akzent); outline-offset: -2px; }
.cn-suche button { border: 0; background: none; color: #ddd; padding: 4px 8px; cursor: pointer; display: flex; }
.cn-suche button:hover { color: #fff; }

/* ---------- Kopf ---------- */
.cn-kopf {
  background: #fff;
  border-top: 10px solid var(--akzent);
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 0 15px;
  padding: 10px 15px;
  align-items: start;
  /* Kopf bleibt beim Scrollen oben stehen (2026-11-10), unter der WP-Adminleiste */
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cn-logo img { display: block; width: 200px; height: 70px; }
.cn-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.cn-nav ul, .cn-fuss ul { list-style: none; margin: 0; padding: 0; }
.cn-nav li { border-bottom: 1px solid var(--linie); }
.cn-nav a, .cn-fuss a {
  display: block; padding: 1px 0 1px 18px;
  font-size: 12px; line-height: 19px; color: var(--grau); text-decoration: none;
  position: relative;
}
.cn-nav a::before, .cn-fuss a::before {
  content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 6px; background: var(--akzent);
}
.cn-nav a:hover, .cn-nav .current-menu-item > a,
.cn-fuss a:hover { color: #fff; background: var(--akzent-dunkel); }
.cn-nav a:hover::before, .cn-nav .current-menu-item > a::before, .cn-fuss a:hover::before { background: #fff; }
.cn-nav .sub-menu { display: none; }

.cn-menu-knopf {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  font: inherit; color: var(--grau); align-items: center; gap: 8px;
}
.cn-menu-knopf span, .cn-menu-knopf span::before, .cn-menu-knopf span::after {
  display: block; width: 24px; height: 3px; background: var(--akzent); position: relative; content: "";
}
.cn-menu-knopf span::before { position: absolute; top: -7px; }
.cn-menu-knopf span::after { position: absolute; top: 7px; }

/* News-Kasten */
.cn-news { font-size: 11px; }
.cn-news-titel {
  background: #eee; padding: 2px 6px; font-size: 12px; color: #000;
  display: flex; justify-content: space-between; align-items: center;
}
.cn-news-titel a { color: var(--grau); text-decoration: none; font-size: 11px; }
.cn-news-liste { list-style: none; margin: 0; padding: 0 6px; height: 50px; overflow: hidden; position: relative; }
.cn-news-liste li { height: 50px; padding-top: 4px; transition: transform .5s ease; line-height: 15px; }
.cn-news-liste a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cn-news-liste a { color: #000; text-decoration: none; }
.cn-news-liste a:hover { color: var(--akzent); }
.cn-news-datum { display: block; }

/* ---------- Produktübersicht: Kacheln ---------- */
.cn-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 16px; padding: 20px 0 40px; }
.cn-kachel { background: #fff; display: flex; flex-direction: column; min-height: 400px; }
.cn-kachel-bild { display: block; height: 155px; overflow: hidden; position: relative; }
.cn-kachel-bild.ist-mittig { text-align: center; }
.cn-kachel-bild img { height: 155px; width: auto; max-width: 100%; object-fit: cover; }
.cn-kachel-bild.ist-voll img { width: 100%; }
.cn-kachel-balken { margin: 0 0 10px; background: var(--akzent); }
.cn-kachel-balken a {
  display: block; padding: 9px 12px; color: #fff; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.25;
}
.cn-kachel-balken a:hover { background: var(--akzent-dunkel); }
.cn-kachel-text { flex: 1; padding: 0 15px; font-size: 14px; color: #000; }
.cn-kachel-text h3 { font-size: 16px; }
.cn-kachel-knopf { text-align: center; padding: 8px 0 15px; }
.cn-kachel-knopf .cn-knopf { border-radius: 5px; font-size: 12px; padding: 8px 10px; }
.cn-kachel-knopf .cn-knopf::after { content: none; }

/* ---------- Rubriken: Leiste links, Beiträge rechts ---------- */
.cn-inhalt-rubrik { margin-top: 10px; }
.cn-inhalt-rubrik > .cn-meta { background: rgba(255,255,255,.85); padding: 10px 15px; margin: 0 0 10px; }
.cn-rubrik { display: grid; grid-template-columns: 230px 1fr; gap: 10px; align-items: start; }
.cn-rubrik-leiste {
  background: rgba(255,255,255,.85); padding: 0 5px;
  /* Leiste mit eigenem Schieber: bleibt unter dem festen Kopf stehen, scrollt für sich */
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--kopf-h, 92px) + 10px);
  max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--kopf-h, 92px) - 20px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--akzent-dunkel) rgba(0,0,0,.08);
}
.cn-rubrik-leiste::-webkit-scrollbar { width: 8px; }
.cn-rubrik-leiste::-webkit-scrollbar-track { background: rgba(0,0,0,.08); }
.cn-rubrik-leiste::-webkit-scrollbar-thumb { background: var(--akzent-dunkel); border-radius: 4px; }
.cn-rubrik-leiste a {
  display: block; min-height: 75px; padding: 6px 22px 6px 5px; position: relative; box-sizing: border-box;
  font-size: 12px; color: #000; text-decoration: none; border-bottom: 1px solid #ccc;
}
.cn-rubrik-leiste a::after { content: "›"; position: absolute; right: 6px; bottom: 6px; font-size: 16px; color: #999; }
.cn-rubrik-leiste a:hover, .cn-rubrik-leiste a[aria-current] { background: var(--akzent-dunkel); color: #fff; }
.cn-titel a { color: inherit; text-decoration: none; }
.cn-rubrik-leiste a:hover::after, .cn-rubrik-leiste a[aria-current]::after { color: #fff; }
/* News neuer Art (2026-11-11): Jahr · Typ klein über der Überschrift, Typ/Art als Marken im Beitrag */
.cn-leiste-marke { display: block; font-size: 10px; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; color: var(--akzent); margin-bottom: 2px; }
.cn-rubrik-leiste a:hover .cn-leiste-marke, .cn-rubrik-leiste a[aria-current] .cn-leiste-marke { color: #cfe3f5; }
.cn-news-merkmale { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -12px 0 20px; font-size: 12px; }
.cn-news-merkmale div { display: flex; gap: 6px; align-items: center; }
.cn-news-merkmale dt { color: var(--grau); }
.cn-news-merkmale dd { margin: 0; background: var(--akzent); color: #fff; padding: 2px 8px; border-radius: 3px; }
.cn-rubrik-inhalt { background: rgba(255,255,255,.85); padding: 5px 15px 20px; font-size: 13px; min-width: 0; }
.cn-rubrik-beitrag { border-bottom: 1px solid #999; padding-bottom: 10px; margin-bottom: 15px; overflow: hidden; }
.cn-rubrik-beitrag h2 { font-size: 19px; margin: 10px 0 4px; }
.cn-rubrik-beitrag > .cn-meta-rechts { text-align: right; margin: 0 0 -4px; }
.cn-rubrik-beitrag > h2 { margin-bottom: 20px; }
.cn-rubrik-inhalt.cn-rubrik-beitrag { border-bottom: 0; margin-bottom: 0; }
.cn-rubrik-beitrag h2 a { color: #000; text-decoration: none; }
.cn-rubrik-beitrag h2 a:hover { color: var(--akzent); }
.cn-rubrik-beitrag img { max-width: 100%; height: auto; }

/* ---------- Startseite: Slider ---------- */
.cn-start { display: flex; flex-direction: column; }
.cn-slider { margin-top: 30px; width: 470px; max-width: 100%; position: relative; }
.cn-slide {
  display: none; background: rgba(64,64,64,.78); color: #fff; padding: 25px 10px 20px;
  flex-direction: column;
}
.cn-slide.ist-aktiv { display: flex; }
/* Folie mit Textkasten rechts (z. B. Weihnachten): ganzer Kasten wandert nach rechts */
.cn-slider:has(.cn-slide.ist-rechts.ist-aktiv) { align-self: flex-end; }
.cn-slide.ist-rechts { padding-bottom: 40px; }
.cn-slide h2 { font-size: 19px; margin: 0 0 20px; line-height: 1.25; font-family: Verdana, sans-serif; }
.cn-slide-text { font-size: 14px; margin-bottom: 18px; }
.cn-slide-text p { margin: 0 0 12px; }
.cn-knopf {
  align-self: flex-start; display: inline-block; background: var(--akzent); color: #fff; text-decoration: none;
  padding: 6px 10px; border-radius: 3px; font-size: 13px;
}
.cn-knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.cn-knopf::after { content: " ›"; font-weight: bold; }
.cn-punkte { position: absolute; right: 12px; bottom: 14px; display: flex; gap: 4px; }
.cn-punkte button {
  width: 14px; height: 14px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer;
}
.cn-punkte button[aria-current="true"], .cn-punkte button:hover { background: var(--akzent); }

.cn-logos { margin-top: auto; padding-top: 30px; display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.cn-logos img { width: 144px; height: 70px; object-fit: contain; background: #fff; display: block; }

/* ---------- Inhaltsseiten ---------- */
.cn-haupt { margin-top: 20px; }
.cn-titel {
  background: var(--akzent); color: #fff; font-size: 18px; font-weight: bold; padding: 5px 8px; margin: 0;
  line-height: 1.35;
}
.cn-unternav { background: var(--akzent); padding: 10px 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cn-unternav a {
  display: block; min-width: 150px; text-align: center; padding: 4px 10px 5px;
  background: var(--akzent-dunkel); color: #fff; font-weight: bold; font-size: 14px; text-decoration: none;
  border-radius: 10px 10px 0 0;
}
.cn-unternav a:hover, .cn-unternav a[aria-current="page"] { background: #fff; color: #000; }
.cn-unternav + .cn-titel { display: none; }

.cn-inhalt { background: #fff; padding: 20px 125px 30px; min-height: 300px; }
.cn-inhalt h1, .cn-inhalt h2.cn-h1 { font-size: 18px; line-height: 1.4; }
.cn-inhalt h2 { font-size: 15px; line-height: 1.45; }
.cn-inhalt h3 { font-size: 14px; }
.cn-inhalt h1, .cn-inhalt h2, .cn-inhalt h3 { margin: 1em 0 .5em; }
.cn-inhalt > :first-child { margin-top: 0; }
.cn-inhalt table { border-collapse: collapse; max-width: 100%; }
.cn-inhalt td, .cn-inhalt th { padding: 3px 6px; vertical-align: top; }
.cn-inhalt iframe, .cn-inhalt video { max-width: 100%; }
.cn-inhalt pre { white-space: pre-wrap; background: #f6f6f6; padding: 8px; }
.alignright { float: right; margin: 0 0 10px 15px; }
.alignleft { float: left; margin: 0 15px 10px 0; }
.aligncenter { display: block; margin: 10px auto; }
.cn-inhalt::after { content: ""; display: block; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 11px; color: var(--grau); margin: 3px 0 0; }

.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; border: 1px solid #ddd; }
.gallery-caption { font-size: 11px; }

.cn-meta { font-size: 11px; color: var(--grau); margin-bottom: 12px; }

/* Listen (Blog, News, Suche) */
.cn-liste { list-style: none; margin: 0; padding: 0; }
.cn-liste > li { border-bottom: 1px solid #e5e5e5; padding: 14px 0; display: flow-root; }
.cn-liste h2 { font-size: 15px; margin: 0 0 4px; }
.cn-liste h2 a { color: var(--text); text-decoration: none; }
.cn-liste h2 a:hover { color: var(--akzent); }
.cn-liste img { float: right; margin: 0 0 6px 12px; width: 120px; }
.cn-seiten { margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.cn-seiten .page-numbers { padding: 3px 9px; background: #eee; color: var(--text); text-decoration: none; }
.cn-seiten .current, .cn-seiten a:hover { background: var(--akzent); color: #fff; }

/* Formulare (Contact Form 7) */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
  width: 100%; max-width: 480px; font: inherit; padding: 5px 7px; border: 1px solid #bbb;
}
.wpcf7 input[type=submit] { background: var(--akzent); color: #fff; border: 0; padding: 7px 16px; font: inherit; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--akzent-dunkel); }

/* ---------- Fuß ---------- */
.cn-fuss {
  margin-top: 20px; background: rgba(0,0,0,.8); padding: 10px 40px 10px 10px; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 15px;
}
/* Fuß einklappbar wie früher: ⬇ klappt zu, die schmale Leiste mit ⬆ klappt wieder auf */
.cn-fuss[hidden] { display: none; }
.cn-fuss-zu, .cn-fuss-auf {
  border: 0; background: none; color: #ccc; cursor: pointer; font-size: 16px; line-height: 1; padding: 4px 6px;
}
.cn-fuss-zu { position: absolute; right: 8px; top: 8px; }
.cn-fuss-auf {
  margin-top: 20px; width: 100%; height: 22px; background: rgba(0,0,0,.8); text-align: right; padding-right: 14px;
}
.cn-fuss-zu:hover, .cn-fuss-auf:hover { color: #fff; }
.cn-fuss li { border-bottom: 1px solid var(--grau); }
.cn-fuss a { color: #ccc; }
.cn-fuss-zeile { grid-column: 1 / -1; color: #999; font-size: 11px; padding-top: 8px; }

/* ---------- Kontakt-Knöpfe rechts ---------- */
.cn-kontakt {
  position: fixed; right: 0; top: 40%; z-index: 50; display: flex; flex-direction: column;
  background: var(--akzent); border-radius: 8px 0 0 8px; overflow: hidden;
}
.cn-kontakt a, .cn-kontakt button {
  display: grid; place-items: center; width: 50px; height: 52px; color: #fff; background: none; border: 0; cursor: pointer;
}
.cn-kontakt a + a, .cn-kontakt button + a { border-top: 1px solid rgba(255,255,255,.7); }
.cn-kontakt a:hover, .cn-kontakt button:hover { background: var(--akzent-dunkel); }
.cn-kontakt svg { width: 28px; height: 28px; fill: currentColor; }

.cn-rueckruf[hidden] { display: none; }
.cn-rueckruf {
  position: fixed; right: 58px; top: 40%; z-index: 51; width: 280px; background: #fff;
  border: 3px solid var(--akzent); padding: 12px 14px; box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.cn-rueckruf h2 { font-size: 14px; margin: 0 0 8px; }
.cn-rueckruf .cn-zu { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; cursor: pointer; }

/* ---------- Lightbox ---------- */
.cn-lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.cn-lightbox.ist-offen { display: flex; }
.cn-lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 30px #000; }
.cn-lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 16px; line-height: 1;
}
.cn-lightbox .cn-lb-zu { top: 6px; right: 10px; }
.cn-lightbox .cn-lb-zurueck { left: 4px; top: 50%; transform: translateY(-50%); }
.cn-lightbox .cn-lb-vor { right: 4px; top: 50%; transform: translateY(-50%); }

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

/* ---------- Tablet ---------- */
@media (max-width: 1120px) {
  .cn-rahmen { padding: 0 12px 24px; }
  /* Tablet quer: News-Kasten bleibt rechts neben dem Menü, nur schmaler (Ralf, 2026-11-26) */
  .cn-kopf { grid-template-columns: 170px 1fr 210px; gap: 0 12px; }
  .cn-logo img { width: 170px; height: 60px; }
  .cn-nav { gap: 0 12px; }
  .cn-inhalt { padding: 20px 40px 30px; }
  .cn-kacheln { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet hoch: kein Platz neben dem Menü → News-Kasten aus (Ralf, 2026-11-26) */
@media (max-width: 899px) and (min-width: 681px) {
  .cn-kopf { grid-template-columns: 200px 1fr; }
  .cn-logo img { width: 200px; height: 70px; }
  .cn-news { display: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 680px) {
  body { font-size: 15px; }
  .cn-rahmen { padding: 0 0 16px; }
  .cn-kopfzeile { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px 8px; }
  .cn-kopfzeile-titel { font-size: 16px; }
  .cn-suche { display: none; } /* Ralf 2026-11-29: auf dem Handy keine Suche im Kopf */
  .cn-kopf { margin-top: 0; grid-template-columns: 1fr auto; padding: 8px 16px; position: static; }
  .cn-logo img { width: 160px; height: 56px; }
  .cn-menu-knopf { display: flex; }
  .cn-nav { grid-column: 1 / -1; grid-template-columns: 1fr; display: none; margin-top: 8px; }
  .cn-kopf.menu-offen .cn-nav { display: grid; }
  .cn-nav a, .cn-fuss a { font-size: 15px; line-height: 1.4; padding: 9px 0 9px 16px; }
  .cn-nav a::before, .cn-fuss a::before { top: 15px; }
  .cn-news { display: none; } /* Ralf 2026-11-29: auf dem Handy kein News-Kasten im Kopf */
  .cn-slider { margin-top: 0; width: 100%; }
  .cn-kacheln { grid-template-columns: 1fr; padding: 16px; }
  .cn-rubrik { grid-template-columns: 1fr; }
  .cn-rubrik-leiste { display: none; }
  .cn-kachel { min-height: 0; }
  .cn-slide { min-height: 0; padding: 20px 16px; }
  .cn-start { min-height: 0; }
  .cn-logos { justify-content: center; padding: 20px 16px 0; }
  .cn-logos img { width: 30%; min-width: 96px; height: auto; aspect-ratio: 144 / 70; }
  .cn-haupt { margin-top: 0; }
  .cn-unternav { padding: 8px 8px 0; }
  .cn-unternav a { min-width: 0; flex: 1 1 auto; font-size: 13px; }
  .cn-inhalt { padding: 16px 16px 24px; }
  .cn-inhalt h1, .cn-inhalt h2.cn-h1 { font-size: 19px; }
  .alignright, .alignleft { float: none; display: block; margin: 10px auto; }
  .cn-inhalt table { display: block; overflow-x: auto; }
  .cn-fuss { grid-template-columns: 1fr 1fr; padding: 10px 40px 10px 16px; }
  .cn-kontakt { top: auto; bottom: 16px; }
  .cn-kontakt a, .cn-kontakt button { width: 46px; height: 46px; }
  .cn-rueckruf { left: 16px; right: 16px; width: auto; top: auto; bottom: 120px; }
}


/* Bild in News (aus den alten Beiträgen übernommen): rechts, nie zu breit */
.cn-rubrik-beitrag .cn-news-bild { float: right; margin: 0 0 10px 15px; max-width: min(40%, 300px); }
.cn-rubrik-beitrag .cn-news-bild img { display: block; width: 100%; height: auto; }
.cn-news-bild video { display: block; width: 100%; height: auto; }
.wp-block-video.cn-news-bild { float: right; margin: 0 0 10px 15px; max-width: min(40%, 300px); }
@media (max-width: 680px) { .wp-block-video.cn-news-bild { float: none; margin: 10px auto; max-width: 70%; } }
@media (max-width: 680px) { .cn-rubrik-beitrag .cn-news-bild { float: none; margin: 10px auto; max-width: 70%; } }

/* ---------- Marke „KI-generiert“ (AI Act Art. 50, 2026-11-29) ---------- */
.cn-ki-marke {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; pointer-events: none;
  background: rgba(0,0,0,.62); color: #fff; font: 11px/1.3 Verdana, sans-serif; padding: 2px 6px; border-radius: 2px;
}
.cn-ki-bild { position: relative; display: inline-block; max-width: 100%; }
.cn-ki-bild > img { display: block; }
.cn-ki-bild.alignright { float: right; margin: 0 0 10px 15px; }
.cn-ki-bild.alignleft { float: left; margin: 0 15px 10px 0; }
.cn-ki-bild.aligncenter { display: table; margin: 0 auto 10px; }
/* Handy: Bild mit KI-Marke nicht umfließen lassen, sondern mittig über dem Text (wie normale Bilder, 2026-11-29) */
@media (max-width: 680px) {
  .cn-ki-bild.alignright, .cn-ki-bild.alignleft { float: none; display: table; margin: 10px auto; }
}
/* Startseite: Marke im Fuß. Schmal: unten rechts in der ©-Zeile; breit genug: rechts NEBEN dem Fuß, mittig (2026-11-29) */
.cn-ki-fuss[hidden] { display: none; }
img.cn-ki-fuss { background: none; padding: 0; border-radius: 0; width: auto; height: 22px; }
.cn-fuss-auf { position: relative; }
.cn-fuss-auf .cn-ki-fuss { right: 40px; bottom: auto; top: 50%; transform: translateY(-50%); }
/* Handy: nicht unter die blauen Kontakt-Knöpfe am rechten Rand */
@media (max-width: 680px) { .cn-ki-fuss, .cn-fuss-auf .cn-ki-fuss { right: 64px; } }
@media (min-width: 1300px) {
  .cn-ki-fuss, .cn-fuss-auf .cn-ki-fuss { left: calc(100% + 12px); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); white-space: nowrap; }
}

/* Suche: Art des Treffers blau neben der Überschrift (2026-11-29) */
.cn-art { color: var(--akzent); font-size: 13px; font-weight: normal; white-space: nowrap; margin-left: 8px; }
