/* ============================================
   Self-hosted Fredericka the Great
   ============================================ */
@font-face {
  font-family: 'Fredericka the Great';
  src: url('/fonts/fredericka-the-Great/FrederickatheGreat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   H1 Typography
   ============================================ */
:root {
  --font-display: 'Fredericka the Great', Georgia, serif;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.2;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: anywhere;
}


h2, h3, h4, h5, h6,
li, p, a {
  hyphens: auto;
  word-break: normal;
  overflow-wrap: anywhere;
}

desc {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.2;
}


/* ============================================
   Slide Base
   ============================================ */
.splide__slide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.splide__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* center fixed point when window resizes */
  z-index: 0;
}

.splide__slide .s-fade-txt {
  position: absolute;
  top: 50%;
  left: 16.666%; /* 1/3 of 50% — left edge of the 1/3 column */
  transform: translate(0, -50%);
  opacity: 0;
  width: 70%; /* constrain text to 1/3 width */
}

/* ============================================
   Dark overlay (chalkboard feel)
   ============================================ */
.splide__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.45);
  z-index: 1;
}

/* ============================================
   Text container — bottom left
   ============================================ */
.s-fade-txt {
  position: absolute;
  bottom: 12%;
  left: 6%;
  z-index: 2;
  max-width: 55%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
}


/* ============================================
   § Icon
   ============================================ */
.s-fade-txt__icon {
  font-family: 'Fredericka the Great', Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: white;
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  align-self: center;
  opacity: 0.9;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* ============================================
   Title & Subtitle stacked next to §
   ============================================ */
.s-fade-txt__content {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s-fade-txt__title {
  font-family: 'Fredericka the Great', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: white;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  margin: 0;
  hyphens: none; 
  word-break: normal;
  overflow-wrap: normal;
}

.s-fade-txt__sub {
  font-family: 'Fredericka the Great', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: white;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  hyphens: none; 
  word-break: normal;
  overflow-wrap: normal;
}

/* ============================================
   Body text — spans full width below
   ============================================ */
.s-fade-txt__body {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  max-width: 540px;
}

/* ============================================
   Kontakt-Block
   ============================================ */
.contact__heading {
  font-family: 'Fredericka the Great', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1e1e1e;
}

.contact__img-wrap {
  position: relative;
  width: 380px;
  max-width: 100%;
}

.contact__img-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 85%;
  height: 100%;
  background-color: #6b7280; /* slate-blau wie im Bild */
  z-index: 0;
  border-radius: 2px;
}

.contact__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ============================================
   Kontakt-Links
   ============================================ */
.contact__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact__link:hover {
  color: #1e1e1e;
  text-decoration: underline;
}

.contact__link i {
  font-size: 1.1rem;
  width: 1.2rem;
  text-align: center;
  color: #6b7280;
  transition: color 0.2s;
}

.contact__link:hover i {
  color: #1e1e1e;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .s-fade-txt {
    max-width: 90%;
    bottom: 8%;
    left: 4%;
  }

  .s-fade-txt__icon {
    font-size: 4.5rem;
  }

  .s-fade-txt__title,
  .s-fade-txt__sub {
    font-size: 1.8rem;
  }

  .s-fade-txt__body {
    font-size: 0.85rem;
  }
}
