/*
Theme Name:  Cross und Queer
Theme URI:   https://www.crossundqueer.de/
Author:      Cross und Queer Chemnitz
Description: Ein modernes, freundliches Theme für Cross und Queer Chemnitz
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: crossundqueer
Tags:        custom-header, custom-menu, custom-logo, flexible-header, full-width-template, two-columns, left-sidebar, right-sidebar, accessibility-ready, blog, threaded-comments, translation-ready
*/

/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
  --color-primary:     #d4547a;
  --color-primary-lt:  #e8799a;
  --color-primary-dk:  #b8345e;
  --color-accent:      #f0a0b8;
  --color-accent2:     #a855a0;
  --color-bg:          #fdf6f9;
  --color-bg2:         #fff0f5;
  --color-surface:     #ffffff;
  --color-border:      #f0d0dc;
  --color-text:        #3a2030;
  --color-text-muted:  #7a5060;
  --color-text-light:  #b08090;
  --color-rainbow-1:   #e84040;
  --color-rainbow-2:   #f09020;
  --color-rainbow-3:   #e8d020;
  --color-rainbow-4:   #40b840;
  --color-rainbow-5:   #4080e8;
  --color-rainbow-6:   #8040c8;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(212,84,122,.10);
  --shadow-md:   0 4px 20px rgba(212,84,122,.15);
  --shadow-lg:   0 8px 40px rgba(212,84,122,.18);

  --font-body:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:   Georgia, 'Times New Roman', serif;

  --max-width:   1100px;
  --header-h:    70px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dk); }

/* =========================================
   RAINBOW STRIPE
   ========================================= */
.rainbow-stripe {
  height: 5px;
  background: linear-gradient(to right,
    var(--color-rainbow-1) 0%   16.6%,
    var(--color-rainbow-2) 16.6% 33.3%,
    var(--color-rainbow-3) 33.3% 50%,
    var(--color-rainbow-4) 50%   66.6%,
    var(--color-rainbow-5) 66.6% 83.3%,
    var(--color-rainbow-6) 83.3% 100%
  );
  width: 100%;
}

/* =========================================
   SITE HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(212,84,122,.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

/* Logo / Site Title */
.site-branding { flex-shrink: 0; }

.site-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--color-primary-dk); }

.site-description {
  font-size: .78rem;
  color: var(--color-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Custom Logo */
.site-logo img {
  height: 48px;
  width: auto;
}

/* =========================================
   NAVIGATION
   ========================================= */
.main-navigation { margin-left: auto; }

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-navigation li { position: relative; }

.main-navigation a {
  display: block;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--color-bg2);
  color: var(--color-primary);
}

/* Dropdown */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: .4rem;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}
.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul a {
  border-radius: var(--radius-sm);
  font-size: .88rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Search in header */
.header-search { margin-left: 1rem; }
.header-search form { display: flex; gap: .4rem; }
.header-search input {
  padding: .35rem .7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: .85rem;
  outline: none;
  background: var(--color-bg);
  color: var(--color-text);
  width: 160px;
  transition: border-color .2s, width .3s;
}
.header-search input:focus {
  border-color: var(--color-primary);
  width: 200px;
}
.header-search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: .35rem .8rem;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.header-search button:hover { background: var(--color-primary-dk); }

/* =========================================
   HERO / CUSTOM HEADER AREA
   ========================================= */
.site-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde8f0 0%, #fdf0f8 50%, #efe8fd 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When a header image is set via WordPress Customizer */
.site-hero.has-header-image {
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

.site-hero.has-header-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(253,232,240,.3) 0%,
    rgba(253,232,240,.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary-dk);
  line-height: 1.15;
  margin-bottom: .5rem;
  text-shadow: 0 2px 16px rgba(212,84,122,.18);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  letter-spacing: .04em;
}

/* Decorative blobs behind hero (no header image) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.hero-blob-1 {
  width: 320px; height: 320px;
  background: #f9c6da;
  top: -80px; left: -80px;
}
.hero-blob-2 {
  width: 240px; height: 240px;
  background: #d4b0f0;
  bottom: -60px; right: -40px;
}
.hero-blob-3 {
  width: 180px; height: 180px;
  background: #a0d0f8;
  top: 40px; right: 20%;
}

/* =========================================
   LAYOUT / CONTENT
   ========================================= */
.site-main-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.site-main-wrap.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* =========================================
   POSTS / ARTICLES
   ========================================= */
.post,
.page {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.entry-header { margin-bottom: 1.5rem; }

.entry-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: .4rem;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--color-primary); }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  font-size: .8rem;
  color: var(--color-text-light);
}
.entry-meta a { color: var(--color-text-muted); }
.entry-meta a:hover { color: var(--color-primary); }

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-head);
  color: var(--color-text);
  margin: 1.6rem 0 .6rem;
  line-height: 1.3;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-bottom: 1.1rem; }
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.entry-content li { margin-bottom: .35rem; }
.entry-content strong { color: var(--color-primary-dk); font-weight: 700; }
.entry-content em { color: var(--color-text-muted); }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-bg2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2rem 0;
}

/* Post Thumbnail */
.post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-thumbnail img { width: 100%; object-fit: cover; }

/* Entry footer */
.entry-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: .82rem;
  color: var(--color-text-light);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
}
.entry-footer a { color: var(--color-text-muted); }
.entry-footer a:hover { color: var(--color-primary); }

/* Read More */
.more-link,
.btn,
button[type="submit"] {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-xl);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(212,84,122,.25);
}
.more-link:hover,
.btn:hover,
button[type="submit"]:hover {
  background: var(--color-primary-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   SIDEBAR
   ========================================= */
.widget-area { min-width: 0; }

.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.widget-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--color-border);
}

.widget ul { list-style: none; }
.widget ul li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--color-text-muted); }
.widget a:hover { color: var(--color-primary); }

/* Search Widget */
.widget_search .search-form {
  display: flex;
  gap: .5rem;
}
.widget_search input {
  flex: 1;
  padding: .45rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: .88rem;
  background: var(--color-bg);
  outline: none;
  color: var(--color-text);
}
.widget_search input:focus { border-color: var(--color-primary); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}
.pagination .page-numbers {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================
   COMMENTS
   ========================================= */
.comments-area {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.5rem;
  border: 1px solid var(--color-border);
  margin-top: 2rem;
}
.comments-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.comment-list { list-style: none; }
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.comment:last-child { border-bottom: none; }
.comment-author .fn { font-weight: 700; color: var(--color-text); }
.comment-meta { font-size: .8rem; color: var(--color-text-light); margin-bottom: .5rem; }
.comment-body p { font-size: .95rem; margin-bottom: .5rem; }
.reply a {
  font-size: .8rem;
  color: var(--color-primary);
}

/* Comment Form */
.comment-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--color-text-muted);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: .55rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-widget ul { list-style: none; }
.footer-widget li { padding: .25rem 0; font-size: .88rem; }
.footer-widget a { color: rgba(255,255,255,.65); }
.footer-widget a:hover { color: var(--color-accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}
.footer-nav a {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}
.footer-nav a:hover { color: var(--color-accent); }

/* =========================================
   FORMS (general)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  font-family: var(--font-body);
}

/* =========================================
   UTILITY
   ========================================= */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--color-text-light); text-align: center; margin-top: .3rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 860px) {
  .site-main-wrap {
    grid-template-columns: 1fr;
  }
  .widget-area {
    order: 2;
  }
}

@media (max-width: 680px) {
  .menu-toggle { display: flex; }

  .main-navigation {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    z-index: 99;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-navigation ul ul {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1rem;
  }
  .main-navigation li.is-open > ul { display: flex; }
  .main-navigation a { padding: .6rem .8rem; width: 100%; }

  .header-search { display: none; }

  .post, .page { padding: 1.5rem; }
  .entry-title { font-size: 1.4rem; }
  .comments-area { padding: 1.5rem; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.8rem; }
  .post, .page { padding: 1.2rem; }
}
