/* techtumbler Notizen 0.1 – bewusst eigenständig, ohne externe Abhängigkeiten */
:root {
  color-scheme: light;
  --paper: #f4f3ec;
  --paper-2: #edeee5;
  --surface: #fffefa;
  --ink: #14242a;
  --muted: #65767a;
  --green: #497831;
  --green-soft: #eaf0e2;
  --line: #cbd4cc;
  --line-soft: #dfe4db;
  --shadow: 0 16px 48px rgba(23, 41, 32, .045);
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 320px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.frame { max-width: 1170px; margin: 0 auto; width: min(100% - 56px, 1170px); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(244, 243, 236, .96); }
.header-inner { height: 96px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.5vw, 29px); font-weight: 800; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand-name span { color: var(--green); }
.brand-mark { width: 40px; height: 40px; background: #112127; color: #f8f8f3; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; line-height: 1; letter-spacing: -.14em; padding: 0 7px 6px 0; }
.brand-mark span { color: #8aac7b; font-size: 30px; align-self: flex-end; padding-bottom: 1px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a, .header-link { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.site-nav .current, .site-nav a:hover, .header-link:hover { color: var(--green); }
.header-link { border: 1px solid var(--line); border-radius: 99px; padding: 12px 17px; margin-left: 12px; color: var(--ink); }
.eyebrow { color: var(--green); display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; }
.intro-block { padding: clamp(54px, 7vw, 98px) 0 70px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; }
.intro-grid h1 { font-size: clamp(49px, 6.6vw, 91px); line-height: .99; margin: 20px 0 0; font-weight: 820; }
.intro-grid h1 em, .admin-intro h1 em { color: var(--green); font-style: normal; }
.intro-grid p { max-width: 460px; margin-bottom: 8px; color: var(--muted); line-height: 1.7; font-size: clamp(16px, 1.6vw, 20px); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 52px; padding: 56px 0 110px; align-items: start; }
.feed-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.feed-title h2 { font-size: clamp(28px, 3vw, 37px); margin: 6px 0 0; }
.entry-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.note-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 29px 32px 21px; margin-bottom: 16px; box-shadow: var(--shadow); }
.note-card.is-detail { margin-bottom: 0; }
.note-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.note-meta time { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 9px; white-space: nowrap; }
.note-author { display: flex; gap: 11px; align-items: center; }
.note-author > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.note-author strong { font-size: 14px; letter-spacing: -.03em; }
.author-caption { color: var(--muted); font-size: 11px; }
.avatar { width: 40px; height: 40px; background: #122228; color: #fefdf7; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 20px; letter-spacing: -.1em; border-radius: 11px; }
.note-content { font-size: 17px; line-height: 1.68; margin: 25px 0 23px; overflow-wrap: anywhere; white-space: normal; }
.note-content a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note-taxonomy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.note-taxonomy a { text-decoration: none; font-size: 12px; border-radius: 99px; padding: 7px 10px; font-weight: 650; }
.project-tag { background: var(--green-soft); color: var(--green); border: 1px solid #d8e4cc; }
.topic-tag { color: var(--muted); background: var(--paper); border: 1px solid var(--line-soft); }
.note-actions { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; gap: 18px; font-size: 12px; }
.note-actions a, .note-actions button { color: var(--muted); font-size: inherit; text-decoration: none; border: 0; background: none; padding: 0; }
.note-actions a:hover, .note-actions button:hover { color: var(--green); }
.notes-sidebar { display: flex; flex-direction: column; gap: 15px; }
.sidebar-panel { padding: 26px 25px; border: 1px solid var(--line); border-radius: 19px; }
.sidebar-panel h3 { font-size: 22px; line-height: 1.15; margin: 16px 0 12px; }
.sidebar-panel p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.sidebar-panel.small { display: flex; flex-direction: column; gap: 15px; font-size: 13px; }
.sidebar-panel.small a { text-decoration: none; color: var(--green); font-weight: 700; }
.sidebar-links { margin-top: 18px; display: flex; flex-direction: column; gap: 1px; }
.sidebar-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
.sidebar-links a:last-child { border-bottom: 0; }
.sidebar-links a span:last-child { color: var(--green); font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.tag-cloud a { text-decoration: none; font-size: 12px; padding: 7px 9px; background: var(--green-soft); color: var(--green); border: 1px solid #d8e4cc; border-radius: 9px; }
.filter-active { color: var(--muted); padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.filter-active a { color: var(--green); margin-left: 10px; }
.no-notes { text-align: center; background: var(--surface); padding: 70px 30px; border: 1px dashed var(--line); border-radius: var(--radius); }
.no-notes .empty-graphic { display: inline-flex; width: 55px; height: 55px; justify-content: center; align-items: center; color: var(--green); font: 700 24px ui-monospace, monospace; background: var(--green-soft); border-radius: 14px; margin-bottom: 20px; }
.no-notes h3 { font-size: 21px; margin-bottom: 8px; }
.no-notes p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 350px; margin: 0 auto; }
.pagination { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; padding-top: 15px; gap: 12px; }
.pagination a { color: var(--green); font-weight: 700; text-decoration: none; }
.section-head { padding: 65px 0 30px; }
.section-head .backlink { display: inline-block; text-decoration: none; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.section-head .eyebrow { display: block; }
.section-head h1 { font-size: clamp(42px, 6vw, 68px); margin: 13px 0 0; }
.notes-column { width: min(100%, 710px); margin-bottom: 115px; }
.empty-page { min-height: 55vh; padding-top: 90px; }
.empty-page h1 { font-size: clamp(36px, 6vw, 60px); margin: 15px 0 30px; }
.text-link { color: var(--green); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner strong { color: var(--ink); }
.footer-inner a { color: inherit; text-decoration: none; }

/* Geschützter Editor */
.auth-shell { min-height: calc(100vh - 202px); padding: 70px 20px; display: grid; place-items: center; }
.login-card { width: min(100%, 455px); background: var(--surface); border: 1px solid var(--line); border-radius: 25px; padding: clamp(25px, 6vw, 46px); box-shadow: var(--shadow); }
.login-symbol { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 27px; background: var(--ink); color: white; border-radius: 16px; font-size: 27px; font-weight: 800; letter-spacing: -.09em; }
.login-symbol span { color: #86a97b; }
.login-card h1 { font-size: 44px; line-height: 1.04; margin: 14px 0 15px; }
.login-card > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 30px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label, .field-label { display: block; color: var(--ink); font-size: 13px; font-weight: 730; margin-bottom: 9px; }
.auth-form label { margin: 0; }
input[type=password], input[type=text], select, textarea { width: 100%; outline: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px #86aa7940; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 12px; padding: 14px 19px; font-weight: 750; font-size: 13px; text-decoration: none; min-height: 48px; transition: transform .1s ease, background .12s ease; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #345c23; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--paper-2); }
.btn-small { min-height: 39px; padding: 9px 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.login-bottom { margin-top: 27px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.login-bottom a { color: var(--green); text-decoration: none; }
.admin-shell { padding-bottom: 110px; }
.admin-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 65px 0 48px; }
.admin-intro h1 { margin: 16px 0 15px; font-size: clamp(46px, 6vw, 76px); line-height: 1; }
.admin-intro p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 590px; }
.logout-form { padding-top: 5px; }
.quiet-button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 12px 16px; color: var(--ink); white-space: nowrap; font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.editor-card { background: var(--surface); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.status-indicator { color: var(--muted); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; padding: 7px 10px; }
.editor-card h2 { font-size: clamp(28px, 3vw, 37px); margin: 18px 0 30px; }
.editor-card textarea { min-height: 220px; line-height: 1.65; resize: vertical; font-size: 16px; }
.field-helper { margin: 11px 0 28px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; gap: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid small { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 33px; }
.delete-form { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line-soft); text-align: right; }
.danger-link { border: 0; color: #a14945; background: none; padding: 4px; font-size: 12px; }
.editor-aside { display: flex; flex-direction: column; gap: 17px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.mini-stats div { display: flex; flex-direction: column; gap: 7px; }
.mini-stats div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.mini-stats strong { font-size: 34px; letter-spacing: -.06em; }
.mini-stats span { font-size: 11px; color: var(--muted); }
.admin-list { margin-top: 68px; }
.admin-note-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; text-decoration: none; padding: 21px 20px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.admin-note-row:first-of-type { border-radius: 16px 16px 0 0; }
.admin-note-row:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.admin-note-row:hover { background: var(--paper-2); }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.row-text { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 700px; font-size: 14px; font-weight: 650; }
.row-meta { font-size: 11px; color: var(--muted); }
.row-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; font-size: 13px; }
.state-pill { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 6px 10px; }
.state-pill.published { color: var(--green); background: var(--green-soft); }
.state-pill.draft { color: var(--muted); background: var(--paper-2); }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.notice.error { color: #8b3937; border: 1px solid #b35e5660; background: #fcefeb; }
.notice.success { color: #2f6d32; border: 1px solid #5c8c5d60; background: #eef4e8; }
.notice a { color: inherit; font-weight: 750; }
@media (max-width: 950px) {
  .site-nav { gap: 15px; }
  .header-inner { gap: 18px; }
  .header-link { display: none; }
  .intro-grid { gap: 22px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 720px) {
  .frame { width: min(100% - 34px, 1170px); }
  .header-inner { min-height: 76px; height: auto; flex-wrap: wrap; justify-content: space-between; padding: 15px 0; row-gap: 16px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 33px; }
  .site-nav { margin-left: 0; gap: 23px; }
  .intro-block { padding: 50px 0 47px; }
  .intro-grid { display: block; }
  .intro-grid h1 { font-size: clamp(42px, 10.1vw, 66px); margin: 17px 0 24px; }
  .intro-grid p { font-size: 16px; line-height: 1.65; }
  .content-grid { grid-template-columns: 1fr; padding: 43px 0 75px; }
  .notes-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .sidebar-panel:first-child { grid-column: 1 / -1; }
  .notes-sidebar .small { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .editor-aside { display: none; }
  .admin-intro { padding-top: 48px; }
  .site-footer .footer-inner { flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 0; gap: 12px; }
}
@media (max-width: 510px) {
  .brand { font-size: 23px; }
  .brand-name { letter-spacing: -.073em; }
  .header-inner { gap: 8px; }
  .site-nav { width: 100%; border-top: 1px solid var(--line-soft); padding-top: 13px; }
  .site-nav a { font-size: 12px; }
  .note-card { padding: 20px 20px 18px; border-radius: 18px; }
  .note-content { font-size: 15.5px; margin: 21px 0; }
  .note-meta time { font-size: 11px; }
  .author-caption { font-size: 10px; }
  .notes-sidebar { display: flex; }
  .feed-title h2 { font-size: 29px; }
  .admin-intro { display: block; padding-bottom: 25px; }
  .admin-intro h1 { font-size: 49px; }
  .admin-intro p { font-size: 14px; }
  .logout-form { margin-top: 18px; }
  .editor-card { padding: 20px; }
  .field-grid { grid-template-columns: 1fr; gap: 22px; }
  .editor-actions { flex-direction: column-reverse; }
  .editor-actions .btn { width: 100%; }
  .admin-list { margin-top: 52px; }
  .admin-note-row { padding: 16px 12px; }
  .row-right { gap: 9px; }
  .row-text { max-width: 200px; }
  .state-pill { padding: 5px 8px; font-size: 10px; }
  .auth-shell { padding: 36px 17px; }
  .login-card { padding: 25px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #101a1b; --paper-2: #1d2a28; --surface: #182422; --ink: #edf1ec;
    --muted: #a1b2ac; --green: #9cc78b; --green-soft: #273d2d; --line: #3b4c45;
    --line-soft: #31413b; --shadow: 0 14px 35px #00000020;
  }
  .site-header { background: #101a1b; }
  .brand-mark, .avatar, .login-symbol { background: #e8eee7; color: #102121; }
  .btn-primary { background: #56893e; color: white; }
  .btn-primary:hover { background: #477a30; }
  .project-tag, .tag-cloud a { border-color: var(--line); }
  .notice.error { color: #ffc5c0; background: #3d2627; }
  .notice.success { color: #c7f3c8; background: #1f3f2c; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }


/* TT_NOTIZEN_CONTAINER_ALIGN_V1 */
.frame {
  max-width: 1320px;
  width: calc(100% - 96px);
}
@media (max-width: 900px) {
  .frame { width: calc(100% - 48px); }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 36px); }
}
