/* ==========================================================================
   Template „yanco“ – Tagebuch auf dem Schreibtisch
   Farben und Schriften aus dem früheren Gantry-Stil (Teal #4db2b3, Violett #8f4dae,
   Anthrazit #312f38 / #424753, Papier). Schreibschrift für Text und Überschriften,
   Bahiana nur für Logo, Hauptmenü und Kalenderblatt.
   ========================================================================== */

/* ---------------------------------------------------------------- Schriften (eigener Server) */
@font-face { font-family: "Annie Use Your Telescope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/AnnieUseYourTelescope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Annie Use Your Telescope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/AnnieUseYourTelescope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bahiana"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Bahiana-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bahiana"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Bahiana-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Kyrillisch (russische Seiten): Handschrift „Caveat“ */
@font-face { font-family: "Yanco Kyrillisch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Caveat-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Yanco Kyrillisch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Caveat-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---------------------------------------------------------------- Grundwerte */
:root {
  --desk: #e7e1d2;
  --card: #fffdf7;
  --ink: #2c2a31;
  --ink-soft: #5b5866;
  --line: #ddd7c6;
  --teal: #4db2b3;
  --teal-ink: #2a7374;
  --violet: #8f4dae;
  --night: #312f38;
  --night-2: #424753;
  --tape-1: rgba(77, 178, 179, .5);
  --tape-2: rgba(143, 77, 174, .38);
  --tape-3: rgba(232, 196, 104, .6);

  --f-hand: "Annie Use Your Telescope", "Yanco Kyrillisch", "Segoe Print", cursive;
  --f-head: var(--f-hand);
  --f-text: var(--f-hand);
  --f-brand: "Bahiana", "Yanco Kyrillisch", "Oswald", Impact, sans-serif;
  --f-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --rule: 2.25rem;           /* Zeilenabstand = Linienabstand auf den Tagebuchseiten */

  --wrap: 1880px;
  --gutter: clamp(.8rem, 2.5vw, 2.5rem);
  --gap: clamp(.9rem, 1.3vw, 1.4rem);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 1.4rem/var(--rule) var(--f-text); background: var(--desk); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--violet); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0; line-height: 1.1; text-wrap: balance; color: var(--night); margin: 0 0 .6rem; }
h1 { font-size: clamp(2.3rem, 3.2vw, 3rem); }
h2 { font-size: clamp(2rem, 2.6vw, 2.6rem); }
h3 { font-size: 1.9rem; }
h4, h5, h6 { font-size: 1.6rem; }
p { margin: 0 0 var(--rule); }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px dashed #cfc8b5; margin: 1.5rem 0; }
blockquote { margin: 0 0 var(--rule); padding-left: 1rem; border-left: 3px solid var(--teal); }
table { border-collapse: collapse; width: 100%; font-size: 1.25rem; }
th, td { border-bottom: 1px dashed #cfc8b5; padding: .35rem .5rem; text-align: left; vertical-align: top; }
input, button, select, textarea { font: inherit; }
.visually-hidden, .element-invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; z-index: 100; left: 1rem; top: .5rem; background: var(--card); padding: .4rem .8rem; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------------------------------------------------------- Kopf */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--night) 95%, transparent); backdrop-filter: blur(8px); color: #f1efe8; border-bottom: 3px solid var(--teal); }
.head-row { display: flex; align-items: center; gap: 1.2rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand-name { color: #f1efe8; text-decoration: none; }
.brand-name:hover { color: #fff; }
.brand-logo { position: relative; flex: none; width: 48px; height: 48px; display: block; overflow: hidden; }
.brand-logo img { position: static !important; top: auto !important; width: 48px !important; height: 48px !important; max-width: none !important; object-fit: contain; display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; rotate: 0deg !important; }
.brand-logo .mod-custom, .brand-logo p, .brand-logo div, .brand-logo a { margin: 0 !important; padding: 0 !important; display: block; }
.brand-name { font: 2rem/1 var(--f-brand); letter-spacing: .06em; }
.brand-name small { display: block; font: 1.05rem/1 var(--f-hand); letter-spacing: 0; color: #b8e0e1; margin-top: .15rem; }

.nav { margin-left: auto; }
.menu-main, .menu-main ul { list-style: none; margin: 0; padding: 0; }
.menu-main { display: flex; gap: .2rem; }
.menu-main > li { position: relative; }
.menu-main > li > a, .menu-main > li > .nav-heading { display: block; padding: .55rem .85rem .45rem; border-radius: 6px; color: #f1efe8; text-decoration: none; text-align: center; cursor: pointer; }
.menu-main > li > a b, .menu-main > li > .nav-heading b { display: block; font: 1.5rem/1 var(--f-brand); letter-spacing: .08em; font-weight: 400; }
.menu-main > li > a i, .menu-main > li > .nav-heading i { display: block; font: 1rem/1.1 var(--f-hand); font-style: normal; color: #9fcfd0; margin-top: .2rem; white-space: nowrap; }
.menu-main > li:hover > a, .menu-main > li:focus-within > a, .menu-main > li.active > a, .menu-main > li.active > .nav-heading { background: rgba(255,255,255,.07); }
.menu-main > li.active > a b, .menu-main > li.active > .nav-heading b { color: var(--teal); }
/* Untermenü: ein Notizblatt, das unter dem Menüpunkt hängt */
.menu-main .sub { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; min-width: 260px; background: var(--card); color: var(--ink); border-radius: 4px; padding: .7rem .4rem; box-shadow: 0 22px 40px -18px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; rotate: -.6deg; z-index: 60;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(2.1rem - 1px), rgba(77,178,179,.16) calc(2.1rem - 1px) 2.1rem); background-position: 0 .55rem; }
.menu-main > li:hover > .sub, .menu-main > li:focus-within > .sub { opacity: 1; visibility: visible; }
.menu-main .sub a, .menu-main .sub .nav-heading { display: block; padding: .15rem .9rem; color: var(--ink); text-decoration: none; border-radius: 4px; line-height: 1.5rem; }
.menu-main .sub a b, .menu-main .sub .nav-heading b { font: 1.4rem/1.5rem var(--f-hand); font-weight: 400; }
.menu-main .sub a i { display: block; font: 1rem/1.15 var(--f-hand); font-style: normal; color: var(--ink-soft); }
.menu-main .sub a:hover, .menu-main .sub li.active > a { background: rgba(77,178,179,.15); color: var(--teal-ink); }
.menu-main .sub .sub { position: static; translate: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 0 .8rem; min-width: 0; background: none; rotate: 0deg; }

.tools { display: flex; align-items: center; gap: .35rem; flex: none; }
.lang-list { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; font: .8rem/1 var(--f-ui); letter-spacing: .08em; }
.lang-list a { color: #cfcbd8; text-decoration: none; padding: .45rem .4rem; border-radius: 4px; display: block; }
.lang-list a[aria-current] { color: var(--night); background: var(--teal); font-weight: 600; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #f1efe8; text-decoration: none; border: 1px solid rgba(255,255,255,.18); cursor: pointer; background: none; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover, .search-drop[open] > .icon-btn { background: var(--teal); color: var(--night); border-color: var(--teal); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
.search-drop { position: relative; }
.search-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, 90vw); background: var(--card); color: var(--ink); padding: 1rem; border-radius: 6px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.6); rotate: .5deg; }

/* ---------------------------------------------------------------- Begrüßung */
.hello { background: linear-gradient(180deg, var(--night-2), #3a3e49); color: #f1efe8; padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(3rem, 5vw, 4.2rem); position: relative; z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 25px) no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'><path d='M0 0 V12 L40 16 L95 8 L150 14 L210 6 L260 13 L330 9 L390 15 L455 7 L520 12 L580 5 L650 13 L720 9 L790 16 L850 8 L915 13 L980 6 L1040 14 L1110 9 L1160 15 L1200 10 V0Z'/></svg>") bottom/100% 26px no-repeat;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 25px) no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'><path d='M0 0 V12 L40 16 L95 8 L150 14 L210 6 L260 13 L330 9 L390 15 L455 7 L520 12 L580 5 L650 13 L720 9 L790 16 L850 8 L915 13 L980 6 L1040 14 L1110 9 L1160 15 L1200 10 V0Z'/></svg>") bottom/100% 26px no-repeat; }
.hello-grid { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hello-grid.no-photo { grid-template-columns: 1fr; }
.hello-photo { rotate: -3deg; max-width: 320px; }
.hello-photo img { aspect-ratio: 4 / 4.4; }
.hello-text { font-size: 1.5rem; line-height: 1.45; color: #e6e3ea; max-width: 44em; }
.hello-text h1 { font-size: clamp(3.6rem, 7vw, 5.6rem); color: var(--teal); margin-bottom: 1rem; }
.hello-text p { margin: 0 0 .9rem; }
.hello-text a { color: #b8e0e1; }
.hello-text img { display: none; }

/* ---------------------------------------------------------------- Schreibtisch (Hintergrund, scrollt mit) */
.desk { position: relative; overflow: hidden; padding: 0 0 2.5rem; min-height: 60vh;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.desk.after-hello { margin-top: -26px; padding-top: 26px; }
.clutter, .paint { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.clutter { opacity: .42; filter: saturate(.45) contrast(.85); }
.paint { opacity: .38; mix-blend-mode: multiply; filter: saturate(.6); }
.desk > .wrap { position: relative; z-index: 1; }
.c { position: absolute; transform-origin: 50% 50%; }
.c-sheet { background: #fbf8ee; padding: 2.2rem 1.6rem 1.6rem 2.6rem; font: 1.35rem/1.85rem var(--f-hand); color: rgba(60,58,70,.55); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 16px -12px rgba(60,45,20,.3); }
.c-sheet.lined { background-image: linear-gradient(90deg, transparent 1.9rem, rgba(200,80,90,.25) 1.9rem 2rem, transparent 2rem), repeating-linear-gradient(180deg, transparent 0 calc(1.85rem - 1px), rgba(77,140,180,.2) calc(1.85rem - 1px) 1.85rem); background-position: 0 0, 0 2.2rem; }
.c-sheet.grid { background-color: #fdfcf6; background-image: linear-gradient(rgba(77,178,179,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(77,178,179,.16) 1px, transparent 1px); background-size: 18px 18px; }
.c-sheet.kraft { background: #d9c7a3; color: rgba(70,50,25,.55); }
.c-sheet.staff { background-color: #fdfbf3; background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(40,40,50,.28) 46px 47px, transparent 47px 53px, rgba(40,40,50,.28) 53px 54px, transparent 54px 60px, rgba(40,40,50,.28) 60px 61px, transparent 61px 67px, rgba(40,40,50,.28) 67px 68px, transparent 68px 74px, rgba(40,40,50,.28) 74px 75px, transparent 75px 110px); }
.c-sheet.staff::before { content: "𝄞"; position: absolute; left: .9rem; top: 30px; font: 4.1rem/1 serif; color: rgba(40,40,50,.35); }
.c-sheet.yellow { background: #f6edc4; }
.c-photo { background: #fff; padding: .55rem .55rem 1.9rem; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 16px -12px rgba(60,45,20,.3); }
.c-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: saturate(.8) contrast(.95); }
.c-photo.old img { filter: sepia(.45) saturate(.7); }
.c-note { padding: .8rem .9rem; font: 1.2rem/1.3 var(--f-hand); color: rgba(44,42,49,.75); box-shadow: 0 8px 16px -12px rgba(0,0,0,.35); }
.c-tape { height: 26px; }
.c-ring { border-radius: 50%; border: 9px solid rgba(120,80,40,.12); box-shadow: inset 0 0 0 2px rgba(120,80,40,.08); }
.c svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.12)); }
.paint .c svg { filter: none; overflow: visible; }

/* ---------------------------------------------------------------- Seitenaufbau */
.crumbs { margin: 1rem 0 0; font: 1.25rem/1.2 var(--f-hand); color: var(--ink-soft); }
.crumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.crumb-list li + li::before { content: "·"; margin-right: .5rem; color: var(--ink-soft); }
.crumb-list a { color: var(--ink-soft); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-top: .4rem; }
.has-aside .layout { grid-template-columns: minmax(0, 1fr) clamp(280px, 19vw, 340px); }
.main:focus { outline: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: 1rem 0 .8rem; }
.section-head h1, .section-head h2 { font-size: clamp(2.3rem, 2.8vw, 2.9rem); margin: 0; background: var(--card); padding: .35rem .9rem .25rem; rotate: -1deg; box-shadow: 0 10px 20px -16px rgba(0,0,0,.5); }
.section-head > span { font: 1.35rem/1 var(--f-hand); color: var(--ink-soft); }
.section-head .push { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.section-head .push > a { font: 1.3rem/1 var(--f-hand); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); padding: 1rem 1.2rem 1.1rem; margin-bottom: var(--gap); box-shadow: 0 18px 30px -24px rgba(60,45,20,.5); }
.card > .card-title { font-size: 2.1rem; margin: 0 0 .6rem; }
.card.plain { background: none; border: 0; box-shadow: none; padding: 0; }
.card.plain > .card-title { display: inline-block; background: var(--card); padding: .4rem .8rem .3rem; rotate: -1deg; box-shadow: 0 10px 20px -16px rgba(0,0,0,.5); }
.aside > .card:nth-child(3n+1) { rotate: .6deg; } .aside > .card:nth-child(3n+2) { rotate: -.5deg; }
.aside > .card.plain { rotate: 0deg; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside .mod-menu a, .aside .nav a { display: block; text-decoration: none; padding: .1rem 0; }
.aside .mod-menu .current > a, .aside .mod-menu .active > a { color: var(--violet); }
.aside .mod-menu ul { padding-left: 1rem; }

/* ---------------------------------------------------------------- Neu im Studio (Karussell) */
.gear { margin-bottom: .4rem; }
.g-viewport { overflow: hidden; padding: .6rem .4rem .9rem; margin: -.6rem -.4rem 0; touch-action: pan-y; }
.g-track { display: flex; gap: 1.2rem; transition: transform .7s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.g-track > a { flex: 0 0 calc((100% - (var(--per, 4) - 1) * 1.2rem) / var(--per, 4)); display: flex; flex-direction: column; gap: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-decoration: none; color: var(--ink); box-shadow: 0 12px 24px -18px rgba(60,45,20,.5); transition: translate .2s, box-shadow .2s; user-select: none; }
.g-track > a:nth-child(3n+1) { rotate: -.6deg; } .g-track > a:nth-child(3n+2) { rotate: .5deg; }
.g-track > a:hover { translate: 0 -4px; box-shadow: 0 18px 30px -18px rgba(60,45,20,.6); color: var(--ink); }
.g-track img { width: 100%; aspect-ratio: 16/10; object-fit: contain; pointer-events: none; }
.g-track b { font: 1.45rem/1.1 var(--f-head); font-weight: 400; }
.g-track small { font: 1.1rem/1.1 var(--f-hand); color: var(--violet); }
.g-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--night); background: var(--card); color: var(--night); display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; padding: 0; }
.g-arrow:hover:not(:disabled) { background: var(--night); color: #fff; }
.g-arrow:disabled { opacity: .3; cursor: default; }
.g-arrow svg { width: 18px; height: 18px; }
.dots { display: flex; justify-content: center; gap: .55rem; margin-top: .2rem; }
.dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px; background: rgba(49,47,56,.25); cursor: pointer; transition: width .35s ease, background .35s ease; }
.dots button[aria-current="true"] { width: 30px; background: var(--teal-ink); }
.dots button:hover { background: var(--violet); }

/* ---------------------------------------------------------------- Tagebuch: Seiten in Spalten */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: var(--gap); align-items: start; }
.entries.masonry { display: flex; align-items: flex-start; }
.entries.masonry > .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.entry { position: relative; }
.entries .entry:nth-child(4n+1) .page { rotate: -.5deg; } .entries .entry:nth-child(4n+2) .page { rotate: .6deg; } .entries .entry:nth-child(4n+3) .page { rotate: -.25deg; }
.page { position: relative; container-type: inline-size; background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.4rem clamp(1.1rem, 1.8vw, 1.8rem) 1rem;
  box-shadow: 0 1px 0 #fff inset, 0 18px 30px -22px rgba(60,45,20,.5);
  background-image:
    linear-gradient(90deg, transparent 0 calc(clamp(1.1rem, 1.8vw, 1.8rem) - 10px), rgba(143,77,174,.17) calc(clamp(1.1rem, 1.8vw, 1.8rem) - 10px) calc(clamp(1.1rem, 1.8vw, 1.8rem) - 9px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 1px), rgba(77,178,179,.2) calc(var(--rule) - 1px) var(--rule));
  background-position: 0 0, 0 calc(1.4rem - .35rem); }
/* Kalenderblatt: das Datum des Eintrags */
.cal { position: absolute; top: -18px; left: -14px; z-index: 2; width: 86px; text-align: center; background: #fff; border-radius: 4px; overflow: hidden; rotate: -5deg; box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 12px 20px -12px rgba(0,0,0,.45); line-height: 1; }
.entries .entry:nth-child(even) .cal { rotate: 4deg; }
.cal .my { display: block; background: var(--violet); color: #fff; font: .95rem/1 var(--f-brand); letter-spacing: .1em; padding: .45rem .2rem .3rem; }
.cal .d { display: block; font: 2.6rem/1 var(--f-brand); color: var(--night); padding-top: .35rem; }
.cal .w { display: block; font: 1.05rem/1 var(--f-hand); color: var(--ink-soft); padding: .1rem .2rem .5rem; }
.cal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: radial-gradient(circle at 6px 0, transparent 3px, rgba(0,0,0,.18) 3.5px, transparent 4px) 0 0/12px 5px repeat-x; }
.head-pad { padding-left: 82px; min-height: 64px; }
.head-pad.no-cal { padding-left: 0; min-height: 0; }
.kicker { font: 1.15rem/1.1 var(--f-hand); color: var(--violet); margin: 0 0 .3rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--teal-ink); }
.entry-title { font-size: clamp(1.9rem, 8cqi, 2.6rem); line-height: 1.05; margin: 0 0 .6rem; }
.entry-title a { color: inherit; text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) 0 92%/0 3px no-repeat; transition: background-size .25s; }
.entry-title a:hover { background-size: 100% 3px; color: inherit; }
.prose > :last-child { margin-bottom: .6rem; }
.prose img { border-radius: 2px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .3rem 0 1.2rem; }
.photos .polaroid:first-child { grid-column: 1 / -1; rotate: -1.2deg; }
.photos .polaroid:nth-child(2) { rotate: 2deg; }
.photos .polaroid:nth-child(3) { rotate: -1.6deg; margin-top: .6rem; }
.photos-2 .polaroid:nth-child(2) { grid-column: 1 / -1; width: 70%; justify-self: end; }
.photos .more { grid-column: 1 / -1; font: 1.3rem/1 var(--f-hand); justify-self: end; }
.entry-gear .photos .polaroid { background: transparent; box-shadow: none; padding: 0; rotate: 0deg; }
.entry-gear .photos .polaroid::before { display: none; }
.entry-gear .photos img { aspect-ratio: 16/10; object-fit: contain; }
.polaroid { position: relative; background: #fff; padding: .6rem .6rem 2.3rem; margin: 0; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 26px -12px rgba(0,0,0,.38); }
.polaroid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.polaroid figcaption { position: absolute; left: .8rem; right: .8rem; bottom: .45rem; font: 1.25rem/1.1 var(--f-hand); color: #4b4757; }
.tape::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 28px; translate: -50% 0; rotate: -4deg; background: var(--tape-1); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 1; }
.tape.t2::before { background: var(--tape-2); rotate: 3deg; }
.tape.t3::before { background: var(--tape-3); rotate: -2deg; left: 30%; }
.entry-events:empty { display: none; }
/* In Übersichten nicht doppelt zeigen: Datum steht auf dem Kalenderblatt, Bewertung als Sterne in der Fußzeile */
.entries .entry-events .yhistory_date, .entries .entry-events .content_rating, .entries .entry-events [class*="akenage-comments-counter"], .entries .entry-events .fields-container:empty { display: none; }
.entry-events .fields-container { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: 1.2rem; }
.entry-full .yhistory_date { display: none; }
.entry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; border-top: 1px dashed #cfc8b5; padding-top: .7rem; font: 1.15rem/1.2 var(--f-hand); color: var(--ink-soft); }
.tags, .entry-foot .tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.tag, .tags a, .entry-foot .tags .btn { font: 1.12rem/1 var(--f-hand); color: var(--ink); text-decoration: none; background: rgba(77,178,179,.16); padding: .35rem .6rem .3rem; border-radius: 4px; border: 0; }
.tag:hover, .tags a:hover { background: var(--teal); color: var(--night); }
.stars { color: #d7a63a; letter-spacing: .05em; font-family: var(--f-ui); font-size: .95rem; }
.also a { text-decoration: none; font-weight: 600; letter-spacing: .05em; font-family: var(--f-ui); font-size: .85rem; }
.readmore, a.readmore { margin-left: auto; font: 1.5rem/1 var(--f-hand); text-decoration: none; color: var(--teal-ink); white-space: nowrap; }
.readmore::after { content: " →"; }
.readmore:hover { color: var(--violet); }
.is-unpublished .page { outline: 2px dashed var(--violet); }
.badge { display: inline-block; font: .8rem/1 var(--f-ui); padding: .3rem .5rem; border-radius: 4px; background: var(--violet); color: #fff; }

/* Einzelner Beitrag */
.entry-full { margin-top: 2rem; }
.entry-full .page { padding-top: 1.6rem; }
.entry-full .entry-title { font-size: clamp(2.3rem, 5cqi, 3.4rem); }
.entry-full .head-pad { padding-left: 96px; min-height: 80px; }
.entry-full .cal { width: 96px; top: -20px; left: -16px; }
.entry-full .cal .d { font-size: 3rem; }
.article-body { max-width: 52rem; }
.article-image { max-width: 560px; margin: .5rem 0 1.6rem; rotate: -1deg; }
.article-image img { aspect-ratio: auto; object-fit: contain; }
/* Galerien vom Plugin {mdir} im Beitrag als Polaroids */
.article-body div[style*="display: grid"] { gap: 1rem !important; margin: .4rem 0 var(--rule); }
.article-body div[style*="display: grid"] > div:has(> a > img) { background: #fff; padding: .5rem .5rem 1.6rem; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 24px -12px rgba(0,0,0,.38); }
.article-body div[style*="display: grid"] > div > a > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-body audio, .article-body video { width: 100%; }
.article-body img:not(div[style*="display: grid"] img) { background: #fff; padding: .5rem; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 24px -12px rgba(0,0,0,.38); }
.pagenavigation, .pager, .pagination-wrap { margin-top: 1.4rem; }

/* ---------------------------------------------------------------- Seitennummerierung (Joomla) */
.pager { display: flex; justify-content: center; }
.pagination, .pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pagination .page-link, .pagination span.page-link, .pager a, .pager span { display: block; min-width: 44px; padding: .55rem .8rem .45rem; text-align: center; border-radius: 6px; text-decoration: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: 1.35rem/1 var(--f-hand); }
.pagination .active .page-link, .pagination [aria-current] { background: var(--night); color: #fff; border-color: var(--night); }
.pagination .disabled .page-link { opacity: .45; }
.pagination [class^="icon-"], .pagination [class*=" icon-"] { font-size: .9rem; }
.counter { text-align: center; font-size: 1.15rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- Randspalte: Suche, Themen, Notizen */
.mod-finder, .search, form.form-search { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 0; }
.mod-finder > label, .mod-finder > a, .mod-finder > p, .mod-finder .mod-finder__advanced { flex-basis: 100%; }
.mod-finder > a, .mod-finder__advanced a { font-size: 1.15rem; }
.mod-finder__search, .mod-finder .input-group { display: flex; flex: 1 1 100%; min-width: 0; }
.awesomplete { flex: 1; min-width: 0; }
.mod-finder input[type="text"], .mod-finder input[type="search"] { flex: 1; min-width: 0; }
.aside input[type="text"], .aside input[type="search"], .search-panel input[type="text"], .search-panel input[type="search"],
.card input[type="text"], .card input[type="password"], .card input[type="email"], .card input[type="search"],
form input[type="text"], form input[type="email"], form input[type="password"], form input[type="search"], form input[type="url"], form input[type="tel"], form input[type="number"], form textarea, form select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: .45rem .8rem; font: 1.3rem/1.3 var(--f-hand); color: var(--ink); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--teal); }
button, .btn, input[type="submit"], input[type="button"], .button { cursor: pointer; border: 1.5px solid var(--night); background: var(--night); color: #fff; border-radius: 999px; padding: .45rem 1.1rem; font: 1.3rem/1.2 var(--f-hand); text-decoration: none; display: inline-block; }
button:hover, .btn:hover, input[type="submit"]:hover { background: var(--teal); border-color: var(--teal); color: var(--night); }
.btn-secondary, .btn-light, .btn-outline-secondary { background: transparent; color: var(--night); }
.mod-finder .btn, .mod-finder button { border-radius: 0 8px 8px 0; margin-left: -2px; }
.mod-finder input { border-radius: 8px 0 0 8px !important; }
.mod-finder label { display: block; font-size: 1.2rem; }
.mod-login .form-group, .mod-login__userdata > div, .control-group { margin-bottom: .5rem; }
.mod-login ul { list-style: none; padding: 0; font-size: 1.15rem; }
.input-group { display: flex; }
.input-group > .btn, .input-group > button { border-radius: 0 8px 8px 0; margin-left: -2px; padding: .3rem .7rem; }
label { display: block; font-size: 1.2rem; line-height: 1.3; margin-bottom: .2rem; }
.form-check { display: flex; align-items: center; gap: .4rem; }
.form-check label { margin: 0; }
.cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.all-tags { display: inline-block; margin-top: .9rem; font: 1.25rem/1 var(--f-hand); }
.notes-list { display: grid; gap: var(--gap); margin-top: .6rem; }
.note { position: relative; margin: 0; padding: .9rem 1.1rem 1rem; background: #fff7c9; border: 0; box-shadow: 0 12px 20px -14px rgba(0,0,0,.55); rotate: -1.5deg; }
.note.n2 { background: #e3f3f3; rotate: 1.2deg; }
.note.n3 { background: #f0e6f5; rotate: -.6deg; }
.note .note-text { display: block; color: var(--ink); text-decoration: none; font: 1.35rem/1.25 var(--f-hand); margin-bottom: .4rem; }
.note .note-text::before { content: "„"; } .note .note-text::after { content: "“"; }
.note .note-text:hover { color: var(--teal-ink); }
.note footer { font: 1.05rem/1.2 var(--f-hand); color: var(--ink-soft); }

/* ---------------------------------------------------------------- Meldungen */
joomla-alert, .alert { display: block; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: 4px; padding: .8rem 1rem; margin-bottom: var(--gap); font-size: 1.3rem; box-shadow: 0 12px 24px -18px rgba(0,0,0,.4); }
joomla-alert[type="danger"], .alert-danger, .alert-error { border-left-color: #c0392b; }
joomla-alert[type="warning"], .alert-warning { border-left-color: #d7a63a; }
joomla-alert .alert-heading { font-family: var(--f-head); }

/* ---------------------------------------------------------------- Fuß */
.site-foot { background: var(--night); color: #cfcbd8; padding: 3rem 0 2rem; border-top: 3px solid var(--teal); position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.site-foot h2 { font-size: 2rem; color: #fff; margin: 0 0 1rem; }
.site-foot p { margin: 0 0 .8rem; font-size: 1.3rem; line-height: 1.4; max-width: 30em; }
.site-foot a { color: #cfcbd8; }
.site-foot a:hover { color: var(--teal); }
.site-foot ul { list-style: none; padding: 0; margin: 0; font-size: 1.3rem; line-height: 1.5; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); color: #f1efe8; }
.socials a:hover { background: var(--teal); color: var(--night); }
.socials svg { width: 20px; height: 20px; }
.projects { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.projects p { margin: 0; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.projects img { max-height: 40px; width: auto; opacity: .9; }
.copy { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font: .85rem/1.4 var(--f-ui); }

/* ---------------------------------------------------------------- Kleinteile aus Joomla und Plugins */
/* Aufklapp-Knopf im Seitenmenü (mod_menu) */
.mod-menu__toggle-sub { background: none !important; border: 0 !important; color: var(--ink-soft) !important; padding: 0 .4rem !important; border-radius: 4px; font-size: 1rem; line-height: 1; vertical-align: middle; }
.mod-menu__toggle-sub [class^="icon-"] { display: none; }
.mod-menu__toggle-sub::before { content: "▾"; }
.mod-menu__toggle-sub[aria-expanded="true"]::before { content: "▴"; }
.mod-menu__toggle-sub:hover { color: var(--violet) !important; }
/* Anmeldung: Passkey-Knopf und Passwort-Auge */
.plg_system_webauthn_login_button { display: inline-flex !important; align-items: center; gap: .4rem; background: transparent !important; color: var(--night) !important; border: 1.5px solid var(--night) !important; border-radius: 999px; padding: .3rem .9rem !important; font: 1.2rem/1.2 var(--f-hand) !important; width: auto !important; }
.plg_system_webauthn_login_button svg, .plg_system_webauthn_login_button img { width: 1.3rem !important; height: 1.3rem !important; max-width: 1.3rem; }
.plg_system_webauthn_login_button:hover { background: var(--teal) !important; border-color: var(--teal) !important; }
.input-password-toggle { background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--line) !important; border-radius: 0 8px 8px 0 !important; padding: 0 .7rem !important; margin-left: -2px; }
.input-password-toggle:hover { background: var(--teal) !important; }
/* Bewertung im Beitrag (Plugin „Inhalt – Bewertung“) */
.content_rating { margin: 0 0 .4rem; font-size: 1rem; }
.content_vote { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.content_vote select { width: auto !important; min-width: 0; padding: .2rem .6rem !important; font-size: 1.15rem !important; }
.content_vote .btn, .content_vote input[type="submit"] { padding: .2rem .9rem; font-size: 1.15rem; }
.content_vote label { margin: 0; }
/* Cookie-Hinweis (Plugin „System – Yanco Cookie“) als kleine Karte im Stil der Seite */
html body #yc-cc { left: 1rem !important; right: auto !important; bottom: 1rem !important; top: auto !important; width: min(380px, calc(100vw - 2rem)) !important; max-width: none !important; background: none !important; padding: 0 !important; }
html body #yc-cc .yc-cc__panel { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: 0 22px 40px -18px rgba(0,0,0,.55) !important; padding: 1rem 1.1rem !important; display: block !important; max-width: none !important; rotate: -.8deg; }
html body #yc-cc .yc-cc__text { font: 1.25rem/1.35 var(--f-hand) !important; color: var(--ink) !important; margin: 0 0 .7rem !important; }
html body #yc-cc .yc-cc__link { color: var(--teal-ink) !important; }
html body #yc-cc .yc-cc__actions { display: flex !important; gap: .5rem !important; }
html body #yc-cc .yc-cc__btn { flex: 1 !important; border-radius: 999px !important; padding: .45rem .8rem !important; font: 1.25rem/1.1 var(--f-hand) !important; border: 1.5px solid var(--night) !important; background: transparent !important; color: var(--night) !important; box-shadow: none !important; }
html body #yc-cc .yc-cc__btn--primary { background: var(--night) !important; color: #fff !important; }
html body #yc-cc .yc-cc__btn:hover { background: var(--teal) !important; border-color: var(--teal) !important; color: var(--night) !important; }

/* ---------------------------------------------------------------- Fehler-, Wartungs- und Popup-Seiten */
.error-desk { min-height: 100vh; display: grid; place-items: center; padding: 3rem 0; }
.error-entry { max-width: 640px; margin: 0 auto; }
.error-entry .readmore { margin-left: 0; }
.error-debug { font: .8rem/1.4 var(--f-ui); overflow: auto; }
.offline-login { display: grid; gap: .3rem; max-width: 320px; margin-top: 1rem; }
.component-page { background: var(--card); padding: 1rem; }

/* ---------------------------------------------------------------- Bildschirmgrößen */
@media (max-width: 1300px) {
  .menu-main > li > a i, .menu-main > li > .nav-heading i { display: none; }
  .menu-main > li > a, .menu-main > li > .nav-heading { padding: .55rem .6rem; }
}
@media (max-width: 1180px) {
  .has-aside .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 var(--gap); align-items: start; }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: calc(var(--head-h) + 3px) 0 auto 0; background: var(--night); margin: 0; max-height: 0; overflow: hidden auto; transition: max-height .3s ease; border-bottom: 3px solid var(--teal); }
  .menu-toggle:checked ~ .nav { max-height: calc(100vh - var(--head-h)); }
  .menu-main { flex-direction: column; padding: .5rem 1.25rem 1.2rem; gap: 0; }
  .menu-main > li > a, .menu-main > li > .nav-heading { text-align: left; display: flex; align-items: baseline; gap: .8rem; padding: .8rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .menu-main > li > a i, .menu-main > li > .nav-heading i { display: block; }
  .menu-main .sub { position: static; translate: none; opacity: 1; visibility: visible; box-shadow: none; background: none; rotate: 0deg; padding: .2rem 0 .6rem 1rem; min-width: 0; }
  .menu-main .sub a, .menu-main .sub .nav-heading { color: #e6e3ea; }
  .menu-main .sub a i { color: #9fcfd0; }
  .tools { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --head-h: 64px; }
  body { font-size: 1.3rem; }
  .head-row { gap: .6rem; }
  .brand-name { font-size: 1.6rem; }
  .brand-name small, .lang { display: none; }
  .brand-logo, .brand-logo img { width: 40px; height: 40px; }
  .hello-grid { grid-template-columns: 1fr; }
  .hello-photo { max-width: 250px; margin: 0 auto; }
  .section-head .push { margin-left: 0; width: 100%; justify-content: space-between; }
  .cal { width: 74px; left: -8px; }
  .cal .d { font-size: 2.2rem; }
  .head-pad { padding-left: 70px; }
  .entry-full .head-pad { padding-left: 78px; }
  .entry-full .cal { width: 80px; left: -8px; }
  .readmore { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-head, .hello, .clutter, .paint, .aside, .site-foot, .gear, .ymp-root { display: none !important; }
  body, .desk { background: #fff; }
  .page { box-shadow: none; rotate: 0deg !important; }
}
