* {
    margin: 0;
    padding: 0;
}

/* use border-box so padding doesn't add to element width (prevents horizontal overflow) */
html {
  box-sizing: border-box;
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background-color:#fefefe !important;
}
*, *::before, *::after {
  box-sizing: inherit;
}

:root {
  --color-black: #192A2B;
  --color-green: #22655B;
  --color-white: #fff;
  --color-beige: #FDF4E4;
  --color-blue: #ced8df;
  --color-lightblue: #EBF1F2;
  --color-signal: #FA4D4D;
  --color-h-blue: #a1ace2;
  --color-h-purple: #443777;
  --color-text: var(--color-black);
  --color-text-green: var(--color-green);
  --color-background: var;
  
  /* English Fonts */
  --font-family-sans-en: "Hanken Grotesk", sans-serif;
  --font-family-serif-en: "Parastoo", serif;
  
  /* Arabic Fonts */
  --font-family-sans-ar: "calibri", sans-serif;
  --font-family-serif-ar: "Parastoo", serif;
  
  /* Default fonts (English) */
  --font-family-sans: var(--font-family-sans-en);
  --font-family-serif: var(--font-family-serif-en);
  /* header down-wrapper height (adjust to match tag line height) */
  --down-height: 56px;
}

/* Language-specific font overrides */
.lang-ar {
  --font-family-sans: var(--font-family-sans-ar);
  --font-family-serif: var(--font-family-serif-ar);
}

.lang-ar body,
.lang-ar h1, .lang-ar h3, .lang-ar h5, .lang-ar p {
  font-family: var(--font-family-serif-ar) !important;
}

.lang-ar p {
  font-size: 24px;
  line-height: 30px;
}

.lang-ar h2, .lang-ar h4, .lang-ar h6, 
.lang-ar a, .lang-ar label, .lang-ar button {
  font-family: var(--font-family-sans-ar) !important;
}

/* RTL direction for Arabic */
.rtl {
  direction: rtl;
}

/* Prevent specific elements from mirroring in RTL */
.no-rtl-flip {
  direction: ltr !important;
}

/* Complete RTL override for header */
.rtl .no-rtl-flip,
.rtl .no-rtl-flip * {
  direction: ltr !important;
  text-align: left !important;
}

/* Override flexbox direction in RTL */
.rtl .no-rtl-flip .up {
  flex-direction: row !important;
  justify-content: space-between !important;
}

.rtl .no-rtl-flip .menu {
  flex-direction: row !important;
}

/* Allow text content within no-rtl-flip to respect document direction where needed */
.rtl .no-rtl-flip .menu a,
.rtl .no-rtl-flip .tag,
.rtl .no-rtl-flip button {
  direction: rtl !important;
  text-align: right !important;
}

/* Ensure logo and navigation maintain LTR positioning */
.rtl .no-rtl-flip .logo {
  order: -1 !important;
}

.rtl .no-rtl-flip .menu {
  margin-left: auto !important;
  margin-right: 0 !important;
}



img {
  width: 100%;
}

main {
    padding: var(--padding);
    margin: 0 auto;
    max-width: 85rem;
}

.fullwidth-section {
  background-color: var(--color-beige);
  width: 100%;
}

.fullwidth-section .subscribe {
  padding: 4.5rem 2rem;
}

.fullwidth-section .inner {
  max-width: 85rem; /* gleiche Breite wie body */
  margin: 0 auto;
  padding: 0 var(--padding); /* falls du var(--padding) definiert hast */
}


h1 {
    font-weight: 200;
    font-size: 54px;
    line-height: 48px;
}

h2 {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 2rem;
    letter-spacing: -0.01rem;
    margin-top: 0.5rem;
}

h3 {
    font-weight: 200;
    font-size: 38px;
    line-height: 36px;
}

h4, label {
    font-size: 17px;
    line-height: 21px;
}

h5 {
  font-size: 28px;
  line-height: 28px;
  margin-top: 0.5rem;
}

h6 {
  font-size: 17px;
  line-height: 24px;
  margin-top: 0.5rem;
}

p {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 1rem;
}

.quote {
  color: var(--color-green);
  background-color: var(--color-beige);
  text-align: center;
  padding: 2rem 2rem 1rem 2rem;
}

.quote p {
  font-style: italic;
  font-size: 24px !important; 
  line-height:30px !important;
}

.textblock p {
  font-size: 24px !important; 
  line-height:28px !important;
}

.textblock a {
  font-size: 19px !important; 
  line-height:28px !important;
  border-bottom: 1px solid var(--color-black);
}

.textblock a:hover {
  border-bottom: 1px solid transparent;
}


li {
  list-style: none;
}

li p {
    margin: 0 0 0 15px;
    color: var(--color-black);
}

.list ul {
  font-size: 24px !important;
  line-height: 28px !important;
  list-style-type: disc; /* zeigt Bullet Points */
  margin-left: 2rem; /* optional für Einrückung */
}

.list li {
  font-size: 24px !important;
  line-height: 28px !important;
  list-style-type: disc; /* zeigt Bullet Points */
  margin-left: 2rem; /* optional für Einrückung */
}

.list ol {
  font-size: 24px !important;
  line-height: 28px !important;
  list-style-type: decimal; /* nummerierte Listen */
  margin-left: 2rem;
}

a {
  color: var(--color-black);
  font-size: 15px;
  text-decoration: none;
}

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

.menu-link {
  color: var(--color-black);
  border-bottom: 1px solid transparent;
  align-items: center;
}

.menu-link:hover {
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
}

.subscribe-link {
  cursor: pointer;
  color: var(--color-signal);
  border-bottom: 1px solid var(--color-signal);
}

.subscribe-link:hover {
  cursor: pointer;
  color: var(--color-signal);
  border-bottom: 1px solid transparent;
}

.subscribe-menu {
  cursor: pointer;
  color: var(--color-signal);
  border-bottom: 1px solid transparent;
}

.subscribe-menu:hover {
  cursor: pointer;
  color: var(--color-signal);
  border-bottom: 1px solid var(--color-signal);
}

.link-white {
  cursor: pointer;
  color: var(--color-blue);
  border-bottom: 1px solid var(--color-blue);
}

.link-white:hover {
  cursor: pointer;
  color: var(--color-blue);
  border-bottom: 1px solid transparent;
}

.link-icon {
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  transition: color 0.3s;
  padding-top: 10px;
  border-bottom: 1px solid var(--color-black);
}

.link-icon:hover {
  color: var(--color-green);
  border-bottom: 1px solid transparent;
}


button {
  font: inherit;
  background: none;
  border: 0.08rem solid var(--color-green);
  border-radius: 10px;
  padding: 7px 15px 7px 15px;
  color: var(--color-black);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

button:hover {
  font: inherit;
  background: var(--color-blue);
  box-shadow: 0 0 0 0.1rem var(--color-blue);
  color: var(--color-black);
  cursor: pointer;
  text-decoration: none;
  border:0.08rem solid var(--color-blue);
}

.cta {
  font-size: 15px;
  text-decoration: none;
  background: var(--color-green);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  border: 0.13rem solid var(--color-green);
  transition: box-shadow 0.2s ease;
}

.cta:hover {
  font-weight: 500;
  font-size: 15px;
  background: var(--color-blue);
  color: var(--color-black);
  display: inline-flex;
  justify-content: center;
  border: 0.13rem solid var(--color-blue);
  box-shadow: 0 0 0 0.1rem var(--color-blue);
  text-decoration: underline;
}

/* .breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
} */

.breadcrumb ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.breadcrumb li {
  margin-right: 10px;
}

.breadcrumb a {
  color: var(--color-black);
}

.breadcrumb li:not(:first-child):not(:last-child)::after {
  content: "/";
  color: #999; /* optional, für Stil */
}

header {
  padding: 0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #fefefe;
  z-index: 1200;
  transition: padding 200ms ease;
}

.up {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin: 0 auto 0 auto;
  max-width: 85rem;
}

@media screen and (max-width: 1375px) {
  .up {
    margin: 0 2rem;
  }
}

.devider {
  width: 100%;
  border-bottom: 0.075rem solid var(--color-blue);
  max-height: 6px;
  opacity: 1;
}

.tag {
  color: var(--color-green);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag:hover {
    color: var(--color-signal);
    text-decoration: none;
}

.tag-selected {
  color: var(--color-signal);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--color-signal);
  padding: 8px 10px 6px 10px;
  border-radius: 5px;
}


.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  max-width: 100px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.inline-b {
  display: flex;
  align-items: center;
  gap: 1.5rem !important;
}

 .menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.burger-menu {
  display: none;
}


/* .menu a[aria-current] {
  text-decoration: underline;
} */

.headline-wrapper {
  width: 100%;
  padding: 6rem 0 3rem 0;
}

.headline {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-black);
}

.headline::before,
.headline::after {
  content: "";
  flex: 1;
  border-top: 0.075rem solid var(--color-blue);
  margin: 1rem;
}

.intro {
  max-width: 35rem;
  margin: 1rem auto;
  text-align: center;
}

.intro svg {
  margin-bottom: 20px;
}

.intro-start {
  max-width: 32rem;
  margin: 1rem auto;
  text-align: center;
}

.intro-start svg {
  margin-bottom: 10px;
}


.greybox {
  padding: var(--padding);
  width: 65rem;
  margin: 0.375rem auto;
  background-color: var(--color-lightblue);
}

.latest-issue, .latest-issue-up {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.preview-cover {
  width: 312px;
  flex-shrink: 0;
  height: 410px;
  justify-content: center;
}

.issue-cover-fallback {
  position: relative; 
  width: 300px; 
  height: 394px; 
  box-sizing: border-box;
}

.placeholder-cover-wrapper {
  width: 90vw; /* oder 100% */
  max-height: 90vh;
  aspect-ratio: 312 / 488;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.preview-text {
  max-height: 100%; /* wird im flex durch das Bild begrenzt */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  padding: 0;
}

.preview-text p {
  font-size: 18px;
  line-height: 22px;
  padding: 0 2rem;
}

.preview-text h2 {
  margin: 0.5rem 0;
  padding: 0 2rem;
}

.preview-text h3 {
  margin-top: 0rem;
  padding: 0 2rem;
}

.link {
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
}

.link:hover {
  color: var(--color-green);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.article-preview {
  border-top: 0.075rem solid var(--color-blue);
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.article-preview:first-child {
  border-top: none;
  margin-top: 0;
}

.issue-p-article-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.issue-p-article-grid .article-preview {
  /* layout: place teaser and image side-by-side on larger viewports */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  box-sizing: border-box;
}

/* Prevent absolute / aspect-box technique from making the img overflow inside the grid previews.
   Use a normal responsive image in the grid/list context so it scales proportionally and
   does not overlap the teaser text. */
.issue-p-article-grid .article-preview {
  min-width: 0; /* allow children to shrink properly in flex */
}

.issue-p-article-grid .article-preview .img {
  /* use a percentage column for the thumbnail and remove the padding-aspect fallback here */
  width: 25%;
  max-width: 8rem;
  flex: 0 0 25%;
  min-width:4rem;
  padding-bottom: 0 !important;
  position: relative;
  box-sizing: border-box;
  /* enforce a square mask and clip overflow so the thumbnail is 1:1 */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.issue-p-article-grid .article-preview .img img {
  /* make the image fill the square mask and crop if necessary */
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover; /* fill & crop to the square */
  object-position: center;
  display: block;
}

/* Make the teaser take remaining space and keep the image a fixed-ish column */
/* allocate 3/4 of the row to text and 1/4 to the image */
.article-preview .article-teaser {
  width: 75%;
}

.article-preview .img {
  width: 25%;
  height: auto;

}

/* Responsive: stack teaser and image on narrow viewports */
@media (max-width: 960px) {
  .article-preview {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .article-preview .img {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

.article-preview:hover {
  background-color: var(--color-blue);
  border-radius: 0 0 5px 5px;
}


.subscribe {
 text-align: center;
 margin: auto;
 max-width: 35rem;
}

.subscribe h3 {
    margin-bottom: 20px;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
   grid-template-columns: repeat(var(--columns, 1), 1fr);
  justify-content: center;
  /* outline: 2px dashed red; */
}

.grid > .column {
  margin-bottom: var(--gutter);
}

.archive {
  max-width: 70rem;
  margin: 0 auto;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;       /* Zentriert den Slider horizontal */
  justify-content: center;   /* (Optional) Vertikal zentrieren */
  padding: 2rem 0;
}

.archive-list {
  display: flex;
  transition: transform 0.4s ease;
  list-style: none;
  gap: 2rem;
}


.opinions-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  padding: 0;
  list-style: none;
}

.opinions-list li {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  padding: 3rem;
}

.opinions-list li:hover {
  background-color: var(--color-lightblue);
  border-radius: 5px;
}

.opinions-list li::after {
  content: "";
  position: absolute;
  top: 10%;
  height: 80%;
  right: 0;
  width: 0.01rem;
  background-color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.opinions-list li::before {
  content: "";
  position: absolute;
  top: 10%;
  height: 80%;
  left: 0;
  width: 0.01rem;
  background-color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.opinions-list li:hover::after,
.opinions-list li:hover::before,
.opinions-list li:has(+ .opinions-list li:hover)::after {
  opacity: 0;
}

.opinions-list img {
  max-width: 50px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 30px;
  filter: grayscale(100%);
}
.opinions-list p {
  margin: 0;
}

/* Highlight (hero) style for the first/featured opinion */
.opinions-list .opinions-item.hero {
  grid-column: span 3; /* span two columns on wide screens */
}

.opinions-list .opinions-item .opinion-excerpt {
  margin-top: 1rem;
  color: var(--color-black);
  font-family: var(--font-family-serif);
  font-size: 21px;
  line-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* roughly 6 lines */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 70%
}

/* New layout: main (hero + 2-column grid) left, side tiles right */
.opinions-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.opinions-main {
  display: block;
}

.opinions-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opinions-hero {
  background: var(--color-beige);
  padding: 1.5rem;
  border-radius: 4px;
}

.hero-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}


.opinions-grid-two {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.opinions-card, .opinions-tile {
  background: transparent;
  padding: 0.5rem 0;
}

.opinions-tile .tile-cover img,
.opinions-card .card-cover img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.opinions-tile h4, .opinions-card h3 {
  margin: 0.25rem 0 0 0;
  font-size: 15px;
}

.opinions-tile p, .opinions-card .card-author { margin: 0.25rem 0 0 0; font-size: 13px; color: #6b6b6b; }

@media (max-width: 960px) {
  .opinions-layout {
    grid-template-columns: 1fr; /* stack on small screens */
  }
  .opinions-side {
    order: 2;
  }
  .opinions-main {
    order: 1;
  }
  .opinions-grid-two {
    grid-template-columns: 1fr;
  }
    .subscribe-box h3 {
    font-size: 23px;
    line-height: 26px; 
  }
}

.opinions-item.hero {
  background-color: var(--color-beige);
  border-radius: 4px;
}

.opinions-list .opinions-item.hero .hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
}

/* place cover + author side-by-side inside hero-left */
.opinions-list .opinions-item.hero .hero-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
  align-items: flex-start;
  position: relative; /* allow absolute placement of the hero cover */
}

.opinions-list .opinions-item.hero .hero-cover img,
.opinions-list .opinions-item.hero .hero-top .hero-cover img {
  max-width: 90px;
  max-height: 90px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

.opinions-list .opinions-item.hero .hero-cover {
  /* place the cover at the right edge of the hero box */
  position: absolute;
  right: 0rem;
  top: 0rem;
  width: 90px;
  height: 90px;
}

@media (max-width: 960px) {
  .opinions-list .opinions-item.hero .hero-cover {
    width: 80px;
    height: 80px;
    margin-left: 0;
  }
  .opinions-list .opinions-item.hero .hero-left {
    margin-right: 0;
    padding-right: 50px;
  }
}

.opinions-list .opinions-item.hero .hero-top .hero-author {
  font-size: 20px;
  color: var(--color-text);
  margin: 0;
}

.opinions-list .opinions-item.hero .hero-title {
  font-size: 54px;
  line-height: 48px;
}

@media (max-width: 1090px) {
  /* reduce hero span on narrower screens */
  .opinions-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .opinions-list .opinions-item.hero {
    grid-column: span 3;
  }
  .opinions-list .opinions-item.hero .hero-inner {
    gap: 1rem;
  }

  .preview-cover {
    max-width: 300px;
    flex-shrink: 0;
    height: auto;
    justify-content: center;
  }
  .issue-cover-fallback {
    position: relative; 
    width: 300px; 
    height: 394px; 
    box-sizing: border-box;
  }

  .archive {
    padding: 0 2rem;
  }

  .archive .flex {
    flex-direction: column-reverse;
    padding: 0;
  }

  .archive h3{
    padding-top: 4.5rem;
  }
}

@media (max-width: 764px) {
  .opinions-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .opinions-list .opinions-item.hero {
    grid-column: span 2;
  }
  /* stack hero columns on smaller screens */
  .opinions-list .opinions-item.hero .hero-inner {
    flex-direction: column;
  }
  .opinions-list .opinions-item.hero .hero-left {
    flex: none;
    width: 100%;
  }

  .opinions-list .opinions-item .opinion-excerpt {
  margin-top: 1rem;
  font-size: 17px;
  line-height: 20px;
  width: 100%
}
.opinions-list .opinions-item.hero .hero-title {
  font-size: 40px;
  line-height: 36px;
  padding-right: 0px;
  width: 70%;
}

}

@media (max-width: 630px) {
  .opinions-list {
    grid-template-columns: repeat(1, 1fr);
  }
  .opinions-list .opinions-item.hero {
    grid-column: auto; /* full width */
  }

  .opinions-list .opinions-item.hero .hero-top {
    display: flex;
    flex-direction: column-reverse !important;
    justify-content: center;
  }

  h1 {
    font-size: 44px;
    line-height: 38px;
  }

  h2 {
    font-size: 20px;
    line-height: 26px;  
  }

   h3 {
    font-size: 28px;
    line-height: 28px; 
   }

   h4 {
    font-size: 16px;
    line-height: 20px; 
   }

   p {
    font-size: 20px;
    line-height: 23px; 
   }
}



.latest-list {
  display: flex;
  flex-wrap: nowrap;          
  overflow-x: hidden;           
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.latest-list li {
  flex: 0 0 auto;               
  width: calc(100% / 5 - 1.6rem); 
  box-sizing: border-box;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2rem;
}

.archive-list li {
  background: none;
  border-radius: 0px;
  transition: transform 0.2s ease;
  margin-bottom: 3rem;
  box-sizing: border-box; 
}

.archive-list img {
  width: 100%;
  height: auto;
}

.syriapoll-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  list-style: none;
  padding-right: 40px;
}

.syriapoll-list p {
  padding: 1rem;
}

.syriapoll-list li {
  background-color: var(--color-beige);
  padding: 0.15rem;
  margin-top: 6rem;
}

.poll-teaser {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem; /* optionaler Abstand */
  padding: 2rem 4rem 2rem 4rem;
  background-color: var(--color-beige);
}

.teaserimage {
  flex: 2;
}

.teasertext {
  flex: 1;
}

.teasertext p {
  margin-top: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* roughly 6 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-lightblue);
  overflow: hidden;
}
.img img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}

.flex {
  display: flex;
  flex-wrap: wrap; /* Optional, je nach gewünschtem Verhalten */
  align-items: flex-start;
  gap: 6rem;
  width: 100%;
}

.issue-p-article-grid .article-preview {
  flex-direction: row;
  justify-content: space-between;
}

.chapters {
  flex:1;
}

.content {
  flex: 3;
}

.options {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* optional: Abstand zwischen Links */
  margin-top: 1.5rem;
}

.options a {
  align-items: center;
  cursor: pointer
}

.options svg {
  width: 1rem;
  margin-right: 10px;
  height: auto;
}

/* Layout for share + options container (article aside actions) */
.aside-actions {
  display: flex;
  flex-direction: column; /* stacked on small screens */
  gap: 1rem;
  align-items: flex-start;
}


.share {
  position: relative;
  display: inline-block;
}

.share .icon {
  background: none;
  border: 1px solid var(--color-blue);
  border-radius: 30px;
  padding: 10px;
  color: var(--color-green);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share .icon:hover {
  background: var(--color-blue);
  box-shadow: 0 0 0 0.1rem var(--color-blue);
  color: var(--color-black);
  cursor: pointer;
}

.share-fallback {
  display: none; /* wird durch JS angezeigt, wenn nötig */
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-fallback a img {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s;
}

.share-fallback a:hover img {
  opacity: 0.7;
}

.bg-grey,
.issue-article-grid {
  min-width: 0;
  flex-basis: 0;
}


.bg-grey {
  background-color: var(--color-lightblue);
  padding: 40px;
  flex: 1;
}

.included-articles {
  flex: 2;
}

.issue-article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.category-article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.article-card {
  border:none;
  border-radius: 5px;
  overflow: hidden;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.article-card:hover {
  background-color: var(--color-blue);
}

.article-card img {
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

/* .article-card:hover h5,
.article-card:hover h6 {
  color: var(--color-green);
  transition: color 0.2s ease;
} */

/* .article-card-img {
  position: relative;
  display: block;
  max-height: 180px;
  overflow: hidden;
} */

.article-card .article-preview {
  border: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

 /* .article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
} */
.author {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.author img {
  max-width: 50px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 30px;
  filter: grayscale(100%);
}

.start-subscribe {
  display: flex; 
  flex-direction: row;
  justify-content: center; 
  align-items: stretch;
  margin: 0 auto;
}

.subscribe-box {
 background-color: var(--color-green); 
 max-width: 488px;
 align-items: stretch; 
 justify-content: center;
 padding: 3rem 2rem;
}

@media (max-width: 1090px) {
  .greybox {
  width: 100%;
  }

  header {
    padding: 0;
  }


 .up {
  margin: 0 2rem 0 2rem;
 }

 .down-wrapper {
  margin: 0 2rem 0 2rem;
 }  

 .flex {
  flex-direction: column;
  padding: 0 2rem;
  align-items: stretch;
 }

 .options {
  margin-top: 1rem;
  flex-direction: row;
  gap: 1.5rem;
 }

 .right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
 }

  .flex .margin-l, .flex .margin-xxl {
    margin-bottom: 0rem;
  }

  .flex .margin-xl {
    margin-bottom: 3rem;
  }

  .chapters .article-preview {
    flex-direction: row;
  }

  .aside-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  /* remove the vertical spacer when inline */
  .aside-actions .margin-xl {
    display: none;
  }

  /* avoid extra top margin when inline */
  .aside-actions .options {
    margin-top: 0;
  }

  .start-subscribe {
    display: flex; 
    flex-direction: row;
    justify-content: center; 
    align-items: stretch; 
    max-width: 50rem; 
    margin: 0 2rem;
  }
}

@media (max-width: 960px) {
  /* keep header visible on mobile */

  header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    z-index: 1200;
  }

  .burger-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1.5rem;
  }

  /* Menü standardmäßig verstecken */
  .menu {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed; /* fixed damit es immer sichtbar bleibt, auch beim Scrollen */
    top: 70px;           /* oben am Bildschirm */
    left: 0;
    right: 0;
    width: 100%;     /* volle Breite des Viewports */
    height: 100vh;    /* volle Höhe des Bildschirms, optional */
    z-index: 1000; 
    align-items: flex-start;   /* hoch, damit es über allem liegt */
    border-top: 1px solid var(--color-blue);
    padding-top: 1.5rem;
  }

  .menu .inline a {
   font-size: 20px;
   padding: 0.5rem 1.5rem 1.5rem 1.5rem;
   width: 100%;
   text-align: center;
   border:none
  }

   .menu .inline a {
   border:none
  }

  /* Menü anzeigen, wenn aktiv */
  .menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu.active .inline {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  /* Magazine Link im Burger-Menü als Überschrift, nicht klickbar */
  .menu.active #magazine {
    display: none;
  }

  /* Dropdown-Inhalt im Burger-Menü */
  .menu.active .dropdown-content {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .menu.active .dropdown-content a {
    padding: 0.5rem 1.5rem;
    width: 100%;
    text-align: center;
    margin-left: 0;
    border-left: none;
  }

  .menu.active .dropdown-content a.tag {
    font-size: 16px;
    padding: 0.5rem 0;
  }
  .menu.active .dropdown-divider {
    display: none;
  }

 .menu.active .inline-b {
    display: none;
  }

  .greybox {
    padding: 2rem;
  }
  
  .preview-cover {
    display: block;
    width: 220px;
  }

  .issue-cover-fallback {
    position: relative; 
    width: 220px; 
    height: 289px; 
    box-sizing: border-box;
  }
  
  .poll-teaser {
    flex-direction: column-reverse;
    align-items: center;
    gap: 3rem; /* optionaler Abstand */
    padding: 3rem;
  }

  .teaserimage {
    flex: 2;
  }

  .teasertext {
    flex: 1;
    text-align: center;
    max-width: 35rem;
    padding-bottom: 2rem;
  }

  .preview-text {
    padding: 0 1.5rem;
    flex: 1;
  }

  .headline-wrapper {
    padding: 4.5rem 0 0 0;
  }
  
  footer {
    --padding: 2rem;
  }

  header {
    --padding: 2rem;
  }

  footer .social {
    padding-bottom: 1.5rem;
  }

  main {
    padding-left: 0;
    padding-right: 0;
  }

  .latest-issue {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .latest-issue-up {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }


  .syriapoll-list {
    padding: 2rem;
    grid-template-columns: repeat(1, 1fr);
  }

  .opinions-list {
  grid-template-columns: repeat(3, 1fr);
  }

  .latest-list li {
    width: calc(100% / 4 - 1.5rem); 
  }

  .slider .slide {
    width: calc(100% / 2); 
  }



  .archive-list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    padding: 1rem 2rem;
  }

  .flex {
    flex-direction: column;
    padding: 0 2rem;
  }

  .category-article-grid, .issue-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem !important;
  }

  .intro-start {
    padding: 2rem 2rem;
  }

  .issue-p-article-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0rem;
    margin-top: 1rem;
  }
}



@media screen and (min-width: 959px) {
  body {
    --padding: 2rem;
  }

  /* .grid {
   grid-template-columns: repeat(var(--columns, 1), 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  } */

}

@media (max-width: 764px) {

  .logo {
    width: 100px;
  }

 .margin-l {
    margin-bottom: 2rem;
  }

  .margin-xl {
    margin-bottom: 3rem;
  }

  .intro {
    padding: 1rem 2rem 0 2rem;
  }

  .intro-start {
    display: none;
  }

  .opinions-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-issue {
    flex-direction: column;
    align-items: center;
  }


  .latest-issue  .img {
    display: flex;
    flex: 2;
  }

  .latest-issue .article-teaser {
    flex: 3;
  }

  .latest-issue .article-preview {
    display: flex;
    flex-direction: row;
  }

  .preview-text {
    padding: 2rem 0 0 0;
    max-width: 100%;
  }

  .columns, .subscribe {
    padding: 2rem;
  }

  .slider .slide {
    width: calc(100% / 1); 
  }

  .poll-teaser {
    padding: 2rem 2rem;
  }

  .teasertext, .teaserimage {
   margin: 0;
  }

  .greybox {
    padding: 4.5rem;
  }

  .article-list {
    flex-wrap: wrap;
  }
  
  footer {
    --padding: 2rem;
  }

  header {
    --padding: 1.5rem;
    flex-direction: column;
    align-items: center;
  }

  .preview-text {
    padding: 2rem 0 0 0;
    max-width: 100%;
  }

  .columns, .subscribe {
    padding: 2rem;
  }

  .slider .slide {
    width: calc(100% / 1); 
  }

  .poll-teaser {
    padding: 2rem 2rem;
  }

  .teasertext, .teaserimage {
   margin: 0;
  }

  .greybox {
    padding: 0 2rem 2rem 2rem;
  }

  .article-list {
    flex-wrap: wrap;
  }
  
  footer {
    --padding: 2rem;
  }

  header {
    --padding: 2rem;
  }

  footer .social {
    padding-bottom: 2rem;
  }

  .columns, .subscribe {
    padding: 2rem;
  }

  .archive {
    padding: 0 2rem;
  }

  .archive .flex {
    flex-direction: column-reverse;
    padding: 0;
  }

  .archive h3{
    padding-top: 4.5rem;
  }

  .latest-list {
    flex-wrap: wrap;
  }
  .latest-list li {
    width: calc(100% / 3 - 1.5rem); 
  }

  .slider .slide {
    width: calc(100% / 2); 
  }

  .archive-list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    padding: 0;
    gap: 1.5rem;
  }
  .footer {
    flex-direction: column;
    gap: 1rem;
  }

  .category-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem !important;
  }
  .issue-article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }
 }

@media (max-width: 630px) {
  .up {
    margin: 0 1.5rem 0 1.5rem;  
  }
.down-wrapper {
    margin: 0 1.5rem 0 1.5rem;  
  }  

  footer {
    --padding: 1.5rem;
  }

:root {
    --padding: 1.5rem;
  }
  .category {
    padding: 1.5rem;
  }
.right {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
   .flex {
  padding: 0 1.5rem;
 }
  .latest-issue {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .inline {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .columns {
    padding: 0;
    width: 100%;
  }

  .opinions-list {
  grid-template-columns: repeat(1, 1fr);
  }

  .preview-cover {
    display: block;
    width: 180px;
    height: 236px;
  }

  .issue-cover-fallback {
    position: relative; 
    width: 180px; 
    height: 237px; 
    box-sizing: border-box;
  }

  .preview-text {
    padding: 2rem 0 0 0;
    max-width: 100%;
  }

  .slider .slide {
    width: calc(100%); 
  }

  .greybox {
    padding: 2rem 1.5rem;
  }

  .archive {
    padding: 0 1.5rem;
  }

  .archive .flex {
    flex-direction: column-reverse;
    padding: 0;
  }

  .archive h3{
    padding-top: 3rem;
  }

  .issue-article-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding: 0 !important;
  }

  .category-article-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding: 0;
  }
  
  .latest-list {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 1.5rem;
    gap: 1.5rem;
  }
  
   .latest-list li {
    width: calc(100% / 2 - 1.5rem); 
  }
  /* .latest-list {
    display: flex;
    flex-direction: column;
  }

  .latest-list li {
    width: 100% !important;
    margin-bottom: 2rem;
  } */

  main {
    padding: 0;
  }

  .archive-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(10, 1fr);
    padding: 1rem 1.5rem;
  }


  .opinions-list {
    padding: 0 1.5rem;
  }
  
  .margin-xl {
    margin-bottom: 2rem !important;
  }

  .margin-l {
    margin-bottom: 1rem !important;
  }

  .margin-xxl {
    margin-bottom: 3rem !important;
  } 
  .intro {
    padding: 1rem 1.5rem 0 1.5rem;
  }

  .subscribe {
    padding: 0 1.5rem;
  }

  .bg-light {
    padding: 2rem 2rem !important;
  }

  .fullwidth-section .inner {
    padding: 0;
  }
  .poll-teaser {
    padding: 1.5rem 1.5rem;
  }

  .subscribe-box {
    max-width: 315px;
    padding: 1.5rem;
  }

  .subscribe-box h3 {
    font-size: 20px;
    line-height: 23px; 
  }

}



footer {
    background-color: var(--color-black);
    padding: var(--padding);
}

footer .logo {
  max-width: 10rem;
  display: flex;
  font-weight: 600;
  cursor: pointer;
}

footer .footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 20px;
  margin: 1rem auto 0 auto;
  max-width: 85rem;
}

footer .social {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 1.25rem 0.625 1.25rem 0.625;
  margin: 0 auto 0 auto;
  max-width: 85rem;   
}

.social-icon {
  margin-right: 20px;
}

footer p {
  color: var(--color-blue);
}

footer a {
  color: var(--color-white);
}

footer a:hover {
  color: var(--color-blue);
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

.pagination {
  display: flex;
  padding-top: 6rem;
  justify-content: center;
}
.pagination > span {
  color: var(--color-text-green);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
}

.pagination > a:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}

.uniform__potty {
    position: absolute;
    left: -9999px;
}
/* Kontaktformular Styles */

.bg-light {
  background-color: var(--color-beige);
  padding: 3rem;
  margin: auto;
  box-sizing: border-box;
  max-width: 800px;
}

.uniform__potty {
  position: absolute;
  left: -9999px;
  /* oder display: none; wenn du sicher bist, es wird nicht angezeigt */
}

/* Kontaktformular Styles */

.bg-light {
  background-color: var(--color-beige);
  padding: 3rem;
  margin: auto;
  box-sizing: border-box;
  max-width: 800px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.contact-form input[type="name"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-family-serif);
  font-size: 24px; /* etwas größer als Standard vielleicht */
  line-height: 30px;
  padding: 0.75rem 1rem;
  border: none;
  background: var(--color-white);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}

.contact-form input[type="name"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 1px solid var(--color-blue);
}

input[type="name"]:focus::placeholder,
input[type="email"]:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-blue);
}

.contact-form input.error,
.contact-form textarea.error {
  border: 1px solid var(--color-blue);
  border-color: var(--color-green);
}

.contact-form .error-message {
  color: var(--color-green);
  font-size: 0.875rem;
  margin-top: -1rem;
}

.contact-form button[type="send"] {
  font-family: var(--font-family-sans);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--color-black);
  border: 0.13rem solid var(--color-blue);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: var(--color-blue);
  color: var(--color-black);
  box-shadow: 0 0 0 0.1rem var(--color-blue);
}

.success {
  color: var(--color-green);
  font-size: 1.25rem;
  margin-top: 1rem;
}

.word-count {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.word-count p {
  font-family: var(--font-family-sans);
  font-size: 15px;
}

#wordCount {
  font-family: var(--font-family-sans);
  font-size: 15px;
}

.slider-container {
  display: flex;
  align-items: center;   /* Inhalte im Slider oben ausrichten */
  justify-content: center;   /* Slider mittig platzieren */
  max-width: 1200px;         /* Breite begrenzen, damit es schön aussieht */
  width: 100%;
  gap: 10px;
}

.slider-wrapper {
  overflow: hidden;
  flex: 1;
}

.slider {
  display: flex;
  padding-left: 1px;
  transition: transform 0.4s ease;
  flex-wrap: nowrap;
}

.slide {
  flex: 0 0 auto;               
  width: calc(100% / 3); 
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 3rem 2rem;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.slide:hover {
  background-color: var(--color-lightblue);
  border-radius: 5px;
}

.slide::after {
  content: "";
  position: absolute;
  top: 10%;
  height: 80%;
  right: 0;
  width: 1px;
  background-color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.slide:first-child::before {
  content: "";
  position: absolute;
  top: 10%;
  height: 80%;
  left: 0;
  width: 1px;
  background-color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.slide:hover::after,
.slide:hover::before,
.slide:has(+ .slide:hover)::after {
  opacity: 0;
}

.slide p {
  margin: 0.25rem 0;
  color: #444;
}

button.prev,
button.next {
  color: var(--color-green);
  border: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
}

.cover-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 7.5rem 0;
  width: 70vw;
  position: relative;
  left: 50%;
  margin-left: -35vw;
}

.cover-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-beige);
}

.centered {
  text-align: center;
}

@media print {
  body * {
    visibility: hidden;  /* alles ausblenden */
  }

  body, html {
    margin: 0;
    padding: 0 20px;
  }

  .content *{
    visibility: visible; /* nur content sichtbar */
  }

 .textblock p {
    font-size: 16px !important; 
    line-height:18px !important;
 }

  .textblock a {
    font-size: 20px !important; 
    line-height:18px !important;
 }

.list ul {
  font-size: 16px !important;
  line-height: 18px !important;
  list-style-type: disc; /* zeigt Bullet Points */
  margin-left: 2rem; /* optional für Einrückung */
}

.list ol {
  font-size: 16px !important;
  line-height: 18px !important;
  list-style-type: decimal; /* nummerierte Listen */
  margin-left: 2rem;
}

 .text-blocks {
    column-count: 2;
    column-gap: 30px;
 }

  .content {
    position: absolute;
    left: 0;
    top: 0;
  }

  .content .breadcrumb {
    display: none; /* breadcrumb innerhalb von content verstecken */
  }
}


	
#cookie-popup { 
  text-align: center; 
  background: #fff;
  position: fixed;
  top: 0px; 
  left: 0;
  right: 0;
  z-index: 9999;
  font-size:14px; 
  line-height:20px;
  padding: 20px;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
  }
 
#cookie-popup.hidden {
  display: none;
}