/* ======================================
   screwedfilm.com — Hauptstylesheet
   ====================================== */

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

:root {
  --red: #c8102e;
  --red-dark: #a00e26;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --dark-mid: #2c2c2c;
  --gray: #888;
  --gray-light: #ccc;
  --border: #e4e4e4;
  --bg: #f5f5f3;
  --white: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --transition: 0.22s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ======================================
   HEADER
   ====================================== */

.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--red);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-main {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.logo-text .logo-sub {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 600;
}

/* Main nav */
.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ccc;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.main-nav a.cat-active {
  color: var(--red);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 2px solid var(--red);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* ======================================
   BREAKING TICKER
   ====================================== */

.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 36px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  animation: ticker 35s linear infinite;
  gap: 0;
}

.ticker-track span {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  padding: 0 40px;
  letter-spacing: 0.01em;
}

.ticker-track span::before {
  content: '•';
  margin-right: 40px;
  opacity: 0.6;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================================
   LAYOUT CONTAINER
   ====================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================================
   AD BLOCK
   ====================================== */

.ad-block {
  background: #ebebeb;
  border: 1px dashed #ccc;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.ad-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 600;
  padding: 5px 8px 4px;
  border-bottom: 1px dashed #ccc;
  background: #f0f0f0;
}

.ad-block .ad-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-leaderboard {
  width: 100%;
  margin: 20px 0;
}

.ad-leaderboard .ad-inner {
  min-height: 90px;
}

.ad-rectangle .ad-inner {
  min-height: 250px;
}

.ad-block-section {
  padding: 24px 0;
  text-align: center;
}

/* ======================================
   HERO SECTION
   ====================================== */

.hero-section {
  padding: 36px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.hero-main-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  display: block;
}

.hero-main-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* placeholder images via gradient */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-category-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 12px;
}

/* Side articles in hero */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: 6px;
  padding: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: box-shadow var(--transition);
}

.hero-side-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero-side-thumb {
  width: 88px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-side-thumb .img-placeholder,
.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-side-info {
  flex: 1;
  min-width: 0;
}

.hero-side-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.hero-side-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-title:hover {
  color: var(--red);
}

.hero-side-date {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-side {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   SECTION HEADINGS
   ====================================== */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dark);
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* ======================================
   ARTICLE CARDS
   ====================================== */

.articles-section {
  padding: 40px 0;
}

.category-block {
  margin-bottom: 48px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--border);
}

.card-thumb .img-placeholder,
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .card-thumb .img-placeholder,
.article-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
}

.article-card:hover .card-title {
  color: var(--red);
}

.card-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: 11px;
  margin-top: auto;
}

.card-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   CONTENT + SIDEBAR LAYOUT
   ====================================== */

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.widget-title {
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.widget-body {
  padding: 16px;
}

.sidebar-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-list-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 28px;
}

.sidebar-list-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
}

.sidebar-list-title:hover {
  color: var(--red);
}

@media (max-width: 1024px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   ARTICLE PAGE
   ====================================== */

.article-page {
  padding: 40px 0 60px;
}

.article-page .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-header {
  margin-bottom: 28px;
}

.article-breadcrumb {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-breadcrumb a:hover {
  color: var(--red);
}

.article-breadcrumb .sep {
  color: var(--gray-light);
}

.article-cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.article-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 14px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta-bar .author {
  font-weight: 600;
  color: var(--dark);
}

.article-featured-img {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/9;
  background: var(--border);
}

.article-featured-img .img-placeholder {
  width: 100%;
  height: 100%;
}

.article-body {
  font-size: 17px;
  line-height: 1.78;
  color: #222;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--dark);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--dark);
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  margin: 28px 0;
  background: #fafafa;
  font-style: italic;
  font-size: 18px;
  color: #444;
  border-radius: 0 4px 4px 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px 24px;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 8px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}

.article-tag:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

@media (max-width: 1024px) {
  .article-page .container {
    grid-template-columns: 1fr;
  }
}

/* Related articles */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--dark);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   LEGAL PAGES
   ====================================== */

.legal-page {
  padding: 48px 0 80px;
}

.legal-page .container {
  max-width: 860px;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--dark);
}

.legal-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-subtitle {
  font-size: 14px;
  color: var(--gray);
}

.legal-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: #333;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--dark);
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}

.legal-body ol {
  margin: 8px 0 16px 24px;
  list-style: decimal;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.legal-body table th,
.legal-body table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal-body table th {
  background: var(--bg);
  font-weight: 700;
}

.legal-body a {
  color: var(--red);
  text-decoration: underline;
}

/* ======================================
   CONTACT PAGE
   ====================================== */

.contact-page {
  padding: 48px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
}

.contact-info-item h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 15px;
  color: var(--dark);
}

.contact-info-item a:hover {
  color: var(--red);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.contact-form h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--dark);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   FOOTER
   ====================================== */

.site-footer {
  background: var(--black);
  color: #999;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text .logo-main {
  font-size: 20px;
}

.footer-tagline {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  font-size: 13.5px;
  color: #777;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--red);
}

.footer-col .contact-entry {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 6px;
}

.footer-col .contact-entry a {
  color: #888;
}

.footer-col .contact-entry a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: #555;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: #555;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--red);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* ======================================
   COOKIE BANNER
   ====================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  z-index: 9999;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
}

.cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--white);
}

.cookie-text p {
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--red);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.cookie-btn-all {
  background: var(--red);
  color: var(--white);
}

.cookie-btn-all:hover {
  background: var(--red-dark);
}

.cookie-btn-necessary {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
}

.cookie-btn-necessary:hover {
  border-color: #999;
  color: var(--white);
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
}

.cookie-btn-settings:hover {
  border-color: #999;
  color: var(--white);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 600px) {
  .cookie-modal-overlay {
    align-items: center;
  }
}

.cookie-modal {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  border-radius: 8px 8px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  transform: translateY(40px);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.open .cookie-modal {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .cookie-modal {
    border-radius: 8px;
  }
}

.cookie-modal h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.cookie-modal > p {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.55;
}

.cookie-toggle-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.cookie-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg);
  cursor: pointer;
}

.cookie-toggle-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.cookie-toggle-header p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--red);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.cookie-modal-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 13px;
  padding: 10px 16px;
}

/* ======================================
   PAGE HERO (for legal/contact pages)
   ====================================== */

.page-hero {
  background: var(--dark);
  padding: 40px 0;
  margin-bottom: 0;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  color: #aaa;
}

/* ======================================
   MISC UTILITIES
   ====================================== */

.text-red { color: var(--red); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-red {
  background: var(--red);
  color: var(--white);
}

/* Category color accents */
.cat-technologie { color: #2563eb; }
.cat-gesundheit  { color: #16a34a; }
.cat-reisen      { color: #d97706; }

.badge-technologie { background: #dbeafe; color: #1d4ed8; }
.badge-gesundheit  { background: #dcfce7; color: #15803d; }
.badge-reisen      { background: #fef3c7; color: #b45309; }

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
  font-size: 18px;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--red-dark);
}

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: white;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
