/*
Theme Name: Twenty-Twenty-Seven
Theme URI: https://gigold.me/
Author: Thomas Gigold
Author URI: https://gigold.me/
Description: My Personal Theme
Version: 1.0
Text Domain: twenty-twenty-five
Tags: 
*/
@import "assets/css/bootstrap.min.css";
@import "assets/css/fonts.css";

/* ==========================================================================
   Feingedruckt — Theme
   Schmales, textzentriertes Blog-Design auf Bootstrap-Basis
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #1b1812;
  --color-muted: #726c60;
  --color-hairline: rgba(27, 24, 18, 0.1);
  --color-yellow: #f6c445;
  --color-yellow-deep: #d9a520;
  --color-yellow-footer: var(--color-yellow);
  --color-surface: #fdfcfa;

  /* Bleibt in beiden Farbmodi konstant dunkel — für Text/Icons, die
     direkt auf einer gelben Fläche sitzen (Footer, Notiz-Avatar, Buttons)
     und deshalb nicht mit dem Seitentext mitkippen dürfen. */
  --color-ink: #1b1812;

  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;

  --footer-height: 620px;
  --header-height: 4.75rem;
}

@media (max-width: 767.98px) {
  :root {
    --footer-height: 760px;
    --header-height: 6.75rem;
  }
}

/* --- Dark Mode: folgt der Browser-/System-Einstellung ------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1b18;
    --color-text: #f2efe9;
    --color-muted: #a39c8d;
    --color-hairline: rgba(255, 255, 255, 0.12);
    --color-surface: #242320;
    /* Das Footer-Gelb wird bewusst verwaschener/gedeckter, damit es im
       Dunkeln nicht grell wirkt — der normale Akzent-Gelbton (Links,
       Unterstreichungen) bleibt unverändert kräftig. */
    --color-yellow-footer: #a3843f;
  }

  img,
  .i-avatar {
    filter: brightness(0.82) contrast(1.05);
  }
}

html {
  background: var(--color-yellow-footer);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-text);
}

::selection {
  background: var(--color-yellow);
  color: var(--color-ink);
}

/* --- Layout shell & parallax reveal ---------------------------------- */

.site-shell {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  min-height: 100vh;
  padding-top: var(--header-height);
}

.footer-spacer {
  height: var(--footer-height);
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: var(--footer-height);
  background: var(--color-yellow-footer);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.footer-inner {
  width: 100%;
  padding: 3.5rem 0 2.5rem;
  color: var(--color-ink);
  will-change: transform, opacity;
}

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-hairline);
  transform: translateY(0);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 32px -22px rgba(27, 24, 18, 0.28);
}

.header-inner {
  min-height: var(--header-height);
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-primary a,
.nav-secondary a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-primary a:hover,
.nav-secondary a:hover,
.nav-primary a:focus-visible,
.nav-secondary a:focus-visible {
  color: var(--color-text);
  border-color: var(--color-yellow);
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
  }
}

main .container, main .container-md{
  max-width: 700px;
}


.post-excerpt a,
.post-body a {
  text-decoration: none;
  background-image: linear-gradient(var(--color-text), var(--color-text));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 0.1em;
}

.post-excerpt a:hover,
.post-body a:hover {
  background-image: linear-gradient(var(--color-yellow), var(--color-yellow));
}

/* --- Post teasers (index) --------------------------------------------- */

/* Trennlinie zwischen Feed-Elementen als eigenes <hr>-Element statt als
   Border auf dem Beitrag selbst — so bleibt die Linie unabhängig davon,
   ob ein Beitrag (z. B. eine Notiz-Karte) einen eigenen Rahmen mitbringt. */
.post-divider {
  border: none;
  border-top: 1px solid var(--color-hairline);
  margin: 2.5rem 0;
}

.post-meta {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

/* Zeitstempel als Permalink — Konvention wie bei X/Threads/Mastodon:
   unauffällig bis zum Hover, statt wie ein normaler Textlink zu wirken. */
.post-meta a,
.post-note-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.post-meta a:hover,
.post-note-meta a:hover {
  color: var(--color-text);
  border-color: var(--color-yellow);
}

.post-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--color-yellow), var(--color-yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.25s ease;
}

.post-title a:hover {
  background-size: 100% 3px;
}

.post-excerpt {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0.9rem;
}

.post-excerpt p {
  margin: 0;
}

.post-excerpt p + p {
  margin-top: 1em;
}

.post-excerpt blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-yellow);
  font-style: italic;
  color: var(--color-muted);
}

.read-more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 1px;
}

.read-more:hover {
  border-color: var(--color-yellow-deep);
}

/* --- Notiz (kurze Status-Posts ohne Titel) ------------------------------ */

.post-note {
  display: flex;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  background: var(--color-surface);
}

.post-note-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.post-note-body {
  min-width: 0;
}

.post-note-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.post-note-meta .post-note-author {
  color: var(--color-text);
  font-weight: 600;
}

.post-note-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-muted);
}

.post-note-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.post-note-text p {
  margin: 0;
}

.post-note-text p + p {
  margin-top: 1em;
}

.post-note-text a {
  color: var(--color-yellow-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--color-yellow);
}

/* --- Single article page ------------------------------------------------ */

.post-full-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-hairline);
}

.post-full-meta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.post-full-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.post-full-lead {
  margin-top: 1.1rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-muted);
  font-style: italic;
}

.post-body {
  padding: 2.5rem 0 1rem;
  font-size: 1.15rem;
  line-height: 1.85;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2.75rem 0 1rem;
}

.post-body blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-yellow);
  font-style: italic;
  color: var(--color-muted);
}

.post-comments {
  padding: 2.5rem 0 4rem 0;
}

.back-link {
  display: inline-block;
  margin: 0.5rem 0 3rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-muted);
}

.back-link:hover {
  color: var(--color-text);
}

/* --- Footer content ------------------------------------------------------ */

.footer-inner h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--color-ink);
}

.footer-about p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch;
}

.footer-inner address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid rgba(27, 24, 18, 0.35);
}

.footer-links a:hover {
  border-color: var(--color-ink);
}

.footer-bottom {
  border-top: 1px solid rgba(27, 24, 18, 0.18);
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--color-ink);
}

.footer-giant-text {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--color-ink);
  opacity: 0.08;
  line-height: 1;
  letter-spacing: -2px;
}