/* Container über ID ansprechen & Abstände eliminieren */

#cover.rm-cover-container {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  /* Volle Bildschirmbreite */
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 600px;
  /* Weißer Verlauf von 80% Deckkraft zu 20% Deckkraft */
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.3) 100%), 
    url('https://rm-hausinhabung.wien/wp-content/uploads/2026/05/cover2.jpg');
  background-size: cover;
  background-position: 75% center;
  overflow: hidden;
  box-sizing: border-box;
}

.rm-cover-container * {
  box-sizing: border-box;
}

/* Linker Inhaltsbereich */

.rm-cover-main {
  width: 100%;
  padding: 40px 20px 20px 20px;
}

.rm-cover-content {
  max-width: 100%;
}

/* Typografie Links */

.rm-heading {
  color: #284767 !important;
  /* Neues Blau */
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  margin: 0 0 10px 0 !important;
}

.rm-highlight {
  color: #87a31b;
}

.rm-subheading {
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 25px 0;
}

/* Auflistung (Zeilenabstand minimiert) */

.rm-bullet-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
}

.rm-bullet-list li {
  color: #333333;
  font-size: 16px;
  line-height: 1.25 !important;
  margin-bottom: 6px;
  padding-left: 0 !important;
}

/* Buttons */

.rm-btn-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rm-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.rm-btn-primary {
  background-color: #87a31b;
  color: #ffffff !important;
}

.rm-btn-primary:hover {
  background-color: #728a14;
}

.rm-btn-secondary {
  background-color: #ffffff;
  color: #87a31b !important;
  border: 2px solid #87a31b;
}

.rm-btn-secondary:hover {
  background-color: #f9f9f9;
}

.rm-arrow {
  margin-left: 5px;
  font-weight: bold;
}

/* Rechter Bereich / Visitenkarte (Mobilansicht) */

.rm-cover-sidebar {
  width: 100%;
  padding: 20px;
}

.rm-card-content {
  background-color: #284767;
  /* Neues Blau */
  border-radius: 16px;
  padding: 30px 20px;
}

/* Profilfoto */

.rm-avatar-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 0 20px 0;
}

.rm-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Text in der Karte */

.rm-name {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: 0.5px;
}

.rm-title {
  color: #87a31b;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 25px 0;
}

/* Kontaktdaten (20% größer, Zeilenabstand minimiert, kein Unterstreichen) */

.rm-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rm-contact-list li {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.15 !important;
  margin-bottom: 12px;
}

.rm-contact-list li:last-child {
  margin-bottom: 0;
}

.rm-contact-list a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.rm-contact-list a:hover {
  text-decoration: none !important;
  opacity: 0.9;
}

/* SVG Icons */

.rm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #87a31b;
  flex-shrink: 0;
}

.rm-icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   DESKTOP-LAYOUT (Ab 992px Bildschirmbreite)
   ========================================================================= */

@media (min-width: 992px) {
  #cover.rm-cover-container {
    flex-direction: row;
    min-height: 520px;
    background-position: left center;
  }

  /* Linke Spalte */

  .rm-cover-main {
    width: 58%;
    padding: 60px 40px 60px 8%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .rm-heading {
    font-size: 38px !important;
  }

  .rm-subheading {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .rm-btn-wrapper {
    flex-direction: row;
    gap: 20px;
  }

  .rm-btn {
    display: inline-block;
    padding: 14px 28px;
  }

  /* Rechte Spalte mit Schräge (Oben mehr, unten weniger) */

  .rm-cover-sidebar {
    width: 42%;
    padding: 0;
    position: relative;
    background-color: #284767;
    /* Neues Blau */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    display: flex;
    align-items: center;
    z-index: 3;
  }

  .rm-card-content {
    background-color: transparent;
    border-radius: 0;
    padding: 60px 40px 60px 20%;
    width: 100%;
  }
}

.template-page.content.av-content-full.alpha.units {
  padding-top: 0px;
}




/* Container-Setup */
.rm-features-container {
  display: block;
  width: 100%;
  max-width: 1310px; /* Passt sich perfekt in den Enfold Standard-Grid ein */
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.rm-features-container * {
  box-sizing: border-box;
}

/* Einzelnes Feature-Element (Mobil standardmäßig untereinander) */
.rm-feature-item {
  width: 100%;
  text-align: center;
  padding: 30px 15px;
  border-bottom: 1px solid #eaeaea; /* Trennlinie für Mobilgeräte */
}

.rm-feature-item:last-child {
  border-bottom: none;
}

/* SVG Icon Styling */
.rm-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #87a31b; /* Grüner Farbton der Icons */
  margin-bottom: 20px;
}

.rm-feature-icon svg {
  width: 100%;
  height: 100%;
}

/* Titel / Überschrift */
.rm-feature-title {
  color: #284767 !important; /* Gewünschtes Dunkelblau */
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px 0 !important;
  text-transform: uppercase;
}

/* Beschreibungstext */
.rm-feature-text {
  color: #333333 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 10px;
}

/* ==========================================================================
   DESKTOP LAYOUT (Ab 768px bzw. 992px für perfekte 4 Spalten)
   ========================================================================== */
@media (min-width: 768px) {
  .rm-features-container {
    display: table; /* Zuverlässige Tabellenstruktur für gleichmäßige Spaltenhöhen in WeasyPrint/Enfold */
    table-layout: fixed;
    border-collapse: collapse;
  }
  
  .rm-feature-item {
    display: table-cell;
    width: 25%;
    vertical-align: top;
    padding: 20px 25px;
    border-bottom: none;
    border-right: 1px solid #eaeaea; /* Graue vertikale Trennlinie aus dem Screenshot */
  }
  
  .rm-feature-item:last-child {
    border-right: none; /* Letzte Spalte hat keine Trennlinie rechts */
  }

  .rm-feature-title {
    font-size: 16px !important;
    min-height: 42px; /* Verhindert das Verspringen des Textes bei zweizeiligen Titeln */
  }
}