/* =========================
   Global Theme + Variables
   ========================= */
:root {
  --bs-primary: #000;
  --bs-primary-rgb: 0, 0, 0;

  --fg: #fff;
  --accent: #000;
  --maxw: 1200px;
  --pad: clamp(1rem, 4vw, 3rem);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Default: Light Mode */
  --bg: #f7f8fa;
  --text: #0c0d0e;
  --card: #ffffff;
  --blog-accent: #cf0000;
}

/* Optional: Dark Mode override */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #e6e6e6;
    --card: #111317;
    --accent: #fff;
  }
} */

/* =========================
   Base / Reset
   ========================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 60px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

html {
  scroll-padding-top: 60px;
}

/* =========================
   Buttons
   ========================= */
.btn-ryt-black,
.btn-ryt-white {
  border-radius: 6px;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-ryt-black {
  background: #000;
  color: #fff !important;
}

.btn-ryt-black:hover {
  background: #fff;
  color: #000 !important;
  border: 2px solid #000;
}

.btn-ryt-white {
  background: #fff;
  color: #000 !important;
  border: 2px solid #000;
}

.btn-ryt-white:hover {
  background: #000;
  color: #fff !important;
}

.btn-ryt-black:focus,
.btn-ryt-white:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-group .btn-ryt-black,
.btn-group .btn-ryt-white {
  flex: 1 1 auto;
  border-radius: 0;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

/* =========================
   Layout
   ========================= */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--pad);
}

/* =========================
   Feature Section
   ========================= */
.feature {
  display: flex;
  align-items: stretch;
  min-height: 400px;
  max-width: 2000px;
  margin: clamp(1rem, 4vw, 2rem) auto;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.feature .content {
  flex: 1;
  padding: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.feature h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.3px;
}

.feature p {
  margin: 0;
  opacity: 0.9;
}

.media.angle-right {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
}

.media.angle-left {
  clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 0 100%);
}

.media {
  position: relative;
  flex: 1;
  min-height: 100%;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.site-footer a {
  text-decoration: underline;
  color: inherit;
}

.page-end-space {
  height: 60px;
}

/* =========================
   Blog Layout & Cards
   ========================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav a {
  margin-left: 16px;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid #1e222a;
  border-radius: var(--radius);
  overflow: hidden;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.3;
}

.card-excerpt,
.card-meta {
  color: var(--text);
}

.card-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Post Detail Page
   ========================= */
.post-header {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.post-cover {
  border-radius: var(--radius);
  border: 1px solid #1e222a;
}

.post-content {
  line-height: 1.7;
  color: var(--text);
}

.post-content h2,
.post-content h3 {
  margin-top: 1.2em;
}

.post-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.post-content pre {
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  background: #1e1e1e;
}

/* =========================
   Swiper (Slider)
   ========================= */
.swiper {
  padding: 8px;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--text);
}

.swiper-pagination-bullet {
  background: var(--text);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--blog-accent);
  opacity: 1;
}

.mySwiper {
  position: relative;
  padding-bottom: 40px;
}

.mySwiper .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
}

/* =========================
   Responsive Fixes
   ========================= */
@media (max-width: 900px) {
  .feature {
    flex-direction: column;
  }

  .media {
    clip-path: none;
    min-height: 220px;
  }
}



/* Full-bleed: über die gesamte Breite, ohne Container-Padding */
.carousel-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #000; /* falls Bilder kurz fehlen */
}

/* Höhe & Zuschnitt der Bilder */
.carousel-item {
  height: 65vh;            /* Desktop-Höhe */
  min-height: 420px;       /* nicht zu klein */
  position: relative;
}

@media (max-width: 992px) {
  .carousel-item { height: 55vh; min-height: 360px; }
}
@media (max-width: 576px) {
  .carousel-item { height: 45vh; min-height: 300px; }
}

.carousel-img {
  height: 100%;
  object-fit: cover;       /* füllt die Fläche, schneidet sauber */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;   /* größer */
  height: 3rem;  /* größer */
  background-size: 100% 100%; /* Icon füllt Fläche */
  filter: invert(100%) brightness(500%); /* sattes Weiß */
}



/* Caption im linken Drittel, vertikal zentriert */
.caption-left-third {
  position: absolute;
  top: 50%;
  left: 16.666%;                 /* Mitte des linken Drittels (≈ 1/6) */
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: left;
  max-width: 32ch;               /* angenehme Zeilenlänge */
}

/* Typo */
.caption-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 3rem); /* responsive Größe */
  line-height: 1.1;
  margin: 0 0 0.25rem 0;
}
.caption-sub {
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  margin: 0;
  font-weight: 400;
}

/* Lesbarkeit auf hellen Bildern */
.caption-left-third {
  text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.6);
}

/* auf sehr kleinen Screens etwas nach innen rücken */
@media (max-width: 576px) {
  .caption-left-third {
    left: 30%;
  }
}


/* Credits unten rechts */
.caption-credit {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.75rem;
  color: #eee;
  background: rgba(0,0,0,0.5);  /* sorgt für Lesbarkeit */
  padding: 2px 6px;
  border-radius: 4px;
}

/* Auf kleinen Screens etwas kleiner */
@media (max-width: 576px) {
  .caption-credit {
    font-size: 0.65rem;
    right: 8px;
    bottom: 6px;
  }
}

