/* Technologie-Atlas – helles, freundliches, leichtgewichtiges Design */
:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --ink: #16212e;
  --ink-soft: #566374;
  --line: #e3e9ef;
  --accent: #0f9aa8;
  --accent-dark: #0b7883;
  --accent-soft: #e6f6f7;
  --warm: #fff6e8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 46, .04), 0 8px 24px rgba(22, 33, 46, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 20; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Kopfbereich */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.8rem); padding: 1.05rem 0; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: .7rem; font-weight: 760; color: var(--ink); font-size: 1.08rem; letter-spacing: -.015em; }
.brand:hover { text-decoration: none; }
.brand-text span { color: var(--accent-dark); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 5px 14px rgba(15,154,168,.2); }
.brand-mark span { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; }
.mainnav { display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.35rem); flex: 1; font-size: .86rem; }
.mainnav a { color: var(--ink-soft); padding: .45rem 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--accent-dark); text-decoration: none; border-bottom-color: var(--accent); }
.searchform { position: relative; display: flex; gap: .45rem; align-items: center; }
.searchform input { border: 1px solid var(--line); border-radius: 999px; padding: .57rem .9rem .57rem 2.25rem; font: inherit; font-size: .86rem; background: var(--surface); min-width: 180px; }
.search-icon, .hero-search-icon { position: absolute; border: 2px solid #8995a3; border-radius: 50%; pointer-events: none; }
.search-icon { left: .82rem; width: 12px; height: 12px; }
.search-icon::after, .hero-search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: #8995a3; transform: rotate(45deg); transform-origin: left center; }
.search-icon::after { right: -5px; bottom: -3px; }
.searchform input:focus, .inline-search input:focus, .hero-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.searchform button, .inline-search button, .hero-search button, .button {
  border: 0; background: var(--accent); color: #fff; border-radius: 999px;
  padding: .55rem 1.2rem; font: inherit; font-size: .92rem; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.searchform button:hover, .button:hover, .hero-search button:hover { background: var(--accent-dark); text-decoration: none; }
.button { display: inline-block; }
.button.ghost { background: #fff; color: var(--accent-dark); border: 1px solid var(--line); }
.navtoggle, .navbutton { display: none; }

/* Brotkrumen */
.breadcrumbs { font-size: .87rem; color: var(--ink-soft); padding: 1rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumbs .sep { color: #b9c4cf; }

/* Startseite */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: end; padding: clamp(4.6rem, 9vw, 7.8rem) 0 clamp(4rem, 7vw, 6rem); }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: linear-gradient(112deg, #fbfcfd 0%, #fbfcfd 62%, #f1f9f8 100%); border-bottom: 1px solid var(--line); }
.hero-kicker, .section-kicker { margin: 0 0 .75rem; color: var(--accent-dark); font-size: .72rem; line-height: 1.3; font-weight: 760; text-transform: uppercase; letter-spacing: .1em; }
.hero-kicker { display: flex; align-items: center; gap: .55rem; }
.hero-kicker span { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 5.1rem); max-width: none; margin-bottom: .08em; line-height: 1.02; letter-spacing: -.045em; }
.hero-statement { margin: .7rem 0 1.1rem; color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.24; letter-spacing: -.025em; }
.hero-statement strong { color: var(--accent-dark); font-weight: 720; }
.hero .lead { color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.13rem); max-width: 600px; margin: 0; line-height: 1.65; }
.hero-discovery { padding: 1.45rem; background: rgba(255,255,255,.9); border: 1px solid #dce6e9; border-radius: 16px; box-shadow: 0 18px 50px rgba(22, 33, 46, .08); }
.search-label, .topics-label { color: var(--ink-soft); font-size: .72rem; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.search-label { margin: 0 0 .65rem; }
.topics-label { margin: 1rem 0 .55rem; }
.hero-search { position: relative; display: flex; gap: .55rem; margin: 0; }
.hero-search-icon { left: 1.1rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); }
.hero-search-icon::after { right: -6px; bottom: -3px; }
.hero-search input { min-width: 0; flex: 1 1 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 1rem 1rem 1rem 3rem; font: inherit; box-shadow: inset 0 1px 2px rgba(22,33,46,.025); }
.hero-search button { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding-inline: 1.4rem; font-weight: 680; }
.hero-search button span { font-size: 1.1rem; transition: transform .15s ease; }
.hero-search button:hover span { transform: translateX(2px); }
.chips { list-style: none; display: flex; gap: .45rem; flex-wrap: wrap; padding: 0; margin: 0; }
.chips a { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid transparent; border-radius: 999px; padding: .34rem .7rem; font-size: .77rem; display: inline-block; }
.chips a:hover { text-decoration: none; background: #d5eff1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-block: 1px solid var(--line); margin: 3.7rem 0 1rem; }
.stat { position: relative; padding: 1.25rem .65rem; text-align: center; transition: background .15s ease; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: var(--line); }
.stat:hover { transform: translateY(-2px); text-decoration: none; }
.stat-value { display: block; font-size: 1.45rem; line-height: 1.2; font-weight: 750; color: var(--ink); }
.stat-label { color: var(--ink-soft); font-size: .8rem; }

.section { margin: 4rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0; }
.more { font-size: .88rem; font-weight: 650; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,33,46,.09); }
.card h2, .card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .94rem; margin: 0 0 .6rem; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--accent-dark); margin: 0 0 .2rem; font-weight: 600; }

.tags { list-style: none; display: flex; gap: .35rem; flex-wrap: wrap; padding: 0; margin: .5rem 0 0; }
.tags li { background: var(--warm); color: #8a6420; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; }
.tags li a { color: inherit; }

.page-head { padding: 2rem 0 1.4rem; }
.page-head .lead { color: var(--ink-soft); }
.inline-search { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.inline-search input { flex: 1 1 320px; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font: inherit; background: #fff; }
.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--ink-soft); }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; margin: 2rem 0; }

/* Detailseite */
.detail { padding: 1.4rem 0 3rem; }
.detail-head { max-width: 760px; }
.detail-head .lead { font-size: 1.1rem; color: var(--ink-soft); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: 2rem; margin-top: 1.6rem; align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6rem; }
.block { margin-top: 2rem; }
.bullets, .linklist, .plain { padding-left: 0; list-style: none; }
.bullets li { padding-left: 1.2rem; position: relative; margin-bottom: .4rem; }
.bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.linklist li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.linklist span { display: block; color: var(--ink-soft); font-size: .9rem; }
.plain li { padding: .25rem 0; color: var(--ink-soft); font-size: .93rem; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.facts h2 { font-size: 1rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .92rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 2rem 0; color: var(--ink-soft); }

/* Fußbereich */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 1.4rem; }
.footer-inner { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.footer-inner p { color: var(--ink-soft); font-size: .93rem; }
.footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.copyright { color: var(--ink-soft); font-size: .84rem; padding-top: 1rem; }

/* Adminbereich */
.admin body, body.admin { background: #f5f7f9; }
.admin-header { background: #12303a; color: #fff; padding: .8rem 0; }
.admin-header a { color: #cfeef1; }
.admin-header .header-inner { justify-content: space-between; }
.admin-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .94rem; }
.admin-main { padding: 1.8rem 0 3rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.panel h2 { font-size: 1.15rem; }
.form-row { display: grid; gap: .3rem; margin-bottom: .9rem; }
.form-row label { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: inherit; font-size: .95rem; background: #fff; width: 100%;
}
.form-row textarea { min-height: 160px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.notice { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.notice.ok { background: #e8f8ef; color: #17603c; }
.notice.error { background: #fdeceb; color: #8d2c25; }
.notice.info { background: var(--accent-soft); color: var(--accent-dark); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink-soft); font-weight: 600; }
.badge { display: inline-block; border-radius: 999px; padding: .12rem .6rem; font-size: .78rem; background: var(--accent-soft); color: var(--accent-dark); }
.badge.off { background: #eef1f4; color: var(--ink-soft); }
.logbox { background: #0f2129; color: #d6e6ea; border-radius: 10px; padding: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; overflow: auto; max-height: 520px; }
.login-wrap { max-width: 420px; margin: 8vh auto; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.muted { color: var(--ink-soft); font-size: .88rem; }

/* Alle Anpassungen für kleine Bildschirme stehen gesammelt am Dateiende. */


/* Header-Fotos für Forschungs- und Förderprojekte */
.detail-photo {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3f5;
  line-height: 0;
}
.detail-photo img {
  width: 100%;
  height: clamp(150px, 26vw, 300px);
  object-fit: cover;
  display: block;
}

/* Fortschrittsanzeige beim manuellen Import */
.import-progress { margin-top: 1rem; }
.progress-bar { height: 10px; border-radius: 999px; background: #e6edf0; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.progress-text { margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.import-progress.is-error .progress-bar span { background: #d2604f; }

/* Importkategorien */
.button.tiny { padding: .25rem .6rem; font-size: .8rem; }

/* Entdeckungen des Tages */
.daily-section { position: relative; margin: 0 calc(50% - 50vw); padding: clamp(2.6rem, 5vw, 4.5rem) max(1.25rem, calc((100vw - 1180px) / 2)); background: #f0f7f7; border-block: 1px solid #dceced; }
.daily-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.daily-heading h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: .25rem; }
.daily-heading time { color: var(--ink-soft); font-size: .86rem; white-space: nowrap; padding-bottom: .35rem; }
.section-intro { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.daily-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); grid-template-rows: repeat(2, minmax(235px, auto)); gap: 1rem; }
.daily-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; box-shadow: 0 8px 30px rgba(22, 33, 46, .055); transition: transform .18s ease, box-shadow .18s ease; }
.daily-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 33, 46, .09); }
.daily-card-featured { grid-row: 1 / 3; grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1.2fr) auto; }
.daily-card-no-media { grid-template-columns: 1fr; border-left: 4px solid var(--accent); }
.daily-card-no-media .daily-content { justify-content: center; padding: 1.5rem; }
.daily-media { display: block; min-height: 100%; background: #e8eff1; line-height: 0; overflow: hidden; }
.daily-media img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; transition: transform .4s ease; }
.daily-card:hover .daily-media img { transform: scale(1.015); }
.daily-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.25rem 1.35rem; }
.daily-card-featured .daily-content { padding: 1.45rem 1.55rem 1.55rem; }
.daily-label { display: inline-block; font-size: .7rem; line-height: 1.2; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .55rem; }
.daily-card h3 { font-size: clamp(1.08rem, 1.8vw, 1.38rem); margin-bottom: .5rem; overflow-wrap: anywhere; }
.daily-card-featured h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.daily-card h3 a { color: var(--ink); }
.daily-card h3 a:hover { color: var(--accent-dark); text-decoration: none; }
.daily-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: .91rem; line-height: 1.55; margin-bottom: .75rem; }
.daily-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.daily-tags li { color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .48rem; font-size: .69rem; }
.daily-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: auto; font-size: .84rem; font-weight: 700; }
.daily-link:hover { text-decoration: none; }
.daily-link span { transition: transform .15s ease; }
.daily-link:hover span { transform: translateX(3px); }
.latest-section + .latest-section { border-top: 1px solid var(--line); padding-top: 4rem; }

/* KI-Aufgaben */
.ai-task { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .9rem; background: #fff; }
.ai-task-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.ai-task .progress-bar { margin: .2rem 0 .35rem; }
.ai-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.ai-task-actions select { padding: .35rem .5rem; }
.ai-batch { margin-bottom: 1rem; }

/* Vorschaubilder auf Karten */
.card { overflow: hidden; }
.card-media { display: block; margin: -1.1rem -1.1rem .9rem; line-height: 0; background: #eef3f5; }
.card-media img { width: 100%; height: 150px; object-fit: cover; display: block; }
@media (max-width: 640px) { .card-media img { height: 130px; } }
.ai-task-remaining { font-size: .9rem; }

.prose .note{background:#f2fbfc;border-left:3px solid var(--accent);padding:.7rem .9rem;border-radius:.4rem;color:#41525c}

/* Beitragstabelle im Adminbereich */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.filter-bar .form-row { display: flex; flex-direction: column; gap: .3rem; }
.table-head h2 { margin-bottom: .2rem; }
.table-scroll { overflow-x: auto; }
.content-table { min-width: 68rem; }
.content-table .col-check { width: 2rem; }
.content-table .col-actions { white-space: nowrap; }
.sort-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
.sort-link:hover { color: var(--accent); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.state-badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.state-badge.ok { background: #e3f6ef; color: #12705a; }
.state-badge.partial { background: #fdf1dd; color: #8a5a10; }
.state-badge.none { background: #f1f3f5; color: #5d666e; }
.col-dots { white-space: nowrap; }
.col-dots .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .25rem; background: #d8dde2; }
.col-dots .dot.done { background: #1aa179; }
.col-dots .dot.na { background: #f2f4f6; border: 1px solid #e2e6ea; }
.lock-hint { margin-left: .3rem; }
.task-menu { display: inline-block; margin-left: .3rem; }
.task-menu summary { cursor: pointer; font-size: .85rem; color: var(--accent); }
.task-menu-body { position: absolute; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: .4rem; box-shadow: 0 10px 30px rgba(15, 40, 60, .12); display: flex; flex-direction: column; }
.task-menu-body .task-run { background: none; border: 0; text-align: left; padding: .35rem .5rem; cursor: pointer; font-size: .86rem; border-radius: .4rem; }
.task-menu-body .task-run:hover { background: #f2f7f8; }
.row-status { display: block; font-size: .8rem; margin-top: .3rem; }

/* Beitragstabelle: Spaltenbreiten und Lesbarkeit */
.content-table td.col-title { min-width: 220px; }
.content-table td.col-date,
.content-table th:nth-child(6) { white-space: nowrap; }
.content-table td.col-type { white-space: nowrap; }
.content-table td.col-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 260px; }
.content-table { table-layout: auto; }

/* Verwandte Themen, Themenfelder und ähnliche Beiträge */
.block-intro { color: var(--ink-soft); margin: -0.35rem 0 0.9rem; }
.tags-wide { flex-wrap: wrap; gap: 0.45rem; }
.tags-wide a.is-page { background: rgba(15, 154, 168, 0.12); border-color: rgba(15, 154, 168, 0.35); color: #0b6f79; font-weight: 600; }
.related-section { margin-top: 3rem; }
.related-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.15rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.related-heading .section-kicker { margin-bottom: .25rem; }
.related-heading h2 { margin: 0; }
.related-count { color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.similar-card { position: relative; display: flex; min-width: 0; min-height: 190px; flex-direction: column; padding: 1.15rem 1.2rem 1.05rem; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.similar-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .75; transition: width .18s ease; }
.similar-card:hover { border-color: rgba(15, 154, 168, .46); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 42, 67, .09); text-decoration: none; }
.similar-card:hover::before { width: 5px; }
.similar-card-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.similar-type { display: inline-flex; align-items: center; width: fit-content; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .67rem; line-height: 1.3; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.similar-arrow { color: var(--accent-dark); font-size: 1.15rem; line-height: 1; transition: transform .18s ease; }
.similar-card:hover .similar-arrow { transform: translateX(3px); }
.similar-title { display: block; margin-bottom: .4rem; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.similar-text { display: -webkit-box; margin-bottom: .8rem; overflow: hidden; color: var(--ink-soft); font-size: .87rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.similar-cta { display: flex; align-items: center; gap: .35rem; margin-top: auto; color: var(--accent-dark); font-size: .78rem; font-weight: 700; }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.related-list li { min-width: 0; }
.related-list a { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.related-list a:hover { border-color: rgba(15, 154, 168, .4); background: #fff; transform: translateY(-1px); text-decoration: none; }
.related-list-content { min-width: 0; }
.related-list-content strong { display: block; margin-bottom: .18rem; font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere; }
.related-list-content > span { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: .8rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-list-arrow { flex: 0 0 auto; color: var(--accent-dark); font-size: 1.1rem; transition: transform .18s ease; }
.related-list a:hover .related-list-arrow { transform: translateX(3px); }

/* =====================================================================
   Responsive Verhalten – bewusst am Dateiende, damit diese Regeln
   alle vorherigen Angaben sicher überschreiben.
   ===================================================================== */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding: 3.2rem 0 2.6rem; }
  .hero h1 { max-width: none; }
  .hero-discovery { box-shadow: 0 10px 30px rgba(22, 33, 46, .07); }
  .daily-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .daily-card, .daily-card-featured { grid-row: auto; }
  .daily-card-featured { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 34vw) auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .prose { max-width: none; }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .header-inner { gap: 1.15rem; }
  .mainnav { gap: .75rem; font-size: .8rem; }
  .searchform input { width: 145px; min-width: 0; }
  .searchform button { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-inner { position: relative; flex-wrap: wrap; gap: .6rem; }
  .navbutton { display: flex; flex-direction: column; gap: 4px; padding: .55rem; cursor: pointer; margin-left: auto; }
  .navbutton span { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }
  .mainnav { display: none; order: 3; width: 100%; flex-direction: column; gap: .1rem; padding: .4rem 0 .2rem; border-top: 1px solid var(--line); }
  .mainnav a { padding: .55rem 0; }
  .navtoggle:checked ~ .mainnav { display: flex; }
  .searchform { order: 4; width: 100%; }
  .searchform input { flex: 1 1 auto; min-width: 0; }
  .section { margin: 2.6rem 0; }
  .latest-section + .latest-section { padding-top: 2.4rem; }
  .similar-grid, .related-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 1.6rem, 1180px); }
  h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .hero { padding: 2rem 0 2.2rem; gap: 1.4rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-statement { font-size: 1.35rem; }
  .hero .lead { font-size: 1rem; }
  .hero-discovery { padding: .9rem; border-radius: var(--radius); }
  .hero-search { flex-direction: column; gap: .5rem; }
  .hero-search-icon { top: 1.55rem; transform: none; }
  .hero-search input, .hero-search button { width: 100%; }
  .chips a { font-size: .82rem; padding: .35rem .7rem; }

  /* Karten „des Tages“: immer einspaltig, Bild oben, Text darunter */
  .daily-section { padding: 2.2rem .9rem 2.4rem; }
  .daily-heading { flex-direction: column; align-items: flex-start; gap: .4rem; margin-bottom: 1.1rem; }
  .daily-heading time { padding-bottom: 0; }
  .daily-grid { gap: .9rem; }
  .daily-card,
  .daily-card-featured,
  .daily-card-no-media { display: flex; flex-direction: column; min-height: 0; grid-template-columns: none; grid-template-rows: none; }
  .daily-media { width: 100%; min-height: 0; height: 190px; }
  .daily-media img { height: 190px; min-height: 0; }
  .daily-card-featured .daily-media,
  .daily-card-featured .daily-media img { height: 215px; }
  .daily-content, .daily-card-featured .daily-content { padding: 1.05rem 1.1rem 1.2rem; width: 100%; }
  .daily-card h3, .daily-card-featured h3 { font-size: 1.15rem; overflow-wrap: break-word; }
  .daily-card p { font-size: .93rem; -webkit-line-clamp: 4; }

  .stats { grid-template-columns: repeat(2, 1fr); margin: 2.2rem 0 .6rem; }
  .stat { padding: .95rem .5rem; }
  .stat:nth-child(odd)::before { display: none; }
  .stat + .stat::before { top: 20%; height: 60%; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .cards { grid-template-columns: 1fr; }
  .card-media img { height: 170px; }

  .detail { padding: .8rem 0 2rem; }
  .detail-photo img { height: 190px; }
  .detail-head .lead { font-size: 1.02rem; }
  .related-section { margin-top: 2.4rem; }
  .related-heading { align-items: flex-start; }
  .related-count { display: none; }
  .similar-card { min-height: 0; padding: 1rem 1.05rem; }
  .similar-text { -webkit-line-clamp: 2; }
  .facts dl { grid-template-columns: 1fr; gap: .1rem; }
  .facts dt { margin-top: .5rem; font-size: .84rem; }
  .breadcrumbs { font-size: .82rem; }
  .inline-search { flex-direction: column; }
  .inline-search input, .inline-search button { width: 100%; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-inner nav { flex-direction: column; gap: .45rem; }
  .pagination { flex-wrap: wrap; gap: .6rem; }

  /* Adminbereich bleibt auch am Telefon bedienbar */
  .panel { padding: 1rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-row { width: 100%; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .admin-nav { gap: .7rem; font-size: .9rem; }
}

@media (max-width: 400px) {
  .wrap { width: min(100% - 1.1rem, 1180px); }
  .daily-section { padding-inline: .65rem; }
  .brand { font-size: 1rem; }
  .chips a { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .daily-card, .daily-media img, .daily-link span, .card, .stat, .similar-card, .related-list a, .similar-arrow, .related-list-arrow { transition: none; }
}
