/*
  Recreates the visual design of the WordPress theme "Oncue" (by B.M. Rafiul
  Alam, based on Underscores), as it was actually configured and customized
  on marcouscous.at -- not just the theme's out-of-the-box defaults:

    - accent color #ff5657, headings in Oswald, body in Source Sans Pro
      (theme-style.css)
    - header background #ffffff, footer background #333333
      (Customizer defaults, unmodified)
    - no visible nav menu, no single-post hero thumbnail, no byline
      (the site's own Additional CSS, custom_css post "oncue")
    - body copy in #696969, h2 in #444 at 24px, italic figure captions
      (same Additional CSS)
*/

:root {
  --accent: #ff5657;
  --ink: #030303;
  --heading: #333333;
  --text: #696969;
  --text-muted: #666666;
  --strong: #444444;
  --border: #ededed;
  --header-bg: #ffffff;
  --footer-bg: #333333;
  --max-width: 1100px;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Source Sans Pro", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 0.6em;
  font-weight: 500;
}

p { margin: 0 0 1em; }
strong, b { color: var(--strong); font-weight: bold; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);
  padding: 22px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .site-icon { width: 34px; height: 34px; flex: none; }
.site-title {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
}
.site-title a { color: var(--ink); }
.site-description {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 0;
}

/* Main layout */
.site-main {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
.layout.layout-full { grid-template-columns: 1fr; }

/* 404 page */
.error-404 { text-align: center; padding: 2rem 0 1rem; }
.error-404 .entry-title { font-size: 34px; }
.error-404 > p { font-size: 17px; max-width: 480px; margin: 0 auto; }
.error-404-photo {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 4px;
  margin: 2.2rem auto 0;
}
.error-404 .widget {
  text-align: left;
  max-width: 340px;
  margin: 2.5rem auto 0;
}

/* Post meta */
.blog_post_meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog_post_meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog_post_meta a { color: var(--strong); border-bottom: 1px dotted #ccc; }
.blog_post_meta svg { width: 13px; height: 13px; fill: var(--text-muted); }

/* Post card (archive/list) */
.thumbnail { margin-bottom: 3.2rem; }
.entry-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.thumbnail .post-thumbnail { display: block; margin-bottom: 1em; }
.thumbnail .post-thumbnail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
}
.entry-title {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin-bottom: 0.5em;
}
.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--accent); }
.single .entry-title { font-size: 32px; }
.page-thumbnail { width: 100%; height: auto; border-radius: 4px; margin-bottom: 1.5em; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.5em;
  padding: 4px 13px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: all 0.2s ease;
}
.read-more svg { width: 9px; height: 9px; flex: none; }
.read-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Single post content */
.entry-content h2 { color: var(--strong); font-size: 24px; margin-top: 1.4em; }
.entry-content h3 { font-size: 19px; margin-top: 1.2em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--strong);
  font-style: italic;
}
.entry-content figcaption { font-style: italic; color: var(--text-muted); font-size: 13px; margin-top: 0.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content iframe { max-width: 100%; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.post-nav a { color: var(--strong); }
.post-nav a:hover { color: var(--accent); }
.post-nav .dir { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.06em; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Gallery shortcode */
.wp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 1.6em 0;
}
.wp-gallery-item { display: block; overflow: hidden; border-radius: 4px; }
.wp-gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.wp-gallery-item:hover img { transform: scale(1.05); }
.wp-gallery-item { cursor: zoom-in; }

/* Gallery lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 3, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 40px;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 3px;
  display: block;
  margin: 0 auto;
}
.lightbox-overlay figcaption {
  color: #ddd;
  font-size: 13px;
  margin-top: 12px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; }
}

/* Sidebar */
.widget { margin-bottom: 2.4rem; }
.widget-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 8px; }
.widget ul li a { color: #333; }
.widget ul li a:hover { color: var(--accent); }
.widget .recent-post { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.widget .recent-post img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; flex: none; }
.widget .recent-post .title { font-size: 13.5px; color: #333; line-height: 1.35; }
.widget .recent-post:hover .title { color: var(--accent); }

/* Pulsing dot in front of the "Aktuell" sidebar link */
.now-link {
  display: inline-flex;
  align-items: center;
}
.pulse-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 13.5px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

/* Pagination (markup from Hugo's _internal/pagination.html) */
.pagination {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 3rem 0 1rem;
  padding: 0;
}
.pagination .page-item { display: block; }
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--strong);
  font-family: var(--font-heading);
  font-size: 13px;
  transition: all 0.2s ease;
}
.pagination .page-item:not(.disabled) .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: var(--border);
  cursor: default;
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:nth-last-child(2) .page-link {
  border-radius: 17px;
  min-width: 40px;
}

/* Category / tag pill, used on card meta */
.cat-pill {
  background: var(--accent);
  color: #fff !important;
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 12px;
}
